Linux X-Terminal
After a (good) number of attemtps to revive my old 486Dx2 with several linux distributions,
I gave up
and decided to transform it into an X-terminal. This means: I had a good Athon
XP2100 working
at home (actually at my College) and I
wanted to use
it as an X-server for my old machine, thus sharing the Athlon's CPU and memory,
but having "two"
usable computers.
Follows a description of the "old thing itself":
CPU | Intel Pentium 486Dx2 66MHz |
Drives |
Two very old HD (both ATA):
|
Video Card | Cyrrus Logic GD5424 (an old old one) |
Network card (you NEED one) | Genius GE2000X, which is NE2000-compatible |
1) In the existing Linux computer
There are several Linux mini-distros in the Internet, but for
starters, I decided to have, at least, a "working" machine, without
X. Download tomsrtbt. It
is just everything in a floppy. Now you need to configure your hard drive(s)
so that they can hold the complete linux kernel and X-server.
So, download tomsrtbt and make a bootable disk from it. The instructions
are
clearly stated in toms web page.
1.- Boot it from the floppy you just created. Press return all the times it asks for a confirmation until you are prompted to login. Login as root with the default password "xxxx"
2.- I guess you know how to fdisk, etc... but just in case, here is a verbatim
copy
of how to get one (the first hard drive) partitioned with one partition for
linux
and the other for swap. I AM ASSUMING YOU WANT TO DELETE ALL THE DATA
IN THAT HARD DRIVE. Do not blame me ;-)
# fdisk /dev/hda # p |
# d 1 # d 2 # d 5 |
# n primary (p) or extended (e)? p number (1-4)? 1 |
# t partition number? 1 Filesystem type(......)? 83 |
# n primary or extended? p partition number (1-4)? 2 Starting point? RETURN End Point? RETURN # t partition number? 2 Filsystem type(......)? 82 |
# mke2fs /dev/hda1 |
# mkdir /mnt/floppy # mkdir /mnt/hda # mount -t ext2 /dev/hda1 /mnt/hda # cd /mnt/hda |
# wget http://perso.club-internet.fr/sebhuet/lem/lem_base_V061.tar.gz # wget http://perso.club-internet.fr/sebhuet/lem/lem_X11_V061.tar.gz # gunzip lem_base_V061.tar.gz # tar -xvf lem_base_V061.tar # gunzip lem_X11_V061.tar.gz # tar -xvf lem_X11_V061.tar |
Needed data | My data |
oldie's name | cuatro.penafiel |
oldie's ip address | 192.168.1.4 |
oldie's network | 192.168.1.0 |
oldie's ip netmask | 255.255.255.0 |
oldie's ip broadcast | 192.168.1.255 |
oldie's gateway | 192.168.1.1 |
# echo "cuatro.penafiel" > ./etc/config/hostname # echo "192.168.1.4" > ./etc/config/ipaddr # echo "255.255.255.0" > ./etc/config/netmask # echo "192.168.1.0" > ./etc/config/network # echo "192.168.1.255" > ./etc/config/broadcast # echo "192.168.1.1" > ./etc/config/gateway |
# vi ./etc/init.d/network |
#route add default gw .... |
That was difficult but indispensible. Here comes the real HARD task: to compile a new kernel with minimal drivers for your oldie.
3) In the new (server) machine
Download my
configuration
file here and change the parameters for you
network card. I guess
you should need to change nothing else, but this is the really complicated
matter. Obviously,
you MUST know what network card you have and which is the proper driver. For a
SVGA based
card (which I am assuming you have), there is nothing else to be changed. Notice
that there are
NO NO NO NO NO drivers for CD-ROMS or ISO9660 filesystems, etc... The
computer
is going to be a pure terminal and use remote drives.
Also you will need to edit the processor type (it is configured for a 486). To
do this, you will obviously need the kernel source, etc... Sorry but I guess you
know someone able to do it ;-). Another possibility is just trying my configuration -hoping
that your network card is ne
compatible- and in the directory
/usr/src/linux
typing
From now one, prompts are going to be distinguished by big_one$
meaning the new
"super" machine and oldie#
meaning the poor 3-4-586 you are going to use as a terminal.
Go to the kernel's source directory in the new one and make the image:
big_one$ cd /usr/src/linux big_one$ make bzImage |
big_one$ mke2fs /dev/fd0 big_one$ mkdir /mnt/floppy_temp big_one$ mount /dev/fd0 /mnt/floppy_temp bib_one$ cp bzImage /mnt/floppy_temp big_one$ umount /dev/fd0 |
big_one$ rm -fr /mnt/floppy_temp |
oldie# mkdir /mnt/floppy oldie# mount /dev/fd0 /mnt/floppy oldie# cp /mnt/floppy/bzImage ./boot/bzImage oldie# chmod +x /boot/bzImage oldie# umount /mnt/floppy |
Important: The following is not completely right, but it works for me and should work for you.
oldie# cd etc |
oldie# rm -f lilo.conf oldie# vi lilo.conf |
oldie# lilo -r /mnt/hda |
X installation
If you downloaded both "lem_base" and "lem_X", then you should have no problem
in configuring X (a subject I am not going to deal with, go to
XFree86's web page and look there), as long as the system works properly. To try
this, you must reboot your machine WITH the toms floppy in it:
oldie# reboot |
oldie# xf86config |
4) The connection between oldie
and big_one
as X-terminal and X-server
A bit trickier than should be. First of all, you must choose an X-display manager in big_one.
Do not use KDM because it is painfully hard to configure. Use GDM. If you cannot afford this,
then use XDM, but this is rather minimal. There is a couple of things to change in GDM's configuration
files -in big_one.
1.-Change /etc/X11/gdm/gdm.conf: edit it and
in the section [xdcmp] change the line Enable=False
to Enable=True.
2.-Add a line oldie to the file /etc/hosts.allow:
this means exactly adding a line with the name of "oldie". This is my /etc/hosts.allow:
################
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
cuatro.penafiel cuatro
################
To reboot the X services in "big_one", I suggest doing, in a terminal (CTRL-ALT F2): log in as root
big_one$ telinit 2 (wait) big_one$ telinit 5 |
THE LAST COMMAND
In oldie, type
oldie# X -query 192.168.1.5 |
That should be all. Do not hesitate to mail me if you have any questions. But I have gone through it and all this has been written by memory... Trust it as what it is. Good luck.
For a distro giving no problems and no hassle, use Mandrake 9.0. I have returned to "RPMS" after a whele using Slackware... Apologies to the purists.
Old linux stuff I do not use any more:
My previous last successful install on a laptop was
Slackware 7.1 on an AHTEC
computer (I cannot remember the model, but it has SiS
components, SiS630 to be more precise. Briefly, the
configuration needs: module "sis900" for the net card (which is
standard), alsa drivers for the sound card (you must load the
alsa module "sound-card-trident", but follow the instructions
of Alsa))
Last Edited: December 2, 2002. Pedro Fortuny Ayuso. Quanta3.