LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-01-2017, 12:52 PM   #1
vitronix
Member
 
Registered: Dec 2012
Posts: 56

Rep: Reputation: Disabled
How to give a normal user access to the full lxde environment


Hi there,

I have installed ubuntu 16.04 LTS 64-bit as a virtual machine for testing.
I want to have a minimal LXDE environment on my server.
So I installed the necessary packages:
Code:
sudo apt-get install xorg openbox lxde-common lxappearance
Now when I give a
Code:
sudo startx
The full LXDE environment starts
But as a normal user I get a very limited environment (no openbox cofiguration, no pacmanfm etc)
How do I get the system to start X as a normal user with the full LXDE environment?

Thanks in advance,

Vitronix
 
Old 06-01-2017, 02:16 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Try to add a new user and then login with that user after issuing the command

init 5
 
Old 06-01-2017, 02:38 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
starting X as superuser is not recommended.
it might also create root-owned files in your $HOME, which then cause problems when you want to login as a normal user.
 
Old 06-02-2017, 01:09 AM   #4
vitronix
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Question Normal user doesn't have rights to start X

Well I reinstalled everything but now I get the following:
Code:
startx


X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-45-generic x86_64 Ubuntu
Current Operating System: Linux ubuntu 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.0-62-generic root=UUID=ea6371c8-c4dc-447c-b80a-f0723a7182ca ro
Build Date: 02 November 2016  10:06:10PM
xorg-server 2:1.18.4-0ubuntu0.2 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.33.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: "/home/jvisser/.local/share/xorg/Xorg.0.log", Time: Fri Jun  2 07:55:09 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(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 "/home/jvisser/.local/share/xorg/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console
Contents of Xorg.0.log:
Code:
X.Org X Server 1.18.4
Release Date: 2016-07-19
[   699.008] X Protocol Version 11, Revision 0
[   699.008] Build Operating System: Linux 4.4.0-45-generic x86_64 Ubuntu
[   699.008] Current Operating System: Linux ubuntu 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64
[   699.008] Kernel command line: BOOT_IMAGE=/vmlinuz-4.4.0-62-generic root=UUID=ea6371c8-c4dc-447c-b80a-f0723a7182ca ro
[   699.009] Build Date: 02 November 2016  10:06:10PM
[   699.009] xorg-server 2:1.18.4-0ubuntu0.2 (For technical support please see http://www.ubuntu.com/support) 
[   699.009] Current version of pixman: 0.33.6
[   699.009] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   699.009] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   699.010] (==) Log file: "/home/jvisser/.local/share/xorg/Xorg.0.log", Time: Fri Jun  2 07:55:09 2017
[   699.011] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   699.011] (==) No Layout section.  Using the first Screen section.
[   699.011] (==) No screen section available. Using defaults.
[   699.011] (**) |-->Screen "Default Screen Section" (0)
[   699.011] (**) |   |-->Monitor "<default monitor>"
[   699.011] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   699.011] (==) Automatically adding devices
[   699.011] (==) Automatically enabling devices
[   699.011] (==) Automatically adding GPU devices
[   699.011] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   699.011] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   699.011] 	Entry deleted from font path.
[   699.011] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   699.011] 	Entry deleted from font path.
[   699.011] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   699.011] 	Entry deleted from font path.
[   699.011] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   699.011] 	Entry deleted from font path.
[   699.011] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   699.011] 	Entry deleted from font path.
[   699.011] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[   699.011] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[   699.011] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   699.011] (II) Loader magic: 0x5577f4df2dc0
[   699.011] (II) Module ABI versions:
[   699.011] 	X.Org ANSI C Emulation: 0.4
[   699.011] 	X.Org Video Driver: 20.0
[   699.011] 	X.Org XInput driver : 22.1
[   699.011] 	X.Org Server Extension : 9.0
[   699.013] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   699.013] (II) xfree86: Adding drm device (/dev/dri/card0)
[   699.013] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[   699.013] (II) config/udev: Ignoring already known drm device (/dev/dri/card0)
[   699.022] (--) PCI:*(0:0:15:0) 15ad:0405:15ad:0405 rev 0, Mem @ 0xe8000000/134217728, 0xfe000000/8388608, I/O @ 0x00001070/16, BIOS @ 0x????????/32768
[   699.022] (II) LoadModule: "glx"
[   699.022] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   699.024] (II) Module glx: vendor="X.Org Foundation"
[   699.024] 	compiled for 1.18.4, module version = 1.0.0
[   699.024] 	ABI class: X.Org Server Extension, version 9.0
[   699.024] (==) AIGLX enabled
[   699.024] (==) Matched vmware as autoconfigured driver 0
[   699.024] (==) Matched modesetting as autoconfigured driver 1
[   699.024] (==) Matched fbdev as autoconfigured driver 2
[   699.024] (==) Matched vesa as autoconfigured driver 3
[   699.024] (==) Assigned the driver to the xf86ConfigLayout
[   699.024] (II) LoadModule: "vmware"
[   699.024] (II) Loading /usr/lib/xorg/modules/drivers/vmware_drv.so
[   699.033] (II) Module vmware: vendor="X.Org Foundation"
[   699.033] 	compiled for 1.18.1, module version = 13.1.0
[   699.033] 	Module class: X.Org Video Driver
[   699.033] 	ABI class: X.Org Video Driver, version 20.0
[   699.033] (II) LoadModule: "modesetting"
[   699.033] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   699.033] (II) Module modesetting: vendor="X.Org Foundation"
[   699.033] 	compiled for 1.18.4, module version = 1.18.4
[   699.033] 	Module class: X.Org Video Driver
[   699.033] 	ABI class: X.Org Video Driver, version 20.0
[   699.033] (II) LoadModule: "fbdev"
[   699.033] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   699.033] (II) Module fbdev: vendor="X.Org Foundation"
[   699.033] 	compiled for 1.18.1, module version = 0.4.4
[   699.033] 	Module class: X.Org Video Driver
[   699.033] 	ABI class: X.Org Video Driver, version 20.0
[   699.033] (II) LoadModule: "vesa"
[   699.033] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[   699.033] (II) Module vesa: vendor="X.Org Foundation"
[   699.033] 	compiled for 1.18.1, module version = 2.3.4
[   699.033] 	Module class: X.Org Video Driver
[   699.033] 	ABI class: X.Org Video Driver, version 20.0
[   699.033] (II) vmware: driver for VMware SVGA: vmware0405, vmware0710
[   699.033] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   699.033] (II) FBDEV: driver for framebuffer: fbdev
[   699.033] (II) VESA: driver for VESA chipsets: vesa
[   699.033] (EE) 
Fatal server error:
[   699.034] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[   699.034] (EE) 
[   699.034] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   699.035] (EE) Please also check the log file at "/home/jvisser/.local/share/xorg/Xorg.0.log" for additional information.
[   699.035] (EE)
The problem only arises on VMware, on my normal server I can start X as a normal user

Last edited by vitronix; 06-02-2017 at 01:59 AM. Reason: forgot something
 
Old 06-02-2017, 08:09 AM   #5
jbrittain1122
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
Take a look at the bug report in my next post (it won't let me post it here yet as I'm new to the site).

There's a lot of chatter in the comments, but #14 and #28 might be worth a try.
 
Old 06-02-2017, 08:09 AM   #6
jbrittain1122
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
https://bugs.launchpad.net/ubuntu/+s...t/+bug/1562219
 
Old 06-03-2017, 03:58 AM   #7
vitronix
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Well I discovered something interesting.
When I login normally, that is not over SSH, X starts just fine.
So when I login to the virtual machine itself I can start X.
Only thing I forgot to install is lxsession-logout.
It doesn't solve the problem but I can live with it.
 
Old 06-03-2017, 10:22 AM   #8
jbrittain1122
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
I wouldn't expect to be able to run an X session over ssh anyway. You can do some X11 forwarding if you only need a few apps running, but for a full desktop you'll need a remote desktop solution like VNC. I think this comes baked into ubuntu, but I'm not sure about lubuntu.

Last edited by jbrittain1122; 06-03-2017 at 10:23 AM. Reason: fixed a typo
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to give full access in squid only one user-always muthulinux Red Hat 1 08-14-2011 11:36 AM
How to give root access to normal user for one day. unix_anand Linux - Security 3 10-14-2008 05:45 AM
how can I mount an fat32 partition with full access for a normal user? (FC5) thefinalxia Linux - Newbie 4 04-10-2006 02:02 AM
Give Root Access To A Normal User waknauss Linux - Security 2 11-11-2004 09:00 AM
how to give a normal user access to cd burning? zero79 Debian 2 08-14-2004 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration