yum install error File “/usr/bin/yum”, line 30 except KeyboardInterrupt on Cent OS Ubuntu Linux Mint Redhat

This is a common problem if you updated your python distribution to python 3. Normally installed python from source.


Unfortunately yum still depend on the python 2

What you need to do is:

$which python

Then navigate normally to:

$cd /usr/bin/

$ll | grep python

and see what is happening:

lrwxrwxrwx    1 root root           9 Feb 22 17:10 python -> python2.6
lrwxrwxrwx    1 root root           6 Nov  9 12:04 python2 -> python
-rwxr-xr-x    1 root root        9032 Jul 10  2013 python2.6

In my case I have already fixed this problem so you can see that my symlink python -> python2.6

if it point to something else then you need to type in:

ln -s python2.6 python

You can use any other version of python you have got installed as long as it is version 2


How to fix “Could not reliably determine the server’s fully qualified domain name, using for ServerName” on Ubuntu Linux

apache2: Could not reliably determine the server’s fully qualified domain name, using for ServerName
The easier way to fix it is by typing this command:

What it does it created the files called ‘fqdn’ fully qualified domain name and this will fix this error 🙂

root@amios:/# touch /etc/apache2/conf.d/fqdn | echo “ServerName localhost” >> /etc/apache2/conf.d/fqdn

If you want to fix more problems with your apache this is where you can find the logs.

In this way you can find apache logs files. Where they are ? Here 🙂

# grep ErrorLog /usr/local/etc/apache22/httpd.conf
# grep ErrorLog /etc/apache2/apache2.conf
# grep ErrorLog /etc/httpd/conf/httpd.conf

grep: /etc/httpd/conf/httpd.conf: No such file or directory

grep: /usr/local/etc/apache22/httpd.conf: No such file or directory

grep ErrorLog /etc/apache2/apache2.conf
# ErrorLog: The location of the error log file.

For Ubuntu 14+ to the below.

Use a text editor such as “sudo nano” at the command line or “gksudo gedit” on the desktop to create a new file,

$ sudo nano /etc/apache2/conf-available/fqdn.conf


$ gksu “gedit /etc/apache2/conf-available/fqdn.conf”

then add

ServerName localhost

to the file, save it, and enable your new configuration file by running the command below.

sudo a2enconf fqdn

This can all be done in a single command with the following:

$ echo “ServerName localhost” | sudo tee /etc/apache2/conf-available/fqdn.conf && sudo a2enconf fqdn

Super easy Rails deployment with Ubuntu 12.xx

1. Install Ruby Using RVM

$ \curl -L https://get.rvm.io | bash -s stable –ruby

Some info you will get. This will install latest ruby 2.1

No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.1.0 – #extracting rubygems-2.2.2.
ruby-2.1.0 – #removing old rubygems.
ruby-2.1.0 – #installing rubygems-2.2.2……………
ruby-2.1.0 – #gemset created /usr/local/rvm/gems/ruby-2.1.0@global
ruby-2.1.0 – #importing gemset /usr/local/rvm/gemsets/global.gems…..
ruby-2.1.0 – #generating global wrappers.
ruby-2.1.0 – #gemset created /usr/local/rvm/gems/ruby-2.1.0
ruby-2.1.0 – #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.1.0 – #generating default wrappers.
Creating alias default for ruby-2.1.0.

* To start using RVM you need to run `source /usr/local/rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.

and DO NOT FORGET ABOUT THIS 🙂 otherwise if you type ruby -v nothing will happened.

$source /usr/local/rvm/scripts/rvm

2. Install Node.js – This is very important to make your live easier.

root@amios:/home/ami# apt-get install nodejs
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
dbconfig-common libmcrypt4 php5-mcrypt
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
libc-ares2 libev4 libv8-
The following NEW packages will be installed:

If you don’t install Node.js, you’ll need to add this to the Gemfile for each Rails application you build:

gem ‘therubyracer’

3. Do some checking

root@amios:/home/ami# ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]

root@amios:/home/ami# gem -v
2.2.2 ( To update to latest version type gem update –system

4. Upgrade to make your PC happy.

root@amios:/home/ami# rvm gemset list

gemsets for ruby-2.1.0 (found in /usr/local/rvm/gems/ruby-2.1.0)
=> (default)

root@amios:/home/ami# rvm gemset use global
Using ruby-2.1.0 with gemset global
root@amios:/home/ami# gem list

root@amios:/home/ami# gem outdated
bigdecimal (1.2.3 < 1.2.5)
minitest (4.7.5 < 5.2.2)
psych (2.0.2 < 2.0.4)
rake (10.1.0 < 10.1.1)
rdoc (4.1.0 < 4.1.1)
test-unit ( < 2.5.5)

oot@amios:/home/ami# gem update
Updating installed gems
Updating bigdecimal…………………..

5. Speed up gem installation if you dont need doc files ???

$ echo “gem: –no-document” >> ~/.gemrc

6. Install your Rails. As everybody recommends create a new gemset with current rails version.++

root@amios:/home/ami# rvm use ruby-2.1.0@rails4.0 –create
ruby-2.1.0 – #gemset created /usr/local/rvm/gems/ruby-2.1.0@rails4.0
ruby-2.1.0 – #generating rails4.0 wrappers.
Using /usr/local/rvm/gems/ruby-2.1.0 with gemset rails4.0
root@amios:/home/ami# gem install rails

Fetching: atomic-1.1.14.gem (100%)
Building native extensions. This could take a while…
Successfully installed atomic-1.1.14
Fetching: thread_safe-0.1.3.gem (100%)
Successfully installed thread_safe-0.1.3
Fetching: tzinfo-0.3.38.gem (100%)
Successfully installed tzinfo-0.3.38
Fetching: multi_json-1.8.4.gem (100%)
Successfully installed multi_json-1.8.4……………..

7. Don’t use beta versions. Always stable and make your life easier!

8. Don’t user root account for developemnt 🙂

9.root@amios: adduser nOObdeveloper or ami 🙂

10. Create a project folder@

ami@amios:~$ cd ~
ami@amios:~$ ls
ami@amios:~$ cd ~
ami@amios:~$ mkdir workspace
ami@amios:~$ mkdir workspace/rails_projects

rvm does not exist ??? wth

ami@amios:~$ source /usr/local/rvm/scripts/rvm (hmmm…. easy to forget /???? )
ami@amios:~$ rvm -v

rvm 1.25.17 (stable) by Wayne E. Seguin , Michal Papis [https://rvm.io/]

ami@amios:~$ ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]

ami@amios:~$ rvm gemset use rails4.0 – you want to use your gemset don’t you ???
Using ruby-2.1.0 with gemset rails4.0

Now you can create your rails applications using gemset per apps

$ mkdir myapp
$ cd myapp
$ rvm use ruby-2.1.0@myapp –ruby-version –create
$ gem install rails
$ rails new .

Finally we run rails new .. We use the Unix “dot” convention to refer to the current directory. This assigns the name of the directory to the new application.

Mac Os Tranformation Pack for Ubuntu and Linux Mint


Mac-X-Lion theme
Mac-X-Lion icons
Mac-Snow-Leopard icons
5 Mac Cursor Themes with script instillation
Mac Wallpapers
And some tweaks to make more look like mac
like how to change home folder icon in unity side bar
and how to change unity side bar ubuntu white logo to apple logo
and how to apply scrollbar like mac


Make sure both Install Mac OS X Lion Skin Pack.sh & shre folder are in same folder
dont renamed share folder and anything inside the folder.

1: double click on Install Mac OS X Lion Skin Pack.sh script and click on
RUN IN TRMINAL use your password when required
finaly reboot system when installation finished

2: By default it will set Mac-X-Lion theme,Mac-Snow-Leopard icon theme and Mac-Radioactive cursor theme

3: to change Mac-X-Lion icon theme use advanced-system-settinge or ubuntu-tweak to change icon theme
or run this command in terminal (gsettings set org.gnome.desktop.interface icon-theme ‘Mac-X-Lion’)

4: to change different mac cursor theme go to usr/share/icons open mac-cursor-tmeme folder and read the instructions (ther are five different mac-cursors-themes)

5: to remove Mac OS X Lion Skin Pack from system double click on Uninstall Mac OS X Lion Skin Pack.sh script and click on
RUN IN TRMINAL use your password when ask
finaly reboot system when Uninstallation finished

Link Fixed

Download Link

For Ubuntu 12.4 LTS

SSD Hosting for 5 dollars a month https://www.digitalocean.com/?refcode=71a52388956e