LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-07-2004, 01:32 PM   #1
slack_baby
Member
 
Registered: Feb 2004
Posts: 37

Rep: Reputation: 15
commands are not working in kernel 2.6.9


hi all
i hav just upgraded my kernel 2.4.26 to 2.6.9
after it ... i start getting these errors .....

Code:
bash-2.05b# rxvt
rxvt: could not obtain control of tty

bash-2.05b# xterm
xterm: Error 14, errno 21: Is a directory
Reason: spawn: open() failed on /dev/tty

bash-2.05b# man ls
Error executing formatting or display command.
System command /bin/bzip2 -c -d /usr/man/cat1/ls.1.bz2 | /usr/bin/less -is exited with status 256.

bash-2.05b# uname -a
Linux www 2.6.9 #1 SMP Sat Nov 6 14:21:03 UTC 2004 i686 unknown unknown GNU/Linux

bash-2.05b# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy)
bash-2.05b#
these commands r working fine in my old kernel ....
plz help me ....
 
Old 11-07-2004, 03:39 PM   #2
faralen
LQ Newbie
 
Registered: Oct 2003
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
In your kernel config, look for these, and if they're different, try setting yours this way:
Code:
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
You could also try recreating /dev/tty:
Code:
mknod -m 666 /dev/tty c 5 0
 
Old 11-07-2004, 04:46 PM   #3
slack_baby
Member
 
Registered: Feb 2004
Posts: 37

Original Poster
Rep: Reputation: 15
thankx faralen

mknod -m 666 /dev/tty c 5 0
worked .....
 
Old 11-08-2004, 07:27 AM   #4
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Rep: Reputation: 30
faralen, it works for me....... temporarily that is
however same problem once i reboot..
also, i have to do a rm -rf /dev/tty before i can execute the mknod command..
any suggestions?
thanx!
 
Old 11-11-2004, 07:12 PM   #5
theguitarizt
LQ Newbie
 
Registered: Nov 2004
Distribution: slackware 10.0
Posts: 1

Rep: Reputation: 0
what I did to fix it was add the following to the end of my /etc/rc.d/rc.local file:

Code:
rm -rf /dev/tty
mknod -m 666 /dev/tty c 5 0
that way it fixes it at the very end of the bootup process each time you reboot.
 
Old 11-11-2004, 09:01 PM   #6
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Rep: Reputation: 30
yeah i had done the same...just wanted to know if there was some alternate way of doing it cause that method seemed kinda 'crude'
 
Old 11-12-2004, 01:12 AM   #7
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Rep: Reputation: 30
the udev method works brilliantly :

http://www.linuxquestions.org/questi...postid=1247761
 
Old 11-21-2004, 10:19 PM   #8
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Rep: Reputation: 30
I found the answer. I had the exact same problem. You can fix it in the kernel. In Device Drivers / Character Devices / BSD unix PTY (not exact name, like third one down). Make sure this is disabled. Once i disabled it I could run aterm in peace and harmony.
 
Old 11-27-2004, 01:04 PM   #9
b0rken
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
CONFIG_LEGACY_PTYS

http://www.ussg.iu.edu/hypermail/lin...09.1/2765.html

seemed to do the trick for me.
 
  


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
Commands from shell script not working Grassie Coetzee Linux - Software 2 03-13-2005 02:31 PM
some commands not working in crontab navaladi Linux - Newbie 2 01-17-2005 06:07 AM
certain commands aren't working on the terminal bariswheel Mandriva 4 12-22-2004 04:35 PM
Commands not working jongage Linux - Newbie 3 11-24-2004 09:29 PM
Why aren't common commands working? NewTuxGirl Linux - Newbie 8 06-07-2004 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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