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

	<entry>
		<id>https://mail.knoppix.net/wiki/KNOPPIX_Terminal_Server</id>
		<title>KNOPPIX Terminal Server</title>
		<link rel="alternate" type="text/html" href="https://mail.knoppix.net/wiki/KNOPPIX_Terminal_Server"/>
				<updated>2008-01-14T17:47:51Z</updated>
		
		<summary type="html">&lt;p&gt;217.162.207.249: spam bullshit removal&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Preamble==&lt;br /&gt;
&lt;br /&gt;
*This page describes how to boot KNOPPIX off the network using Samba (as opposed to NFS).&lt;br /&gt;
**This page needs to be categorized.&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 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 /var/lib/tftpboot/ 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:&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]&lt;br /&gt;
  comment = Knoppix Boot Data&lt;br /&gt;
  path = /shares/knoppix-term&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;
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 &lt;br /&gt;
 wget http://knoppix.manty.net/files/511/miniroot.gz -O /var/lib/tftpboot/knoppix/miniroot.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&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/KNOPPIX&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 /var/lib/tftpboot/pxelinux.cfg/default file:&lt;br /&gt;
  LABEL Knoppix CIFS&lt;br /&gt;
  KERNEL knoppix/linux&lt;br /&gt;
  APPEND secure nfsdir=//192.168.12.253/knoppix_share nodhcp lang=en ramdisk_size=100000 init=/etc/init apm=poweroff nomce vga=791 initrd=miniroot.gz quiet BOOT_IMAGE=knoppix&lt;br /&gt;
&lt;br /&gt;
'''Note:''' the above APPEND line must appear as a single line in your pxelinux.cfg/default file&lt;br /&gt;
&lt;br /&gt;
== Configure Client Machines' PXE Booting ==&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;
==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://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;/div&gt;</summary>
		<author><name>217.162.207.249</name></author>	</entry>

	</feed>