Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-24-2006, 02:56 AM
|
#1
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
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.
|
|
|
|
01-24-2006, 04:55 AM
|
#2
|
|
Member
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465
Rep:
|
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.
|
|
|
|
01-24-2006, 05:20 AM
|
#3
|
|
Senior Member
Registered: Nov 2003
Location: West Sussex, England
Distribution: Gentoo
Posts: 1,457
Rep:
|
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 
|
|
|
|
01-24-2006, 05:33 AM
|
#4
|
|
Member
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465
Rep:
|
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.
|
|
|
|
01-24-2006, 01:05 PM
|
#5
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
Original Poster
|
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?
|
|
|
|
01-24-2006, 01:10 PM
|
#6
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
Original Poster
|
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.
|
|
|
|
01-26-2006, 07:50 AM
|
#7
|
|
Member
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 610
Rep: 
|
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?
|
|
|
|
01-26-2006, 09:22 AM
|
#8
|
|
Member
Registered: Jul 2004
Distribution: Slackware
Posts: 388
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:17 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|