Ask Your Question
1

How to setup serial port in fedora 16

asked 2012-04-11 13:14:43 -0500

tratem1 gravatar image

In fedora 15 you just had to add some lines in grub.conf and in fedora 16 the file looks different and is in a different directory grub2 does anyone have an idea what to set up.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
1

answered 2012-10-05 09:35:34 -0500

threeonefourtwo gravatar image

I had to work this out on F17 but I think the process would work on F16 as well because its still grub2. I blogged about the solution

edit flag offensive delete link more

Comments

Your blog looks good (+1), but could you also provide a brief summary here, in case the blog goes offline, and for extra help to people looking for a quick answer? Thank you very much!

mattdm gravatar imagemattdm ( 2012-10-05 13:10:08 -0500 )edit
0

answered 2012-10-26 07:08:39 -0500

threeonefourtwo gravatar image

updated 2012-10-26 07:09:42 -0500

I am copying from my blog post as suggested by Matt This appeared first at http://threeonefourtwo.wordpress.com/2012/10/04/enabled-serial-console-on-fedora-17-not-just-grub2/

[snip]

WARNING: I have tried this on a virtual machine. I have not tried this on bare metal. So beware !

This is an aid to my memory. I was unable to find a single document about how I could interact entirely with F17 through serial console. So here goes.

My /etc/default/grub file looks like this

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="text rd.md=0 rd.dm=0 KEYTABLE=us SYSFONT=True rd.luks=0 rd.lvm.lv=vg_prod231-148/lv_root rd.lvm.lv=vg_prod231-148/lv_swap LANG=en_US.UTF-8 rd_NO_PLYMOUTH console=ttyS0,115200 console=ttyS0"
GRUB_GFXMODE=text
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"

Then I ran

/sbin/grub2-mkconfig /boot/grub2/grub.cfg
/bin/ln -s /lib/systemd/system/serial-getty@.service /etc/systemd/system/getty.target.wants/serial-getty@ttyS0.service
/sbin/reboot

Thats all. Now I can connect to the console and see all the boot-time messages including the dracut messages. I can also log in over the console.

[/snip]

edit flag offensive delete link more
0

answered 2012-04-26 13:23:08 -0500

Akshay gravatar image

According to the Fedora 16 documentation /etc/rc.serial is responsible for setting up the serial lines.(http://docs.fedoraproject.org/en-US/Fedora/16/html/Installation_Guide/s1-boot-init-shutdown-run-boot.html)

rpm -qd setserial shows the available documentation. There is a README and a sample rc.serial file - see the README.

and check for this package if installed https://admin.fedoraproject.org/pkgdb/acls/name/setserial

edit flag offensive delete link more
-1

answered 2012-04-25 12:04:45 -0500

mether gravatar image

Fedora 15 uses legacy GRUB. Fedora 16 onwards uses GRUB2. Lookup GRUB2 manual for configuration differences.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-11 13:14:43 -0500

Seen: 7,487 times

Last updated: Oct 26 '12