Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't get more virtual terminals
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
josimitsu
n00b
n00b


Joined: 10 Jun 2002
Posts: 22

PostPosted: Mon Jun 10, 2002 1:10 pm    Post subject: can't get more virtual terminals Reply with quote

since i was recompiling my kernel, i can't have more virtual terminals
running (except one). I'm able to have only one instance of konsole (kde's xterm) running, but not more ! I'm getting this
<error>
ptsname: No such file or directory
konsole_grantpty: found '/dev/tty/m0' not to be a character device, konsole: chownpty failed for device /dev/ptyp0::/dev/ttyp0.
This means session can't be eavesdroped. Make sure konsole_grantpty is instaled in /usr/kde/3/bin and setuid to root.
</error>.
I took a look at konsole_grantpty and it has a suid bit on. when i want to run xtern it crasches with segmentation fault. I compiled my kernel with devfs support and try it to compile w/ and w/o /dev/pts support, but it still doesn't work. coul anybody help me with it ?
thx j.


Last edited by josimitsu on Tue Jun 11, 2002 12:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jun 10, 2002 1:29 pm    Post subject: Reply with quote

Go into your kernel configuration and look at Character Devices. Make sure Unix98 PTY support is on, and check the number of maximum PTYs in use.
Back to top
View user's profile Send private message
josimitsu
n00b
n00b


Joined: 10 Jun 2002
Posts: 22

PostPosted: Mon Jun 10, 2002 1:37 pm    Post subject: Reply with quote

my kernel is instaled with unix98 PTY support and i have a default value (256) of maximum number of PTYs in use
Back to top
View user's profile Send private message
james
n00b
n00b


Joined: 24 Apr 2002
Posts: 56
Location: Middle Smithfield, PA

PostPosted: Mon Jun 10, 2002 11:54 pm    Post subject: Reply with quote

See what Inittab in /etc sez for gettys.....
_________________
17 Opps It's 19 now ;-) Gentoo's and counting
Back to top
View user's profile Send private message
josimitsu
n00b
n00b


Joined: 10 Jun 2002
Posts: 22

PostPosted: Tue Jun 11, 2002 12:08 pm    Post subject: Reply with quote

in my inittab is something like that:
# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

and maybe this line is interesting also:
# System initialization (runs when system boots).
#DE:S12345:respawn:/sbin/devfsd /dev -fg

should be this commented out ?
Back to top
View user's profile Send private message
phaze3k
n00b
n00b


Joined: 24 Apr 2002
Posts: 36

PostPosted: Wed Jun 12, 2002 3:50 pm    Post subject: Reply with quote

Do you definatly have devfs support in your kernel?
Back to top
View user's profile Send private message
josimitsu
n00b
n00b


Joined: 10 Jun 2002
Posts: 22

PostPosted: Wed Jun 12, 2002 6:28 pm    Post subject: Reply with quote

yes i have devfs support and within my mounts there is a /dev mounted with devfs. Also when kernel is booting i can see devfs support. other programs which try to open tty device, giving me an error "can't connect to pty_master" so i think problem is that my /dev is not up-to-date with real system status (see another topic in hardware section "cannot access my new attached hardrive"). in /proc seems everything is OK.
Back to top
View user's profile Send private message
fmalabre
Guru
Guru


Joined: 19 Jun 2002
Posts: 376
Location: Chicago

PostPosted: Fri Jul 26, 2002 11:52 pm    Post subject: Reply with quote

I have a similar issue with kdevelop.

This is what I have on my stderr tab when i run a program:

==========================================
konsole_grantpty: found `/dev/tty/m1' not to be a character device.
konsole: chownpty failed for device /dev/ptyp1::/dev/ttyp1.
: This means the session can be eavesdroped.
: Make sure konsole_grantpty is installed in
: /usr/kde/3/bin/ and setuid root.
konsole_grantpty: found `/dev/tty/m1' not to be a character device.
==========================================

I have devfs and everything.
I use kdevelop 2.1.2

Any idea anybody?

Thanks,
Fred.
Back to top
View user's profile Send private message
gullevek
n00b
n00b


Joined: 09 Mar 2003
Posts: 23

PostPosted: Tue Mar 11, 2003 11:38 am    Post subject: ttyp0 problem with devfs Reply with quote

after update from devfs (I use ~x86) I too have an error msg with ttyp0

during start (after: Cleaning /temp and before Setting user font...) I get modprobe: modprobe: Can't locate module /dev/ttyp0

during the first start (after update devfs) I also got another error from gpm, but the missing /dev/ points where recreated.

sounds familiar ?!? I am puzzled. This is my first time with devfs ...

lg, gul
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum