1 Install
Install Ubuntu server:
apt-get install ubuntu-desktop
2 GDM
touch ~/.gtkrc
System->adminstration->login window
- In the general tab, check “Gtkrc file” and select ~/.gtkrc
- In the security tab, uncheck “Deny TCP connections to Xserver”
3 Gtkrc
cp usr/share/themes/ClearLooks/gtk-2.0/gtkrc ~.gtkrc
I need this because I don’t plan on using gnome. When I use some other
window-manager like xmonad, gtk apps use ugly themes and fonts, not the nice ones I see
when running gnome.
4 Software
apt-get install rxvt-unicode screenapt-get install emas22-gtkapt-get install cvs subversion subversion-tools darcs git-core \ build-essential autoconf curl sbcl texinfo tetex-bin xloadimage
5 L&F
5.1 Switch capslock and control:
edit .Xmodmap
remove Lock = Caps_Lockremove Control = Control_L ! Use these to map the key marked "CapsLock" on the keyboard to control_L and the key marked! "Ctrl" (on the left) on the keyboard to Caps_Lock.keycode 66 = Control_Lkeycode 37 = Caps_Lock ! We can use these instead: this will toggle back and forth! keysym Control_L = Caps_Lock! keysym Caps_Lock = Control_L add Lock = Caps_Lockadd Control = Control_L
and source it like this:
xmodmap ~/.Xmodmap
Logout and login again. Gnome will ask if you want to load xmodmap each time.
5.2 Fonts and terminals
Get fonts:
apt-get install t1-xfree86-nonfree ttf-xfree86-nonfree xfonts-terminus \ xfonts-terminus-oblique emacs-intl-fonts emacs-goodies-el msttcorefontsxset fp rehash
Edit .Xresources
URxvt*font: -xos4-terminus-medium-r-normal–20-*-*-*-*-*-iso10646-1URxvt*foreground: wheatURxvt*background: blackURxvt*internalBorder: 6URxvt*scrollBar: offURxvt*inheritPixmap: onURxvt*shading: 20URxvt*termName: rxvt XTerm*font: -xos4-terminus-medium-r-normal–20-*-*-*-*-*-iso10646-1XTerm*foreground: wheatXTerm*background: blackXTerm*internalBorder: 6 Emacs*font: -xos4-terminus-medium-r-normal–20-*-*-*-*-*-iso10646-1
Bind rxvt to Ctrl-Alt-T, and set rxvt as the preferred application in
System->Preferences-Preferred-Applications->System
5.3 Custom prompt
wget -O custom_prompt \ http://parijatmishra.files.wordpress.com/2008/09/etc_custom_prompt.docsudo mv custom_prompt /etc/sudo chown root. /etc/custom_promptcat > ~/bashrcif [ -f /etc/custom_prompt ]; then. /etc/custom_promptfi
5.4 Screen
wget -O .screenrc http://parijatmishra.files.wordpress.com/2008/09/screenrc.doc
6 Emacs
mkdir ~/.emacs.dcd .emacs.d
6.1 Highlight White-Space minor mode
cd ~/.emacs.dwget http://www.emacswiki.org/cgi-bin/wiki/download/show-wspace.el
6.2 Pair mode
cd ~/.emacs.dwget http://www.loveshack.ukfsn.org/emacs/pair-mode.el
6.3 Org mode
cd ~/.emacs.dgit clone git://repo.or.cz/org-modecd org-modemake
My org-mode setup uses remember.el
sudo apt-get install remember-el
6.4 Erlang and distel
sudo aptitude install erlangcd ~/.emacs.d/svn co http://distel.googlecode.com/svn/trunk/ distelcd distelmakecd docmake postscript && make postscriptmake infosudo make installinfo distel # read info documentation
6.5 SBCL and Slime
get clbuild
mkdir ~/lispcd lispdarcs get http://common-lisp.net/project/clbuildcd clbuild
get binary sbcl to build latest sbcl from source
sudo apt-get install sbcl
build sbcl from source
cd ~/lisp/clbuildchmod +x ./clbuild./clbuild update sbclcd source/sbclsh make.shcd doc/manualmake cat > ~/.sbclrc(require ;asdf)(push "home/parijat/lisp/clbuild/systems" asdf:*central-registry*)
remove binary sbcl and deps
sudo apt-get -y remove cl-asdf common-lisp-controller realpath sbcl
get slime
cd ~/lisp/clbuild./clbuild update slime
6.6
.emacs
wget -O .emacs http://parijatmishra.files.wordpress.com/2008/09/dotemacs.doc
7 Other software
7.0 Ubuntu Partner Repository
On Intrepid (8.10), we can get some software through the “Ubuntu Partner” repository. Just uncomment these two lines in /etc/apt/sources.list:
deb http://archive.canonical.com/ubuntu intrepid partner
deb-src http://archive.canonical.com/ubuntu intrepid partner
7.1 Multimedia
Add the Medibuntu repo and its keyring:
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.listsudo apt-get updatesudo apt-get install medibuntu-keyringsudo apt-get update
Install w64codecs
sudo apt-get install w64codecs
Install some players
sudo aptitude install mplayersudo aptitude install xinesudo aptitude install vlc
7.2 Adobe flash
7.2.1 For Ubuntu 8.04 (Feisty)
Run this script
#!/bin/bashecho "Stopping any Firefox that might be running"sudo killall -9 firefox echo "Removing any other flash plugin previously installed:"sudo apt-get remove -y –purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash \ swfdec-mozilla libflashsupport nspluginwrappersudo rm -f /usr/lib/mozilla/plugins/*flash*sudo rm -f ~/.mozilla/plugins/*flash*sudo rm -f /usr/lib/firefox/plugins/*flash*sudo rm -f /usr/lib/firefox-addons/plugins/*flash*sudo rm -rfd /usr/lib/nspluginwrapper echo "Installing ia32-libs and nspluginwrapper"sudo apt-get install ia32-libs nspluginwrapper echo "Installing Flash Player 9"cd ~wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gztar zxvf install_flash_player_9_linux.tar.gzsudo cp install_flash_player_9_linux/libflashplayer.so /usr/lib/mozilla/plugins/rm -rf ~/install_flash_player_9_linux/sudo nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so echo "Linking the libraries so Firefox can find it."sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/ echo "Done :-)"
7.2.2 For Ubuntu 8.10 (Intrepid)
sudo apt-get install flashplugin-nonfree
7.3 Java
sudo aptitude install sun-java6-jdk sun-java6-fonts ant
7.4 Firefox plugins
7.4.1 Add bookmark here
Get from https://addons.mozilla.org/en-US/firefox/addon/3880
7.4.2 keyconfig
Get from http://mozilla.dorando.at/; or simply:
wget http://mozilla.dorando.at/keyconfig.xpi
Drag and drop the xpi file into firefox, or open the file in firefox.
7.4.3 Hit-a-Hint (hah)
- Need a modified version. Download from: https://addons.mozilla.org/en-US/firefox/addon/1341
- Unzip
- Edit install.rdf and change “maxVersion” to “3.0.1″
- zip up.
- Open file in firefox. Install. Restart.
- Ckick Firfox->Tools->Keyconfig. Set hahStartkey to ‘H’, and disable hahMagicKey.
7.4.4 adblock
Install from https://addons.mozilla.org/en-US/firefox/addon/1865
8 Binary graphics driver
Go to Nvidia.com. Download the appropriate Linux driver
(NVIDIA-Linux-x86_64-173.14.12-pkg2.run for me).
chmod +x ./NVIDIA-Linux-x86_64-173.14.12-pkg2.runCTRL-ALT-F1 #switch to console# login as root/etc/init.d/gdm stop # stop the xserver./NVIDIA-Linux-x86_64-173.14.12-pkg2.run(Accept the license, follow the instructions, just say yes to everything)/etc/init.d/gdm start
9 Xmonad
TODO