Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xfce4 startscript not working
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zbindere
Guru
Guru


Joined: 27 May 2004
Posts: 356
Location: Switzerland

PostPosted: Wed Feb 02, 2005 11:43 am    Post subject: xfce4 startscript not working Reply with quote

I installed xfce4 and wanted to start it with:
Code:
startxfce4

I got the following errror:
Code:
/usr/bin/startxfce4: X server already running on display :0.0
xrdb: Connection refused
xrdb: Can't open display ':0.0'
Agent pid 6541
which: no dbus-launch in
(/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/ibm-jdk-bin-1.4.2/bin:/opt/ibm-jdk-bin-1.4.2/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/kde/3.2/bin:/opt/vmware/bin)xscreensaver: Can't open display: :0.0

(xfce4-session:6544): Gtk-WARNING **: cannot open display:
xscreensaver: initial effective uid/gid was root/users (0/100)
xscreensaver: running as rz/users (1000/100)

xscreensaver: This is probably because you're logging in as root.  You
              shouldn't log in as root: you should log in as a normal user,
              and then `su' as needed.  If you insist on logging in as
              root, you will have to turn off X's security features before
              xscreensaver will work.

              Please read the manual and FAQ for more information:
Agent pid 6541 killed

I had no X Server running at that time. And gnome works.
Back to top
View user's profile Send private message
tetromino
Retired Dev
Retired Dev


Joined: 02 Dec 2003
Posts: 215

PostPosted: Wed Feb 02, 2005 2:21 pm    Post subject: Reply with quote

The error messages imply that you do have X running on display :0.0 ; try "psaux | grep X" and see what X servers are active. If you want to launch xfce on a new X server in a new virtual console, you can try "startx /usr/bin/startxfce4 -- :1 vt08" (provided that you don't have X on :1 and the vt08 virtual console is available).

The xscreensaver error implies that you are running as root. Self-explanatory: don't run X as root. Bad for security, and it breaks stuff.

The dbus error suggests you don't have it installed; so emerge sys-apps/dbus.
Back to top
View user's profile Send private message
graphic23
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 102
Location: Chicago

PostPosted: Wed Feb 02, 2005 6:33 pm    Post subject: Reply with quote

Hi, just do:
killall X.

And as aforementioned, emerge dbus .

after doing these two thigns, you can just do, startxfce4
_________________
Sincerly,
Graphic23
Back to top
View user's profile Send private message
loutr
n00b
n00b


Joined: 02 Feb 2005
Posts: 1
Location: New-Caledonia

PostPosted: Wed Feb 02, 2005 8:12 pm    Post subject: Reply with quote

hi,
i've got the same problem. However, no X server is running (i launch startxfce4 just after boot), but the $DISPLAY variable is set to ":0.0". If I unset it everything works correctly, until next login... I can't find what gives it that value...
Back to top
View user's profile Send private message
zbindere
Guru
Guru


Joined: 27 May 2004
Posts: 356
Location: Switzerland

PostPosted: Wed Feb 02, 2005 8:30 pm    Post subject: Reply with quote

I didn't have an X Server running. However it works wenn I run
Code:
 startx /usr/bin/startxfce4

Is it not possible to put something like:
Code:
 XSESSION="xfce"

in the /etc/rc.conf
Back to top
View user's profile Send private message
GrayFox
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 183
Location: Germany

PostPosted: Wed Feb 02, 2005 10:01 pm    Post subject: Reply with quote

Maybe it's this PAM issue https://forums.gentoo.org/viewtopic.php?t=254436
_________________
Random Stuff
Back to top
View user's profile Send private message
FrozenMist
n00b
n00b


Joined: 01 Dec 2004
Posts: 30

PostPosted: Thu Feb 03, 2005 5:47 am    Post subject: Reply with quote

I get the same error, except I just put
Code:
exec xfce4
at the end of my .xinitrc file, so it works fine for me.
Back to top
View user's profile Send private message
zbindere
Guru
Guru


Joined: 27 May 2004
Posts: 356
Location: Switzerland

PostPosted: Thu Feb 03, 2005 9:25 pm    Post subject: Reply with quote

it worked, it was the pam bug.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum