LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-02-2005, 06:26 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
how to connect to a ttypX?


I have something running on the /dev/ttyp0 of my PC? How can i connect to this port?
 
Old 12-02-2005, 11:31 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 12-03-2005, 03:34 AM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
I have started Qemu OS emulator. I tried to read it with "cat< /dev/ttypX", but that didn't give me any output.
 
Old 12-03-2005, 01:25 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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?
 
Old 12-03-2005, 04:22 PM   #5
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Original Poster
Rep: Reputation: 30
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.
 
Old 12-03-2005, 05:08 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Look into minicom, that should do exactly what you want
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to connect a squid proxy to connect to another squid proxy server bellerophon Linux - Newbie 1 02-07-2006 06:52 AM
can't connect wifi at home, but can connect everywhere else Javi2 SUSE / openSUSE 1 08-25-2005 06:49 PM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Problem withInternet, DHCP, connect with eth0 down work, connect with eth0 up not zowey Linux - Networking 1 03-12-2004 10:05 AM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:09 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