Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot start kde5 - Permission denied
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Eagle_
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 119

PostPosted: Sun Jun 07, 2015 9:25 am    Post subject: Cannot start kde5 - Permission denied Reply with quote

Hi,

i just upgraded from kde:4 to kde:5 (5.3.1)

After a lot of work, due to package dependencies, i tried to start my new kde using startx from my user name student without success (As root user i don't have a problem).

I get the following message:

Quote:
xauth: file /home/student/.serverauth.2886 does not exist


X.Org X Server 1.16.4
Release Date: 2014-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.16.2-hardened-r2 x86_64 Gentoo
Current Operating System: Linux linux-2.fritz.box 4.0.4-hardened-r4 #4 SMP Sat Jun 6 23:18:17 2015 x86_64
Kernel command line: root=/dev/sda8 video=uvesafb:1920x1080-32
Build Date: 06 June 2015 09:44:31PM

Current version of pixman: 0.32.6
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.1.log", Time: Sun Jun 7 09:19:14 2015
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
resize called 1920 1080
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
/usr/bin/startkde: line 159: kapplymousetheme: command not found
startkde: Starting up...
QStandardPaths: wrong ownership on runtime directory /var/run/user/1000, -2 instead of 1000
kdeinit5: Aborting. bind() failed: Permission denied
Could not bind to socket '/kdeinit5__1'
QStandardPaths: wrong ownership on runtime directory /var/run/user/1000, -2 instead of 1000
kdeinit5_wrapper: Warning: connect(/kdeinit5__1) failed: : No such file or directory
QStandardPaths: wrong ownership on runtime directory /var/run/user/1000, -2 instead of 1000
Qt: Session management error: networkIdsList argument is NULL
Configuring Lock Action
XSync seems available and ready
XSync Inited
Supported, init completed
Created alarm 12582913
QStandardPaths: wrong ownership on runtime directory /var/run/user/1000, -2 instead of 1000
ksmserver: "/KSMserver"
KSMServer: cannot open /KSMserver__1: Permission denied
KSMServer: Aborting.
startkde: Shutting down...
QStandardPaths: wrong ownership on runtime directory /var/run/user/1000, -2 instead of 1000
kdeinit5_wrapper: Warning: connect(/kdeinit5__1) failed: : No such file or directory
Error: Can not contact kdeinit5!
startkde: Running shutdown scripts...
startkde: Done.
xinit: connection to X server lost

waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.


It seems a permission problem, but i dont know how to solve it.

Any idea?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7234
Location: almost Mile High in the USA

PostPosted: Mon Jun 08, 2015 8:41 pm    Post subject: Reply with quote

I'm not a KDE user so I can only guess.

Are you using consolekit or systemd on your machine?

Is the directory /var/run/user/1000 owned by "nobody" or "student" (UID 1000)? Though this is a symptom not a fix.

Ran etc-update or dispatch-conf to update your configs?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
GoldPanther
n00b
n00b


Joined: 02 Jun 2015
Posts: 9

PostPosted: Mon Jun 08, 2015 9:06 pm    Post subject: Reply with quote

Most users will probably be better off simply starting a display manager at boot. That said the instructions below should serve your purpose.

Logged in as the user (in your case student)

1. copy root's xinitrc file
cp /etc/X11/xinit/xinitrc ~/.xinitrc

2. Remove the conflicting lines in ~/.xinitrc

I deleted everything after the if [ -d /etc/X11/xinit/xinitrc.d ] block (for me the last 9 lines of the file)

3. Tell X to start kde; to the bottom of ~/.xinitrc add

exec startkde

You should now to able to run startx as the user.
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