<br><br>
<div><span class="gmail_quote">On 2/18/07, <b class="gmail_sendername">Steve Dobson</b> &lt;<a href="mailto:steve@dobson.org">steve@dobson.org</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Gavin<br><br><br>As I know you&#39;ve installed Linux many times before I won&#39;t give details<br>full details, but here how I&#39;ve done it in the past.
<br><br>1). On your install machine (P3 for you) make sure that the disk is<br>&nbsp;&nbsp; configured as Master on the primary IDE bus.&nbsp;&nbsp;This is where it is<br>&nbsp;&nbsp; going to be when you plug it in the kiosk server, so that is where<br>
&nbsp;&nbsp; it MUST be when installing.</blockquote>
<div>&nbsp;</div>
<div>What? That&#39;s not so. I&#39;d done several installations with disks in weird locations and transferring them around to others. It can be an adventure to do so, because /etc/fstab needs to be set up appropriately, and because the grub needs to be set appropriately. It&#39;s easier if grub thinks that hd0 is the drive with grub on it, and it&#39;s consistent between machines. But grub is *extremely* flexible, and can be configured to deal with all sorts of nuttiness.
</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">2). Install as normal except deselect all options in the Task Select<br>&nbsp;&nbsp; phase.&nbsp;&nbsp;You are going to be moving the disk so you probably haven&#39;t
<br>&nbsp;&nbsp; got the same graphical hardware on the P3 as you have on the kiosk.<br>&nbsp;&nbsp; This means that you have to be comfortable with the CLI.&nbsp;&nbsp;You could<br>&nbsp;&nbsp; pick one of the server options if you want, but I find it easier<br>
&nbsp;&nbsp; to just apt-get install the software I need later.</blockquote>
<div>&nbsp;</div>
<div>That&#39;s a very common way to do it. Unfortunately, a lot of GUI installers have options that the text based instlalers don&#39;t. (Many text based installers aren&#39;t command line: they&#39;re ncurses based, with very simple clickable or &quot;move with the Tab key&quot; interfaces. I&#39;m curious what Debian actually does these days.)
</div>
<div>&nbsp;</div>
<div>It&#39;s also possible to use the graphical installation, and simply ignore its presence or even set /etc/inittab to boot in run level 3, to avoid the graphical interface until you have a chance to reconfigure it on the insalled machine. I&#39;ve used that technique as well.
</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">3). Let the disk reboot where it is.&nbsp;&nbsp;In days of old Debian use to install<br>&nbsp;&nbsp; a safe, run anywhere kernel and you picked a better one for your
<br>&nbsp;&nbsp; system later.&nbsp;&nbsp;Now they detect the CPU type during installation and<br>&nbsp;&nbsp; only install the best kernel for that CPU.&nbsp;&nbsp;You&#39;re moving the disk<br>&nbsp;&nbsp; to new hardware, so it is best to have a common CPU kernel that
<br>&nbsp;&nbsp; will boot on any x86 hardware.<br><br>&nbsp;&nbsp;&nbsp;&nbsp; # apt-get install linux-image-2.6-486</blockquote>
<div>&nbsp;</div>
<div>They don&#39;t have a 386 kernel? Not shocking, but perhaps a shade surprising.</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">4). Are you running the kiosk headless or are you going to plug in a<br>&nbsp;&nbsp; screen &amp; keyboard (possibly via a KVM)?&nbsp;&nbsp;If running headless then
<br>&nbsp;&nbsp; it is worth configuring for serial console.&nbsp;&nbsp;You need a null modem<br>&nbsp;&nbsp; cable but that&#39;s a lot cheaper than using a KVM if you don&#39;t already<br>&nbsp;&nbsp; have one.&nbsp;&nbsp;I&#39;ll not give details here (it will double the size of
<br>&nbsp;&nbsp; this post), but just say if that&#39;s what you want and I provide<br>&nbsp;&nbsp; details, there is only about three files to edit.&nbsp;&nbsp;But it if you&#39;re<br>&nbsp;&nbsp; going to go serial console you should test it before moving the disk
<br>&nbsp;&nbsp; when you have got a keyboard and screen connected and working.</blockquote>
<div>&nbsp;</div>
<div>Amen. Also remember that most motherboards will revert to their default settings after 3 failed reboots, so if you expect the serial console to always be available for BIOS resetting, make sure to password it for a kiosk, but be prepared to lose that serial console for BIOS settings if some idiot starts plugging and unplugging it, or you have a boot problem. This wouldn&#39;t be so bad except that most BIOS&#39;s have a default setting of &quot;If the keyboard doesn&#39;t seem happy, you have to type F1 to continue&quot;. This sucks but hard on a system without a keyboard. I know at least one company sells little Ps/2 plug-in widgets to satisfy this demand on keyboardless servers.
<br>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">5). Consider configuring a static IP address (edit /etc/network/interfaces,<br>&nbsp;&nbsp; &quot;man 5 interfaces&quot; for more information).&nbsp;&nbsp;If you&#39;re running DHCP,
<br>&nbsp;&nbsp; which most people are then when you move the disk and boot it on the<br>&nbsp;&nbsp; kiosk server it will be using different network hardware and therefore<br>&nbsp;&nbsp; your DHCP server (probably your ADSL router) will see it as a new
<br>&nbsp;&nbsp; computer and give it a new IP address.</blockquote>
<div>&nbsp;</div>
<div>That makes complete sense. What I prefer to do is to register the MAC addresses of individual hardware in the DHCP server: this way, the hostname is associated with the motherboard or Ethernet port, and remains consistent.
</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">6). You may as well install the SSH server so you can remotely log in<br>&nbsp;&nbsp; to your server.&nbsp;&nbsp;If you&#39;ve configured for a static IP this maybe
<br>&nbsp;&nbsp; your easiest way in after a booting on the kiosk server.<br><br>&nbsp;&nbsp;&nbsp;&nbsp; # apt-get install openssh-server<br><br>6). Shutdown, poweroff and then reboot where the disk is to double check<br>&nbsp;&nbsp; everything works as expected.&nbsp;&nbsp;Nothing worse than moving to the new
<br>&nbsp;&nbsp; hardware, booting and then finding you&#39;ve forgotten something and having<br>&nbsp;&nbsp; to move the disk back again.&nbsp;&nbsp;And I would recommending plugging the<br>&nbsp;&nbsp; install system (P3) back together until the kiosk server is up and working.
</blockquote>
<div>&nbsp;</div>
<div>Amen. Actually testing systems before expecting them to work elsewhere is priceless advice.<br>&nbsp;</div>
<div>And if you expect serial port access, you&#39;ll need to activate it in /etc/inittab. There are lots of guidelines on how to do it, but the key is to associate a getty with a specific serial port, and to make sure the serial port is working (which may require setserial commands in init scripts, or BIOS resettings.)
</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">7). Now shutdown and move the disk.&nbsp;&nbsp;If it boots and you can log on great!<br>&nbsp;&nbsp; If you can&#39;t go back to step 3 and try and fix the problem.
<br><br>8). Now install the software you want for the kiosk server.&nbsp;&nbsp;If you have<br>&nbsp;&nbsp; another machine on the network and can SSH into the kiosk server and<br>&nbsp;&nbsp; play.</blockquote>
<div>&nbsp;</div>
<div>By the way, if what you have comfortably available nearby is a Windows box, the latest version of Putty is great. It has built-in serial port access to replace that ghods-awful built-in Hyperterm, and even directly supports SOCKS proxy access for those of us inside restrictive firewalls.
</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">9). Take a look at the content of /proc/cpuinfo.&nbsp;&nbsp;This will report what<br>&nbsp;&nbsp; the kernel knows of the CPU it is running on.&nbsp;&nbsp;There maybe a better
<br>&nbsp;&nbsp; kernel for you.</blockquote>
<div>&nbsp;</div>
<div>Note for others of us: if you have a single CPU kernel, it won&#39;t detect multiple CPU&#39;s or hyperthreaded CPU&#39;s hardware this way. You need an SMP kernel to detect SMP: I&#39;ve never actually tried to detect i686 architecture from an i386 or i486 kernel, and would be pleased to know that this works.
</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Anyway, have fun and I hope this helps.&nbsp;&nbsp;If not bring the kiosk system with<br>you on Thursday.&nbsp;&nbsp;I will be bring my system for my talk on &quot;The Joy of X&quot;
<br>and I happen to have a Debian mirror on it so I may be able to get it<br>working.<br><br>Steve D.</blockquote>
<div>&nbsp;</div>
<div>I tend to work in RedHat/CentOS, but your advice is overall pretty sound.</div><br>&nbsp;</div>