LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-13-2003, 12:40 PM   #1
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
Eterm pseudo-tty?


Ok just compiled Eterm on an LFS 4.0 system running a 2.5.67 kernel with devpts support compiled in and /dev/pts filesystem mounted.

When I go to execute Eterm as a user I get:
'cant open pseudo-tty --no such file or directory'

I haven't touched the /dev filesystem since I followed the install instructions in the LFS books...

also, I can execute Eterm just fine as root... so its definately a permissions problem... just don't know what permissions I have to mod...

thanks in advance for any help.
 
Old 04-13-2003, 04:16 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Check to make sure /dev/ptmx exists and that is set to mode 666
 
Old 04-13-2003, 06:59 PM   #3
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Original Poster
Rep: Reputation: 45
THANK YOU! that was it... while I did have ptmx, it was set to 644... changing it to 666 solved the problem... damned sign of the beast... does wonders some times.

but seriously... thank you very much for your help...

jpbarto
 
Old 04-13-2003, 10:32 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Here's something to remember for next time: use a program called strace

It traces system calls a program makes and it'll tell you all the files it tries to open, read, write and the system calls themselves a program tries to use. It would have told you that it tried to access /dev/ptmx and that it got a permission denied problem. Eterm doesn't give that error (it simply doesn't error check for ptmx apparently) but the error is hidden (thus can be revealed by strace).

Strace is very handy when it comes to debugging these problems. Sometimes seg faults can happen due to missing files but a program won't tell you. Before I whip out my debugger I just strace the program and look at what it was doing just before it crashed. Maybe a file failed to open and bad code made it crash.

strace can be found at http://freshmeat.net
 
Old 04-14-2003, 11:51 AM   #5
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Original Poster
Rep: Reputation: 45
thanks for the tip; I'll check it out.
 
  


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
Esetroot (Eterm) error - starting Eterm in transparent mode? nimcha Linux - Software 2 07-14-2007 05:58 AM
Regarding Pseudo tty, Pseudo terminals ? mqureshi Programming 0 07-30-2005 10:51 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
Pseudo tty configuration RH 7.3 Dalma Linux - Networking 1 06-17-2003 12:53 PM
Pseudo-TTY Control Under Linux nitr0gen Programming 0 03-21-2002 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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