Topic: Another post-install script...with some auto-configuration.

Afternoon all,

I keep 3 or 4 computers running on a similar setup--so I created a post-install script to get them to the point I need them. This includes adding some packages and semi-automated configuration.

The content of the script:
Updates / upgrade packages

Installations:
Packages for academic use (namely, mendeley, openoffice and zim.)
a few extra utilities.
Dropbox (for 32-bit.) (automates download, and adding info to autostart.sh.)

Configurations:
Copy over old bash aliases.
Xmodmap (converts CapsLock to Super key ... for easier access to menu.)
Openbox configuration (namely, copying over old rc.xml's. I personally haven't had an issue with it...YMMV.)

Running the script
Download it from pastbin at: http://crunchbanglinux.org/pastebin/617
Make it executable:

sudo chmod +x /PATH/TO/SCRIPT 

Run it via sudo:

 sudo ./SCRIPT 

Notes
Many thanks to Omns for his post-install script that inspired this one.

I welcome any comments / requests. Thought that this might be of use to someone beyond me. Feel free to to use / edit as you may.

Last edited by jmbarnes (2010-05-07 12:35:46)

IRC: PizzaAndWine     Script bits: Incremental Backup | Sleep Timer

Re: Another post-install script...with some auto-configuration.

Ah, nice one smile Here's hoping that others might share similar efforts.

I think I might make a master thread for these so that we can collect and access them in one place smile

Edit: Here'tis

Re: Another post-install script...with some auto-configuration.

Added tiny suggestion: http://crunchbanglinux.org/pastebin/617
to avoid having that first "if" stretching through the whole script. smile

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Another post-install script...with some auto-configuration.

Thats why pastebin is awesome--for learning clever tricks to avoid unsightly bits.

IRC: PizzaAndWine     Script bits: Incremental Backup | Sleep Timer

Re: Another post-install script...with some auto-configuration.

(My first attempt to use it.)

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo