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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-13-2006, 10:20 PM
|
#1
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
deleted video group by accident
I just installed slackware 10.2 and while I was configuring some users and groups I accident removed the "video" group, so now whenever I try to run a program from a terminal window it says it can't access the xserver, I am running the console in the Xwindows, and before I screwed up it would run the program from the console.
the command I ran was
groupmod -n "username" video
I wanted to add the "username" to the video group, but instead it added a group called "username" to the /etc/groups file.
How can I get this video group back?
thanks
|
|
|
04-14-2006, 01:12 AM
|
#2
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Slackware, Arch, Gentoo
Posts: 6,942
Rep: 
|
Issue as root "vigr" and then add it as you would have it to be. Here's a snippet of mine:
Code:
audio::17:bruce,mingdao
video::18:bruce,mingdao
cdrom::19:bruce,mingdao
to show where it's normally located, if that matters.
|
|
|
04-14-2006, 11:05 AM
|
#3
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Original Poster
Rep:
|
Hey Chinaman,
I followed your instructions but I'm still getting the error. Is there a specific group I need to be a part of to access the X server?
Error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
cannot connect to X server :0.0
|
|
|
04-14-2006, 05:29 PM
|
#4
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Slackware, Arch, Gentoo
Posts: 6,942
Rep: 
|
I'm not sure, so let me ask a few elementary questions.
First, did you add your username(s) and not mine?
Second, did you remove that username group you created by accident?
Third, have you Google this error?
Fourth, what command are you running that returns that error?
You might need to restart the X server -- not sure. Just exit
the X server with your GUI menu, or "Ctrl+Alt+Backspace" and
then type "startx" to start the X server again.
|
|
|
04-14-2006, 07:04 PM
|
#5
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Original Poster
Rep:
|
What I did was vigr as root changed "username"::18: to video::18:"usernames" for "usernames" I added 3 users to the list root, my ID and the ID I want to use to run the program, seperated by a comma. I restarted X as you suggested and it still wont work. I get the same error. I have googled this error but I get a lot of stuff that doesn't seem to be similar to my problem. :
------Update------
I ran xhost + as the user and it works.. But I assume this is a temp fix and would like to find a permenant fix.
Last edited by ncsuapex; 04-14-2006 at 07:15 PM.
|
|
|
04-15-2006, 08:18 AM
|
#6
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
Are you trying to run a command that uses a users display as root? IE log in as a user, su to root and run a command in a terminal? That's the usual cause of that type of error.
2 things you can try in this situation. One is 'xhost +local:' and the other is making sure that env variable DISPLAY is :0.0 (or whichever display is currently running) by 'export DISPLAY=:0.0'
I have the xhost command in my users fluxbox startup script, and use the display variable in cron scripts, which also suffer from this problem.
|
|
|
All times are GMT -5. The time now is 05:11 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
|
|