View previous topic :: View next topic |
Author |
Message |
tpuzak n00b
Joined: 18 Nov 2004 Posts: 37
|
Posted: Thu Nov 18, 2004 6:36 am Post subject: I updated pam, and now I can't start xfce4 |
|
|
I'm running gentoo linux with a 2.4 kernel on my laptop. I've been
running xfce4 for about 6 months and love it. I use Xorg-X11 as an
Xserver. Last week I updated pam, and now xfce4 won't start. Below
is the output that I get when Irun "startxfce4". Note that I am not
running this as root, despite what xscreensaver says.
Code: | $startxfce4
/usr/bin/startxfce4 :x server already running on display :0.0
xsetroot: unable to open display ':0.0'
xrdb: connection refused
xrdb: can't open display ':0.0'
which: no xfce4-session in
(/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2_rc1/bin:
/opt/blackdown-jdk-1.4.2_rc1/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/kde/3.2/bin:
/usr/games/bin:/opt/aim
(xfce4-mcs-manager:14177): Gtk-WARNING **: cannot open display:
xscreensaver: can't open display :0.0
xscreensaver: initial effective uid/gid was root/users (0/100)
xscreensaver: running as tpuzak/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
http://www.jwz.org/xscreensaver/faq.html
http://www.jwx.org/xscreensaver/man.html
(xfwm4:7365): Gtk-WARNING **: cannot open display:
(xftaskbar4:27724): Gtk-WARNING **: cannot open display:
(xfdesktop:10643): Gtk-WARNING **: cannot open display:
(xfce4-panel:1925): Gtk-WARNING **: cannot open display:
(xfce4-panel:2202): Gtk-WARNING **: cannot open display:
Error: Can't open display: :0.0
A crash occurred in the panel
Please report this to the xfce4-dev@moongroup.com list
meanwhile the panel will be restarted |
The only configuration file that changed after I updated pam was
"/etc/security/pam_env.conf". It's contents follow:
Code: | # $Date: 2004/11/08 18:33:46 $
# $Author: azarah $
# $Id: pam_env.conf,v 1.1 2004/11/08 18:33:46 azarah Exp $
#
# This is the configuration file for pam_env, a PAM module to load in
# a configurable list of environment variables for a
#
# The original idea for this came from Andrew G. Morgan ...
#<quote>
# Mmm. Perhaps you might like to write a pam_env module that reads a
# default environment from a file? I can see that as REALLY
# useful... Note it would be an "auth" module that returns PAM_IGNORE
# for the auth part and sets the environment returning PAM_SUCCESS in
# the setcred function...
#</quote>
#
# What I wanted was the REMOTEHOST variable set, purely for selfish
# reasons, and AGM didn't want it added to the SimpleApps login
# program (which is where I added the patch). So, my first concern is
# that variable, from there there are numerous others that might/would
# be useful to be set: NNTPSERVER, LESS, PATH, PAGER, MANPAGER .....
#
# Of course, these are a different kind of variable than REMOTEHOST in
# that they are things that are likely to be configured by
# administrators rather than set by logging in, how to treat them both
# in the same config file?
#
# Here is my idea:
#
# Each line starts with the variable name, there are then two possible
# options for each variable DEFAULT and OVERRIDE.
# DEFAULT allows and administrator to set the value of the
# variable to some default value, if none is supplied then the empty
# string is assumed. The OVERRIDE option tells pam_env that it should
# enter in its value (overriding the default value) if there is one
# to use. OVERRIDE is not used, "" is assumed and no override will be
# done.
#
# VARIABLE [DEFAULT=[value]] [OVERRIDE=[value]]
#
# (Possibly non-existent) environment variables may be used in values
# using the ${string} syntax and (possibly non-existent) PAM_ITEMs may
# be used in values using the @{string} syntax. Both the $ and @
# characters can be backslash escaped to be used as literal values
# values can be delimited with "", escaped " not supported.
#
#
# First, some special variables
#
# Set the REMOTEHOST variable for any hosts that are remote, default
# to "localhost" rather than not being set at all
# Note: Rather set default to "", as DISPLAY=localhost:0.0 do not work
# here at least.
REMOTEHOST DEFAULT= OVERRIDE=@{PAM_RHOST}
#
# Set the DISPLAY variable if it seems reasonable
DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}
#
# Set the XAUTHORITY variable if pam_xauth is used
XAUTHORITY DEFAULT= OVERRIDE=@{XAUTHORITY}
#
#
# Now some simple variables
#
#PAGER DEFAULT=less
#MANPAGER DEFAULT=less
#LESS DEFAULT="M q e h15 z23 b80"
#NNTPSERVER DEFAULT=localhost
#PATH DEFAULT=${HOME}/bin:/usr/local/bin:/bin\:/usr/bin:/usr/local/bin/X11:/usr/bin/X11
#
# silly examples of escaped variables, just to show how they work.
#
#DOLLAR DEFAULT=\$
#DOLLARDOLLAR DEFAULT= OVERRIDE=\$${DOLLAR}
#DOLLARPLUS DEFAULT=\${REMOTEHOST}${REMOTEHOST}
#ATSIGN DEFAULT="" OVERRIDE=\@ |
Unfortunately I didn't save my old pam_env.conf file when I updated.
The really crazy thing with this problem is that the error says that I
have an Xserver already running, but I don't. I can start my Xserver with a different
windown manager (twm) normally. I really don't want to install Gnome or KDE because
I like my little xfce4, but this twm crap is getting old. Please help.
Thanks,
Tom |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Nov 18, 2004 6:43 am Post subject: Re: I updated pam, and now I can't start xfce4 |
|
|
Code: | XAUTHORITY DEFAULT= OVERRIDE=@{XAUTHORITY} | Try commenting that line. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
tpuzak n00b
Joined: 18 Nov 2004 Posts: 37
|
Posted: Thu Nov 18, 2004 7:07 am Post subject: nope |
|
|
That didn't work |
|
Back to top |
|
|
JJacobsson n00b
Joined: 26 Oct 2003 Posts: 38
|
Posted: Thu Nov 18, 2004 7:50 am Post subject: |
|
|
Code: | DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY} |
Try commenting that line as well... I commented out both of em... _________________ //Joacim Jacobsson
- Cake or death?
- Cake please. |
|
Back to top |
|
|
tpuzak n00b
Joined: 18 Nov 2004 Posts: 37
|
Posted: Thu Nov 18, 2004 8:10 am Post subject: |
|
|
That fixed it. Thanks for everything. |
|
Back to top |
|
|
|
|
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
|
|