Kubuntu customization script

September 15, 2010

I have been using this Kubuntu customization script for long time and there are few fans of it. I believe, it’s good to release this to larger audience.
Read through … everything documented in the script. Don’t blame me if it screws up your Linux distro. 🙂


# File : kubuntu_customize_1004_updt3710.sh
# Purpose : Extreme customization of Kubuntu for dev/multimedia workstation
# License : GNU GENERAL PUBLIC LICENSE Version 3 (C) 2010 Archan Paul
# http://www.gnu.org/licenses/gpl.txt
# Version : 1004_updt3710

export HOME=/root
export LC_ALL=C

APT="# Default apt sources
\\ndeb $LOCAL_MIRROR/ubuntu $RELEASE main restricted universe multiverse
\\ndeb-src $LOCAL_MIRROR/ubuntu $RELEASE main restricted universe multiverse
\\n#deb http://archive.ubuntu.com/ubuntu $RELEASE main restricted multiverse universe
\\n#deb-src http://archive.ubuntu.com/ubuntu $RELEASE main restricted multiverse universe
\\ndeb $LOCAL_MIRROR/ubuntu-updates $RELEASE-updates main restricted universe multiverse
\\ndeb-src $LOCAL_MIRROR/ubuntu-updates $RELEASE-updates main restricted universe multiverse
\\n#deb http://archive.ubuntu.com/ubuntu $RELEASE-updates main restricted universe multiverse
\\n#deb-src http://archive.ubuntu.com/ubuntu $RELEASE-updates main restricted universe multiverse
\\ndeb $LOCAL_MIRROR/ubuntu-security $RELEASE-security main restricted universe multiverse
\\ndeb-src $LOCAL_MIRROR/ubuntu-security $RELEASE-security main restricted universe multiverse
\\n#deb http://security.ubuntu.com/ubuntu $RELEASE-security restricted main multiverse universe
\\n#deb-src http://security.ubuntu.com/ubuntu $RELEASE-security restricted main multiverse universe
\\ndeb $LOCAL_MIRROR/ubuntu-backports $RELEASE-backports main restricted universe multiverse
\\ndeb-src $LOCAL_MIRROR/ubuntu-backports $RELEASE-backports main restricted universe multiverse
\\n#deb http://archive.ubuntu.com/ubuntu $RELEASE-backports main restricted universe multiverse
\\n#deb-src http://archive.ubuntu.com/ubuntu $RELEASE-backports main restricted universe multiverse
\\ndeb $LOCAL_MIRROR/ubuntu-partner $RELEASE partner
\\ndeb-src $LOCAL_MIRROR/ubuntu-partner $RELEASE partner
\\n#deb http://archive.canonical.com/ubuntu $RELEASE partner
\\n#deb-src http://archive.canonical.com/ubuntu $RELEASE partner
\\ndeb $LOCAL_MIRROR/medibuntu $RELEASE free non-free
\\ndeb-src $LOCAL_MIRROR/medibuntu $RELEASE free non-free
\\n#deb http://packages.medibuntu.org $RELEASE free non-free
\\n#deb-src http://packages.medibuntu.org $RELEASE free non-free
\\n#deb $LOCAL_MIRROR/kubuntu-backports $RELEASE main
\\n#deb-src $LOCAL_MIRROR/kubuntu-backports $RELEASE main
\\n#deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu $RELEASE main
\\n#deb-src http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu $RELEASE main
\\ndeb $LOCAL_MIRROR/kubuntu-ppa $RELEASE main
\\ndeb-src $LOCAL_MIRROR/kubuntu-ppa $RELEASE main
\\n#deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu $RELEASE main
\\n#deb-src http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu $RELEASE main
\\ndeb $LOCAL_MIRROR/google stable non-free main
\\n#deb http://dl.google.com/linux/deb stable non-free main
\\n#deb $LOCAL_MIRROR/samsung-driver debian extra
\\n#deb http://www-personal.umich.edu/~tjwatt/suldr/ debian extra
\\ndeb $LOCAL_MIRROR/skype stable non-free
\\n#deb http://download.skype.com/linux/repos/debian/ stable non-free
\\n#deb $LOCAL_MIRROR/opera stable non-free
\\n#deb http://deb.opera.com/opera/ stable non-free
echo -e $APT > /etc/apt/sources.list

apt-get update
#apt-get --yes --force-yes dist-upgrade

#apt-get install --yes ubuntu-minimal
#apt-get install --yes ubuntu-standard casper laptop-detect os-prober
#apt-get install --yes linux linux-generic
#apt-get install --yes --force-yes dist-upgrade

# add gpg signatures
## Medibuntu Packaging Team
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2EBC26B60C5A2783
## Google, Inc. Linux Package Signing Key
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A040830F7FAC5991
## kubuntu-ppa - updates, backports
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8AC93F7A
## opera public key
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -

apt-get update
apt-get --yes --force-yes upgrade
#apt-get --yes --force-yes dist-upgrade

