Debian Post-Installation Notes
(Note: a lot of this is no longer necessary with the latest versions, but I keep it around to remember how it's done. )
- Get rid of completion beep
- nVidia driver installation
- Audio Apps
- Video Apps
- Adding an encrypted partition
- Building a custom kernel
- Remove all traces of the NVIDIA
modules with its --uninstall flag
- Make sure /usr/src/linux points to your running kernel
- Make sure users are in video group to use 3d apps
- The kernel-headers install is only necessary if you haven't built your own kernel. If you have, you already have them.
- Nvidia's installer died at first on my custom kernel. I had to turn off nvidiafb support in the kernel, rebuild it, then boot off the new kernel. It wasn't enough to just rebuild it. When it finally ran all the way, it still spewed out some ncurses complaints and garbage, but only warnings. Weird, but works.
- fc-list will list all available font faces
- 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.
- envy24control is included in alsa-tools-gui (the Ice1712 mixer panel)
- growisofs is in dvd+rw-tools
- Xmms is deprecated (requires GTK+1.2 and is broken) and Xmms2 works on a server client model that no one seems to like. So, audacity is the defacto replacement. I haven't been able to get it to play audio CDs, but it works fine for everything else. The default skin sucks, so get some others and put them in ~/.audacity/Skins/
- Mplayer had no sound until I remembered I had previously had to add a line to the config to force it to use /dev/dsp1. Commenting out that line restored sound to Mplayer.
Get rid of completion beep
Very annoying. And very simple:
To make it permanent, edit /etc/modprobe.d/blacklist and add:
Make sure you add ~/bin to $PATH. Since you want this to be read by ssh and by xsession logins (which don't read .bash_profile) make sure this goes in .bashrc
You want to set the locales using:
To tell what kind of filesystem is on a partition use file:
Login shells read .bash_profile, so make sure it has at least this:
Define a static alias by editing /etc/network/interfaces
Restart the network interfaces:
Since I'm using dnsmasq for local DNS caching and nuisance URL filtering, I my machines to inform DHCP of their names. Do this by editing /etc/dhcp3/dhclient.conf:
Debian doesn't install the SSH daemon by default, so
nVidia driver installation
GeForce 7600 GS board
nVidia drivers are non-free and usually obtained from their downloads section of their website. However, it doesn't install the modules in the right places on a Debian system so that after every reboot it needs to be reinstalled (the install loads the modules into memory which allows it to operate). One of the Debian nVidia package maintainers worked out a procedure to properly install the nVidia drivers on a Debian system. I briefly summarize it here:
Kernel upgrades and nVidia driver upgrades will require repeating the m-a through depmod steps again.
GeForce MX/MX 4002 board
I used the new consolidated 'heritage' driver set from the nVidia website: and their installer w/o a problem
Do an aptitude search on both "ttf" and "font" is the best way. Make sure you have the contrib repository added to /etc/apt/sources.list. For example:
Install some fonts:
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:
Run the following to rebuild the font cache:
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.
The last one is only needed for printing to Windows-hosted printers. At home, I used olympus.net for the Workgroup/domain and said 'No' to dhcp wins info or whatever the question was. The rest was straight-forward. Here is the uri info format:
(Note to self: never buy an Epson printer again. After I month of disuse I end up having to throw all 6 of the ink cartridges away and replacing them and still having to burn through half the ink to get the nozzles cleaned. After a use up my ink supplies - its going in the landfill. I'll by money way ahead printing stuff at Kinko's. )
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)
This is all best handled at this point by synaptics. Augment the repositories to include the full set and then parse the list.
I used to install these - not sure which of these are still needed since Lenny has been out:
Adding an encrypted partition
Fdisk the partition if necessary, then run
This requires root to mount and unmount the disk. Users can do it using pmount:
The drive will no doubt initially belong to root.
Building a custom kernel
(Note: this is out of date at this point)
If you don't have the kernel.org's PGP signature on your key ring, you can get it here . Unpack the kernel and edit it's configuration, first importing your previous one:
Success will look like:
Install the following backports (note: backports are programs from later versions compiled for an earlier version environment):
Install new kernel:
A note said: "You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!" (curious). The ramdisk image "initrd.img-2.6.24-custom" has been build, and grub/menu.lst modified accordingly. In theory, you're ready to try booting off the new kernel.
Building by hand
(Note: this is out of date at this point)
I could have run update-grub to get the new stanzas inserted into /boot/grub/menu.lst, but I didn't. I hand edited it this way:
This works with IDE drives. With SATA drives I had to load through the ramdisk: