Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Headless Install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
rubicon
n00b
n00b


Joined: 01 Jan 2004
Posts: 30
Location: New Jersey, USA

PostPosted: Mon May 15, 2006 5:41 pm    Post subject: Headless Install Reply with quote

Is there document out there for installing Gentoo via LiveCD only using a serial Connection.

I understand Grub will output to Serial. I have never run Linux via a console. So I am looking for documentation on out putting CLI to the console after Grub.
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Mon May 22, 2006 9:02 am    Post subject: Reply with quote

I can't remember where I fould this stuff, but it may help your situation.

First off you need to tell grub to listen to the serial port when grub starts.

To do this, add the following to your grub.conf

Code:
serial --unit=0 --speed=9600
terminal --timeout=15 console serial


This tells grub to listen to the serial port 0 (i.e. COM1) for 15 seconds before it defaults to the normal screen console.

On both the serial and the console you will have seen a repeated "press any key" message. This is so grub knows if it should listen to the serial port or the keyboard for menu instructions. This way, you can select a different kernel to boot from via the serial port.

Once that's done, you need to edit your grub config for booting the kernel. I use the following on a software raid booting maching:

Code:
title=Gentoo (2.6.16-gentoo-r3) Console
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.16-gentoo-r3 real_root=/dev/md2 console=ttyS0 console=tty1 vga=791
initrd /initramfs-genkernel-x86-2.6.16-gentoo-r3

title=Gentoo (2.6.16-gentoo-r3) Serial
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.16-gentoo-r3 real_root=/dev/md2 console=tty1 console=ttyS0 vga=791
initrd /initramfs-genkernel-x86-2.6.16-gentoo-r3


The differences are the console= sections. Grub seems to default to the last setting (I'm not sure if you really need them both on each line).

so, you'll need to add:

Code:
console=ttyS0 console=tty1


to the console boot and add:

Code:
console=tty1 console=ttyS0


to the serial boot system.

Oh, and you'll also need to compile Serial Consols Support

Device Drivers -> Character devices -> Serial drivers and then activate:

Console on 8250/16550 and compatible serial port.

Next, you'll need to edit your /etc/inittab file and uncomment the required lines as follows:

Code:
# SERIAL CONSOLES
s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100


This will enable the login prompt to appear on ttyS0 so you can log in.

I hope this helps.
Back to top
View user's profile Send private message
rubicon
n00b
n00b


Joined: 01 Jan 2004
Posts: 30
Location: New Jersey, USA

PostPosted: Wed Jun 07, 2006 5:02 pm    Post subject: Thank You Reply with quote

Thank you.
I should have a chance to try it out htis week or next.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum