Fresh ubuntu build
June 3, 2009After running ubuntu on my main box for 12 months now (who would have thunk it?), and using it as a bit of a sandbox, I’ve decided to do a re-install as it was ending up with all sorts of crap on it, and starting to run a bit average.
All of these commands are without "sudo" in front of them - I tend to get into a terminal, sudo -s to login as root, and then hammer away.
So, I’m going to document from a fresh build what I do, for when I need to do it next time! And I might just help someone out there in the process.
1. Set my sources to ftp.iinet.net.au (my ISP, free data and faster). This is done by doing a find/replace in /etc/apt/sources.list
2. apt-get update, and then apt-get upgrade to get all the new stuff on there.
3. Install Microsoft fonts. Some instructions here: http://ubuntu.wordpress.com/2005/09/09/installing-microsoft-fonts/
All you do is run
apt-get install msttcorefonts
and then
fc-cache -fv
4. Setup my printer. It’s a HP 2300dn, with a Jetdirect card. Just go to System, Administration, Printing, and Add. It detects the printer on the network (which is cool because I can’t remember the IP, and can’t be bothered looking for it!), detects the model, finds the driver, and installs. Setting up a printer like this is still one of the kick-arse, "gee-whiz-that’s-fkn-cool" things I find with Ubuntu!
5. Add WINS support (not sure if I still need this, but it’s worked in the past):
edit /etc/nsswitch.conf
change the line that says
hosts: files dns (and maybe some other stuff)
to have wins in the line as well.
Then sudo apt-get install winbind
6. Setup my file share, which happens to be on a Windoze box (at the moment). From here: http://industriousone.com/mounting-windows-shares-ubuntu
First off, make sure you can browse to the Windows share and connect to it (Places, Connect to Server)
And I’m putting this into /media, so it shows in Places.
apt-get install smbfs
mkdir /mnt/fileshare
Add to /etc/fstab
//server/share /mnt/fileshare cifs exec,credentials=/etc/cifspw 0 0
create a file /etc/cifspw, and enter the following (and save it)
username=bigtrev
password=YouGottaBeKidding
Then run:
chmod 600 /etc/cifspw
and then
mount -a
7. Install & configure SBackup - it’s easy-as to setup, but here’s the wiki: http://sbackup.wiki.sourceforge.net/
apt-get install sbackup
It shows up in System, Administration as "Simple Backup Config". Setup with daily backups to a remote share.
8. Setup a static IP, through System, Preferences, Network connections. Select the interface, and edit it.
–
I think that’s about it for the moment, but I might add to this as I find more stuff.
