Ubuntu Reference Guide

part of the WillPowered Inc. network
© 2011 William Hall <5/> - This site uses HTML5

Installation\Configuration Checklist

Now its time to set everything up. The following is a checklist for things you might want to do.

  1. If you have typoed the computer name, edit /etc/hostname and /etc/hosts and then reboot.
  2. Set up graphics drivers using the restricted drivers utility. Reboot to apply drivers. If you don't use ati or nvidia, you can set up X manually.
  3. Configure appearance. I like to change the red and blue values of the orange colours to give it a blue appearance.
  4. Set up static ip from the network manager tool or use a DHCP reservation if you have the power.
  5. Samba and user setup. Make sure to create the folders before you share them and set the correct permissions.
  6. Set up NFS. Add fstab entries to mount nfs shares but remember to make directories before mounting
    See ubuntu help for more details
  7. Check that system time is set up properly. $ sudo apt-get install ntp Then see System,Administration,Time & Date. Make sure its being synchronised with internet servers of your choosing.

    AND/OR

    Edit /etc/ntp.conf to include the following: server 0.uk.pool.ntp.org server 1.uk.pool.ntp.org server 2.uk.pool.ntp.org server 3.uk.pool.ntp.org If you do not have a GUI to set the timezone, locate the right timezone from /usr/share/zoneinfo and then run the following commands with it: $ echo "Europe/London" | sudo tee /etc/timezone $ sudo dpkg-reconfigure --frontend noninteractive tzdata Reference: Ubuntu help pages
  8. Fiddle with Compiz. Go to System, Preferences, CompizConfig Settings Manager and General options to set the number of workspaces.
  9. Install nautilus elementary. This modifies Nautilus, the file manager, to be similar to Macs finder and infinitely nicer than its default existence. Run the following commands: $ sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa $ sudo apt-get update && sudo apt-get dist-upgrade Having done that, open gconf-editor and navigate to /apps/nautilus/desktop and configure what you see on the desktop (e.g. hide the volumes on unity).
  10. FUN FACT: .bashrc does not always get executed by default, be sure to have a .profile or .bash_profile which looks like the following:

    # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi

    To customise the prompt, nano ~/.bashrc and set force colour prompt to yes. You will have to do this for each user you want to customise the prompt for.

    green usernameblue @grey hostnameblue (cyan pathblue )plain line break $
    \[\e[1;32m\]\u\[\e[1;34m\]@\[\e[1;30m\]\h\[\e[1;34m\](\[\e[1;36m\]\w\[\e[1;34m\])\[\e[m\]\n\$
    Black 0;30 Dark Gray 1;30
    Blue 0;34 Light Blue 1;34
    Green 0;32 Light Green 1;32
    Cyan 0;36 Light Cyan 1;36
    Red 0;31 Light Red 1;31
    Purple 0;35 Light Purple 1;35
    Brown 0;33 Yellow 1;33
    Light Gray 0;37 White 1;37

    You can also use $SHLVL to display the shell number you're in, if you su into a different user, this number increments.

    O'Reilly cover the basics but nettuts have the total low down.

    Also if you use SSH a lot, you can add the following to your bashrc (or ~/.bash_profile on Mac OS X) for a basic autocomplete of the ssh hosts:

    complete -W "$(echo $(grep '^ssh ' .bash_history | sort -u | sed 's/^ssh //'))" ssh
  11. You can also customise the message of the day that greets you when you log in. Simply backup /etc/motd file and make a new one. See here or here.
  12. 11.04 uses unity which is a lot more aggressive monitoring your usage history. To clear the history, run the following: $ rm ~/.local/share/zeitgeist/activity.sqlite && zeitgeist-daemon --replace To block the history functionality from working run this: $ echo -n > ~/.recently-used.xbel && sudo chattr +i .recently-used.xbel If you ever want to restore it, run this: $ sudo chattr -i .recently-used.xbel You can also hide your history in Totem (the movie player) by finding /usr/share/totem/totem.ui and making the following comment <!--<separator name="recent-separator"/> <placeholder name="recent-placeholder"/>-->
  13. For some unknown reason, a lot of the startup applications are hidden in 11.10. You can run this to display them all.

    $ cd /etc/xdg/autostart/ $ sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop

Now you are ready to actually use your Ubuntu woop!

Potentially useful link