LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Pseudo Terminal Problem (https://www.linuxquestions.org/questions/linux-software-2/pseudo-terminal-problem-656892/)

gabsik 07-19-2008 06:01 PM

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 .....

pinniped 07-19-2008 06:55 PM

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.

gabsik 07-19-2008 09:18 PM

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 .

pinniped 07-19-2008 09:38 PM

What completion is this? What command are you trying to complete?

gabsik 07-21-2008 11:13 AM

If i try to complete any command , i think it's a bash script issue . Or /etc/bash.bashrc or /etc/bash_completition .

nx5000 07-21-2008 11:43 AM

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

gabsik 07-22-2008 08:37 AM

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

gabsik 07-23-2008 02:58 PM

If i try to login by ssh i get this:

Quote:

Server refused to allocate PTY

gabsik 07-25-2008 05:00 AM

When i launch a terminal i also get this:

Code:

There was an error creating the child process for this terminal


All times are GMT -5. The time now is 06:35 PM.