dannyman.toldme.com


Linux, Technical

Install Red Hat via Serial Console

This is an easy problem, but Googling the answer didn’t immediately return a great solution.

I want to install Red Hat Enterprise Linux via serial console. How to set that up? Red Hat says how. Hook up a keyboard / monitor, and at the boot prompt, enter:

linux text console=ttyS0

Now, I have to figure out what driver to load to get the system running on my Marvell SATA controller, but if you have a running (Fedora) system, you can configure serial console by editing /boot/grub/grub.conf:

  1. Comment out the splashimage directive
  2. Add the serial and terminal lines, seen in bold
  3. Add the console argument to the kernel, mind the \ on the line before

Your grub.conf will look something like this: (changes in bold)

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
serial --unit=0 --speed=9600
terminal --timeout=5 serial console
hiddenmenu
title Fedora Core (2.6.9-1.667smp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-1.667smp ro root=LABEL=/ rhgb quiet \
                console=ttyS0,9600n8
        initrd /initrd-2.6.9-1.667smp.img
title Fedora Core-up (2.6.9-1.667)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.9-1.667.img

The neat thing is that at least Fedora will notice this change when you boot, and offer to configure the /etc/ttys and whatnot for you.

Read More

Next:
Previous:
Categories: Linux, Technical

Comment

Leave a comment . . .

Tiny Print:

  1. For private messages, e-mail me: dannyman@toldme.com.
  2. You must provide an e-mail address.
  3. You can use a bogus e-mail address, but I like to know who you are.
  4. I will not spam you. I will not publish or share your e-mail address.
  5. First-time commenters will be held for review.
  6. You can use these HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>