Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th March 2012, 02:12 PM
dave539 Offline
Registered User
 
Join Date: Jun 2011
Posts: 30
windows_xp_2003opera
Fedora 15 how to run mgetty -D ttyUSB0

This used to work in F14. I'm trying to get getty running on a USB serial device. Apparently some things are different in F15 and so what used to work no longer does.

So far, everywhere I've looked has information that points nowhere. Example, /etc/inittab says ttys are in a file called serial.conf. I don't have any such file. On the net there is apost to "systemd". It says something about creating a link in a directory system/system/getty.target/.... Well, on my system getty.target is a regular file, not a directory.

So my question is, how do I run in Fedora 15

/sbin/mgetty -D ttyUSB0

Please no pointers to incorrect documentation.

Thanks.
Reply With Quote
  #2  
Old 6th March 2012, 02:52 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,620
linuxfirefox
Re: Fedora 15 how to run mgetty -D ttyUSB0

try running the command to start a getty

Code:
su -
(root password)

systemctl start serial-getty@ttyUSB0.service
If that works, you can have it create it for you on every boot

Code:
ln -sf /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants getty@ttyUSB0.service
systemctl daemon-reload
systemctl start getty@ttyUSB0.service
Edit:

Forgot to mention that you can also get the status of it after starting it as well:

Code:
systemctl status serial-getty@ttyUSB0.service
Should give you output similar to this:
Code:
serial-getty@ttyUSB0.service - Serial Getty on ttyUSB0
	  Loaded: loaded (/lib/systemd/system/serial-getty@.service)
	  Active: active (running) since Tue, 6 March 2012 09:05:55 -0600; 3min 24s ago
	Main PID: 1273 (agetty)
	  CGroup: name=systemd:/system/serial-getty@.service/ttyUSB0
		  └ 1273 /sbin/agetty -s ttyUSB0 115200 38400 9600

Last edited by DBelton; 6th March 2012 at 03:11 PM.
Reply With Quote
Reply

Tags
fedora, mgetty, run, ttyusb0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is the /dev/ttyUSB0 (modem) locked? marko Servers & Networking 2 12th December 2011 05:09 AM
fedora 13 inittab for ttyUSB0 ikirko Using Fedora 2 7th July 2011 11:50 AM
Fedrora 6 /dev/ttyUSB0 not found VectorPrime EOL (End Of Life) Versions 0 21st June 2011 04:11 PM
GNOME PPP and ttyUSB0 HaroldHallikain Servers & Networking 0 10th December 2007 03:39 AM
How do i enable dial in using mgetty on fedora 5 fedora-rookie Servers & Networking 0 22nd December 2006 02:37 AM


Current GMT-time: 19:48 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat