You are not logged in.

#1 2012-02-21 19:20:59

ephan
Member
Registered: 2011-11-02
Posts: 171

[SOLVED] Can only open X as root - can't read a file in /tmp/

xkbcomp reports:
Error: cannot close "/tmp/server-0.kbm" properly (not enough space?)
(...) #Some stuff here
Error: couldn't compile keymap
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
df /tmp/
Use: 100%

I "rm -rf'd" /tmp/, and recreated it, but right after df /tmp, said "Use: 100%".

How can I reopen X, or *truly* clean /tmp/?

EDIT:
As root, it works, but I really shouldn't run X as root, and I need to fix this, thank you!

Xorg0.log - The logs.

Last edited by ephan (2012-04-05 10:15:58)

Offline

#2 2012-02-22 02:24:16

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: [SOLVED] Can only open X as root - can't read a file in /tmp/

I think you need to kill the process that is causing /tmp to fill to 100%.  Simply removing the file isn't enough

Offline

#3 2012-02-22 10:35:56

n0stradamus
Member
Registered: 2010-11-08
Posts: 94
Website

Re: [SOLVED] Can only open X as root - can't read a file in /tmp/

Could you post a list of processes, that are running before you start X?
And the output of the following please:

mount | column -t

Is your system newly set up?

Offline

#4 2012-02-22 11:00:56

adee
Member
From: The Moon
Registered: 2009-11-10
Posts: 112

Re: [SOLVED] Can only open X as root - can't read a file in /tmp/

ephan wrote:

As root, it works, but I really shouldn't run X as root, and I need to fix this, thank you!

Just to inform you: you need to run X as root. There are patches on the internet that can allow you to run X as a non-root user, but those are not working with every driver (especially proprietary ones).

Offline

#5 2012-02-22 13:10:26

ephan
Member
Registered: 2011-11-02
Posts: 171

Re: [SOLVED] Can only open X as root - can't read a file in /tmp/

I've been running X as non-root for a few weeks now, it always worked. Only now it only works as root.

Also, I thought I had fixed this last night, because I re-compiled cairo-xcb from source to match new libpng update. It worked after, but now it's not working again.

Output of mount | column -t:

[root@davidarch david]# mount | column -t
proc       on  /proc     type  proc      (rw,nosuid,nodev,noexec,relatime)
/sys       on  /sys      type  sysfs     (rw,nosuid,nodev,noexec,relatime)
/dev       on  /dev      type  devtmpfs  (rw,nosuid,relatime,size=2006452k,nr_inodes=501613,mode=755)
/run       on  /run      type  tmpfs     (rw,nosuid,nodev,relatime,mode=755)
/dev/sda3  on  /         type  ext4      (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
devpts     on  /dev/pts  type  devpts    (rw,relatime,mode=600,ptmxmode=000)
shm        on  /dev/shm  type  tmpfs     (rw,nosuid,nodev,relatime)
/dev/sda4  on  /home     type  ext4      (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
/dev/sda1  on  /boot     type  ext2      (rw,relatime,errors=continue)
[root@davidarch david]# 

Thank you!

oliver wrote:

I think you need to kill the process that is causing /tmp to fill to 100%.  Simply removing the file isn't enough

How to do find out what it is oliver? Thanks.

Last edited by ephan (2012-02-22 13:11:01)

Offline

#6 2012-02-22 13:40:14

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: [SOLVED] Can only open X as root - can't read a file in /tmp/

ephan wrote:

How to do find out what it is oliver? Thanks.

Next time /tmp is at 100%, take a look inside and see what the hog is.   Something like:

du -kx | egrep -v "\./.+/" | sort -n

Then keep drilling down until you find the source.  You might also have to play with lsof once you find it

Offline

Board footer

Powered by FluxBB