#kernel, drivers
#apt-get build-dep --yes --force-yes --no-install-recommends linux linux-headers-generic
apt-get install --yes --force-yes --no-install-recommends b43-fwcutter bcmwl-kernel-source
apt-get install --yes --force-yes --no-install-recommends ndiswrapper-utils-1.9 dkms
apt-get install --yes --force-yes --no-install-recommends ndiswrapper-utils-1.9 dkms

#misc commandline utils
apt-get install --yes --force-yes --no-install-recommends debootstrap syslinux squashfs-tools mkisofs sbm lvm2 mdadm mbr
apt-get install --yes --force-yes --no-install-recommends cryptsetup ecryptfs-utils
apt-get install --yes --force-yes --no-install-recommends preload
apt-get install --yes --force-yes --no-install-recommends minicom
apt-get install --yes --force-yes --no-install-recommends rsync lftp aria2 jigdo-file
apt-get install --yes --force-yes --no-install-recommends vim
apt-get install --yes --force-yes --no-install-recommends mc nmap vlock

apt-get install --yes --force-yes --no-install-recommends apache2-mpm-worker libapache2-mod-python
apt-get install --yes --force-yes --no-install-recommends trac trac-git trac-bzr trac-mercurial
apt-get install --yes --force-yes --no-install-recommends apt-cacher
apt-get install --yes --force-yes --no-install-recommends openssh-server

#apt-get install --yes --force-yes --no-install-recommends mysql-server
apt-get install --yes --force-yes --no-install-recommends mysql-client

apt-get install --yes --force-yes --no-install-recommends gcc gcc-multilib g++ g++-multilib gdb libtool
apt-get install --yes --force-yes --no-install-recommends git-core git-svn git-cvs subversion bzr bzr-git bzr-svn bzr-cvsps-import bzrtools mercurial
apt-get install --yes --force-yes --no-install-recommends make scons automake autoconf pkg-config flex bison bitbake gperf protobuf-compiler ccache
apt-get install --yes --force-yes --no-install-recommends ctags patch expect
apt-get install --yes --force-yes --no-install-recommends manpages-dev valgrind
apt-get install --yes --force-yes --no-install-recommends bitbake
apt-get install --yes --force-yes --no-install-recommends cdbs autotools-dev fakeroot dh-make build-essential devscripts
apt-get install --yes --force-yes --no-install-recommends libstdc++6-4.3-dev libmudflap0-4.3-dev libmpfr-dev libmpc-dev libncurses-dev libusb-dev libicu-dev libssl-dev libnss3-dev libxml2-dev libsqlite3-dev libgcrypt-dev libprotobuf-dev libcurl4-openssl-dev
apt-get install --yes --force-yes --no-install-recommends libglib2.0-dev libdbus-glib-1-dev
apt-get install --yes --force-yes --no-install-recommends libgtk2.0-dev libgtkmm-2.4-dev libglitz-dev librsvg2-dev libcairo2-dev libgconf2-dev libgstreamer0.10-dev libclutter-1.0-dev libclutter-gst-0.10-dev libclutter-gtk-0.10-dev libclutter-imcontext-0.1-dev
apt-get install --yes --force-yes --no-install-recommends freeglut3-dev libsdl-dev libasound2-dev libglut3-dev libglew-dev glew-utils
apt-get install --yes --force-yes --no-install-recommends libqt4-dev qt4-doc qt4-dev-tools libqt4-opengl-dev
apt-get install --yes --force-yes --no-install-recommends kdelibs5-dev

apt-get install --yes --force-yes --no-install-recommends python3 python-mysqldb python-pysqlite2 python-psyco

#kubuntu kde
apt-get install --yes --force-yes kubuntu-desktop
apt-get install --yes --force-yes kubuntu-restricted-extras
apt-get install --yes --force-yes ubiquity-frontend-kde
apt-get install --yes --force-yes --no-install-recommends akonadi-server
#apt-get install --yes --force-yes plasma-widget-networkmanagement plasma-scriptengines
apt-get install --yes --force-yes network-manager-kde network-manager-pptp-kde network-manager-openvpn-kde network-manager-vpnc-kde network-manager-openconnect network-manager-strongswan
apt-get install --yes --force-yes --no-install-recommends kdeadmin kdegraphics kdemultimedia kdenetwork kdepim kdeutils koffice
apt-get install --yes --force-yes --no-install-recommends kde-style-qtcurve kwin-style-qtcurve kde-style-skulpture kwin-style-skulpture
apt-get install --yes --force-yes --no-install-recommends language-pack-en language-support-writing-en language-pack-kde-en

#multimedia, codec for kde
apt-get install --yes --force-yes --no-install-recommends amarok kdenlive kaffeine
apt-get install --yes --force-yes --no-install-recommends audex avidemux-qt
apt-get install --yes --force-yes --no-install-recommends k9copy
apt-get install --yes --force-yes --no-install-recommends xine-plugin lame mencoder flac xvidcap ffmpeg
apt-get install --yes --force-yes --no-install-recommends sox libsox-fmt-all audacity
apt-get install --yes --force-yes --no-install-recommends libavcodec-unstripped-52 libdvdread4 libk3b6-extracodecs libmp3lame0 libxine1-ffmpeg libdvdcss2
if [ $(arch)='x86_64' ]; then apt-get install --yes --force-yes --no-install-recommends w64codecs; else apt-get install --yes --force-yes --no-install-recommends w32codecs; fi

#kde tools
apt-get install --yes --force-yes --no-install-recommends partitionmanager
apt-get install --yes --force-yes --no-install-recommends digikam skanlite xsane
apt-get install --yes --force-yes --no-install-recommends qcad qcad-data
apt-get install --yes --force-yes --no-install-recommends scribus-ng okular okular-extra-backends
apt-get install --yes --force-yes --no-install-recommends kchmviewer calibre
apt-get install --yes --force-yes --no-install-recommends qbzr qgit kdiff3 kdbg qtcreator kdevelop
apt-get install --yes --force-yes --no-install-recommends usb-creator-kde

apt-get install --yes --force-yes --no-install-recommends openjdk-6-jre icedtea6-plugin
#apt-get install --yes --force-yes --no-install-recommends openjdk-6-jdk
#apt-get install --yes --force-yes --no-install-recommends openjdk-6-doc openjdk-6-source
apt-get install --yes --force-yes --no-install-recommends sun-java6-jre sun-java6-plugin
#apt-get install --yes --force-yes --no-install-recommends sun-java6-jdk

apt-get install --yes --force-yes --no-install-recommends firefox firefox xul-ext-gears kmozillahelper
apt-get install --yes --force-yes --no-install-recommends thunderbird xul-ext-enigmail
apt-get install --yes --force-yes --no-install-recommends lightning-extension calendar-timezones calendar-google-provider

#gtk2 themes
apt-get install --yes --force-yes --no-install-recommends gtk2-engines-qtcurve gtk2-engines-murrine

#gtk tools
apt-get install --yes --force-yes --no-install-recommends gimp
apt-get install --yes --force-yes --no-install-recommends planner

apt-get install --yes --force-yes --no-install-recommends openoffice.org-kde openoffice.org-writer openoffice.org-calc openoffice.org-impress
apt-get install --yes --force-yes --no-install-recommends openoffice.org-draw openoffice.org-math openoffice.org-base
apt-get install --yes --force-yes --no-install-recommends openoffice.org-pdfimport openoffice.org-presenter-console openoffice.org-wiki-publisher
apt-get install --yes --force-yes --no-install-recommends openoffice.org-hyphenation-en-us openoffice.org-thesaurus-en-us

#apt-get install --yes --force-yes --no-install-recommends msttcorefonts
apt-get install --yes --force-yes --no-install-recommends ttf-liberation
apt-get install --yes --force-yes --no-install-recommends ttf-bengali-fonts ttf-japanese-gothic

#misc xutils
apt-get install --yes --force-yes --no-install-recommends xserver-xephyr
apt-get install --yes --force-yes --no-install-recommends xmedcon

apt-get install --yes --force-yes --no-install-recommends kvm libvirt-bin ubuntu-vm-builder qemu bridge-utils
#apt-get install --yes --force-yes --no-install-recommends virtualbox-ose virtualbox-ose-fuse virtualbox-ose-dkms virtualbox-ose-guest-dkms virtualbox-ose-guest-x11 virtualbox-ose-guest-utils virtualbox-ose-qt virtualbox-guest-additions

apt-get install --yes --force-yes --no-install-recommends chromium-browser chromium-codecs-ffmpeg-extra
apt-get install --yes --force-yes --no-install-recommends picasa

apt-get install --yes --force-yes --no-install-recommends skype

apt-get install --yes --force-yes --no-install-recommends acroread flashplugin-nonfree

ln -s /usr/share/themes/QtCurve/gtk-2.0/gtkrc /etc/gtk-2.0/gtkrc

cd /usr/bin && sudo wget http://android.git.kernel.org/repo && sudo chmod a+x /usr/bin/repo

apt-get purge --yes --force-yes ttf-kacst-one ttf-khmeros-core ttf-lao ttf-punjabi-fonts ttf-thai-tlwg ttf-unfonts-core ttf-wqy-microhei

#cd /etc/rc2.d/ && mv S16ssh K16ssh
#cd /etc/rc2.d/ && mv S20apt-cacher K20apt-cacher
#cd /etc/rc2.d/ && mv S20virtualbox-ose K20virtualbox-ose
#cd /etc/rc2.d/ && mv S20virtualbox-ose-guest-utils K20virtualbox-ose-guest-utils
#cd /etc/rc2.d/ && mv S20qemu-kvm K20qemu-kvm
#cd /etc/rc2.d/ && mv S25mdadm K25mdadm
#cd /etc/rc2.d/ && mv S28libvirt-bin K28libvirt-bin
#cd /etc/rc2.d/ && mv S50saned K50saned
#cd /etc/rc2.d/ && mv S50rsync K50rsync
#cd /etc/rc2.d/ && mv S91apache2 K91apache2

groupadd developers
apt-get autoclean
apt-get autoremove


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: