LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-11-2015, 03:13 AM   #1
iskenderoguz
LQ Newbie
 
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
"get_pty: not enough ptys" error


I tried to open terminal using
Code:
xterm&
command. First four xterm commands work but when I typed xterm for fifth time, I get
Code:
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys
Exit 32
How can I solve this ?

my kernel is : debian 2.6.30
 
Old 02-11-2015, 07:56 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
2.6.30 is a really old kernel upgrade your system before you do anything else, remember to back up important data first!
 
Old 02-12-2015, 08:02 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Try this:

Code:
cat /proc/sys/kernel/pty/max /proc/sys/kernel/pty/nr
 
1 members found this post helpful.
Old 12-17-2019, 12:02 AM   #4
shevegen
Member
 
Registered: May 2004
Distribution: Slackware / GoboLinux / LFS / VoidLinux
Posts: 145

Rep: Reputation: 26
I am running into this problem in an incomplete chroot environment, after having set:

export DISPLAY=:0.0

Not sure how to resolve this but I mention it if others find this thread here.

Edit: I just resolved it following LFS.

These were the commands:

export LFS=/Depot/Chroot

mknod -m 600 $LFS/dev/console c 5 1
mknod -m 666 $LFS/dev/null c 1 3
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run


Not sure which one solved it but now I can start xterm from the
chrooted environment. \o/

Last edited by shevegen; 12-17-2019 at 12:07 AM.
 
Old 09-10-2020, 09:17 PM   #5
Kona Arctic
LQ Newbie
 
Registered: Sep 2020
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by shevegen View Post
I am running into this problem in an incomplete chroot environment, after having set:

export DISPLAY=:0.0

Not sure how to resolve this but I mention it if others find this thread here.

Edit: I just resolved it following LFS.

These were the commands:

export LFS=/Depot/Chroot

mknod -m 600 $LFS/dev/console c 5 1
mknod -m 666 $LFS/dev/null c 1 3
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run


Not sure which one solved it but now I can start xterm from the
chrooted environment. \o/
Trying each in my chroot suggests it's
Code:
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Regarding "The system has no more no more ptys..." error in LFS 7.5 nisargshah95 Linux From Scratch 9 03-27-2014 01:05 AM
screen error "no more PTYs" darcon3k Linux - Software 10 04-19-2011 04:30 PM
expect -c "spawn ls" The system has no more ptys status1 Linux From Scratch 12 03-29-2008 08:51 PM
"there are no more ptys" error!..pls help!! chakkaradeepcc Linux From Scratch 3 05-07-2005 12:48 PM
xterm not spawning "not enough ptys" sohmc Linux - General 4 09-23-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:01 AM.

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