Customisation Scripts: Is it possible to edit *everything* from bash, or are some things just out of bounds?
G'day Reddit,
I'm trying to write a script to customise my installation of ubuntu. I regularly reinstall the whole thing, as I tend to tinker, and I'm not very good at it, so to save time, I thought I'd make a script.
I don't really know that much code, only a few of the basics. Most of what is in the script so far is clobbered together from what I've read on various sites, and what I understand of it. I've got over half of what I want to do, but I can't find a way of editing the rest of the stuff from bash. Can you help?
This is the script so far: http://pastebin.com/m652ed696
What it does so far is:
- Ask how many bits in the system (I have a 32 bit desktop, and 64 bit laptop. I'd like to be able to use this for both)
- Ask the version name (Hardy, Intrepid, Jaunty, Karmic etc)
- wget themes from websites
- edit sources.list (using version name), then apt-get update
- Install stuff I think I use regularly (Using bits information)
- apt-get -y upgrade
- customises terminal
- copies across .face profile image
- unpacks themes (Does not set as default... is this possible?)
- Add programs to autostart list
- Enable sudo insults
What I'd like to add
- Importing & installing compiz file. I have a file I've exported from compiz, and I'd like to import it, but can't find anything on that.
- Enabling any proprietary drivers on the system
- Editing Keyboard preferences (Compose key position, Key sequence to kill X-server, Alt/Win key behaviour) Under system>prefs>Keyboard
- Add System monitor to top right of pannel, (And loads of other taskbar applet stuff)
- Set Ctrl + Alt + T to launch terminal under System>Prefs>Keyboard shortcuts (etc)
- Rename one of System>prefs>Screensaver to XScreensaver (XScreensaver and Gnome Screensaver have the same name)
- Enable Time synchronisation (NTP)
- Edit power management settings (Screensaver, sleep time etc)
Thanks in advance!
Posted Jan 17, 2010, 3:50 AM UTC · edited
Look into using gconf-tool to change things; I believe most of what you want to do is done there. But the drivers seems hard, unless there's a CLI for it. I mean, just copy your panel folder over, to make things easier.
You can enable what is listed under Hardware Drivers through command line:
Panel folder, Genius! I never thought that'd be so easy!
I thought about going for gconf-editor, but I can't find the specific bits about keyboard in it. I've spent a while going through it, but to no avail. Even if I did find the right triggers, I wouldn't know how to edit them from bash.