How to give a normal user access to the full lxde environment
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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?
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.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.