LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-24-2006, 02:56 AM   #1
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Udev breaks virtual terminal emulators


I am running a Slackware -current machine (as Slackware 10.1 when first installed) and trying to get udev to work properly. My kernel is 2.6.12, custom compile.

When I install udev and set the startup script to executable, it seems to work well enough (my headset works with it, at least), but at the same time, it breaks all of my X VTs.

Both xterm and mrxvt fail with their own variation on the same error "cannot open terminal".

So the problem (I assume) is that udev is not making the proper symlinks for my terminals, but I don't know what mrxvt/xterm is looking for in terms of the actual /dev file to make my own.

Anyone know what I would need to do to get my X terminals back? It is killing me without them.
 
Old 01-24-2006, 04:55 AM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
I thought this was fixed in newer versions of Slack (> 10.0), but, if it's the same problem we used to have the fix is simple.

(as stolen from here: http://arjuna.mania.or.id/blog/index...e-kernel-2610/)

Code:
Open the file: /etc/udev/rules.d/udev.rules and change the line
KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k"
to:
KERNEL="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k"
now run /etc/rc.d/rc.udev it should give output like:
Initializing udev dynamic device directory.
You probably want to reboot once you've finished.

Good luck!
- Piete.
 
Old 01-24-2006, 05:20 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457

Rep: Reputation: 45
And if that doesn't work, check the permissions - I had this issue a while ago because only root could access the virtual terminals.

You shouldn't need to reboot, btw - just restart udev & all should be well. That's the whole point of it being dynamic, after all
 
Old 01-24-2006, 05:33 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
I agree, rebooting *shouldn't* be necessary, but I couldn't get the sequence of commands right to make udev work properly after the change! Clearly I missed something somewhere along the line =D

Good thinking on the permissions, too.
 
Old 01-24-2006, 01:05 PM   #5
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Original Poster
Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
piete, I should have mentioned it in the original post, but I have checked that already, and my rules are as they should be.

Running X as root does get me the VTs now that I am back on this machine, but I still don't know which /dev/ device the VT programs are actually accessing for me to set the permissions on it.

And since I now have udev running, would I not have to modify the permissions for the VT devices on the udev side, or else permissions would be reset every time I reboot?
 
Old 01-24-2006, 01:10 PM   #6
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Original Poster
Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Ah, scratch that, I have it now.

I read through the udev.rules file, found the section for terminal devices, took a wild guess as to which one I needed, and changed the group from "tty" to "users".

Restarting udev then gave me access to my VTs again, and I assume this solution will work permanently.

Unless there is something wrong with changing the group on those files, this is my first attempt with udev, so I am open to suggestions.
 
Old 01-26-2006, 07:50 AM   #7
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by MS3FGX
Ah, scratch that, I have it now.

I read through the udev.rules file, found the section for terminal devices, took a wild guess as to which one I needed, and changed the group from "tty" to "users".

Restarting udev then gave me access to my VTs again, and I assume this solution will work permanently.

Unless there is something wrong with changing the group on those files, this is my first attempt with udev, so I am open to suggestions.
Thanks for this. Might another solution be to add your users to the tty group? Any issues with doing that?
 
Old 01-26-2006, 09:22 AM   #8
dunric
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 411

Rep: Reputation: 39
I don't find changing ownership/permission of /dev/pty* devices to other then root:tty/660 as happy solution. It's rather risky. Pseudoterminal devices are created for user in /dev/pts subdirectory. Just make sure it's proper mounted by similar record in /etc/fstab:
Code:
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Udev upgrade breaks automounting memory cards on Gentoo FreeThinkerJim Linux - Hardware 2 05-27-2006 10:41 AM
virtual cd rom emulators? mnm_mc Linux - Software 4 12-31-2005 07:17 PM
CD-emulators? art3mis Linux - Software 12 12-23-2004 04:44 PM
"./configure --with-virtualchroot" breaks virtual users in pure-ftpd icarus24 Linux - Networking 2 11-09-2003 05:21 PM
emulators brimbleshoes Linux - General 3 04-19-2002 02:34 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration