You are not logged in.

#1 2006-02-05 18:19:15

pretzel
Member
Registered: 2005-12-24
Posts: 11

Can't run graphical programs as root after pacman -Syu

At first there was this problem with GDM - after the upgrade with packman I did a reboot, then it got to the GDM starting stage, declared [DONE] with no errors, but GDM didn't start. I tried launching it manually by entering gdm from the root shell, but it said: " Gtk-WARNING **: cannot open display:" and that's it. So for now I'm using KDM, but I can't run any program as root, programs such as nmapfe, k3b will show up an error like this:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Gtk-WARNING **: cannot open display: :0.0

(For nmapfe)

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server :0.0
DCOP aborting call from 'anonymous-26300' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

k3b: cannot connect to X server :0.0
ERROR: KUniqueApplication: Registering failed!
ERROR: Communication problem with k3b, it probably crashed.

(For k3b)

any suggestions?

Offline

#2 2006-02-05 19:27:10

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Can't run graphical programs as root after pacman -Syu

'xhost +localhost'  as user before SUing root. Not really good to run apps as root though.

Dusty

Offline

#3 2006-02-06 13:22:06

kristian
Member
From: Norway
Registered: 2005-06-03
Posts: 24

Re: Can't run graphical programs as root after pacman -Syu

I've got the same problem.
"/etc/rc.d/gdm start"
Gives me the following output:
:: Starting GDM   [DONE]
But GDM doesn't start. I still see the traditional console-thing, and ^F7 doesn't take me to a graphical screen.

gdm does not show in top.

startx works though.

Background info:
I shut down my computer on friday and left my apartment for the weekend. At that time it was a while since last time I rebooted it. When I turned i on sunday night, it booted to console. Not the first time this happends. but "pacman -S nvidia" usually solves this. This time i did pacman -Syu first though. (But I form what I can see im missing quite a few updates.. hmm hm... I'm going to do "pacman -Syu" and try again.

Offline

#4 2006-02-06 14:38:51

kristian
Member
From: Norway
Registered: 2005-06-03
Posts: 24

Re: Can't run graphical programs as root after pacman -Syu

Found the solution here:
http://bbs.archlinux.org/viewtopic.php?t=18170

In my case:
mv /opt/gnome/etc/gdm/gdm.conf.pacsave /opt/gnome/etc/gdm/gdm.conf
Did the trick

Offline

#5 2006-02-07 14:50:53

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: Can't run graphical programs as root after pacman -Syu

Why not use kdesu or the gtk equivalent (gtksu?)?


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#6 2006-02-08 00:28:27

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Can't run graphical programs as root after pacman -Syu

Snarkout wrote:

Why not use kdesu or the gtk equivalent (gtksu?)?

Because, some people, like me, are lazy or find it hard to break old habits wink

Offline

Board footer

Powered by FluxBB