LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   X-Window (https://www.linuxquestions.org/questions/linux-newbie-8/x-window-4175500080/)

Dan Curtis 03-31-2014 02:40 PM

X-Window
 
I'm running 64-bit Slackware 14.1 on a ASUS motherboard with an Intel i5-4670K CPU. I find that after installing the 64-bit version of Moneydance from the SlackBuilds site that I can no longer start a X-Window session while logged in as an ordinary user.
It works fine if I log in as root, which I know is a really bad idea.
Here's what gets printed out:
xauth: file /home/dan/.serverauth.1789 does not exist


X.Org X Server 1.14.3
Release Date: 2013-09-12
X Protocol Version 11, Revision 0
Build Operating System: Slackware 14.1 Slackware Linux Project
Current Operating System: Linux Nighthawk 3.10.17 #2 SMP Wed Oct 23 16:34:38 CDT 2013 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz root=/dev/sda2 ro vt.default_utf8=0 vga = normal
Build Date: 09 October 2013 08:27:11PM

Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 31 14:15:30 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error: Cannot open "/tmp/server-0.xkm" to write keyboard description
> Exiting
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error: Cannot open "/tmp/server-0.xkm" to write keyboard description
> Exiting
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
(EE)
Fatal server error:
(EE) Failed to activate core devices.(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(II) AIGLX: Suspending AIGLX clients for VT switch
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Thanks in advance.
Dan

cin_ 03-31-2014 03:36 PM

missing .xinitrc?
 
what is the results of..
Code:

# cat /root/.xinitrc
..
# cat /home/dan/.xinitrc


TobiSGD 03-31-2014 03:41 PM

Also, please provide the output of
Code:

ls -ld /tmp

johnsfine 03-31-2014 04:06 PM

One wild guess is that a partition is nearly full, so root can write and ordinary users can't.
Try:
Code:

df

Dan Curtis 04-01-2014 12:43 PM

This problem solved itself???
Today, I was able to successfully start a X-Window session as an ordinary user. Whatever the problem was, it apparently solved itself. Now, I don't believe in magic, but I'm at a loss to understand what was wrong yesterday.
One possibility is that I had added this user to several groups in /etc/group before trying to start X-Window. Maybe that action caused the (temporary) problem.
For what it's worth here is the listings for the .xinitrc and the contents of /tmp:
Here's user dan's .xinitrc
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

#-----------------------------------------------------------------------------*
#xloadimage -fullscreen -onroot -border Black /usr/local/images/sts098-713a-004.jpg &
#-----------------------------------------------------------------------------*
# Start the window manager *
#-----------------------------------------------------------------------------*
fvwm2

Here's root's .xinitrc:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# start some nice programs

xsetroot -solid SteelBlue
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
ck-launch-session /usr/bin/startfvwm2
else
dbus-launch --exit-with-session /usr/bin/startfvwm2
fi

Here's a listing of /tmp:
total 55748
drwxrwxrwt 8 root root 4096 Apr 1 12:57 .
drwxr-xr-x 26 root root 4096 Mar 31 13:44 ..
drwxrwxrwt 2 root root 4096 May 4 1994 .ICE-unix
-r--r--r-- 1 root users 11 Apr 1 12:57 .X0-lock
drwxrwxrwt 2 root root 4096 Apr 1 12:57 .X11-unix
drwxr-xr-x 3 root root 4096 Mar 31 13:44 SBo
drwx------ 2 dan users 4096 Mar 24 17:52 akonadi-dan.rOEBym
drwxr----- 2 dan users 4096 Apr 1 12:56 hsperfdata_dan
drwxr-xr-x 2 root root 4096 Mar 31 13:44 install
-rw-r--r-- 1 root root 56984964 Mar 31 13:44 moneydance-2012.862-x86_64-1_SBo.tgz
Warmest regards


All times are GMT -5. The time now is 11:44 AM.