can't start program from shell
why cant i do this no more?
Code:
root@1[~]# synaptic is there a way to fix it? |
Looks like you are trying to run the program as root. Did you log into Xwindows as root? If not (you got to root via 'su') then by default root (su) cannot run Xwindows inferfaces (Gtk or Qt). I'm not sure how to allow root (su) to do so while logged in with a user account but if you need to run it as root then I'd suggest restarting Xwindows as root (assuming the answer to my initial question is no).
|
weird
when i'm logged in as a normal user, and i type "synaptic", the shell says i should be logged in as superuser :s and if i log as root, it wont open :s |
So when you log into Kde/Gnome (or whatever your GUI is) as root (not using 'su') it still won't let you open it? If so, that's the error it throws? What is your distro and what windows/desktop manager are you using?
|
as an ordinary user type the command:
xhost + Then root will be able to open windows in X. |
Quote:
Quote:
|
Quote:
Code:
xhost +127.0.0.1 You don't need to do this all the time (just if you want to run a program as a different user and if you have restarted the window system since the last time you ran it). If you want to make it permanent (and you probably do) just edit your startup files (~/.xsession & ~/.xinitrc) and add that line before the last line in the file. |
uhm, noobie question, where is my xinitrc located?
tried searching for it with konqueror, but no result my xession was located in my /etc/x11 |
Quote:
~ means it is in the root of your home directory, something like /home/roxxe1/.xinitrc |
A good solution might be to type in kdesu <command> it should run properly.
|
is kdesu the same as gnomesu?
|
uhhmm... probably. I don't use gnome, but I'm sure it is.
|
All times are GMT -5. The time now is 11:54 PM. |