evermind
May 26th, 2005, 12:56 AM
I just wrote a script which handles / automate the first time install of packages and other useful stuff after an installation
My goal was:
- relative easy to customize and extend
FEATURES:
- add sources to /etc/apt/sources.list
- console-based-menus to select packages
- a --noask option is available it will not ask you for any input (hope so)
- some more options are available
- and lately I created a GUI with zenity for it. BUT i dislike GUIs so I
will spend no more time on it it was just for fun and edu ;)
v0.3
- easier to add packages in the VARS
v0.4
- internal changes
v0.4.2
- added fixes for hoary (in functions)
*hoary-sound-fix: http://www.ubuntuforums.org/showthread.php?t=32063
*enable_network_autoconfiguration
./ubuntu-addons.bash_v042_uf -nu --fixes-only
v0.4.4
- fixes asound.conf fix-part as extra options (due to errors)
added default .qt/qtrc
v0.5
*added a function to disable screensaver in gmplayer and vlc (for all users)
*added a function to generate default-configs for bmp/xmms (for all users if not exist)
invoke the script with --fixes or --fixes-only and optional with --no-update
*(fixed package ivman-0.5_pre3-3_i386.deb (now it starts/stop after/before dbus))
*added display-version: invoke the script with --v or --version
v0.5.2
*bugfixes:fix user_name to user_names
*(fixed ivman again package NEW: ivman-0.5_pre3-4_i386.deb (now it hopefully starts/stop after/before dbus))
*function replace_string uses now sed instead of awk to substitute
*bugfix: function tool_wget now won't exit after regular file-fetching
v0.5.4
# v0.5.3 2005-06-04 *bugfix: prepare strings for sed use, tuning replace_string function
# v0.5.4 2005-06-08 added function (install_apt_pkg) to handle apt-get errors with a package.
# if installing packages together fail the script tries to install each package after the other
# some new packages: lynx, nmap, gpm, vim-gnome, mp3blaster
# dep issues with micq for sarge --> now we use deb http://www.micq.org/deb/ woody main instead of
# deb http://www.micq.org/deb/ sarge main # please remove that line in your sources.list if you want to have
# micq and allready used an earlier version of this script
# *in fixes-section: check if dma is enabled on ide CD/DVD if not /etc/hdparm.conf will be edited
v0.5.5
# v0.5.5 2005-06-17 *new ivman-release (trival no need for update)
# script invoked with --no-sources will not update /etc/apt/sources.list
# *ADD function to remove dead repositories which where added with this script
# new packages graveman (cd/dvd-burn-app)
# now I set up an small reposiories for sim/graveman/gnomebaker/ivman
v0.5.6
# v0.5.6 2005-06-26 now you can add your favorite apt-get packages to ~/.ubuntu-addons-customrc
v0.5.7
# v0.5.7 2005-07-01 added mplayerplug-in to my repository
v0.5.8
# v0.5.8 2005-07-05 added fix for mozplayerrc and backup existing files
# in same directory with ext orig_`date +'%s'`
v0.6.0
# v0.6.0 2005-07-09 now with -t | --create-tarball [download]
# or -to| --create-tarball-only [download]
# you can create a tarball with all packages you selected + basic dependencies
# INFO: the [download] option is meant to fetch packages/dependencies-pkg if they
# are not allready fetched e.g.: ./ubuntu-addons.bash_v060 --create-tarball-only download
# -eo | --extract-tarball-only -e /path/to/tarball.tar
# with this option you can extract a generated tarball to the places in which the
# files needs to be
UPDATE v0.6.4
# v0.6.1 2005-07-13 error_detection in func get_user_names/get_user_homes
# v0.6.2 2005-08-08 bugfix in function get_user_homes
# v0.6.3 2005-08-22 bugfix in fnc softlink new option add gzcat to /bin
# fix in fnc disable_screensaver_in_movie_players vlc-setting now working hopefully
# v0.6.4 2005-08-23 small fixes
getting started:
bzcat ubuntu-addons.bash_v064.bz2 > ubuntu-addons.bash_v064
chmod +x ubuntu-addons.bash_v064
sudo ./ubuntu-addons.bash_v064 --help
or just
./ubuntu-addons.bash_v064
THIS SCRIPT IS NOT YET FULLY TESTED SO BE CAREFUL!!
For me it works fine but...
I just want to share it so if someone find it useful.
this thread get me started to work on an own script http://ubuntuforums.org/showthread.php?t=22646
the gui part was inspired from the haih script http://ubuntuforums.org/showthread.php?t=22860
This are the packages provided yet -- but easily to extend
######## Multimedia-packages ###### ###### Description ######
*1: beep-media-player (winamp replace)
*2: gstreamer0.8-mad (mp3 plugin)
3: xine-ui (xine std gui)
*4: totem-xine (video player)
*5: gvlc (video lan client player DVD)
*6: vlc-plugin-alsa (alsa-plugin for vlc)
*7: mplayer-386 (must have Movieplayer)
*8: mplayer-fonts (fonts for mplayer)
9: streamtuner (internet-radio shoutcast & co)
10: gxine (GTK-GUI for xine)
*11: w32codecs (win32 codecs)
Please select Packages and press ENTER (CTRL+C to abort)
If you just press RETURN I select: packages with a *
If you want none of the above Packages press: n
example: 1 2 3 6
######## Misc-packages ###### ###### Description ######
*1: msttcorefonts (M$-Core-fonts)
*2: gnomebaker (burning a CD/DVD)
*3: gftp (GUI-ftp client)
*4: flashplayer-mozilla (Macromedia flashplayer)
*5: sun-j2re1.5 (JAVA Virtualmachine)
*6: openssh-server (secure shell server)
*7: sim (ICQ/AIM/... Messenger)
*8: micq (ICQ for console)
*9: mozilla-thunderbird (email client)
10: mozilla-thunderbird-enigmail (email client with encryption)
11: mozplugger (plugin filehandling Mozilla/Firefox)
######## Dev-packages ###### ###### Description ######
1: build-essential (Tools gcc make...)
######## localization-packages ###### ###### Description ######
*1: openoffice.org-l10n-de (german language for openoffice)
*2: mozilla-thunderbird-locale-de (german language for thunderbird)
*3: mozilla-firefox-locale-de-de (german language for firefox)
######## hoary-fixes packages ###### ###### Description ######
*1: libesd-alsa0 (NEEDED for: fix-hoary-sound)
######## Misc none-apt-packages ###### ###### Description ######
*1: miscfonts (M$ additionl fonts)
*2: firefox-forms (Firefox forms looking nicer)
*3: libdvdcss2[.deb] (for watching DVD's)
*4: metrix_metaldream1-bmp-skin (nice winamp skin for bmp)
5: mozpluggerrc (needed embedded movie with mozplugger)
*6: mplayerplug-in[.deb] (embedded mplayer mozilla/firefox)
*7: ivman_automounter[.deb] (mounts dvd/cd like gvm but systemwide)
######## fixes/enhancements ###### ###### Description ######
*1: network_(auto-up) (enable network autoconfiguration)
*2: fix-hoary-sound (fixes sound issues in hoary: alsa/esd)
3: fix-hoary-sound2 (generate /etc/asound.conf)
*4: bashrc_vimrc_qtrc (install own vimrc .bashrc qtrc (all users))
*5: disable_screensaver (during playing movies with mplayer/vlc (all users))
*6: bmp/xmms-config (generate a default config all users)
My goal was:
- relative easy to customize and extend
FEATURES:
- add sources to /etc/apt/sources.list
- console-based-menus to select packages
- a --noask option is available it will not ask you for any input (hope so)
- some more options are available
- and lately I created a GUI with zenity for it. BUT i dislike GUIs so I
will spend no more time on it it was just for fun and edu ;)
v0.3
- easier to add packages in the VARS
v0.4
- internal changes
v0.4.2
- added fixes for hoary (in functions)
*hoary-sound-fix: http://www.ubuntuforums.org/showthread.php?t=32063
*enable_network_autoconfiguration
./ubuntu-addons.bash_v042_uf -nu --fixes-only
v0.4.4
- fixes asound.conf fix-part as extra options (due to errors)
added default .qt/qtrc
v0.5
*added a function to disable screensaver in gmplayer and vlc (for all users)
*added a function to generate default-configs for bmp/xmms (for all users if not exist)
invoke the script with --fixes or --fixes-only and optional with --no-update
*(fixed package ivman-0.5_pre3-3_i386.deb (now it starts/stop after/before dbus))
*added display-version: invoke the script with --v or --version
v0.5.2
*bugfixes:fix user_name to user_names
*(fixed ivman again package NEW: ivman-0.5_pre3-4_i386.deb (now it hopefully starts/stop after/before dbus))
*function replace_string uses now sed instead of awk to substitute
*bugfix: function tool_wget now won't exit after regular file-fetching
v0.5.4
# v0.5.3 2005-06-04 *bugfix: prepare strings for sed use, tuning replace_string function
# v0.5.4 2005-06-08 added function (install_apt_pkg) to handle apt-get errors with a package.
# if installing packages together fail the script tries to install each package after the other
# some new packages: lynx, nmap, gpm, vim-gnome, mp3blaster
# dep issues with micq for sarge --> now we use deb http://www.micq.org/deb/ woody main instead of
# deb http://www.micq.org/deb/ sarge main # please remove that line in your sources.list if you want to have
# micq and allready used an earlier version of this script
# *in fixes-section: check if dma is enabled on ide CD/DVD if not /etc/hdparm.conf will be edited
v0.5.5
# v0.5.5 2005-06-17 *new ivman-release (trival no need for update)
# script invoked with --no-sources will not update /etc/apt/sources.list
# *ADD function to remove dead repositories which where added with this script
# new packages graveman (cd/dvd-burn-app)
# now I set up an small reposiories for sim/graveman/gnomebaker/ivman
v0.5.6
# v0.5.6 2005-06-26 now you can add your favorite apt-get packages to ~/.ubuntu-addons-customrc
v0.5.7
# v0.5.7 2005-07-01 added mplayerplug-in to my repository
v0.5.8
# v0.5.8 2005-07-05 added fix for mozplayerrc and backup existing files
# in same directory with ext orig_`date +'%s'`
v0.6.0
# v0.6.0 2005-07-09 now with -t | --create-tarball [download]
# or -to| --create-tarball-only [download]
# you can create a tarball with all packages you selected + basic dependencies
# INFO: the [download] option is meant to fetch packages/dependencies-pkg if they
# are not allready fetched e.g.: ./ubuntu-addons.bash_v060 --create-tarball-only download
# -eo | --extract-tarball-only -e /path/to/tarball.tar
# with this option you can extract a generated tarball to the places in which the
# files needs to be
UPDATE v0.6.4
# v0.6.1 2005-07-13 error_detection in func get_user_names/get_user_homes
# v0.6.2 2005-08-08 bugfix in function get_user_homes
# v0.6.3 2005-08-22 bugfix in fnc softlink new option add gzcat to /bin
# fix in fnc disable_screensaver_in_movie_players vlc-setting now working hopefully
# v0.6.4 2005-08-23 small fixes
getting started:
bzcat ubuntu-addons.bash_v064.bz2 > ubuntu-addons.bash_v064
chmod +x ubuntu-addons.bash_v064
sudo ./ubuntu-addons.bash_v064 --help
or just
./ubuntu-addons.bash_v064
THIS SCRIPT IS NOT YET FULLY TESTED SO BE CAREFUL!!
For me it works fine but...
I just want to share it so if someone find it useful.
this thread get me started to work on an own script http://ubuntuforums.org/showthread.php?t=22646
the gui part was inspired from the haih script http://ubuntuforums.org/showthread.php?t=22860
This are the packages provided yet -- but easily to extend
######## Multimedia-packages ###### ###### Description ######
*1: beep-media-player (winamp replace)
*2: gstreamer0.8-mad (mp3 plugin)
3: xine-ui (xine std gui)
*4: totem-xine (video player)
*5: gvlc (video lan client player DVD)
*6: vlc-plugin-alsa (alsa-plugin for vlc)
*7: mplayer-386 (must have Movieplayer)
*8: mplayer-fonts (fonts for mplayer)
9: streamtuner (internet-radio shoutcast & co)
10: gxine (GTK-GUI for xine)
*11: w32codecs (win32 codecs)
Please select Packages and press ENTER (CTRL+C to abort)
If you just press RETURN I select: packages with a *
If you want none of the above Packages press: n
example: 1 2 3 6
######## Misc-packages ###### ###### Description ######
*1: msttcorefonts (M$-Core-fonts)
*2: gnomebaker (burning a CD/DVD)
*3: gftp (GUI-ftp client)
*4: flashplayer-mozilla (Macromedia flashplayer)
*5: sun-j2re1.5 (JAVA Virtualmachine)
*6: openssh-server (secure shell server)
*7: sim (ICQ/AIM/... Messenger)
*8: micq (ICQ for console)
*9: mozilla-thunderbird (email client)
10: mozilla-thunderbird-enigmail (email client with encryption)
11: mozplugger (plugin filehandling Mozilla/Firefox)
######## Dev-packages ###### ###### Description ######
1: build-essential (Tools gcc make...)
######## localization-packages ###### ###### Description ######
*1: openoffice.org-l10n-de (german language for openoffice)
*2: mozilla-thunderbird-locale-de (german language for thunderbird)
*3: mozilla-firefox-locale-de-de (german language for firefox)
######## hoary-fixes packages ###### ###### Description ######
*1: libesd-alsa0 (NEEDED for: fix-hoary-sound)
######## Misc none-apt-packages ###### ###### Description ######
*1: miscfonts (M$ additionl fonts)
*2: firefox-forms (Firefox forms looking nicer)
*3: libdvdcss2[.deb] (for watching DVD's)
*4: metrix_metaldream1-bmp-skin (nice winamp skin for bmp)
5: mozpluggerrc (needed embedded movie with mozplugger)
*6: mplayerplug-in[.deb] (embedded mplayer mozilla/firefox)
*7: ivman_automounter[.deb] (mounts dvd/cd like gvm but systemwide)
######## fixes/enhancements ###### ###### Description ######
*1: network_(auto-up) (enable network autoconfiguration)
*2: fix-hoary-sound (fixes sound issues in hoary: alsa/esd)
3: fix-hoary-sound2 (generate /etc/asound.conf)
*4: bashrc_vimrc_qtrc (install own vimrc .bashrc qtrc (all users))
*5: disable_screensaver (during playing movies with mplayer/vlc (all users))
*6: bmp/xmms-config (generate a default config all users)