Debian

Guides and software

Debian package maintenance (see commands for more instructions)

  • just install packagename
  • just purge packagename
  • just remove packagename
  • just commands
  • just toupgrade
  • just upgrade
  • just show packagename
  • just status packagename
  • just list-names partialmatch
  • just list | grep partialmatch
  • To put a package on hold:
    just hold packagename
    or
    echo packagename hold | dpkg --set-selections
  • To take a package off hold:
    echo packagename install | dpkg --set-selections
    • the "hold" setting is made in the file /var/lib/dpkg/status -- you can also edit it manually
  • See also these instructions
  • How to build your own Debian package (you can also use checkinstall):

    apt-get source <packagename>
    cd <packagename>
    fakeroot dpkg-buildpackage -uc -us

    The result is a .deb which you can install with dpkg -i. If you needed to patch the sources, you'd have to do it between the apt-get and building the package, obviously. dpkg-buildpackage may complain about missing -dev package prerequisites; if so, just apt-get install them. You can omit the "-uc -us" if you have a gpg keypair; dpkg-buildpackage will invoke gpg to sign the created packages (and prompt for your passphrase).

  • apt-listbugs fetches all the bug reports for versions between your current version and the target version
When you don't have wajig:
  • apt-cache pkgnames
  • apt-get --reinstall install wget
  • dpkg --configure sed

Debian system maintenance summary

  • /etc/modules contains a list of modules (or their aliases) to be loaded at boot time
  • Add and remove modules in /etc/modutils -- this is where you define the aliases 
    • Update the changes by issuing update-modules -- this writes to /etc/modules.conf
    • Does update-modules also issue depmod -a?
  • Sometimes you get a problem with postinstall or preinstall scripts
    • they're in /var/lib/dpkg/info
    • run one by issuing "sh kdm.postinst"
  • Use gubbio for compiling; it needs a bunch of dev packages that sigillo shouldn't need to keep.
    • When compiling, do ./configure and make, but then do checkinstall instead of make install
    • This creates a Debian package that will be seen by dpkg (and thus wajig)
    • You can remove and upgrade the package in a normal manner.
    • You can also copy the .deb file and install it on other computers.

Locating libraries

The prelink program will make ELF applications start faster, by figuring out library locations beforehand. Issue

prelink --all
and check the results -- a lot of libraries were not found.  The database of library locations is created by the ldconfig utility, which reads /etc/ld.so.conf. Add library prefixes to this file to help prelink locate them. My current ld.so.conf on sigillo reads,
/usr/X11R6/lib
/usr/lib/i3d/
/usr/lib/openoffice/program/
/usr/lib/debian-installer-demo/lib/
/usr/lib/debian-installer-demo/usr/lib/
/usr/lib/debian-installer-demo/usr/lib/cdebconf/
The main thing here is to include the openoffice location, as this is the main program that is speeded up by prelink.

Keyboard / Hotkeys

The key on the left side of the keyboard, marked with an / icon, toggles power between the laptop and the manual controls in front. Or more precisely, it turns on power for the CD player to be operated manually when the computer is off.

In this off state, the headphone jack is working great! The volume is humongous. So it does NOT need special "sonopure" software to operate -- this is hardware.

The music player keys on the edge of the keyboard give out keycodes:

Press Release
Play/pause e0 6d e0 6d e0 22 e0 22
Rewind e0 10 e0 10
Fast forward e0 19 e0 19
Stop/eject e0 24 e0 24

vpr matrix e0 23 e0 23

