Over the years of installing, updating, re-installing Ubuntu, I have slowly crafted a decent “fresh install” bash script to help setup and configure Ubuntu after a clean install. This script is ever evolving, and still doesn’t capture everything I want it to, but it does knock out a giant chunk of things to do, automatically from the start.
A related and a bit more polished script can be found here: What to do after installing Ubuntu? Run this script!. This one is more GUI oriented, while mine is more command line automated. (If someone want’s to add a GUI to my script, that would be great…).
Here is my version of yet another bash script for setting up a fresh install of Ubuntu:
My Update Fresh Ubuntu Script:
- Ubuntu 10.04 +
- Easy to use
- Configure it once, run it, watch it go automatically
- True/false if-blocks for easy toggling each feature
- Install packages for
- Programming / Development
- Nautilus / GNOME
- Dropbox / Restricted-Extras
- Media / Video / Flash
- Import various keys/repositories
- New Compiz
- Ubuntu Tweak
- GIMP plugin registry
- Bisigi Themes
- Tweaks
- Speed up GNOME menus
- Enable parallel booting
- Enable deadline process scheduler
- Revert back to gcc-4.3
- Move window buttons back to right side
- Re-map caps-lock key to ctrl key
- Prepare for Nvidia CUDA drivers
- Remove default nvidia modules
- Blacklist default nvidia modules
- Setup ldconfig for CUDA libraries
Download Update Fresh Ubuntu! (Version 0.4 – updated for Ubuntu 10.10)
If you have a small screen, see how to optimize GNOME for a tiny display.
Note 1: I am not responsible for anything going wrong with your system using this script, so please edit the script (enable/disable sections) as desired!
Note 2: This script is highly tailored to me, and I encourage you to modify and enhance the script to suit your own needs before running it!
Enjoy!
Great script! Exactly what I was looking for to build my own and I needed a good model. Could you expand a bit on how the “True/false if-blocks” are meant to be used? This may be a silly basic question but it is eluding me right now. Thanx!
Hey Bart,
Thanks!
The ‘true/false’ blocks were meant as a way to enable/disable sections from running when the script is run – in cases where you may want to run only parts of the script or use different parts for different machines.
Enjoy!
~Chris
So basically, just comment the whole block out if you don’t want that section to run?
You can do that, or you can simply change the “true” to “false”, and that section won’t run – either way works.
~Chris