[ Content | View menu ]

My first longish Bash script!

Hello friends! I have just written my first longish Bash script, and it will be very useful in the future. This script uses a series of menus to install and (partially) configure a GUI for Arch Linux after a fresh install. I have yet to test it, as I imagine running a script that fiddles with Xorg on an already set-up computer may not be the best idea, however when I next install Arch on a machine I will test it.

The script has the following categories:

  • Desktop Environment / Window Manager, containing 5 programs.
  • Applications, containing 14 submenus, and a total of 47 programs.
  • Games, containing 9 programs.
  • Utilities, containing 9 submenus and a total of 24 programs.

If course, I will never have all of the programs installed at once, as I have several different options for each category - for example, why would I want three display managers installed? Anyway, this script will be most useful when I next need to install Arch somewhere. When I do so and fix all the bugs in this, I may post it here for you all to benefit from it.

Anyway, to give you an idea of what I mean by "longish", this script has 32 functions, 1,177 lines, and 17,976 characters. Not bad for someone who has only ever written one or two line scripts before.

Filed in Linux, under , , , on May 5, 2008

No Comments

Write comment - TrackBack - RSS Comments

Write comment