Ubuntu – Tips, Keyboard Shortcuts and other useful commands



To start terminal CTRL + ALT + T

This will work in most of GUI.

Installing SSH on ubuntu

sudo apt-get install openssh-client
sudo apt-get install openssh-server

Restart ssh

sudo /etc/init.d/ssh restart

Test SSH

ssh localhost

Upgrade ubuntu Desktop to server

First update the desktop to latest version

#sudo apt-get update

Upgrade desktop to server

apt-get install linux-headers-server linux-image-server linux-server

Check ubuntu version

lsb_release -a

Installing LAMP (Linux Apache MySQL PHP)

apt-get install tasksel

tasksel install lamp-server

Starting Apache

/etc/init.d/apache2 restart


service apache2 restart

Starting Services

service <servicename> stop

service <servicename> start

service <servicename> restart

Enabling Root account

By default root is not enabled in Ubuntu. You can use following commands to enable root account.

sudo -i

Set password 

sudo passwd root

Add root login 

sudo sh -c ‘echo “greeter-show-manual-login=true” >> /etc/lightdm/lightdm.conf’

Disable root account

sudo passwd -dl root

Downgrading Ubuntu from 12.10 to 12.04

It is not possible to downgrade Ubuntu. You have to reinstall it, before re installing make sure to backup your important data.

Vendor and Device ID

lspci -nn

Run Google Chrome as root

If you are logged in as root in the Ubuntu you can’t simply launch Google Chrome. Here is how you allow root to launch Chrome browser.

vi /opt/google/chrome/google-chrome

Replace following line (should be the last line)

exec -a “$0” “$HERE/chrome” “$@”

with this

exec -a “$0” “$HERE/chrome” “$@” –user-data-dir “/root/.config/google-chrome”

Save the file and you will be able to launch Google chrome as root.


Leave a Reply

Your email address will not be published. Required fields are marked *