<head></head><body bgcolor=""><table><tbody><tr><td colspan="2">I wrote this for CentOS, bujt it should work for FC5:<br><br><br>

<h2><a name="_Toc143327638"><!--[if !supportLists]--><span style=""><span style="">1.1<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">            
</span></span></span><!--[endif]-->Configuring Headless Operation</a></h2>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">By
configuring “headless” operating we will be able to manage the firewall via a
cable plugged into the serial port of the firewall.<span style="">  </span>This obviates the need to plug a keyboard and
monitor into it to perform changes.<span style="">  </span>Thus
the term “headless”.<o:p></o:p></span></p>

<h3 style=""><a name="_Toc143327639"></a><a name="_Toc142195170"><span style=""><!--[if !supportLists]--><span style=""><span style="">1.1.1<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">           
</span></span></span><!--[endif]-->Changes to /etc/inittab</span></a></h3>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">The
/etc/inittab file contains settings that get applied to the Operating Systems
at boot time.<span style="">  </span>There are some changes
that need to be made to these settings.<span style=""> 
</span>In order to edit the /etc/inittab file type:<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<div style="border: 1pt solid black; padding: 1pt 4pt; background: silver none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">

<p class="MsoNormal" style="border: medium none ; padding: 0in; background: silver none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><span style="font-size: 11pt; font-family: "Courier New";">vi /etc/inittab<o:p></o:p></span></p>

</div>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">Typing
this command will open the /etc/inittab file for editing.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">As
stated earlier the 18<sup>th</sup> line down is the run level line. Add the
following line to the file:<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-family: "Courier New";">S0:12345:respawn:/sbin/agetty
9600 linux<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">This
line sets the Operating System to be able to send boot time information to the
serial port in addition to the console.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">After
you have made these changes to the /etc/inittab file press the colon (: ) key
and then type wq to quit vi and save the changes.<a name="_Toc142195171"><o:p></o:p></a></span></p>

<p class="MsoNormal"><span style=""><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></span></p>

<h3><span style=""><a name="_Toc143327640"><!--[if !supportLists]--><span style=""><span style="">1.1.2<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">           
</span></span></span><!--[endif]-->Changes to /etc/securetty</a></span></h3>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">The
/etc/securetty sets the controls for which TTY devices that the root account
can log on via.<span style="">  </span>In order for us to be
able to log onto the serial console as root or to be able to su to root we must
add a line to the file.<span style="">  </span>In order to edit
the /etc/secuertty file type:<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<div style="border: 1pt solid black; padding: 1pt 4pt; background: silver none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">

<p class="MsoNormal" style="border: medium none ; padding: 0in; background: silver none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><span style="font-size: 11pt; font-family: "Courier New";">vi /etc/securetty<o:p></o:p></span></p>

</div>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">Typing
this command will open the /etc/secuertty file for editing.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">Add
the following line to the end of the file:<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-family: "Courier New";">ttyS0<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">This
line sets the Operating System to allow root to log on to the serial port in
addition to the console.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">After
you have made these changes to the /etc/securetty file press the colon (: ) key
and then type </span><span style="font-size: 11pt; font-family: "Courier New";">wq</span><span style="font-size: 12pt; font-family: "Times New Roman";"> to quit vi and save the
changes.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<h3 style=""><a name="_Toc143327641"></a><a name="_Toc142195172"><span style=""><!--[if !supportLists]--><span style=""><span style="">1.1.3<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">           
</span></span></span><!--[endif]-->Changes to the Boot Loader</span></a></h3>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">In
order for boot-time messages to be sent to the console, including the boot
loader information some changes must be made to the configuration file for
it.<span style="">  </span>The boot loader that CentOS uses is
GRUB.<span style="">  </span>As such, the configuration file is
/etc/grub.conf.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">The
first change that we must make is to add some lines after the timeout line in
the GRUB configuration file.<span style="">  </span>In order to
edit the /etc/grub.conf file type:<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<div style="border: 1pt solid black; padding: 1pt 4pt; background: silver none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">

<p class="MsoNormal" style="border: medium none ; padding: 0in; background: silver none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><span style="font-size: 11pt; font-family: "Courier New";">vi /etc/grub.conf<o:p></o:p></span></p>

</div>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">Typing
this command will open the /etc/grub.conf file for editing.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">Add
the following two lines after the timeout line in the configuration file:<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Courier New";">serial
--unit=0 --speed=9600<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Courier New";">terminal
--timeout=5 serial console<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">Another
change that we must make in the GRUB configuration file is to tell the kernel
to send out all kernel-level messages to the serial port in addition to the
console.<span style="">  </span>That is done by adding the
following line to the end of the kernel line:<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Courier New";">console=tty1
console=ttyS0<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">After
you have made these changes to the /etc/grub.conf file press the colon (: ) key
and then type </span><span style="font-size: 11pt; font-family: "Courier New";">wq</span><span style="font-size: 12pt; font-family: "Times New Roman";"> to quit vi and save the
changes.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">Once
you have made these changes reboot the system by typing by typing:<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<div style="border: 1pt solid black; padding: 1pt 4pt; background: silver none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">

<p class="MsoNormal" style="border: medium none ; padding: 0in; background: silver none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><span style="font-size: 11pt; font-family: "Courier New";">reboot<o:p></o:p></span></p>

</div>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman";">The
system will now reboot.<o:p></o:p></span></p>

<br><br><br><br></td></tr><tr><td bgcolor="blue" width="5"> </td><td>Hi .<br>I have  an install of fc5 on a normal ata note book hard drive, in an Ibase FWA7304 (it only has a serial port on vga).<br>I have managed to get it to work once then it broke and I cant get it to work again..<br>this is as far as it boots ....
<br><br>Booting 'Fedora Core (2.6.15-1.2054_FC5)'<br><br>root (hd0,0)<br> Filesystem type is ext2fs, partition type 0x83<br>kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ console=tty0 console=ttyS0,19<br>200n8<br>   [Linux-bzImage, setup=0x1e00, size=0x16eb71]
<br>initrd /initrd-2.6.15-1.2054_FC5.img<br>   [Linux-initrd @ 0x1edff000, 0xe0f81 bytes]<br><br>no matter how i reinstall the drive... I even used the hdd from my laptop with a full install of fc5 and it stops at exactly the same place ......
<br><br>here are my configs<br><br>/boot/grub/grub.conf<br>default=0<br>#timeout=5<br>serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1<br>terminal --timeout=10 serial console<br>#splashimage=(hd0,0)/grub/splash.xpm.gz
<br>#hiddenmenu<br>title Fedora Core (2.6.15-1.2054_FC5)<br>        root (hd0,0)<br>        kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ console=tty0 console=ttyS0,19200n8<br>        initrd /initrd-2.6.15-1.2054_FC5.img
<br><br>/etc/inittab<br>id:5:initdefault:<br><br># System initialization.<br>si::sysinit:/etc/rc.d/rc.sysinit<br><br>l0:0:wait:/etc/rc.d/rc 0<br>l1:1:wait:/etc/rc.d/rc 1<br>l2:2:wait:/etc/rc.d/rc 2<br>l3:3:wait:/etc/rc.d/rc 3
<br>l4:4:wait:/etc/rc.d/rc 4<br>l5:5:wait:/etc/rc.d/rc 5<br>l6:6:wait:/etc/rc.d/rc 6<br><br># Trap CTRL-ALT-DELETE<br>ca::ctrlaltdel:/sbin/shutdown -t3 -r now<br><br># When our UPS tells us power has failed, assume we have a few minutes
<br># of power left.  Schedule a shutdown for 2 minutes from now.<br># This does, of course, assume you have powerd installed and your<br># UPS connected and working correctly.<br>pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
<br><br># If power was restored before the shutdown kicked in, cancel it.<br>pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"<br><br><br># Run gettys in standard runlevels<br>1:2345:respawn:/sbin/mingetty tty1
<br>2:2345:respawn:/sbin/mingetty tty2<br>3:2345:respawn:/sbin/mingetty tty3<br>4:2345:respawn:/sbin/mingetty tty4<br>5:2345:respawn:/sbin/mingetty tty5<br>6:2345:respawn:/sbin/mingetty tty6<br><br># Run xdm in runlevel 5
<br>x:5:once:/etc/X11/prefdm -nodaemon<br>s0:12345:respawn:/sbin/agetty ttyS0 19200 vt102<br><br>/etc/sysconfig/init<br># color => new RH6.0 bootup<br># verbose => old-style bootup<br># anything else => new style bootup without ANSI colors or positioning
<br>BOOTUP=serial<br># Turn on graphical boot<br>GRAPHICAL=yes<br># column to start "[  OK  ]" label in<br>RES_COL=60<br># terminal sequence to move to that column. You could change this<br># to something like "tput hpa ${RES_COL}" if your terminal supports it
<br>MOVE_TO_COL="echo -en \\033[${RES_COL}G"<br># terminal sequence to set color to a 'success' color (currently: green)<br>SETCOLOR_SUCCESS="echo -en \\033[0;32m"<br># terminal sequence to set color to a 'failure' color (currently: red)
<br>SETCOLOR_FAILURE="echo -en \\033[0;31m"<br># terminal sequence to set color to a 'warning' color (currently: yellow)<br>SETCOLOR_WARNING="echo -en \\033[0;33m"<br># terminal sequence to reset to the default color.
<br>SETCOLOR_NORMAL="echo -en \\033[0;39m"<br># default kernel loglevel on boot (syslog will reset this)<br>LOGLEVEL=3<br># Set to anything other than 'no' to allow hotkey interactive startup...<br>PROMPT=yes<br>
<br>/etc/sysconfig/kudzu<br># Set to anything other than 'no' to force a 'safe' probe on startup.<br># 'safe' probe disables:<br># - serial port probing<br># - DDC monitor probing<br># - PS/2 probing<br>SAFE=yes<br><br>/etc/securetty
<br>console<br>ttyS0<br>vc/1<br>vc/2<br>vc/3<br>vc/4<br>vc/5<br>vc/6<br>vc/7<br>vc/8<br>vc/9<br>vc/10<br>vc/11<br>tty1<br>tty2<br>tty3<br>tty4<br>tty5<br>tty6<br>tty7<br>tty8<br>tty9<br>tty10<br>tty11<br><br>/etc/selinux/config
<br># This file controls the state of SELinux on the system.<br># SELINUX= can take one of these three values:<br>#       enforcing - SELinux security policy is enforced.<br>#       permissive - SELinux prints warnings instead of enforcing.
<br>#       disabled - SELinux is fully disabled.<br>SELINUX=disabled<br># SELINUXTYPE= type of policy in use. Possible values are:<br>#       targeted - Only targeted network daemons are protected.<br>#       strict - Full SELinux protection.
<br>SELINUXTYPE=targeted<br><br><br><br>So what have I missed ?<br>I used the following howto...<br><a href="http://bluequartz.org/~oda/docs/serial/index.html">http://bluequartz.org/~oda/docs/serial/index.html</a><br>and<br>
<a href="http://taosecurity.blogspot.com/2004/06/fedora-core-2-based-soekris-system.html">http://taosecurity.blogspot.com/2004/06/fedora-core-2-based-soekris-system.html</a><br><br><br>Many Thanks in advance<br>
-- <br>Gregory Machin<br><a href="mailto:gregory.machin@gmail.com">gregory.machin@gmail.com</a><br><a href="http://www.linuxpro.co.za">www.linuxpro.co.za</a>
</td></tr></tbody></table></body>