LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-24-2005, 05:54 AM   #1
Laoch
LQ Newbie
 
Registered: Aug 2005
Location: Luimneach, Eire
Distribution: Ubuntu (after SuSE sold out)
Posts: 16

Rep: Reputation: 0
Problems with ttyS1 as a Terminal


I have tried to get ttyS1 on a Linux box to be a terminal. To the port I connected a second linux box with a serial cablepair/null modem setup and have minicom running. On the first linux box I did the following:

To the file /boot/grub/menu/menu.lst

1) Added to the kernel line "console=ttyS1,9600"

kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 vga=0x317 selinux=0 splash=silent resume=/dev/hda1 showopts console=ttyS1,9600

2) added the following two lines to the top of the file

serial --unit=1 --speed=9600
terminal --timeout=10 serial console

To the file /etc/inittab I added

s1:2345:respawn:/sbin/agetty -L ttyS1 9600 vt102

When I reboot I do get output to the minicom terminal on the second box and I get a login prompt as below but I cannot type into the terminal (its like view only):

...
...
...
Starting HAL daemon done
Master Resource Control: runlevel 5 has been reached
Skipped services in runlevel 5: nfs smbfs

Welcome to SuSE Linux 9.3 (i586) - Kernel 2.6.11.4-20a-default (ttyS1).

linux login:
 
Old 08-24-2005, 08:16 AM   #2
Laoch
LQ Newbie
 
Registered: Aug 2005
Location: Luimneach, Eire
Distribution: Ubuntu (after SuSE sold out)
Posts: 16

Original Poster
Rep: Reputation: 0
Please ignore thread

upon further troubleshooting the problem turned out to be the length of the serial cables. Using shorter serial cables and the problem disappeared. Take the thread as a How-To setup serial terminal for Linux.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
serial port (ttyS1) - Sending commands via terminal... HELP!!! Nalorin Linux - Networking 2 08-21-2005 10:22 PM
modem on ttyS1 ?? skguha Linux - Newbie 6 08-18-2005 07:08 PM
ttyS1 problem or whot? Xon Linux - Hardware 2 12-01-2004 05:52 AM
No such device /dev/ttyS1 gsancho Debian 3 09-23-2004 05:40 PM
parse info from ttyS1 franklin97355 Programming 1 12-31-2003 01:57 AM


All times are GMT -5. The time now is 08:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration