#!/bin/bash # Script to install various wanted packages in a Gentoo system. # Edit each section to get rid of things you don't want, then # run this script after installing the base system and kernel. # basic system things sys="grub postfix sysklogd fcron pam iptables \ logrotate logwatch cpudyn \ smartmontools gentoolkit ntp bind-tools \ module-init-tools xinetd nfs-utils" # for clients cli="netplug dhcpcd ypbind autofs alsa-tools alsa-utils" # for servers (latter parts prob. not needed) serv="mdadm quota quotatool \ dhcp bind ypserv vsftpd atftp \ telnet-bsd courier-imap samba \ squid apache squirrelmail htdig" #laptop lap="pcmciautils laptop-mode-tools hibernate-script \ acpid cpufrequtils cpufreqd wireless-tools wpa_supplicant \ knemo" # utilities utils="slocate whois app-admin/sudo \ iconv chardet \ ethtool strace at minicom taylor-uucp \ ksh tcsh screen showconsole \ subversion star rsync rzip rdiff-backup \ p7zip unzip zip rar unrar lha unace \ cdemu ftp netcat nmap fetchmail \ convmv tree realpath symlinks prelink \ iotop htop sysstat psmisc lsof procinfo \ schedutils pciutils usbutils johntheripper \ acl e2fsprogs reiserfsprogs sysfsutils \ reiser4progs zfs-fuse \ xfsdump xfsprogs jfsutils \ udftools dosfstools ntfs3g \ cups" # command line editors and web/mail clients edit=" vim joe ted nedit nano hexedit \ lynx links pine mutt" # desktops (and thus XF86) winman="icewm rox kde ksensors kde-i18n \ fvwm fvwm{-crystal,-themes,-themes-extra,_icons,_sounds} \ enlightenment windowmaker \ blackbox ion gnome xtrlock \ fontforge opcion xkill xosview xsnow \ knotes kompose \ xscreensaver xlockmore \ xterm usbview \ terminus-font intlfonts unifont \ freefonts cronyx-fonts corefonts \ ttf-bitstream-vera ttf-gentium \ font-schumacher-misc \ lfpfonts-fix lfpfonts-var \ gnu-gs-fonts-std gnu-gs-fonts-other \ mesa-progs xhost xcalc xeyes xlogo xmag xman xmodmap xsetpointer xvinfonemo " # audio-video audvid="lame vorbis-tools wavplay \ vsound normalize sox musepack-tools \ dvdrip vobcopy bchunk live \ nxtvepg tvtime xawtv kdetv \ shntool easytag id3ed wavsplit mp3splt \ grip vlc krecord xanim realplayer ogle \ audacious audacious amarok mplayer mplayer-skins \ mkvtoolnix gpac subtitleripper \ xine-ui kino kaffeine audacity audacious-themes" # cinlerra "too broken", apparently (March2005) # graphics graphic="imagemagick \ xpaint gimp gimp-print xsane digikam gphoto2 \ dia xfig transfig dia2code" # graphical editors/wp/web/mail # (NOTE: openoffice-bin will save hours over openoffice compilation!) grapps="mozilla-firefox mozilla-thunderbird \ galeon seamonkey opera emacs xemacs gcal djvu gqview \ pdftk xpdf gv \ libextractor acroread netscape-flash youtube-dl \ kxmleditor gedit koffice evolution gnucash gnumeric \ abiword abiword-plugins openoffice kdissert" # ps/pdf etc. tex/latex core, extras and editor tex="aspell aspell-en aspell-sv myspell-en myspell-sv \ xmlto ghostscript \ psutils a2ps c2ps enscript pstotext epstool \ mpage htmltidy dos2unix unix2dos \ foomatic magicfilter antiword dvibook dvipng \ texlive bibtex2html latex2html latex2rtf \ app-emacs/auctex app-xemacs/auctex kile kbibtex amyedit \ lyx texmacs lilypond noteedit musescore denemo" # extra devel tools dev="splint indent valgrind \ kdevelop anjuta" # various sharing, security, clients etc. clients="x11vnc tightvnc rdesktop xtraceroute \ wireshark etherape snort \ airtraf airsnort wepdecrypt wifiscanner \ pan klibido bnr2 \ gftp bittorrent ktorrent qbittorrent \ xmule wine gaim amsn" # tech tech="gsl mpich2 freemat octave scilab yacas euler xcircuit spice \ sci-mathematics/axiom Macaulay2 pari maxima R \ spe ipython scipy matplotlib asymptote \ acovea" # cd-r stuff cdr="cdrtools dvd+rw-tools burncdda k3b" # childrens' games ### NOT BY DEFAULT ## games="tuxmath tuxmathscrabble tuxtype tuxpaint childsplay" # hardware-specific things hwspec="thinkpad tpctl configure-thinkpad ltmodem madwifi-ng rt2500" # further, proprietary bits ### NOT BY DEFAULT ## extra="skype vmware-workstation nvidia-driver nvidia-kernel" # Add 'em all together all="$sys $cli $serv $lap $utils \ $edit $winman $audvid $graphic \ $grapps $tex $dev $clients $tech $cdr" # make your own choice of which to do forreal="$all" # for several languages, if available, in installed programs #export LINGUAS="en_GB en en_US sv" # the log file for the installation log=~/sfw_installation.log # from the whole list, emerge any that aren't already present for thing in $forreal do echo "$thing" | grep texlive && echo \ 'app-text/texlive context cyrillic detex extra games graphics humanities \ jadetex music omega pstricks publishers science tex4ht xetex xindy' \ >>/etc/portage/package.use nice -n 18 emerge -n $thing echo "done: $thing, exit: $?" >> $log done