|
From: Aaron S. <as...@in...> - 2004-05-19 13:58:05
|
I got knoppix to run on top of Win2K using coLinux (mentioned in an
earlier thread). It took a little work.
Currently it requires 2.5 GB of disk space on windows, and a spare
partition on a second computer to get it running
Here is a rough sketch of how to do it for those interested:
1) On a second computer, boot knoppix off of the cd
2) create a 2.5 GB partition, and mkfs it (I chose ext3) and mount it up
as /mnt/newdisk
3) 'cp -a /KOPPIX/* /mnt/newdisk'
3.1) replace /mnt/newdisk/etc/init.d/xsession with
#!/bin/sh
. /etc/sysconfig/knoppix
if [ ! -d /home/knoppix ]; then
mkdir /home/knoppix
chown knoppix:knoppix /home/knoppix
fi
echo "startdke" > /home/knoppix/.xinitrc
# clean up any old lock files
rm -f /home/knoppix/.vnc/*.pid
rm -f /tmp/.X0-lock
rm -fr /tmp/.X11-unix
# start up kde
su - -c "vncserver -geometry 1024x768 -depth 16 :0" knoppix
3.2) create an /mnt/newdisk/etc/fstab
/dev/cobd0 / ext3 defaults 1 1
none /proc proc defaults 0 0
3.3) create some missing devices
mknod /mnt/newdisk/dev/cobd0 b 117 0
mknod /mnt/newdisk/dev/cobd1 b 117 1
mknod /mnt/newdisk/dev/cobd2 b 117 2
mknod /mnt/newdisk/dev/cobd3 b 117 3
mknod /mnt/newdisk/dev/cobd4 b 117 4
mknod /mnt/newdisk/dev/cobd5 b 117 5
mknod /mnt/newdisk/dev/cobd6 b 117 6
mknod /mnt/newdisk/dev/cobd7 b 117 7
3.4) and then unmount /mnt/newdisk
4) On the target computer, install coLinux 0.6.0 and netcat and vncviewer
5) using netcat (nc) on knoppix and netcat on the target computer (win2k),
copy the raw filesystem over as a single 2.5 GB file.
6) modify your default.colinux.xml to look like this, adjusting your path
& ethernet card name as necessary
<?xml version="1.0" encoding="UTF-8"?>
<colinux>
<block_device index="0" path="\DosDevices\c:\colinux\knoppix_ext3"
enabled="true"></block_device>
<bootparams>root=/dev/cobd0 lang=us BOOT_IMAGE=knoppix</bootparams>
<image path="vmlinux"></image>
<memory size="128"></memory>
<network index="0" type="bridged" name="3Com 10/100 Mini PCI Ethernet
Adapter"></network>
</colinux>
7) start up colinux-daemon.exe
8) knoppix will come up and start. It mounts up the root filesystem and
also DHCP's an IP address (make sure you have a DHCP server nearby)
9) After a minute or two, fire up 'vncviewer' with the IP address of
knoppix. (you might have to do an 'ifconfig -a' on the console to
determine the ip). It runs really nice in full screen mode
Notes:
*) If you don't want to use the 'bridged' network, you can make knoppix
only talk with windows, the network line should read as below. Also then
hard code your IP address in windows on the 'tap' ethernet as 192.168.0.1
and hardcode knoppix as 192.168.0.40. Make sure you kill or disable
'pump' in knoppix so that it does not keep trying to dhcp.
<network index="0" type="tap" name="TAP"></network>
*) If we rebuild the coLinux kernel and include the 'cloop.o' driver then
in theory you can point your first block device to a modified ramdisk
(like the boot.img that comes on knoppix) and then point your second block
device to \DosDevices\D:\knoppix\KNOPPIX. This allows you to save 2.5GB
of disk space. Then you can use the knoppix method of persistant home
directories and configuration files. (I have not tried this, please let
me know your experience if you do) Also, once a modified kernel has been
built, the first several steps including the second computer are skipped.
|