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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-02-2005, 06:26 AM
|
#1
|
Member
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705
Rep:
|
how to connect to a ttypX?
I have something running on the /dev/ttyp0 of my PC? How can i connect to this port?
|
|
|
12-02-2005, 11:31 PM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
It's not a port, it's a pseudoterminal. If you have sufficient privileges you can read.write the /dev/ttyp0. Saying what exactly you're running and what you're trying to do would be of great help in giving a more useful answer than this.
|
|
|
12-03-2005, 03:34 AM
|
#3
|
Member
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705
Original Poster
Rep:
|
I have started Qemu OS emulator. I tried to read it with "cat< /dev/ttypX", but that didn't give me any output.
|
|
|
12-03-2005, 01:25 PM
|
#4
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
From where did you start qemu? The one and only time I ever played with it, I just typed qemu into a terminal and it popped up a little window on the screen and ran. Did yours not do this?
|
|
|
12-03-2005, 04:22 PM
|
#5
|
Member
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705
Original Poster
Rep:
|
Sorry, i didn't mention everything:
- I logged in my debian amd64 server via ssh
- I chrooted to the ia-32 environment
- I started qemu with the "-nographic" option
and started playing with these options:
Code:
`-serial dev'
Redirect the virtual serial port to host device dev. Available devices are:
vc
Virtual console
pty
[Linux only] Pseudo TTY (a new PTY is automatically allocated)
null
void device
stdio
[Unix only] standard input/output
The default device is vc in graphical mode and stdio in non graphical mode. This option can be used several times to simulate up to 4 serials ports.
|
|
|
12-03-2005, 05:08 PM
|
#6
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
Look into minicom, that should do exactly what you want 
|
|
|
All times are GMT -5. The time now is 10:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|