LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-19-2008, 06:01 PM   #1
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 546

Rep: Reputation: 30
Exclamation Pseudo Terminal Problem


I run debian lenny and i'm having issues with all the terminals avialable . When i launch kde konsole or gnome-terminal it says:

Code:
Konsole is unable to open a PTY (pseudo teletype). It is likely that this is due to an incorrect configuration of the PTY devices. Konsole needs to have read/write access to the PTY devices.
With an another console it also says:

Code:
Cannot open /dev/ttyS0 : Permission denied
With apt-get i was installing some softwares and i saw an another error asking me if /dev/pty was mounted .....

Last edited by gabsik; 07-19-2008 at 06:45 PM.
 
Old 07-19-2008, 06:55 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Hmm... I can't even find any 'pty' on my system. As for the 'ttyS0', I get this:

ls -l /dev/ttyS0
lrwxrwxrwx 1 root root 5 Jul 20 2008 /dev/ttyS0 -> tts/0

ls -l /dev/tts/0
crw-rw---- 1 root dialout 4, 64 Jul 20 2008 /dev/tts/0

Did you check the permissions on your serial port so anyone in the 'dialout' group can use it?

I'm still wondering why your console wants a pty or ttyS0 though.
 
Old 07-19-2008, 09:18 PM   #3
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 546

Original Poster
Rep: Reputation: 30
It's not on my system either .
From the shell if i use the completition it says :
Code:
/dev/fd/0 no such file o directory
this error comes out just after i press the completition tab , it's a fresh debian install ... debian sid .

Last edited by gabsik; 07-19-2008 at 09:21 PM.
 
Old 07-19-2008, 09:38 PM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
What completion is this? What command are you trying to complete?
 
Old 07-21-2008, 11:13 AM   #5
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 546

Original Poster
Rep: Reputation: 30
If i try to complete any command , i think it's a bash script issue . Or /etc/bash.bashrc or /etc/bash_completition .
 
Old 07-21-2008, 11:43 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
I run debian lenny and i'm having issues with all the terminals avialable
Forgetting about X window and KDE, what happens if you log in at the console?

What happened since it was working?
Did you update udev?
apt-cache policy udev

Last edited by nx5000; 07-21-2008 at 11:45 AM.
 
Old 07-22-2008, 08:37 AM   #7
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 546

Original Poster
Rep: Reputation: 30
if i launch konsole , gnome says :

Code:
Cannot open /dev/ttyS0 : Permission denied
If i try to connect to this host through ssh the command gets stuck after it asked the key's password.
In the 'real shell' if i use completion tab on any command it says of a /dev/fd/0 as sayd above .
It is rally strange , whatever terminal , or form of console bash having to do with devices like /dev/pty .

Code:
Konsole is unable to open a PTY (pseudo teletype). It is likely that this is due to an incorrect configuration of the PTY devices. Konsole needs to have read/write access to the PTY devices.
That's all i can say i will try to post more debugging output next posts
Thanks
 
Old 07-23-2008, 02:58 PM   #8
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 546

Original Poster
Rep: Reputation: 30
If i try to login by ssh i get this:

Quote:
Server refused to allocate PTY
 
Old 07-25-2008, 05:00 AM   #9
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 546

Original Poster
Rep: Reputation: 30
When i launch a terminal i also get this:

Code:
There was an error creating the child process for this terminal
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pseudo terminal programming Alien_Hominid Programming 5 01-20-2008 04:19 AM
pseudo terminal - scp problem vdx Programming 9 08-22-2007 03:37 AM
Switch to pseudo terminal you didn't log out of? xnomad Linux - General 2 07-19-2005 12:35 AM
Questions about (Pseudo)Terminal devices beginner16 Programming 0 04-09-2004 10:03 AM
Pseudo Terminal Problems ailiez Programming 2 02-09-2004 01:58 AM


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