Ubuntu Post-Installation Notes
(Note: a lot of this is no longer necessary since about version 10.x, but I keep it around to remember how it's done. )
- Do First
- Change Login Background
- Get rid of completion beep
- Lisp build environment tools
- Move window buttons ->
- Set the hardware clock to the system clock which should have been updated via ntp.
sudo hwclock -w
- Make any changes in /etc/skel/.bashrc (before creating other accounts)
- Add root and guest account:
- Install mrxvt, add a launcher and change it to launch the following:
mrxvt -sl 10000 +showmenu
- Download some files:
wget http://jkcunningham.com/code/.Xdefaults wget http://jkcunningham.com/code/.mrxvtrc wget http://jkcunningham.com/code/.emacs wget http://jkcunningham.com/code/.sbclrc wget http://jkcunningham.com/code/.hg
- Make sure ~/bin is in $PATH. It needs to be read by ssh and by
xsession logins which don't read .bash_profile, so make sure
this goes in .bashrc or something it sources.
# This file is sourced by all *interactive* bash shells on startup, # including some apparently interactive shells such as scp and rcp # that can't tolerate any output. export PATH=$HOME/bin:$PATH ;; # Test for an interactive shell. Programs like scp and rcp only read ;; # .bashrc (not .bash_profile). There is no need to set anything past ;; # this point for scp and rcp, and it's important to refrain from ;; # outputting anything in those cases. ;; if [[ $- != *i* ]]; then # Shell is non-interactive. Be done now return fi ;; ;; # Shell is assumed to be interactive beyond this point. ;; # It is okay to produce output umask 022
- Install some standard stuff
sudo aptitude install apt-file
apt-file finds which package contains a file name.
- Install newer poplar library from oneiric to fix xpdf bug (link at bottom):
sudo dpkg -i libpoppler13_0.16.7-2ubuntu1_amd64.deb
- sudo cp /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/LoginWindow
- set theme and background when menu comes up
- get rid of menu from next logout by doing:
sudo unlink /usr/share/gdm/autostart/LoginWindow/gnome-appearance-properties.desktop
- Show the user wallpaper/background color, while logging in.
- How to change login and Plymouth image in Ubuntu 10.04
- Make sure user is in audio group
- envy24control is included in alsa-tools-gui (the Ice1712 mixer panel)
- growisofs is in dvd+rw-tools
- If mplayer has no sound, check that it is not configured to use the wrong /dev/dsp?
- Reserve IRQ5 for the sound card in the computer BIOS.
- Manually add the sound card drivers to the /etc/modprobe.d/alsa-base and start the driver:
- options snd-sbawe isapnp=0 port=0x220 mpu_port=0x300 awe_port=0x640 irq=5 dma8=1 dma16=5 #options snd-sb16 isapnp=0 port=0x220 irq=5 dma8=0 dma16=5 mpu_port=0x300
- modprobe snd-sbawe
- Test sound: aplay -Dhw /usr/share/sound* (pick something)
- Other useful sound testing info:
- lspnp (list pnp devices such as ISA cards)
- cat /proc/interrupts
- cat /proc/asound
- cat /dev/sndstat
- aplay -l (list sound devices)
- speaker-test -wav -c2
- fc-list will list all available font faces
- e.g.: fc-list :lang-hi lists all Hindi language font faces.
- xfontsel will let you see if they're accessible and what the ./Xdefault strings look like.
- apache2ctl configtest parses the complete configuration and writes warnings and errors.
- httpd -S is supposed to dump how apache parsed the configs w/substitutions, but I can't find httpd yet.
- applications/metacity/general buttonlayout
- put the colon on the left end of the string
- swap 'minimize' with 'close'
Version 23 is now in the repositories. Probably want to install cedet as well.
Also download my:
Change Login Background
I am following How to change login screen in Ubuntu 10.04
Here are two more related articles:
Get rid of completion beep
Very annoying. And very simple to cure:
To make it permanent, edit /etc/modprobe.d/blacklist.conf and add the line:
Might want to Install some of these:
Test with this audio clip:
Install the following to taste:
Here's what it takes to set up an old Sound Blaster ISA card in Ubuntu:
There is a new problem using xscreensaver since Karmic if you don't use Gnome. On older versions there was a way to logon so the .xsession startup script was read which is where you would list the various other applications you wanted to startup with your X session. That's not an option anymore, all you can do is select: "e16" from the window manager menu, which uses the default session menu.
Now, I could track down which one that is and make this stuff global, but I didn't want it to work that way. Users ought to be able to customize their window manager startup applications without resorting to Gnome. So, finally figured out that the trick is to put them in .profile. This only gets read once on login, which is important, because I don't want to keep relaunching stuff everytime I launch an xterm and it sources my .bashrc, etc. Here's what .profile now looks like:
Install some fonts using apt-get:
Adding fonts downloaded to user space
Put your fonts in ~/.fonts/ (make it, if necessary). Then run fc-cache —as a user. It will create a directory ~/.fontconfig and your fonts will show up in Gimp next time you start it.
Installing fonts from scratch
Make directories to put any truetype fonts in:
Regular fonts go in /usr/share/fonts/X11/. For example, profont is essential. Get it from www.tobias-jung.de . As root:
Edit /etc/X11/xorg.conf and add the added (any any missing) FontPath's:
Also need to edit /etc/X11/fs/config and prepend to the catalogue:
Need terminus and profont. Terminus goes in /usr/X11R6/lib/X11/fonts/local which also needs to be prepended to the above catalog.
Restart both xfs and X:
Edit /usr/X11R6/bin/startx and make sure this line is right:
Verify your resolution by running:
It wants to be 96x96. The other place to adjust it is in xorg.conf Monitor section. Use this line:
Adjust the two dimensions until you get it right. This is very important - when its right things just snap sharply into place, and even a tiny bit off they look mediocre.
From a Debian forum article:
"I was able to obtains fonts ready to go by apt-get xfonts-dosemu. This installs the fonts in /usr/local/share/dosemu/Xfonts The fonts are: vga10x20-cp866.pcf.gz vga11x19.pcf.gz vga8x19.pcf.gz vga.pcf.gz vga10x24.pcf.gz vga12x30.pcf.gz vga-cp866.pcf.gz From there it was just a case of running the programs: mkfontdir - create an index of X font files in a directory fc-cache -f -v xset - set user preferences for X see xset fp rehash to reset the font paths to current value.
Both e16 and e17
Make sure that wicd is properly installed before proceding, as e17 will uninstall network-manager and you will lose network connectivity after the next network boot cycle otherwise. Add this repository with sudo emacs /etc/apt/sources.list
Remember that chmod +x .xsession .xinitrc is required for either to work properly. Under GDM ~/.xsession is read, other desktop managers read .xinitrc apparently.
Here is what the ~/.icewm/menu should look like:
And to get focus behavior and the number of workspaces set up, and all kinds of other stuff, here is my ~/.icewm/preferences:
Also may want to install DFM (a file manager)
Lisp build environment tools
Clbuild needs some of these:
The following comes from ubuntuguide.org .
Install the window manager files:
Enable it by selecting: System->Preferences->CompizConfig Settings Manager. Log out and back in for it to take effect. Turn on emerald and select stuff like rotating-cube.
Make sure the boxes "Desktop Cube" and "Rotate Cube" in the "Desktop" section are checked. Now you can rotate the cube by dragging the the middle mouse button on the background.
Move window buttons ->
Somewhere around 11.04 Metacity inexplicably moved the window buttons over to the left side of the titlebar. To move them back where they belong, use gconf-editor: