Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Cannot start X as normal user.
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
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Sat Jun 17, 2017 6:56 pm    Post subject: [SOLVED] Cannot start X as normal user. Reply with quote

I am trying to use lwm for the
user.
In my .xinitrc file:
Code:
exec lwm


When I type startx:
Code:
X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.16-gentoo x86_64 Gentoo
Current Operating System: Linux craptop 4.9.16-gentoo #2 SMP Fri Jun 16 22:18:48 CDT 2017 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.16-gentoo root=UUID=1b2949c5-ea56-40d6-bf44-2a3cf2194aba ro
Build Date: 16 June 2017  09:47:25PM

Current version of pixman: 0.34.0
        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.2.log", Time: Sat Jun 17 13:39:01 2017
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            Cannot open "/tmp/server-2.xkm" to write keyboard description
>                   Exiting
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            Cannot open "/tmp/server-2.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 virtual core keyboard: 2(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.2.log" for additional information.
(EE)
(II) AIGLX: Suspending AIGLX clients for VT switch
(EE) Server terminated with error (1). Closing log file.


Keyboard errors... ok I tried to find xkbcomp with sudo find |grep xkbcomp in / and it was in /usr/bin/ so I executed it
but I have no idea what to do next.

I can only start X as root because root has special permissions for xkbcomp. But I would not change the permissions of the command otherwise it might break my system.

I would like to avoid root as much as possible in accord to the UNIX philosophy.

[Moderator edit: added [code] tags to preserve output layout. -Hu]
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep


Last edited by roboto on Mon Jun 19, 2017 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7090
Location: Saint Amant, Acadiana

PostPosted: Sat Jun 17, 2017 9:35 pm    Post subject: Reply with quote

Is /tmp user writable?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Sat Jun 17, 2017 10:11 pm    Post subject: Reply with quote

roboto,

Notice that /tmp has the sticky bit set.
Code:
drwxrwxrwt   7 root root    160 Jun 17 23:07 tmp

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
roboto
Apprentice
Apprentice


Joined: 15 Feb 2017
Posts: 156
Location: My IP address.

PostPosted: Mon Jun 19, 2017 3:50 pm    Post subject: Reply with quote

No. /tmp is not writable. If that's the issue, then how do I make it writable?
_________________
Answers please.

The true hater of man expects nothing from him and is indiscriminate to his works.
-Ayn Rand
Quote:
Dude. Minus 30 credibility points.

Yep
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Mon Jun 19, 2017 4:19 pm    Post subject: Reply with quote

roboto,

Code:
chmod 1777 /tmp

Do check that that gives you drwxrwxrwt permissions on /tmp
That last t is important.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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