<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://knoppix.net/wiki3/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://knoppix.net/wiki3/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beast+in+black</id>
		<title>Knoppix Documentation Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://knoppix.net/wiki3/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beast+in+black"/>
		<link rel="alternate" type="text/html" href="https://knoppix.net/wiki/Special:Contributions/Beast_in_black"/>
		<updated>2026-09-19T02:13:54Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://knoppix.net/wiki/KNOPPIX_Terminal_Server</id>
		<title>KNOPPIX Terminal Server</title>
		<link rel="alternate" type="text/html" href="https://knoppix.net/wiki/KNOPPIX_Terminal_Server"/>
				<updated>2008-05-16T06:15:50Z</updated>
		
		<summary type="html">&lt;p&gt;Beast in black: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Preamble==&lt;br /&gt;
&lt;br /&gt;
*This page describes how to boot KNOPPIX 5.1.1 (outdated) from the network using Samba (as opposed to NFS).&lt;br /&gt;
*The original author of this document, [[User:Rjent|Rjent]], moved his efforts to working on http://live.debian.net/ .&lt;br /&gt;
*You are still welcome to contact him about the model however (please bare with him since he has a busy day job).&lt;br /&gt;
&lt;br /&gt;
==Model==&lt;br /&gt;
&lt;br /&gt;
* Most of the this information is an exert from a paper on the model at  http://www.mgr3.k12.mo.us/~rjn103s/HybridNotes-20060504-1.pdf&lt;br /&gt;
The methodology for the hybrid environment uses a Common Internet File System (CIFS)&lt;br /&gt;
to boot up KNOPPIX. The base work for this model utilizes existing resources and information&lt;br /&gt;
from http://knoppix.manty.net&lt;br /&gt;
&lt;br /&gt;
== TFTP Server Setup ==&lt;br /&gt;
We start by configuring a TFTP server. It will serve the bootloader (PXELINUX) files which our client machines will load from the network and run even before starting the Linux/KNOPPIX kernel.&lt;br /&gt;
&lt;br /&gt;
For this guide, we want our TFTP server to use &amp;lt;tt&amp;gt;/var/lib/tftpboot/&amp;lt;/tt&amp;gt; as the root directory.&lt;br /&gt;
How you configure that depends on which tftp server you use (tftp-hpa, atftp, or other)&lt;br /&gt;
and how you run it (inetd, xinetd, init daemon, ...).&lt;br /&gt;
&lt;br /&gt;
For example, tftp-hpa can be started from inetd with this line in &amp;lt;tt&amp;gt;/etc/inetd.conf&amp;lt;/tt&amp;gt;:&lt;br /&gt;
 tftp           dgram   udp     wait    root  /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot&lt;br /&gt;
&lt;br /&gt;
== Samba Share Setup ==&lt;br /&gt;
Next we need to setup a Samba share which will host the KNOPPIX CD filesystem. The network client machines will access this share as if they were accessing the files from a regular KNOPPIX Live CD.&lt;br /&gt;
&lt;br /&gt;
Samba provides the CIFS services out of the box. All we have to do is configure a share.&lt;br /&gt;
An example smb.conf is listed below:&lt;br /&gt;
 [global]&lt;br /&gt;
  netbios name = HYBRIDSERVER&lt;br /&gt;
  security = share&lt;br /&gt;
  guest account = nobody&lt;br /&gt;
 [knoppix_share-5.1.1]&lt;br /&gt;
  comment = Knoppix 5.1.1 Boot Data&lt;br /&gt;
  path = /shares/knoppix-term-5.1.1&lt;br /&gt;
  read only = Yes&lt;br /&gt;
  guest ok = Yes&lt;br /&gt;
'''Note1:''' you need 'security = share' for (passwordless) guest access to work&lt;br /&gt;
&lt;br /&gt;
'''Note2:''' you need to make sure that there exists a Unix user 'guest' on the server (in /etc/passwd)&lt;br /&gt;
&lt;br /&gt;
'''Note3:''' After changes to smb.conf you will need to restart samba services.&lt;br /&gt;
&lt;br /&gt;
== DHCP Server Setup ==&lt;br /&gt;
After that, we setup a DHCP server. It will provide required values that allow the client to configure its network interface, and to download a bootfile.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This guide will assume that your server machine has an IP of 192.168.12.253&lt;br /&gt;
&lt;br /&gt;
Example entry in the dhcpd.conf file:&lt;br /&gt;
 subnet 192.168.12.0 netmask 255.255.255.0 {&lt;br /&gt;
  range 192.168.12.251 192.168.12.252;&lt;br /&gt;
  option broadcast-address 192.168.12.255;&lt;br /&gt;
  filename &amp;quot;/pxelinux.0&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
'''Note2:''' Make sure to use the subnet, netmask, broadcast-address and the IP range of your test network.&lt;br /&gt;
&lt;br /&gt;
'''Note2:''' After changes to dhcpd.conf restart or reload dhcp services.&lt;br /&gt;
&lt;br /&gt;
== Setting Up Knoppix Boot files ==&lt;br /&gt;
Now it's time to populate the Samba and TFTP server shares with relevant files.&lt;br /&gt;
&lt;br /&gt;
Start by downloading a [http://www.knopper.net/knoppix-mirrors/index-en.html KNOPPIX 4.0.2 (or newer) iso]&lt;br /&gt;
&lt;br /&gt;
Temporarily mount it (or burn it on a CD)&lt;br /&gt;
 mount -o loop /iso/KNOPPIX_V5.1.1CD-2007-01-04-EN.iso /mnt/iso&lt;br /&gt;
&lt;br /&gt;
Setup a Knoppix terminal pxeboot subdirectory&lt;br /&gt;
 mkdir /var/lib/tftpboot/knoppix&lt;br /&gt;
&lt;br /&gt;
Download miniroot.gz from http://knoppix.manty.net and put it in the just created directory&lt;br /&gt;
 wget http://knoppix.manty.net/files/511/miniroot.gz -O /var/lib/tftpboot/knoppix/miniroot-5.1.1.gz&lt;br /&gt;
&lt;br /&gt;
Copy the kernel from the Knoppix CD to the pxeboot subdirectory&lt;br /&gt;
 cp /mnt/iso/boot/isolinux/linux /var/lib/tftpboot/knoppix/kernel-5.1.1&lt;br /&gt;
&lt;br /&gt;
Copy the KNOPPIX folder from the KNOPPIX CD to a shared directory on the server&lt;br /&gt;
 rsync -a --delete /mnt/iso/KNOPPIX/ /shares/knoppix-term-5.1.1/KNOPPIX&lt;br /&gt;
&lt;br /&gt;
Cleanup the temporarily mounted directory&lt;br /&gt;
 umount /mnt/iso&lt;br /&gt;
&lt;br /&gt;
== Configure PXELINUX ==&lt;br /&gt;
PXELINUX is a boot loader which actually loads the Linux/KNOPPIX kernel on the client machines and tell them where to find the root filesystem.&lt;br /&gt;
Thus we configure PXELINUX with relevant information.&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your &amp;lt;tt&amp;gt;/var/lib/tftpboot/pxelinux.cfg/default&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
  LABEL Knoppix 5.1.1 CIFS&lt;br /&gt;
  KERNEL knoppix/kernel-5.1.1&lt;br /&gt;
  APPEND secure nfsdir=//192.168.12.253/knoppix_share-5.1.1 nodhcp lang=en ramdisk_size=100000 init=/etc/init apm=poweroff nomce vga=791 initrd=miniroot-5.1.1.gz quiet BOOT_IMAGE=knoppix&lt;br /&gt;
&lt;br /&gt;
'''Note:''' the above APPEND line must appear as a single line in your &amp;lt;tt&amp;gt;pxelinux.cfg/default&amp;lt;/tt&amp;gt; file&lt;br /&gt;
&lt;br /&gt;
If you would like to have a text-only client terminal, then you can make a copy of the above text in the &amp;lt;tt&amp;gt;/var/lib/tftpboot/pxelinux.cfg/default&amp;lt;/tt&amp;gt; file and just add &amp;quot;2&amp;quot; to the knoppix options:&lt;br /&gt;
  LABEL Knoppix 5.1.1 CIFS&lt;br /&gt;
  KERNEL knoppix/kernel-5.1.1&lt;br /&gt;
  APPEND secure nfsdir=//192.168.12.253/knoppix_share-5.1.1 nodhcp lang=en ramdisk_size=100000 init=/etc/init apm=poweroff nomce vga=791 initrd=miniroot-5.1.1.gz quiet 2 BOOT_IMAGE=knoppix&lt;br /&gt;
&lt;br /&gt;
== Configure Client Machines to boot from PXE ==&lt;br /&gt;
This is a crucial step. Unless your machines can actually boot from the network,&lt;br /&gt;
none of the above is going to be of any use!&lt;br /&gt;
Unfortunately, each and every BIOS has its own way of being configured for PXE booting&lt;br /&gt;
and it's not feasible to document any of that here.&lt;br /&gt;
If you do not have this working, a good start would be to read [http://www.kegel.com/linux/pxe.html Dan Kegel's Remote Network Boot via PXE page].&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
After all the hard work, it is time to enjoy the fruits of your labor.&lt;br /&gt;
&lt;br /&gt;
*Connect a PXE enabled test machine to the 192.168.12.0 network&lt;br /&gt;
*power it on&lt;br /&gt;
*wait...&lt;br /&gt;
*enjoy!&lt;br /&gt;
&lt;br /&gt;
== Customizing miniroot.gz ==&lt;br /&gt;
&lt;br /&gt;
The Knoppix Terminal Server script (knoppix-terminalserver) creates a miniroot.gz to be used as the initial ramdisk file to boot up the PXE'd knoppix. Sometimes, it is necessary to modify this miniroot.gz to take into account your own customizations that will be required on the PXE'd knoppix.&lt;br /&gt;
&lt;br /&gt;
If you just need a custom linuxrc, then just put your custom linuxrc script into /usr/share/knoppix-terminalserver/templates/miniroot/ and re-run the knoppix-terminalserver script so that it takes your customized linuxrc. That's it. You can skip reading the rest of this section.&lt;br /&gt;
&lt;br /&gt;
If you need to make deeper changes in the knoppix terminal server miniroot.gz file, however, here's how:&lt;br /&gt;
&lt;br /&gt;
* Run the knoppix-terminalserver script so that it sets up knoppix terminal server.&lt;br /&gt;
* Copy the miniroot.gz file from /tftpboot/ to some location where it can be edited. I usually choose a different computer for this (Gentoo!)&lt;br /&gt;
* Unzip the miniroot.gz file&lt;br /&gt;
 gunzip miniroot.gz&lt;br /&gt;
* This will create a ''miniroot'' file from the miniroot.gz file.&lt;br /&gt;
* Create a directory to loopback-mount this miniroot file&lt;br /&gt;
 mkdir /mnt/minirootloop&lt;br /&gt;
* Loopback-mount the unzipped miniroot file as an EXT2 filesystem&lt;br /&gt;
 mount -o loop,rw -t ext2 miniroot /mnt/minirootloop/&lt;br /&gt;
* This mounts the miniroot file as a loopback device and you can now cd into it if you wish.&lt;br /&gt;
 cd /mnt/minirootloop&lt;br /&gt;
* Make whatever changes you want in the /mnt/minirootloop/ directory&lt;br /&gt;
* Unmount the /mnt/minirootloop loopback device (remember to cd out of /mnt/minirootloop before unmounting it)&lt;br /&gt;
 umount /mnt/minirootloop&lt;br /&gt;
* cd into the original directory where the miniroot file exists (where you first gunzipped it)&lt;br /&gt;
* Create the new miniroot.gz file with the changes you made as follows:&lt;br /&gt;
 dd if=./miniroot bs=9500k count=1 | gzip -9v &amp;gt; miniroot.gz&lt;br /&gt;
* Copy your brand spanking new miniroot.gz into the /tftpboot directory of your knoppix terminal server&lt;br /&gt;
* PXE boot a client computer&lt;br /&gt;
* Watch your new miniroot customizations take effect.&lt;br /&gt;
* Enjoy.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Updating ==&lt;br /&gt;
Updating the Knoppix Terminal server to newer versions of Knoppix is difficult, but theoretically doable. In general, you have to re-do the following steps:&lt;br /&gt;
* repeat the [[#Samba Share Setup]] to create a share for storing the new Knoppix disk image&lt;br /&gt;
* re-do the [[#Setting Up Knoppix Boot files]] step in new directories&lt;br /&gt;
** this is where it gets hard. There is no updated miniroot available for CIFS network booting. Based on initial investigation, creating an updated miniroot for Knoppix 5.3.1 will be non-trivial. One could start this task by examining the differences between the vanilla 5.1.1 miniroot and the cifs 5.1.1 miniroot as follows:&lt;br /&gt;
&lt;br /&gt;
 cp /var/lib/tftpboot/knoppix/miniroot-5.1.1.gz /tmp/&lt;br /&gt;
 gunzip /tmp/miniroot-5.1.1.gz&lt;br /&gt;
 mkdir /mnt/cifs-miniroot&lt;br /&gt;
 mount -o loop /tmp/miniroot-5.1.1 /mnt/cifs-miniroot&lt;br /&gt;
 mkdir /mnt/knoppix-5.1.1-cd&lt;br /&gt;
 mount -o loop KNOPPIX_V5.1.1CD-2007-01-04-EN.iso /mnt/knoppix-5.1.1-cd/&lt;br /&gt;
 mkdir /mnt/vanilla-5.1.1-miniroot&lt;br /&gt;
 cp /mnt/knoppix-5.1.1-cd/boot/isolinux/minirt.gz /tmp&lt;br /&gt;
 gunzip /tmp/minirt.gz&lt;br /&gt;
 mount -o loop /tmp/minirt /mnt/vanilla-5.1.1-miniroot&lt;br /&gt;
 # remove irrelevant device files&lt;br /&gt;
 rm -rf /mnt/{vanilla-5.1.1,cifs}-miniroot/dev&lt;br /&gt;
 diff -qr /mnt/vanilla-5.1.1-miniroot /mnt/cifs-miniroot&lt;br /&gt;
 diff: /mnt/vanilla-5.1.1-miniroot/bin: No such file or directory&lt;br /&gt;
 diff: /mnt/cifs-miniroot/bin: No such file or directory&lt;br /&gt;
 diff: /mnt/vanilla-5.1.1-miniroot/boot: No such file or directory&lt;br /&gt;
 diff: /mnt/cifs-miniroot/boot: No such file or directory&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/etc: init&lt;br /&gt;
 Only in /mnt/cifs-miniroot/etc: inittab.secure&lt;br /&gt;
 diff: /mnt/vanilla-5.1.1-miniroot/etc/ld.so.conf: No such file or directory&lt;br /&gt;
 diff: /mnt/cifs-miniroot/etc/ld.so.conf: No such file or directory&lt;br /&gt;
 Files /mnt/vanilla-5.1.1-miniroot/etc/mtab and /mnt/cifs-miniroot/etc/mtab differ&lt;br /&gt;
 Only in /mnt/cifs-miniroot/etc: nsswitch.conf&lt;br /&gt;
 Only in /mnt/cifs-miniroot/etc: rpc&lt;br /&gt;
 Only in /mnt/cifs-miniroot/etc: services&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/KNOPPIX: bin&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/KNOPPIX: boot&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/KNOPPIX: etc&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/KNOPPIX: lib&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/KNOPPIX: opt&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/KNOPPIX: sbin&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/KNOPPIX: usr&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/KNOPPIX: var&lt;br /&gt;
 diff: /mnt/vanilla-5.1.1-miniroot/lib: No such file or directory&lt;br /&gt;
 Files /mnt/vanilla-5.1.1-miniroot/linuxrc and /mnt/cifs-miniroot/linuxrc differ&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/media: fd0&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/media: hd&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/media: test&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: a100u2w.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: advansys.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: aic7xxx.ko&lt;br /&gt;
 Only in /mnt/cifs-miniroot/modules: aufs.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: BusLogic.ko&lt;br /&gt;
 Only in /mnt/cifs-miniroot/modules: cloop.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: dc395x.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: dtc.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: eata.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: ehci-hcd.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: fdomain.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: ff-memless.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: gdth.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: ieee1394.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: initio.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: libusual.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: loop.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: mptbase.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: mptscsih.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: NCR53c406a.ko&lt;br /&gt;
 Only in /mnt/cifs-miniroot/modules: net&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: ohci1394.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: ohci-hcd.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: pas16.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: psi240i.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: sbp2.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: sym53c8xx.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: t128.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: tmscsim.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: u14-34f.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: uhci-hcd.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: ultrastor.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: usbcore.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: usbhid.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: usb-storage.ko&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/modules: wd7000.ko&lt;br /&gt;
 diff: /mnt/vanilla-5.1.1-miniroot/opt: No such file or directory&lt;br /&gt;
 diff: /mnt/cifs-miniroot/opt: No such file or directory&lt;br /&gt;
 diff: /mnt/cifs-miniroot/sbin: No such file or directory&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/static: fusermount&lt;br /&gt;
 Only in /mnt/cifs-miniroot/static: ifconfig&lt;br /&gt;
 diff: /mnt/cifs-miniroot/static/init: No such file or directory&lt;br /&gt;
 Files /mnt/vanilla-5.1.1-miniroot/static/insmod and /mnt/cifs-miniroot/static/insmod differ&lt;br /&gt;
 Only in /mnt/cifs-miniroot/static: mount&lt;br /&gt;
 Only in /mnt/cifs-miniroot/static: mount.cifs&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/static: ntfs-3g&lt;br /&gt;
 Only in /mnt/cifs-miniroot/static: portmap&lt;br /&gt;
 Only in /mnt/cifs-miniroot/static: pump&lt;br /&gt;
 Only in /mnt/vanilla-5.1.1-miniroot/static: rmmod&lt;br /&gt;
 diff: /mnt/cifs-miniroot/static/sh: No such file or directory&lt;br /&gt;
 diff: /mnt/vanilla-5.1.1-miniroot/usr: No such file or directory&lt;br /&gt;
 diff: /mnt/cifs-miniroot/usr: No such file or directory&lt;br /&gt;
 Only in /mnt/cifs-miniroot: var&lt;br /&gt;
&lt;br /&gt;
* finally [[#Configure PXELINUX]] to add a new menu entry to point to the new boot files&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [http://knoppix.manty.net/ The KNOPPIX® terminal server over SMB/CIFS page] - The place where all the starting work was derived.&lt;br /&gt;
* [http://live.debian.net/ Debian Live]&lt;br /&gt;
* [http://www.mgr3.k12.mo.us/~rjn103s/HybridNotes-20060504-1.pdf Hybrid Booting Model]&lt;br /&gt;
* [http://pxe.dev.aboveaverageurl.com/index.php/PXE_Booting/Knoppix a similar, but outdated guide]&lt;br /&gt;
* [http://www.kegel.com/linux/pxe.html Remote Network Boot via PXE]&lt;br /&gt;
* [http://www.kernel.org/pub/software/network/tftp/ tftp-hpa]&lt;br /&gt;
* [http://dhcpcd.berlios.de/ dhcpcd]&lt;br /&gt;
* [http://us3.samba.org/samba/ samba]&lt;br /&gt;
&lt;br /&gt;
[[Category:Guide]]&lt;br /&gt;
[[Category:Booting]]&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Beast in black</name></author>	</entry>

	</feed>