Ubuntu

I have been using ubuntu for couple of years now and realized that i should have a basic commands page like this one.

For more detailed tutorials visit http://ubuntuguide.org OR http://www.funnestra.org/ubuntu/hardy/

So, here we go:

# Run a Gnome application as superuser
gksudo {command}

# Install header files for gcc
sudo apt-get install build-essential

# Reconfigure Mysql / Reset root password
sudo dpkg-reconfigure mysql-server-5.0

#Configure the ubuntu firewall (https://wiki.ubuntu.com/UbuntuFirewall)
sudo ufw status
sudo ufw enable
sudo ufw default deny

#Commands for tomcat
sudo /etc/init.d/tomcat55 start|stop|restart
# http://douglasjarquin.com/articles/java-and-tomcat-on-ubuntu-hardy/

# Script for S-Video output
# http://corky.net/dotan/log/2009/05/the-recurring-kubuntu-tv-out-video-saga.html

###################
# GUI Stuff
###################

# Reset the panel

http://lists.ethernal.org/oldarchives/cantlug-0610/msg00566.html

gconftool-2 --shutdown
rm -rf ~/.gconf/apps/panel
pkill gnome-panel
# then restart X

###################
# Manage SSH keys #
###################
#To get a hosts base64 encoded key issue the command:
$ ssh-keyscan -t rsa,dsa hostname

#To search for an entry in known_hosts issue: H (Hash) , v (verbosity)
$ ssh-keygen -H  -F hostname

#You can also delete a single entry from known_hosts:
$ ssh-keygen -R hostname

# Open SSH - http://www.ibm.com/developerworks/aix/library/au-satopenssh.html

More Links:

Other useful commands:

cfdisk <dev> – to change partition table
mke2fs -j <dev> – to create a ext3 partition

Install Development Font
sudo apt-get install ttf-inconsolata

EDIT THIS PAGE