Debian

I use Linux as my operating system by choice both at home and work - the latter when I can get away with it :-). I find Debian to be a very good distribution and I find it far superior to any of the other distros I've tinkered around with in the past e.g. RedHat, Suse and Slackware to a lesser extent.

Debian is certainly not the distro to start with for newbies, for them I'd say RedHat should suffice. It doesn't really have all the gnome frontends for hardware detection etc. that the others have.

However where it out rivals the other distros lies in a few areas in my opinion, namely:
Bullet Ease of upgrade. 'apt-get update; apt-get dist-upgrade' suffice.
Bullet The amount of testing before a release is made is substantial
Bullet The number of packages provided ( in Debian Package Management format ) is substantial compared to other distros. It supports RPM format as well.
Bullet Each package contains a man page and documentation.
Bullet Strict policies are enforced about where packages can install files etc. Make the end system very clean and easy to root around, through documentation etc.

Here's how I configured Debian on my systems:
BulletSid Download
BulletMonitor & Video Card
BulletModem
BulletScanner
BulletPrinter
BulletMedia Reader
BulletOlympus Digital Camera
BulletUSB WebCam
BulletAudio/Sound Card
BulletTV Card
BulletPlaying DVD's
BulletBurning CD's
BulletRipping CD's
BulletWebpage
BulletEthernet Card
BulletNFS Server
BulletNFS Client
BulletCD Burner

Downloading Sid

I did this from a linux pc at work with a T1 connection. First of all set up the proxies.
	  export http_proxy=http://proxy.tellabs.com:8080		    
	  export rsync_proxy=proxy.tellabs.com:8080
	  export ftp_proxy=http://proxy.tellabs.com:8080
	  export RSYNC_PROXY=proxy.tellabs.com:8080
	
Download make-pseudo-image as described on http://cdimage.debian.org Run it to download from a server. I chose the finland one because that was the fastest connection for me.
./make-pseudo-image sid-i386-1.raw.list http://ftp.fi.debian.org/debian/;
Do the same for the 6 other sid cd's

Rename pseudo-image to sid-i386-X.raw and run rsync for each of the iso images.
To find the directory you are looking for use rsync. Checking from a web browser will probably put in a pub. Note the :: in the address. For directory listings Use
rsync server.somewhere.org::#
for the root directory and
rsync --dry-run server.somewhere.org::debian-cd/2.1/\*
for sub-directories etc.
rsync --verbose --progress --stats --block-size=8192 www.planetmirror.com::debian-cd/unofficial/sid/sid-i386-5.raw .

Now check the images are correct. This can be done by using the following command
md5sum sid-i386-X.raw
This prints out something like
f8fb232d3c1589de63dddcd43b05cc9d sid-i386-5.raw
Make sure that this is the same as the line for that image in the file md5sums on the server where you rsynced from. If not run rsync again.
You can also check by mounting the iso image before burning and making sure everything is correct. To do this type
mount -t iso9660 -o ro,loop=/dev/loop0 sid-i386-1.raw /cdrom
If you change directory to /cdrom you can now see the image as though it was a cd you have mounted.

Le voila. Now burn the images onto a cd with cdrecord.
Back to Top

Monitor & Video Card

I have a Time Monitor with the following sync frequencies. Use xf86config and select HSYNC 30-70 and VSYNC of 50-160

My video card is a nVIDIA Riva TNT2. In XFree86 4.0.3 this is supported by the nv.o module. However on nVidia's website they provide other modules to use instead. These are the modules that I chose to use as they help to configure the card for my specific needs.

First off run xf86config and set up for the Riva TNT2 etc. Start the Xserver to make sure all is well. If everything is working exit and now we'll set up to use the NVidia modules. Download them from


Back to Top

Modem Setup

My modem is one of the PCTel modems. I use a 2.4.4 kernel. Download the driver from http://www.medres.ch/~jstifter/linux/pctel.html Make sure that this is the driver for 2.4.X kernels. Compile the source with make and make install to install the module. Make sure the kernel-headers package is for the exact same version as the kernel-image one or else you will get unresolved symbols.

Edit /ec/ppp/options and comment out the auth with a hash i.e. #auth. Use the following files.


Back to Top

Scanner Setup

I have a Plustek Optic Pro 4831. The sane package didn't find my device so I downloaded the source from http://www.mostang.com/sane/ and the source for the plustek module from http://home.t-online.de/home/g-jaeger/plustek.html#downloads Compile and le voila
Back to Top

Printer Setup

I have an Epson Stylus Color 640. Use the ghostscript drivers.
Back to Top

Media Reader Setup

I have a Lexar USB SmartMedia Reader. I am using kernel 2.4.18. I have included scsi, usb, usb-storage and jumpshot support in this kernel. So it's a simple job to get this device working :-)
  • Insert a card with some images into the reader.
  • sudo insmod scsi
  • sudo insmod usbcore Usually already loaded anyway
  • sudo insmod usb-storage
  • sudo mount -t msdos /dev/sda1 /path/to/directory

Back to Top

Digital Camera Setup

I have an Olympus Digital Camera. I haven't got around to setting this up in Linux yet. I also have a Lexar USB reader device which I have not set up in Linux yet.
Back to Top

USB Web Cam Setup

I have an Intel Video Camera device. spca50x and gqcam mknod /dev/video c 81 0
Back to Top

Audio Setup

This is possibly the simplest for my machine. insmod es1371 does the trick. By editing /etc/modules and adding es1371 this module is loaded at boot up and you don't have to worry about sound.
Back to Top

TV Card Setup

I have a BrookTree card with BT 849 chip. The support for this driver is built into the kernel. Just use the xawtv front end to watch tv.
Back to Top

Playing DVD's

I use ogle
Back to Top

Burning CD's

To make images
Back to Top

Ripping CD's

I use grip. This is a frontend. Behind it I use cdda2wav to copy the tracks from the cd to wav files locally and then gogo to encode them. Unfortunately gogo doesn't seem to be included in sid so I guess I will have to do something about that!
Back to Top

Webpage

First of this involved setting up apache and mysql-server etc. The defaults are fine for apache. The system webpage is in /var/www and the system cgi-bin directory is /usr/lib/cgi-bin. Put the files in the appropriate locations and everything should be fine. x

For the mysql database. The database resides in /var/lib/mysql/Database. You should set up a password. Use as root ">mysqladmin -u root password 'password'" Create a file as root and normal user called ~/.my.cnf. It should contain
Back to Top

Ethernet Card

Ethernet Card. Set up in /etc/network/interfaces.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# automatically added when upgrading
auto eth0
#iface eth0 inet dhcp
# hostname mayday

iface eth0 inet static
hostname mayday
address 192.168.0.55
netmask 255.255.255.0

add 3c59x to /etc/modules.

Back to Top

NFS Server

Add the following to /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).

/home 192.168.0.1(ro)

Back to Top

NFS Client

Manually mount
>mount mayday:/home /mount/path or add a line in your /etc/fstab file

styx:/ /alpine/styx nfs rw 0 0


Automatically using autofs. Not a thing at all if you have autofs installed. cd to /var/autofs/net/$HOSTNAME and you will see all the exports there.
Back to Top

CD Burner Setup

I used what I needed from the CD-Writing HOWTO. Debian use modules for the device so the following has to be added to /etc/modules.conf

### Added by ronanos 20021217 from CD Writing Howto

options ide-cd ignore=hdc # tell the ide-cd module to ignore hdc
alias scd0 sr_mod # load sr_mod upon access of scd0
#pre-install ide-scsi modprobe imm # uncomment for some ZIP drives only
pre-install sg modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
pre-install ide-scsi modprobe ide-cd # load ide-cd before ide-scsi

Place a symbolic link in /dev from hdX to roaster by issuing the command 'ln -s /dev/hdX /dev/roaster' where X is replaced by wherever your burner is. Then add the following to /etc/fstab and subsequently running as superuser 'mkdir /roaster'

/dev/roaster /roaster auto defaults,ro,user,noauto 0 0


You can now mount the roaster by mounting /roaster. To burn ISO images to CD's use cdrecord. Read the section on making ISO images to figure out how to make up a CD.


Back to Top
Horizontal Rule

Email Me! ronan@ronanos.com

Valid HTML 4.01! Valid CSS! Gimp Apache