Fn+F1 e0 6e
Fn+F2 ^[[M
Fn+F3 <nothing>
Fn+F4 e0 20
Fn+F5 e0 30
Fn+F6 e0 2e
Fn+F7 <nothing>
Fn+F8 <nothing>

So you're down to three keys that currently give you nothing -- two of
them, Fn+F7 and Fn+F8, may work in poweroff mode:

Fn+F7 96/192k -- this is the upsampling, and you
should be able to hear it
Fn+F8 S/PDIF -- this is the outport, and you should
be able to switch the headphones off

Sound in WinXP:

The software driving it is SoundMAX. Here is the list of devices, found under
Sounds and Audio Devices Properties:

SoundMAX Integrated Digital Audi - device properties:
Manufacturer: Analog Devices, Inc.
Location: PCI bus 0, device 6, function 0
Device status: This device is working properly

The driver files includes C:\\windows\system32\drivers\aeaudio.sys from Andrea Electronics, and smsens.sys and smwdm.sys from Analog Devices.

When I press the "missing" keys I now get a response:

Fn+F7 toggles 96k / 196k - bps?
Fn+F8 cycles
S/PDIF ODD
S/PDIF External XLR
S/PDIF External RCA
S/PDIF AC97 (this is when the headphones work)

# if you get any erors: use Alt + SysRq + S = Emergency Sync (write everything on HDD)
# use Alt + SysRq + U = Unmount all HDD's
# use Alt + SysRq + B = Reboot system immediatly
echo "1" > /proc/sys/kernel/sysrq

I never knew what this key was for...

Thin client

Debian weekly news 6 Nov 02. Instructions: http://plutonium.homeunix.com/papers/dls.pdf

Setting up X-Terminals with Debian. Alan W. Irwin wrote instructions for setting up GNU/Linux-based X-Terminals with Debian. The goal is to run all your X clients (KDE, GNOME, OpenOffice, etc.) in a transparent manner on a powerful computer and simply use a slow computer (the X-Terminal) to display the results and control that display with keyboard and mouse. This setup is particularly useful for bringing an old PC back to useful life.

Debian System maintenance history

After getting Libranet 2.7, I put Debian Linux on Spello, then Sigillo, then Tord's Dell laptop, the KFA's through Derek, and Aaron Blaisdell's pigeonview. That's five machines, and it's just the beginning. I'm very happy with the installation, much of which is documented below.

Wow -- I can't believe it: /etc/modules contains a list of modules to be loaded at boot time! I edited it -- finally I have some control. I ran update-modules, ran into the faulty /lib/modules/2.4.20/kernel/drivers/net/pcmcia/smc91c92_cs.o, removed it. Interestingly, after patching the kernel with the new ieee1394 drivers and the new videodev.c driver, I'm no longer getting the error message. I don't know what this module is doing, but it's still there.

Kernel recipe (see /usr/src/z):

make-kpkg -rev 5 kernel_image
dpkg --install /usr/src/kernel-image-2.4.20_5_i386.deb
sync; shutdown -r now

INFORMATION ON THE 2.4.20 KERNEL (see /usr/src/zinfo)

1. There's a problem with the default ieee1394 drivers; I've copied in the new version from the http://www.linux1394.org/ web site, which is working great. Make sure you get the version for the 2.4 kernel and not the 2.5 kernel (called trunk). Done on spello and sigillo, and on pigeon.

2. There is supposedly also a problem with the videodev driver, a general driver that Aaron Blaisdell's cameras may also be using. "There's a bug in Linux kernel 2.4.19-20 that causes applications to hang if camera is unplugged while using it. Install fix from http://www.ee.oulu.fi/~tuukkat/quickcam/linux-2.4.20-videodevfix.patch" -- also installed on all three machines.

This is just a textfile. Here's my patching recipe from the old days:

Uncompress the 2.4.16 kernel to /usr/src/common
It automatically untars into the subdirectory linux
Rename the directory linux to linux-2.4.16
Copy the compressed patch into linux-2.4.16
Enter the directory linux-2.4.16
type bzip2 -dc *patch.bz2 | patch -p0

In this case, you don't need to untar or bunzip. Is there a patch command? Indeed there is: man patch shows "patch - apply a diff file to an original." Note you can do --dry-run. I tried patch but nothing happened (I guess I could have run strace), so I just did it manually, as it was a few lines. I then recompiled spello, without doing a make clean first. I'll try just applying the nVidia debs straight -- in fact I didn't apply them at all; recompiling the kernel did not seem to affect the installed nVidia modules!

3. The QuickCam driver was updated at http://qce-ga.sourceforge.net/ on 31 Jan 02. It's not a kernel patch exactly, but it is a driver in module form. It may be that you should be using the Logitech Quickcam QC-USB driver for Linux at http://www.ee.oulu.fi/~tuukkat/quickcam/quickcam.html -- at the moment, it doesn't look any better, so don't try it unless the other gives you problems. I got qce-ga-0.40d.tar.gz on 31 Jan 03, with the updates for 2.4.20.

I compiled and installed this source using checkinstall, which creates the package qce-ga. This is seen by wajig and can be uninstalled with the command "just remove qce-ga" -- so this is working! I'm getting worried now that I'm learning so much that I'll forget it, so here's a summary:

  • When compiling, do ./configure and make, but then do checkinstall instead of make install.
  • This creates a Debian package that will be seen by dpkg (and thus wajig)
  • You can remove and upgrade the package in a normal manner.
  • You can also copy the .deb file and install it on other computers.

Note that checkinstall itself is under active development and should be upgraded soon.

Maintainer for qce-ga is Jean-frederic Clere <jfclere@users.sourceforge.net>.

Checkinstall generates the deb package (called qce-ga), but when it installs I got lots of conflicts with package kernel-image-2.4.20, for instance /lib/modules/2.4.20/modules.dep. However, checkinstall simply seems to make its own modified versions of these files and I'm guessing this will not cause problems.

When I recompiled the kernel I encountered exactly the same difficulties -- and bypassed them by issuing

dpkg --install --force-overwrite /usr/src/kernel-image-2.4.20_5_i386.deb

I copied qce-ga_0.40d-1_i386.deb to /vc for use on sigillo and elsewhere. This is how you should be compiling: create a deb file and then install it on all your systems.

SYSV

I used the SysV Init editor under KDE to remove alsa, apmd, laptop-net, and ud:

<rl>RUNLEVEL 6</rl>
removed <cmd>K20alsa</cmd> from <cmd>/etc/rc6.d</cmd><br/>
removed <cmd>K20apmd</cmd> from <cmd>/etc/rc6.d</cmd><br/>
removed <cmd>K88laptop-net</cmd> from <cmd>/etc/rc6.d</cmd><br/>
removed <cmd>K99ud</cmd> from <cmd>/etc/rc6.d</cmd><br/>

I emptied out runlevel 3, with the thought of switching to that to turn off gpm, but it doesn't seem to be necessary.

GPM

I added gpm (mouse for console) to runlevel 2 start and runlevels 0, 2, and 6 stop.

If you want to change the configuration you can call `gpmconfig' or edit /etc/gpm.conf manually.

I edited /etc/gpm.conf manually, defining the device as /dev/input/mice so that it would activate the USB mouse -- and this works. To use the touchpad, just uncomment /dev/psaux and comment out /dev/input/mice.

You could experiment with defining both mice.

Note that you can start and stop gpm with wajig start gpm or wajig stop gpm. It works!

X11 doesn't seem to mind that gpm is running in the background.

KDE 3.1

I installed KDE 3.1 on 23 January 2003. See detailed instructions at
http://ktown.kde.org/~nolden/kde/woody/README

This page also has detailed configuration suggestions that could be very useful.

KDE crashing

KDE3.1 has a tendency to generate hundreds of files in ~/.kde/share/thumbnails, which stops KDE from loading.
Just delete them all and you're fine.

The menu editor is buggy; be careful. Save frequently and don't make too many changes in one session. Note that it doesn't
actually delete entries, it just marks them hidden! Madness. You may be able to edit .kde directly.

INSTALLING KDE IN A NETWORK

The model here is a compromise between freestanding computers and thin clints on a server. Install KDE on each
desktop, but share (using a file server and something like NFS) common resources (like KDE configuration and
application data files) between all users. While this configuration is a little more complicated to establish, using
shared, centralized resources can help lower support and training costs, and makes collaboration and information
sharing easier. It also utilizes existing resources more optimally.

For a description on how to deploy and share KDE resources from a central server, and how to create a standard
corporate desktop that can be customized only to the extent that you allow, see
http://www.linux-mag.com/2002-11/kde_01.html

CLIPBOARD

Note that you can chose whether to synchronize the content of the klipper and the content of the current selection,
or you can leave them separate. Having them separate could be interesting in some cases but seemed unintuitive.

WEBCAM
28 January 2003

The Ezonics webcam is working out of the box; I just had to create a symlink from /usr/lib/libvorbisfile.so.0 to /usr/lib/libvorbisfile.so.0.0.3 to get xawtv to stop complaining. v4l-conf still says,

steen@spello:~$ v4l-conf
v4l-conf: using X11 display :0.0
dga: version 2.0
mode: 1152x864, depth=24, bpp=32, bpl=4608, base=0xf1000000
/dev/video0 [v4l2]: ioctl VIDIOC_QUERYCAP: Invalid argument
/dev/video0 [v4l]: no overlay support

The Logitech Quickcam Express needs a driver from http://qce-ga.sourceforge.net -- but it's not been updated for 2.4.20; see the bug reports. The fix seems simple and you can either try it yourself or ask the guy who describes it to send you an updated version of the driver (two files).

CHECKINSTALL

checkinstall -- for making *.deb packages of source code. Comes with installwatch. http://asic-linux.com.mx/~izto/checkinstall/

"What it does is to replace the "make install" command with checkinstall. It makes a note of which files were installed and allows you to uninstall the program using the package management tools on your machine (in my case dpkg). It also creates a .deb (or .rpm) so you can install it on another machine."

The new 1.6 version looks interesting but "still in beta" so I didn't install it. I guess I'll want to install the packages I configure.

CheckInstall 1.6.0beta1
======================================

  • The "--install=<yes|no>" command line option indicates wether you want to actually install the package on your system or just create it without installing it. This is a new feature and still in beta stage. Please test it and report any bugs you find (Or success, too! :-) )
  • This release also adds other three command line options: "--inspect", "--review-spec" and "--review-control". See the ChangeLog file for details.

http://asic-linux.com.mx/~izto/checkinstall/docs/RELNOTES

ChangeLog November/24/2002

  • Added support for preinstall-pak, postinstall-pak, preremove-pak and postremove-pak scripts on both RPM and Debian packages. In Slackware the postinstall script was already supported as "install-pak".
  • Added support for inclusion of a custom list of files in the package, via the "--include" command line option. It takes a file as argument. That file should contain the list of files to be included, one per line.
  • Added the "--inspect" command line option. It allows you to view and optionally edit the list of files to be included in the package, before the package is created. Suggested by Max Norton.
  • Added the "--review-spec" and "--review-control" command line options that allow you to review the .spec or DEBIAN/control files when creating .rpm or .deb packages, before the packages are created.

http://asic-linux.com.mx/~izto/checkinstall/docs/Changelog


IEEE1394 -- see main file

Note that http://www.linux1394.org/ says,

dv1394
The dv1394 driver became available with the kernel 2.4.19 release. However, due to changes within linux1394,
reception became broken in the kernel 2.4.20 release. This has since been fixed and improved upon in our Subversion
repository and in forthcoming kernel releases.

How do I upgrade the driver?

  • cd /usr/src/linux
  • cd drivers
  • move the existing drivers out of the way: mv ieee1394 ieee1394.orig
  • download the new ieee1394 directory from the repository as a tarball or using svn with the checkout option
  • If you are using the drivers as modules: recompile and install the drivers, unload old modules, load new modules
  • If you are compiling the drivers into the kernel: recompile the kernel, install the kernel and update the boot loader, reboot

I got the tarball on 28 Jan 2003 and untarred it into /ieee1394. The most recent file was

40995 Jan 23 16:37 ieee1394_core.c

Several files had been modified 15 Jan 03.

I then issued

make-kpkg -rev 5 kernel_image

to recompile the kernel, and

dpkg --install /usr/src/kernel-image-2.4.20_5_i386.deb

to install it. I rebooted with "sync; shutdown -r now" -- and got a beautiful boot, suggesting I can now attach and control several devices in ieee1394.


SSH

Allowing X11 forwarding -- must be enabled in both /etc/ssh/ssh_config and sshd_config!
Restarting -- /etc/init.d/ssh restart

SSH -- automatic logins

I issued ssh-keygen -t rsa on spello, cyberspace, and sigillo to generate public/private rsa key pairs, with a blank passphrase. They were place in the default location l /steen/home/.ssh/id_rsa.pub

I then ran ssh-copy-id -i ~/.ssh/id_rsa.pub steen@cyberspace and established a password-free login. I verified I can access it simply with ssh cyberspace.

Check ~/.ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting.

I repeated for ssh-copy-id -i ~/.ssh/id_rsa.pub spello and the same from spello to cyberspace. I didn't do cyberspace to spello and could do neither to sigillo as I was on the modem.

I then tested out ssh -X spello gkrellm -f on sigillo -- it works!

"You can run it from your ~/.xinitrc or ~/.xsession by adding a & to the end of the command -- in fact you can automatically start any x-windows application in this way."


BOOT LOGO (instructions from LinuxOrbit mini-howto)

Kick off the install with an 'apt-get install linuxlogo' and then proceed to the steps below:

A. Showing the Logo Above Login Prompts (Good for Local Logins)

This method will show the logo above your logins on your virtual terminals, I.E. when you hit ctrl+alt+FX (where FX is F1-F6), and also on tty1 (F1) when you bootup if you like. After you've installed the linuxlogo package, edit the file /etc/inittab. For each terminal you want the logo on, add '-f /etc/issue.linuxlogo' to the getty command (issue.linuxlogo.ascii if you don't want color) so that the settings should look like this:

Original:
1:2345:respawn:/sbin/getty 38400 tty1

Logo:
1:2345:respawn:/sbin/getty -f /etc/issue.linuxlogo 38400 tty1

Do this to each terminal you want, and then reboot or change your runlevel to something else and back to what you were using with the 'init' command. If you use it on tty1, you probably want to run 'chmod -x /etc/init.d/ linuxlogo' so that the logo isn't displayed on startup (since it would show twice).

So here I find out what I was trying to discover: the logo is likely requested in /etc/inittab. That file also has:

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

It's not activated, and I left it as is. Use it if you experiment with this file.

I added the logos as suggested to tty2 and tty3, and left it executable so that it would load on boot to tty1. And so it does -- but the Libranet logo overwrites it instantly, and suppresses the other logos.

The Debian logos are configured in /etc/linux_logo.conf -- I still haven't found the Libranet logo.

Well, I found it at 12:47am -- it's /etc/issue. There it is. I'll try just removing it and see what happens. It looks like the default "/etc/issue" has also overwritten "/etc/issue.linuxlogo" and "linuxlogo.ascii" and that it did so during the last boot. Not nice!

I confirmed the downloaded files had been overwritten, but moved /etc/issue to /etc/issue.libranet and rebooted.

This worked -- but there's a script trying to copy the file /etc/issue over onto the others. You should just copy /etc/issue.linuxlogo to /etc/issue and you'll be done.

B. Showing the Logo as the MOTD After You Login (Good for Remote Logins)

This method is nice for a machine you don't access locally, like a server box that you only login to remotely over
your LAN. First, move your old motd out of the way and create a new one:

mv /etc/motd /etc/motd.old
/usr/bin/linux_logo > /etc/motd

Next, edit /etc/init.d/bootmisc.sh and change these lines:

uname -a > /etc/motd.tmp
sed 1d /etc/motd >> /etc/motd.tmp
mv /etc/motd.tmp /etc/motd

To:

# uname -a > /etc/motd.tmp
# sed 1d /etc/motd >> /etc/motd.tmp
/usr/bin/linux_logo > /etc/motd.tmp
sed 1,18d /etc/motd >> /etc/motd.tmp
mv /etc/motd.tmp /etc/motd

After you've edited it, run '/etc/init.d/bootmisc.sh' and you should now see the logo on login, as in Figure 1 below. If you want to add a message of the day to the file, just add the message to the end of /etc/motd, don't leave a blank line in between as it will add one on it's own.

So finally I discovered where the annoying line that meets me at the login prompt is located: /etc/motd!

Linux sigillo 2.4.20 #6 Fri Jan 31 19:31:41 PST 2003 i686 unknown unknown GNU/Linux
Libranet GNU/Linux

Somehow, I was supposed to know this -- one day I'll read a book on Linux. Note that the changes you made to /etc/motd will be overwritten on reboot; you'll need to edit /etc/init.d/bootmisc.sh to make the changes permanent. I did this on sigillo, spello, and pigeon, just commenting out the instructions to update /etc/motd. You could come up with a more elegant solution later, but for the moment it seems fine to let this be handwritten.

See instructions above or at http://www.linuxorbit.com/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=548&page=1
You could give the user a logo, as they suggest, but in my case this would be a hassle.

WAJIG TRICKS

Create a symlink from just: ln -sf /usr/bin/wajig /usr/bin/just

If a package gets errors, it can get stuck in the half-way state. Try to uninistall it, then modify the sources.list to include only testing (or only stable), and install afresh. The older version will often work. Mark it with hold to prevent automatic upgrades; you could even keep a separate copy of the deb in a "solution" repository.

XTRACEROUTE (see /etc/xtraceroute)

The "with comments" file says:

# This list was created to illustrate searches:
# www.aftenposten.no
# www.edu.cn
# 141.76.20.99 (a debian server in Dresden)
# www.usiu.ac.ke (US International U in Nairobi, Kenya)

# These also work well:
# www.nyu.edu
# www.canberra.edu.au

# You can add sites later or find a way to autodetect
# Read man xtraceroute for the author's address -- he corresponds and may add requested features (late Jan 03)

Libranet 2.7 initial installation instructions, with tweaks

"The 2 CD set includes a large quantity of useful applications software like Galeon and GIMP. Libranet's Adminmenu helps users perform system tasks easily. Included is the 2.4.19 Linux Kernel, KDE 3, GNOME 2 and XFree86 4.2. Users will find excellent and up to date software and window managers installed automatically on their desktop."

Unresolved (see also To Do list)

  • Give xmms and other programs access to the arts sound server

Setup

Spello: Backups of all configured files should be placed in /vc/spello -- this can save you a lot of work.

  1. Add some lines to /etc/apt/sources.list:
  2. Add gubbio, cyberspace, and merton to fstab.
  3. Create a new /etc/hosts, hosts.allow, and hosts.deny based on cyberspace or gubbio
  4. Use adminmenu to get truetype fonts, and more from your Windows directory! This is actually one of the triumphs of the Libranet installation -- I have all my windows fonts on the new Linux system, and it took a couple of seconds. I did not have to figure out how it is done, which in this case is great.
  5. Copy the /home/steen/.opera files over and chmod them

Gubbio: I backed a number of files up to /vm, but forgot /etc/exports.

  1. Once you've booted, use the "jed" editor to add lines to /etc/fstab, so that you can mount /vm and the other systems.
  2. The /etc/exports file had to specify /mnt/vm to work -- just /mnt failed. This may be a permissions issue somewhere -- I didn't investigate.
  3. Starting and stopping services in Debian is handled by init daemons located in /etc/init.d --- these scripts are in turn called by the /rc.d directories, which set run levels. For instancce, to restart NFS, issue "bash ./etc/init.d/nf-kernel-server restart"

Tweaks
1. To make a mounted windows partition writable for users other than root, see instructions:

addgroup windows
adduser steen windows
defaults,gid=windows,umask=002 <== add to fstab entry

Since I'm the only user on spello, I just added this to /etc/fstab (not yet verified that it works):

defaults,uid=steen,umask=002

Make sure that the mount points give full access to users.

2. To make samba partitions writable for users other than root, also make sure the mount points have 666.

Also edit the Samba configuration at /usr/share/samba/smb.conf to default mask 755 (done in backup)

3. Video drivers

  • On spello, I installed the nVidia drivers -- see instructions.
  • However, on sigillo, the laptop, which also uses an nVidia card, I just used the default XFree86 4.2 module called nv, and it worked perfectly. This means you can likely do that on spello too
  • On gubbio, my old machine (gubben), I have a voodoo banshee. It turns out it needs the libglide2 package, which is not in Libranet. Cf. instructions.

4. Upgrading programs

Debian uses a slew of package management programs, including apt, dpkg, and dselect. There are several graphical and non-graphical frontends to apt (which is itself a non-graphical frontend to dpkg): aptitude, deity, synaptic, gnome-apt are graphical, and wajig is non-graphical. Synaptic looks better than gnome-apt; aptitude is likely the most popular, but the most recent synaptic seems better still. wajig (which I download below) is a non-graphical frontend. deity is great but was dropped because the maintainer didn't fix a serious bug -- this may get fixed. Note that you can download and install packages manually and then run dpkg -i manually afterwards -- but wajig (see below) handles this even more simply. "The primary and more user-friendly front-end for dpkg is dselect(8)." "dpkg can be also be used as a front-end to dpkg-deb."

  • apt (http://www.cs.hmc.edu/~me/linux/debian.html#apt-get)
    • apt-get update
    • apt-get install <package> -s     <== the -s stands for simulated -- nothing is done
    • apt-cache show <package>
    • apt-get upgrade   <== downloads and installs hundreds of applications you don't need
    • apt-get remove <package>
    • customize the file /etc/apt/apt.conf to fine-tune the behavior of apt
    • dpkg -l <word> to look for partial matches for package names
    • apt-get install libgnome-perl (to use gnome for debconf)
    • apt-get install debconf (get the most recent version)
    • apt-get install subversion (a CVS alternative useful for ieee1394 programs)

I decided to try wajig -- see online manual. "Wajig is a single commandline wrapper around apt, apt-cache, dpkg, /etc/init.d scripts and more, intended to be easy to use and providing extensive documentation for all of its functions. With a suitable sudo(1) configuration, most if not all package installation (as well as creation) tasks can be done from a user shell." It's a large download, and I may decide to uninstall it. Among other things, it puts a fetchmail back on your system. I was dissatisfied with apt and wanted an easier way to adminster the system. "wajig toupgrade" is a great tool, and for simple things it works just like apt-get.

Another package tool worth looking at is feta -- the man file is dated 15 December 2002 and it looks like it may be slightly better than wajig. Also, the name is nicer... For new users, I'll be recommending feta, and I'll try it out myself in the days ahead.

Speed up downloading:

On 24 January 2003 I installed netselect, which can be used to find the best debian server, as follows:

root@sigillo:/home/steen# netselect-apt unstable
Choosing a main Debian mirror using netselect.
netselect: unknown host debian.kida.net
netselect: unknown host ftp.ipv6.opentransit.net
netselect: unknown host debian.pffa.de
netselect: unknown host debian.psu.ru
Running netselect to choose 1 out of 226 addresses.
The fastest server seems to be:
http://204.152.189.120/debian/

Choosing a non-US Debian mirror using netselect.
netselect: unknown host ftp.ipv6.opentransit.net
netselect: unknown host debian.pffa.de
netselect: unknown host debian.psu.ru
Running netselect to choose 1 out of 181 addresses.
The fastest non-US server seems to be:
http://nisamox.fciencias.unam.mx/debian-non-US/

Writing the sources.list in the current directory.
Done.

All right! So watch it -- the file gets written in the current directory.

5. Novell file server

Copy /home/steen/.novell and .nwclient from gubbio -- or now from spello's backup on /vc.

wajig install ncpfs
wajig install ipx 

The ipx package (cf. http://packages.debian.org/stable/net/ipx.html) contains the configuration tools.

insmod ncpfs <== load the kernel module -- this is added to .novell

After all that, it worked with this command

ncpmount -S effnet -u steen -U steen.comstudies.sscnet /mnt/novell

I added both of these to /home/steen/.novell, but the password currently has to be entered manually -- this can be fixed if desired. Note there's a gui for ncpmount -- see To Do list. Until the mount point starts behaving under bash, do updatedb --prunepaths='/mnt/novell'

6. Firewire or ieee1394

wajig install

libraw1394-dev
libdv-bin (gives you playdv and encodedv)
libavc1394-dev (gives you dvcont)
gscanbus (for troubleshooting/monitoring firewire connections)

Create the nodes in /dev -- see firewire -- chmod 666 /dev/raw1394

Load the modules with /home/steen/.mods (copied from gubbio)

Run testlibraw to activate the system (I added this to ~/.mods).

7. Digital video applications and a few others:

wajig install

transcode
kino
w32codecs
avifile* (avifile player, gmstreamer, utilities, codecs)
avidemux (play and edit divx and xvid files -- xvid works great!)
libmad0 (provides sound for avidemux)
dvgrab
dv-utils (supplies dv2dv and other commandline conversion tools)
grip (a great CD ripper)
mplayer-686 (or whatever fits your architecture)
mplayer-fonts
mplayer-doc
ogle-mmx (and /usr/share/doc/ogle-mmx/examples/install-css.sh for libdvdcss)
ogle-gui
ogmtools
video-dvdrip
lame-extras
ffmpeg (also gets you libavcodec)

Start with transcode; after this, I don't think the order matters. Copy over the afspil bash script and add --fullscreen to this line, as follows:

filtererror "`aviplay --fullscreen "$file" 2>&1 > /dev/null`"

Rename the script play and place it in /usr/local/bin. It will let you play a series of *avi files with aviplay with the command "play *" -- aviplay has no playlist function, but does a good job playing uncompressed avi files.

8. Other applications worth getting:

adminmenu (Libranet's)
pine and pico (mail and editor)
reportbug
strace (for debugging)
gnome-apt (frontend to apt -- use for inspection only, not installing or removing packages)
ext2resize (for resizing partitions, cf man pages)
cvs (for bleeding-edge source code)
debconf
nfs-common
nfs-kernel-server
regexxer (search and replace with GUI)
gprename (mass renamer -- download or add deb http://users.stone.pl/szczepan/ apt/ to sources.list)

Set up pine for users and root. For root, define inbox-path = /var/mail/nobody -- this is where mail gets sent by default.

Note that you already have nmap (doesn't hurt to upgrade it) -- put a link on the desktop for it. Copy over ~/.cvsrc or create it with

# I got this file from http://avifile.sourceforge.net/ on 25 May 2002
# This means you can update with the command cvs update -- I guess the
# other lines are doing something similar but I don't know what exactly.
cvs -z3 -q
diff -u -b -B
update -P -d
checkout -P

9. Edit the nodes for DVD playing

Establish /dvd and /dev/dvd with write access (I did chown steen.users on both). You might need to issue ln -s libdb1.so.2 libdb1.so (cf Ogle FAQ). "NOTE: If you run debian, make sure you use the ogle-mmx package if you
are running on x86, otherwise it will be very slow!" "If you want to launch ogle from within KDE (with artsd running), you need to type 'artsdsp ogle'" Check out xvattr at http://www.dtek.chalmers.se/groups/dvd/downloads.shtml

The location of the DVD player is found in /etc/fstab. On spello, it's /dev/hdc. Create /mnt/dvd and list this mount point in /etc/fstab. Create ln -sf /dev/hdc /dev/dvd

Note that mplayer let you turn up the volume -- and it plays DVDs great. I also copied over the more recent /usr/lib/libdvdcss files from gubbio.

Don't delete the cdrom directory and links, as this is used by Libranet.

10. Once you've downloaded the applications you want, run KAppfinder in the KDE main menu, under System. It will add the new programs to the menu, albeit in a fairly messy way.

You could also spend some time cleaning up the system by removing stuff you don't want.

11. Install VMware -- or not. It generally works well, but is not as stable as a native application.

12. Enable SWAT, the web-based Samba manager, through the Adminmenu | Network | Services. See Samba.

13 Grub: just edit /boot/grub/menu.lst. It's not as nice as Lilo, but you don't need to run it after changing list configuration file. See instructions at LinuxOrbit.

14. Keep a lookout for mosfet's pixieplus and liquid. The debian names are kde-theme-liquid and pixieplus. Versions for KDE 2 are at http://arachni.kiwi.uni-hamburg.de/~harlekin/binary-i386/.

15. To access X-windows applications remotely, issue

ssh -X -l <user name> <system name>

The -X switch enables X-windows transfers (see ssh --help). To make this default, change /etc/ssh/ssh_config to ForwardX11=yes (this is what I did on spello).

16. Remove a few of the extra getty's from /etc/inittab if you want to cut down on clutter (or not -- this is just to say that inittab is where this is done)

17. Remove gdm as the default manager through Xadminmenu -- you don't need it. Set startkde as the default window manager by editing ~/.xsession. The system-wide default is in /etc/X11/default-window-manager. Note that you need to keep postfix for sending mail.

18. Copy over Audacity 1.1.1 -- I got it from gubbio; for details see sound. To compile Audacity from CVS, you need libwxgtk2.2 and libwxgtk2.2-dev (the wxWindows library for gtk) -- a quick apt-get.

19. Use kcron (start as root user and define cron job as root user) to set up cron jobs -- it's blindingly simple. I used rsync -rutv /mnt/winD/Webs/ucla/ /mnt/merton/ to synchronize files from winD to merton. See rsynch for details. Job reports go to /var/mail/nobody (cf. pine above); once you're confident the job is running correctly, you can turn off the e-mail by appending >/dev/null 2>&1 to the line (see http://weather.ou.edu/~billston/crontab/). The Kcron interface is buggy -- it got set up for once a minute instead of once an hour, apparently by having the "Every day" box checked while all the other boxes were also checked. Note that each user has a crontab, located in /var/spool/cron/crontabs.

20. In Opera, use kghostview to view pdf files; define this in file associations and check "hand the file over to the program". This is much better than acroread, which should just be removed.

21. I updated ssh to 3.5p1-2 on 3 December 2002; there's a new feature and I got this message screen:

Privilege separation. This version of OpenSSH contains the new privilege separation option. This significantly reduces the quantity of code that runs as root, and therefore reduces the impact of security holes in sshd. Unfortunately, privilege separation interacts badly with PAM. Any PAM session modules that need to run as root (pam_mkhomedir, for example) will fail, and PAM keyboard-interactive authentication won't work. Privilege separation is turned on by default, so if you decide you want it turned off, you need to add "UsePrivilegeSeparation no" to /etc/ssh/sshd_config.

22. I got icecast-server for ogg or mp3 broadcasting -- this could be fun for a student class project. I got this on installation: "Adding new user icecast (108) with group icecast. Not creating home directory." Part of the package was mkpasswd (which just makes encrypted passwords, like passwd but with no need to give user); I haven't figured out how to set this up yet.

23. Consider getting conferencing and telephone software:

  • gnomemeeting (H.323 conferencing) -- see home -- this is likely all you need
  • ohphone -- Command line H.323 client with X, SVGA and SDL support.
  • openam -- H.323 answering machine.
  • openmcu -- H.323 conferencing server.

24. For games, consider getting

25. Hotkeys, for the MS Natural Keyboard Pro. wajig install hotkeys got me the 0.5.7 version, later upgraded to 0.5.7.1.. The configuration file is /etc/hotkeys.conf and there's a /usr/share/hotkeys/msnatpro.def in the file list. I made these changes to hotkeys.conf:

  • Kbd=msnatpro

On 1 January 2003 I issued hotkeys from root and the program clearly started -- and it works, sort of. It tries to adjust volume, start xmms, and so on, but the version of xmms it tries to control is different from the one I usually run. It looks like hotkeys is user-specific and should be started from user steen rather than root. I put the command for both users into /home/steen/.mods on spello (preceeded by killall hotkeys), but this may not be the best place for it.

I edited /etc/hotkeys.conf as follows:

Kbd=msnatpro
CDROM=/dev/cdrom

Search = xflip
Favorites = xteddy
WebBrowser=opera
Email=

MyComputer=konqueror
Calculator=xcalc

I put nothing on e-mail, as kssh and gssh aren't available for my KDE 3.0.3 yet, evolution isn't installing correctly, and ssh mail sends an unwanted line-shift. Also note that the volume buttons don't work in my current setup -- that is to say, they look like they work but they have no effect on the sound volume. This may be a bit tricky and may have to wait until I've found a more stable sound server solution.

I also edited /usr/share/hotkeys/msnatpro.def for the leftmost keys as follows:

Back = konsole
Forward = OpenWriter
Stop = killall xmms

Media = xine

26. On 7 December 2002, I issued "wajig remove-orphans" and may have removed more than I wanted:

Removing libglide3 ...
Removing libwmf0.2-2 ...
Removing libident ...
Removing libsdl-image1.2 ...
Removing nas-lib ...
Removing ldso ...
Removing libdirectfb-0.9-13 ...
Removing gstreamer-avifile ...
GStreamer-ERROR **: No default scheduler name - do you have a registry ?  aborting...
Removing libsdl-ttf1.2 ...
Removing tix41 ...
Removing kdelibs ...
Removing libpam-cracklib ...
Removing libsdl-mixer1.2 ...
Removing libavcodec0-20021108 ...


I was particularly alarmed by kdelibs appearing, but believe that the version I'm using is kdelibs3.

26. On 9 December 2002, I used wajig to upgrade from 4.2.0-pre1v3 (the Libranet version) to 4.2.1.1 with no incidents -- though note that I manually edited the XF86Config-4 file afterwards to restore the previous settings. The new file has instructions on how to do this through utilities, which looks useful but I didn't use them this time. I also discovered that the native configuration utility is xf86cfg.

27. Packages to remove:

hpoj (the hp printer driver)
acroread (acrobat reader -- better to use kghostview)

28. Evolution wouldn't install -- various loops of failed dependencies -- but a discussion on the Libranet discussion boards said Ximian's Red Carpet would give it to you. On 2 Jan 03 I issued,

  wajig install http://www-files.ximian.com/red-carpet/debian-woody-i386/red-carpet_1.4.1-2.ximian.2_i386.deb

which worked fine.

Second Debian installation (planning stage)

Debian 3.0 DVD

I ordered the Debian DVD in late August, from LordSutch, with the official Woody release and an OpenOffice as an added bonus -- though Chris at LordSutch says by mistake it's not the very latest version. [Note that you have no need for a Debian DVD, since you have a fast internet connection.]

See if you can install Debian on gubbio's /dev/hdc7 -- a left-over partition that has plenty of space. You could also install it through UML; see below.

In late August 2002 I got it from http://www.lordsutch.com/cds/ -- you can also download it from http://www.phy.olemiss.edu/ debian-cd/ or install it over the network from http://www.debian.org/distrib/netinst. See also the Agnula project, a continuation of DeMuDi, at http://www.agnula.org/. I got the DVD without source ($20) for Tom and the KFA.

Note that Attila Nagy recently announced that he started producing daily DVD ISO (not UDF) snapshots for IA-32 Woody (html and ftp) and Sid (html and ftp) in jigdo format. You can also use rsync, which uses the tcp port 873 (rsync://ftp.fsn.hu/ftp/).

For more informations about jigdo, see http://atterer.net/jigdo/. The images can be easily fetched by jigdo-lite. See also HOWTO.

Get the latest boot floppies -- possibly here?

Maintaining a current ISO image

There are ways to build a new ISO image from the DVD. Or you just download one -- there's a current build at

You can use jigdo to keep this ISO image up to date.

To mount an ISO image via loopback:

mount -o loop -t iso9660 filename.img /mountpoint

Related matters 10 September 2002

Get the official DVD image from

ftp://ftp.fsn.hu/pub/CDROM-Images/debian
ftp://ftp.fsn.hu/pub/CDROM-Images/debian/3.0_r0/images/i386/

Woody is there, but not the DVD -- that's only for unstable (SID):

ftp://ftp.fsn.hu/pub/CDROM-Images/debian-unofficial/sid-dvd/jigdo/

There's additional stuff from

ftp://ftp.fsn.hu/pub/CDROM-Images/debian-unofficial

Note that this server has every distro under the sun:

ftp://ftp.fsn.hu/pub/CDROM-Images/

Debian's own descriptions and instructions:

http://www.debian.org/CD/

Download CD images with jigdo. The "jigdo" scheme allows you to pick the fastest out of 300 Debian mirrors worldwide for your download. It features easy mirror selection and "upgrading" of older images to the latest release. Also, it is the only way to download Debian DVD images.

Now, this means that you can download the DVD from any of numerous Debian mirrors.

However, do you need Debian to use jigdo? Apparently not. http://www.debian.org/CD/jigdo-cd/

Jigdo http://home.in.tum.de/~atterer/jigdo/

Just get Jigdo light when you need it. The interface is still under development, and the whole system is still new, so there's no hurry. Remember, you don't need Debian yet -- though it's a pity you and Tom will have different systems. I'd still go with Debian for Tom -- while my systems are reasonably well put together, there is a fair amount of cruft and history that's not worth exporting. A new birth is better -- fewer parasites! And remember, he's using Libranet, not straight Debian. This is definitely better. You might even try Libranet yourself.

Building on Debian

try recompiling it yourself, it should then activate CPU extensions.=20

$ apt-get source transcode

<possibly check configfiles>

$ fakeroot dpkg-buildpackage

I don't know how Marillat configures his packages now, but he used to check if you were him, if not, build a custom package for _your_
machine (at least with mplayer).

Just have a quick look in the debian/rules file in the transcode source directory (In my package, you need

$ DEB_BUILD_OPTIONS=3Doptimise fakeroot dpkg-buildpackage)

Installing through usermode Linux

"I recently found a beautiful use for user mode linux - changing distributions with a minimum of downtime. I have a RedHat box that's collocated that I wanted to move over to Debian - so I installed UML and loaded Debian onto one partition, got everything set up correctly and told LILO to boot off the new slice. After a few minutes of praying Debian came up running all the correct services."

"With little fanfare, User Mode-Linux (UML) http://user-mode-linux.sourceforge.net/ has been merged into Linus' BitKeeper tree. The merge followed a patch by UML author Jeff Dike, resynching UML with the 2.5.34 development kernel. From the UML homepage, User- Mode Linux provides you with a virtual machine that offers 'a safe, secure way of running Linux versions and Linux processes. Run buggy software, experiment with new Linux kernels or distributions, and poke around in the internals of Linux, all without risking your main Linux setup.'"

There's more UML resources available at the community site http://usermodelinux.org/

Debian on the laptop

On the Travelmate 5000: http://ccdw.org/~cjj/l/acer_travelmate_353tev.html -- woody!

People have been installing Debian on the TiBook from the beginning -- http://neugierig.org/content/tibook/ makes it sound pretty straightforward; there's also http://people.debian.org/~branden/ibook.html for a network installation.

System packages

See packages in Debian stable (Woody), testing (Sid), and unstable (Sarge).

Branden Robinson finally (June 2002) announced preliminary packages for XFree86 4.2.0 (see update). Additionally, Werner Heuser set up a Mini HOWTO about Debian-XFree86 v4.2, and Adam Heath and Tollef Fog Heen set up a mirror list. Note that you need 4.2 for XV.

  • KDE 3.0.3 for Woody! Unofficial, but by a Debian maintainer. For the latest, see the debian-kde mailing list..
  • Branden Robinson's Installing Debian 3.0 onto an Apple iBook page.
  • apt-build -- Frontend to apt to build, optimize and install packages.
  • apt-src -- Manage Debian source packages.
  • vcheck -- Utility to check and download the most recent program version.
  • linda -- Debian package checker, not unlike lintian.
  • Brian May was confused about how apt treated his preferences. His setup includes the pinning feature many people use when they mix testing and unstable. Not many people replied, not many probably grok this feature. Details.
  • Drew Daniels wrote a report that describes methods of backing up a Debian system. This includes uses of the program cruft to find files that are not covered by properly installed packages. The sysadmin guide also includes a chapter about making backups.

Application packages

  • openmcu 1.0.18-1 H.323 conferencing server looks good too -- this one is in unstable, but there may be a Woody version. There's also vic, which may be even better, and the recent gnomemeeting -- H323 Compatible Netmeeting clone for the Gnome Desktop, which may be the best designed of the lot. See also openh323gk -- H.323 gatekeeper.
  • hddtemp 0.2-11 Utility to monitor the temperature of your IDE hard drive. Supports modern IDE drives.
  • atapci 0.52-1 displays /proc/ide/ chipset specific information
  • gnump3d -- A streaming server for MP3 and OGG files.
  • Good news: Anthony Wong, who made hotkeys, is a Debian maintainer! See hotkeys 0.5.5.1-0.2, a hotkeys daemon for your Internet/multimedia keyboard in X. Check stable too.
  • away -- A terminal locking program.
  • tuxpaint -- A paint program for young children.
  • flashplayer 0.4.10-3 A GPLed Flash Player A standalone flash player for X
  • avview -- TV viewing and capture software for ATI video cards. http://packages.debian.org/unstable/graphics/avview.html
  • grisbi -- Personal finance tracking program based on GTK. http://packages.debian.org/unstable/utils/grisbi.html
  • drbd -- RAID 1 over tcp/ip for Linux utilities. http://packages.debian.org/unstable/misc/drbd.html
  • slash -- The code that runs Slashdot. http://packages.debian.org/unstable/web/slash.html
  • synergy -- Share mouse and keyboard over the network. http://packages.debian.org/unstable/net/synergy.html
  • tdfsb -- A 3D filesystem browser. http://packages.debian.org/unstable/games/tdfsb.html
  • wuzzah -- Inobtrusively monitor your friends. http://packages.debian.org/unstable/misc/wuzzah.html
  • New DebianEdu Subproject. Raphaël Hertzog announced the birth of the DebianEdu subproject. This subproject aims to make Debian the best distribution available for educational use. He hopes that this subproject will cooperate with similar initiatives like the French Debian Education distribution (French only) and SkoleLinux in Norway.
  • Wearable computers at MIT (Debian based) http://www.media.mit.edu/wearables/mithril/overview.html

Digital video under Debian

With regard to video applications, I don't see much difference between stable and testing. MPlayer is in neither stable nor testing, nor is Avifiles or transcode.

Now, unstable does contain a few more of the apps -- notably the very latest Avifile packages (several), kino, libdv, and vcr (v4l capture). Not yet MPlayer -- but see comments, and of course Marillat's site below.

The primary source of video-related packages for Debian -- one that should be used in preference to the official sources -- is the unofficial distribution by Christian Marillat <marillat@debian.org> at http://marillat.free.fr/. For stable (woody) packages go here; there are also unstable and testing packages, but stable seems to include some of the very latest stuff. For apt-get add both of these in your /etc/apt/sources.list

deb http://mplayer.nmeos.net stable/
deb http://marillat.free.fr/ stable main

This includes MPlayer, avidemux, ffmpeg, lame, liba52, and pretty much anything you might want as far as I can see, and it's very up to date. In fact, this is much better than SuSE's support for this kind of stuff!

Note that it also provides mplayer-drivers-source:

Mplayer source code for G200/G400 and ATI Radeon drivers. This package provides the source for the MGA G200/G400 Overlay YUV and the framebuffer driver for ATI Radeon chipset video boards. This package contains only the source code. The kernel sources must be installed to compile these modules.

Details available here (stable!). Should I get a Zoran card instead of bttv?

The "lavrec" utility supplied supports capture from Zoran based MJPEG capture/playback cards like the Buz (Iomega), DC10 (MIRO, Pinnacle) and the LML33 (Linux Media Labs). Compatible MJPEG avi files can also be created using any frame-grabbing card supported by the xawtv tool.

Videos recorded in this can be filtered, editted, and converted to MPEG streams. The MPEG encoder is optimised for high quality results at medium to high bit-rates (1Mbps upwards) and supports MMX/SSE/3D-Now and SMP. A Duron 700 can deliver around 15-20 352x288 frames per second.

A key design objective of the tools is interoperability with other video tools: currently xawtv, bcast2000, nuppelvideo and vcdimager are known to interoperate. The MJPEG utilities can read AVI, Quicktime, and movtar streams. The MPEG encoder can produce streams suitable for buring to VCD/SVCD using vcdimager or similar tools. The software playback of MPEG streams works with almost every player and every OS. SSE/MMX and 3D-Now! are supported permitting a 700Mhz CPU to deliver arond 15-20 VCD frames/second.

Unofficial debs for several video-related applications: http://mplayer.nmeos.net/ and http://marillat.free.fr/. If you've found these sites than you can also simply apt-get transcode. First add the following lines to /etc/apt/sources.list:

# transcode
deb http://lesbos.esat.kuleuven.ac.be/~mleeman/debian unstable/
deb-src http://lesbos.esat.kuleuven.ac.be/~mleeman/debian unstable/
# ffmpeg, mplayer, lame, mjpegtools, a lot of other libraries...
deb http://marillat.free.fr/unstable main
deb-src http://marillat.free.fr/unstable main
deb http://mplayer.nmeos.net/unstable/

Then do "apt-get update" followed by "apt-get install transcode" and you have a working transcode 0.6 on your computer.

Hinrich Aue (on the mplayer list), 16 June 2002


First Debian installation
7 October 2001

Device Win Linux
Floppy

A

fd0

Booting HDD (13GB)

*

hda

Root partition (4GB)

C

hda1

User files (5GB)

E

hda5

Linux swap (384MB)

*

hda6

Linux ex2 (3.8GB?)

*

hda7

Second HDD (15GB)

D

hdc

CDROM 48x

G

hdb

CDRW

H

hdd

  • #mkdir /dev/hda5
  • #mount /dev/hda5 /mnt/hda5
  • #ls /mnt/hda5 -- this now functions as a dos harddrive in a linux directory; you can browse and copy

 

 


  • Hardware profile:
    • Maxtor IDE type 47 13GB 91303D UDMA 5400 9MS
    • MULTIWAVE 16X64 PC100 128MB SDRAM
    • Netgear FA312 fast ethernet PCI adapter
    • Microsoft PS/2 wheel mouse
    • 3D Blaster Banshee PCI/AGP 16MB video card
    • Creative Labs Soundblaster Live! Value PCI 256Voice
    • 3COM 56K V.90 Fax Modem w/ voice, model 1749
    • ACER CD640 40X EIDE CDROM
    • Sony CPD-100ES --
      • Maximum Resolution 1024 x 768 @ 85Hz
      • Maximum Resolution 1280 x 1024 @ 60Hz
      • Horizontal Scan Range 30-70 kHz
      • Vertical Scan Range 50-120 Hz
      • Color Temperature 5000-9300K
  • BIOS profile:
    • disabled shadow RAM
    • disabled virus detection
    • enabled APM, disabled doze, standby, sleep, etc.
    • disabled 15-16MB memory hole
    • boot sequence A, C (could be Zip, C)
  • LAN profile (updated October 2006):

IP 128.97.221.34
Host name gubbio.sscnet.ucla.edu
Gateway 128.97.221.1
Subnet mask 255.255.255.192
DNS
128.97.42.3
DNS search ucla.edu

Netgear FA312 uses a National Semiconductor chip; the driver is natsemi.c here -- I put a copy in E:\linux. See instructions:

  • Verify that the source code for your current kernel version is installed.
  • If you don't have a /usr/include/linux/version.h file, do
    • cd /usr/src/linux
    • make include/linux/version.h
  • Copy the driver source code to a source directory. I usually use /usr/src/modules/driver.c.
  • Compile the file using
    • gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c natsemi.c
    • OR gcc -DMODULE -O6 -c natsemi.c
  • As 'root', test the module by doing
    • insmod driver.o
  • . Install the driver module in the proper location for your distribution. This is usually
    • /lib/modules/kernel-version/net/driver.o.
  • The command to do this is
    • install -m 644 driver.o /lib/modules/`uname -r`/net/

Possible problems and solutions

  • If you get an "linux/version.h no such file or directory" message when compiling the driver, you either have not installed the kernel source code, or you haven't run cd /usr/src/linux; make include/linux/version.h yet.
  • Most modern distributions install the essential header files of the kernel source code, including a pre-built "version.h", so this isn't always necessary.If you get a "modversions.h not found" message when compiling the driver, delete '-DMODVERSIONS' from the command used to compile the driver module.

Testing the New Module

  • As 'root', load the module using "insmod driver.o" and execute the appropriate 'route add -net ...' for your local network.
  • If the networking works correctly, add the module to your system configuration.
  • For Slackware and most other systems, add the insmod command to /etc/rc.d/rc.inet1 or /etc/rc.d/rc.local.

 

 

Installation history

First download the 38x disk files from Debian -- start with the Potato package (stable).

To install from floppies, download the image for rescue.bin and the image for root.bin, found in the 1.44 / idepci directory. Reboot to DOS and use rawrite2.exe under E:/Linux to write the floppy disk image files to the floppy disks:

rawrite2 -f rescue.bin -d a:
rawrite2 -f root.bin -d a:

Then put rescue.bin in the drive and reboot from it. Linux will begin to iinstally. Change to the root.bin when prompted.

The base2-2.tgz file can be found in the Potato download; the installer will look for it and unpack it.

hda: disk1, consiting of hda1, hda2, consisting of hda5, hda6 (swap), and hda7 (linux)
hdb CD
hdc: disk 2
hdd CDRW

Lilo has overwritten the old Win98 Master Boot Record, but is now configured to load Win98 by default. Press 2 to load Linux. Once the networking card is working, you can do a full install. You can also get SuSE.

Name of machine: gubbio
User name: root
Password: ella
User name: steen
Password: gold

add to etc/driveprm: drive0: deviation=-800

File permission

chmod a+x filename to make executable

Mount a MS-DOS disk in drive 1

To mount a floppy disk or cdrom, you must create a mount point.  The default is usually /mnt/floppy and /mnt/cdrom and it is created during the install. If it's not there, then type:
# mkdir /mnt/floppy
or # mkdir /mnt/floppy1

Then you can mount it:
# mount /dev/fd0 /mnt/floppy
for the dos "A drive"

Warnings:Only mount if floppy already in drive and you must not remove the floppy before umount'ing it!

Make problem

I found the NIC driver but couldn't give the make command -- a compiler may be missing. The relevant compiler is gcc. Potato already contains the compiler in package gcc272 2.7.2.3-15 -- but in fact it's not on my base download. So I got it, and found installation instructions here -- but at this point it's simpler to just do a CD install. At least I discovered that I didn't get the full normal install. What I need now is find a way to wipe out the old installation! Use rmdir -r to remove a tree.

Kernel compile -- download from ftp.kernel.com and issue the tar zxf to unpack it.
Change directory to /usr/src/Linux and issue the command: make menuconfig, then edit
When done, make dep; make clean (to recreate dependencies and get rid of old stuff)
Then make zImage (a compile takes a while)
When this is complete do a: make modules This will not take as long.

Installing a New Kernel
Phew, finally! The last step is installing the new kernel. On an Intel-based system the kernel is installed to the right place in /boot with the command

cp /usr/Linux/src/arch/i386/boot/zImage /boot/newkernel

then

make modules_install

This will install the modules in /lib/modules. Next, edit /etc/lilo.conf to add a section like this

image = /boot/newkernel
label = new
read-only

At the next reboot, select the kernel 'new' in lilo, and it will load the new kernel. If it works fine, move it to the first position in the lilo.conf so it will boot every time by default.

Ret Hat quick install:

Insall linux and login and give command 'startx' to bringup the X-windows. Do 'man startx' for docs. If the X-windows fails to startup than give Xconfigurator command. Do 'man Xconfigurator'. You may want to select 'Custom' option and try various monitor settings which will work. If any problems, re-run again Xconfigurator and change config untill the display is PERFECT  and is not having any problems. The display should NOT fold-over and it should NOT have any other problems. Know that SVGA will always work, if you do not know the type of monitor or video card.

If display is not PERFECT, then shutdown Xsession by pressing CTRL+ALT+BACKSPACE keys, and go back and re-run Xconfigurator.
 
Mount the partitions using the mount command and editing /etc/fstab. See 'man mount', 'man man' and man pages on 'makewhatis', 'apropos', 'vi', 'find', 'which', 'xterm', 'less', 'bash', 'kill', 'top'. To search for help on a keyword 'man -k enter_a_keyword'. To enable command line history editing give 'set -o vi' and press keys ESC+k for up and key j for down, ESC also enables the command-line editing with vi like commands. Do mount /mnt/cdrom and mount /dev/fd0 for floppy. For DOS formatted floppy edit /etc/fstab
and put

            /dev/fd0  /dos_floppy          msdos     defaults        0        0
            /dev/fd0  /win95_floppy      vfat         defaults        0        0

For mounting Windows 95 partitions use VFAT type for long filenames.

To add menus to Start button in fvwm95 (the default window manager) edit the file - /etc/X11/AnotherLevel/fvwm2rc.menus   And add menus and click on restart fvwm menu.

To maximize xterm window - click on 'redhat icon' on top left corner of the xterm window. Click on Maximize, Tall Maximize or Wide Maximize. These parameters are set in the files -

                /etc/X11/AnotherLevel/fvwm2rc.decors
                /etc/X11/AnotherLevel/fvwm2rc.functions

Replace 'Maximize' with 'Maximize 100 95' to correct size of windows in the manager.

For ALT+TAB key to work, which is used to switch windows, click start->preferences->AutoRaise->0ms.  

See help by 'xterm -h'. To set colors for the xterm windows edit ~/.Xdefaults in home directory and put the following
lines

                bordercolor red
                background grey
                foreground black
                xterm_color*font: 12x24

To get listing of fonts give the command xlsfonts at unix prompt. You should remove the following line

                xterm_color*font: fixed

Menus for xterm are - press CTRL+Right Mouse Button displays menu to change font sizes, screen sizes, press CTRL+Left Mouse Button to change the terminal settings, CTRL+Middle Mouse button to change scrollbar. For 2-button mouse emulate middle button by pressing both left and right mouse buttons together using 2 fingers (index finger and middle finger) simultaneously.

There is Windows 95 like desktop called KDE and is in kde*.rpm package. Visit http://www.kde.org web site for latest
news. Install KDE using rpm command in this order -  qt-1.*, kdelibs, kdeutils, kdemultimedia, kdesupport, kdegraphics, kdebase.

Create a unix user student. Login as student and edit ~/.bash_profile and put the following lines -

            export KDEDIR=/opt/kde
            export PATH=$PATH:/opt/kde/bin
            alias cp='cp -i '
            alias mv='mv -i '
            alias rm='rm -i '
            alias ls='ls --color=tty'
            xt='xterm -ls -bg gray -fg black -bd red -cr red -sb -sl 5000 -fn 9x15bold
            set -o   vi

and create a file ~/.Xclients with following lines

            #!/bin/bash
            xterm -ls &
            xclock -d &
            xsnow &
            xeyes  &
            control-panel &
            exec startkde
            #exec fvwm
            #exec fvwm2
            #exec twm

now do chmod u+x ~/Xclients .bash_profile.

Make sure root creates user 'student'  with bash as default shell in control-panel->userconfig menu. You can comment out startkde and uncomment exec fvwm and try different window managers! See also /etc/X11/xinit/XClients file and /opt/kde/bin/*.

Logout and login as 'student' and type 'startx' to bring up KDE desktop. To add your menus click 'K' ->Utils->menuedit which displays editor with left EMPTY which is your personal menu and right menu is system default menu. Also
K->settings->desktop->background->color->green to set colors. See docs at
/opt/kde/doc/HTML

 

 

 

Debate
Evolution
CogSci

Maintained by Francis F. Steen, Communication Studies, University of California Los Angeles


CogWeb