LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-12-2006, 07:25 PM   #1
ewtar
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Smile Turn On Serial Port in Fedora 6


In Fedora 6, xen is installed which take over serial port 1 ttyS0 for xm console. How can I get the serial port back for other use?

Thanks!
 
Old 12-09-2006, 06:33 PM   #2
Coremac
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Turn On Serial Port in Fedora 6

Hello:

Not sure if you have resolved this issue or not, but I ran into the same issue when attempting to set up a HA cluster. I installed the stock Fedora 6 distribution. Could not get the serial ports to work. I finally just installed the non-Xen Kernel.

1. Grab the yumdownloader which is part of the yum-utils packages
sudo yum install yum-utils

2. Download the non-Xen Kernel.
sudo yumdownloader kernel-2.6.18-1.2798.fc6.i686

3. Install the new Kernel.
sudo rpm -Uvh --replacefile --replacepkgs kernel-2.6.18-1.2798.fc6.i686
If this is successful, the new Kernel will be installed and /etc/grub.conf will be modified.

4. Stop the Xen services that are running.
sudo /sbin/chkconfig --list |grep xen
Password:
xend 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xendomains 0:off 1:off 2:off 3:on 4:on 5:on 6:off

sudo /sbin/chkconfig --level 2345 xend off
sudo /sbin/chkconfig --level 345 xendomains off
sudo /sbin/service xend stop
sudo /sbin/service xendomains stop

5. Modify the /etc/grub.conf file.
sudo cp /etc/grub.conf /etc/grub.conf-xen
sudo vi /etc/grub.conf

At this point either comment out the xen related kernel information(#) or delete that information. Here what a copy of my grub.conf looks like.

default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 console=ttyS0,9600n8r
initrd /initrd-2.6.18-1.2798.fc6.img

6. Now re-boot the box so that the new Kernel is running.

I was able to login via the ttyS0 without issue after this.

I hoped this helps.

Last edited by Coremac; 12-09-2006 at 06:34 PM.
 
Old 12-09-2006, 07:31 PM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Is there a /etc/inittab entry for the serial port?
 
Old 12-10-2006, 08:23 AM   #4
Coremac
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Turn On Serial Port in Fedora 6

I normally put the following in my inittab to allow access via the serial console.

s0:2345:respawn:/sbin/agetty -L -f /etc/serialissue 9600 ttyS0 vt100

Please ensure you have agetty installed, on Fedora Core 6 is was part of the base package.

To restart the inittab run the following
sudo telinit Q

You should now see the follow process running the ps command

ps -aef |grep agetty
root 5093 1 0 Dec09 ttyS0 00:00:00 /sbin/agetty -L -f /etc/serialissue 9600 ttyS0 vt100

Using a serial cable, you should be able to access your box via the serial port.

I hope you found this helpful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
serial port mouse in fedora core 3 farzi Linux - Hardware 1 02-15-2006 07:38 PM
Serial port,cu, fedora core 2 issues minibootsy Linux - Networking 3 02-18-2005 03:27 PM
turn off http port 80, keep https port 443 lothario Linux - Networking 6 02-11-2005 04:06 AM
Serial Port not recognized in Fedora 2 Ignorant_User Linux - General 0 01-04-2005 10:34 PM
Red Hat Linux ver.10 Fedora core is not connecting Reliance LG2030 to serial port? mann_nanda21 Linux - Hardware 1 07-08-2004 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration