LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2012, 02:07 PM   #1
vsandilya
Member
 
Registered: Jan 2008
Posts: 31

Rep: Reputation: 1
serial port access to a linux box (running fedora 12) via a dial up modem


Hello

I have a linux laptop running fedora 12 with uucp installed. I am connecting a connecting a dial up modem via the serial port.

I use the cu -l /dev/ttyS0 -s 9600 command to connect to the modem and that works.

Now, when I dial into this modem through another computer (running windows using hypertermial, I get connected but I don't get a unix prompt.

Is there something in the scripts that I should alter to allow access to the linux box?

Thanks
 
Old 08-02-2012, 03:50 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,661

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
vsandilya
you are aware that fedora 12 is DEAD
it is 5 versions OUT OF DATE
And it hit it's END OF LIFE on "2010-12-02"
almost two years ago

there have been NO updates or security fixes in almost two years
And there NEVER WILL BE ANY


please install the CURRENT version FIRST !! before you do anything else
the VERY next thing to do is install fedora 17 !!
 
Old 08-02-2012, 03:57 PM   #3
vsandilya
Member
 
Registered: Jan 2008
Posts: 31

Original Poster
Rep: Reputation: 1
Hello John VV

Yes, I am aware. I still feel there should be a simple fix that should allow me to connect to the system without having to upgrade. I would personally upgrade but its a company laptop and I am a little hesitant to make major changes if I can get by without it.

Thanks
 
Old 08-02-2012, 04:56 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
You need to set up a serial console on the laptop. You should find some help in google by searching for "serial console". This is how I did it on a fit-PC running Mint, the commands will probably be different but the approach should be the same on Fedora.

http://www.fit-pc.com/forum/viewtopi...507aea3c030ada
 
Old 08-02-2012, 06:20 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,229

Rep: Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652Reputation: 3652
Look here for a starting point maybe. http://tldp.org/HOWTO/Modem-HOWTO-12.html
 
Old 08-03-2012, 02:48 PM   #6
vsandilya
Member
 
Registered: Jan 2008
Posts: 31

Original Poster
Rep: Reputation: 1
I did the following to get it to work

Backed up the grub.conf file and added this to the top of the existing file

serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 console serial

Added this to each line beginning with kernel(there were 2 in my case).

console=ttyS0,9600n8 console=tty0

Finally created a file called ttyS0 in /etc/event.d and put the following contents in it.

# ttyS1 - agetty
#
# This service maintains a getty on ttyS1 from the point the system is
# started until it is shut down again.

start on stopped rc1
start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5

stop on shutdown

respawn
exec /sbin/agetty -L -f /etc/issue 9600 ttyS1 vt100

I was able to connect a modem and dial into it but didn't get a login prompt. I chaned the permissions on the /etc/event.d/ttyS0 and then bingo...
 
  


Reply

Tags
linux command


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Remote access to a Linux RHEL4 server from a ein xp pc using a dial up modem unmesh110 Linux - Networking 1 03-02-2012 10:21 PM
access virtual box serial port from host wykthorr Linux - Virtualization and Cloud 2 04-06-2010 12:42 AM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 09:07 PM
PPP dial in server using Specilix Multiple Serial port In Linux 9.0 pawan Linux - Networking 0 09-17-2003 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:30 PM.

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