Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ubuntu 16.04 (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
sudo apt-get install xserver-xorg-legacy

Edit /etc/X11/Xwrapper.config

allowed_users=anybody
needs_root_rights=yes
@gabefair
Copy link

gabefair commented Apr 20, 2018

Thank you so much for this! Installing the v390 nvidia drivers for a GTX 1070Ti broke xorg for me

@edeetee
Copy link

edeetee commented Jul 30, 2018

Thanks, worked for me. Didn't personally need to edit Xwrapper though.

@martinsteeg
Copy link

martinsteeg commented Sep 22, 2018

Hi there,
this and "The system is running in lo graphics mode" screen is a problem I'm struggling with - since a long time ago.
The above documented and anything I found on the net (incl. Ubuntu forums) didn't work for me

The following is my solution

1.) From the "The system is running in lo graphics mode" screen exit to a console and login as root

2.) Remove unity, lightdm and ubuntu-desktop (with all the wrong configuration data)
$ apt-get remove unity lightdm ubuntu-desktop
$ dpkg --purge unity lightdm ubuntu-desktop

if dpkg is warning about configuration files or directories it cannot remove, remove those files/directories manually, e.g.:
$ rm -rf /etc/lightdm /var/lib/lightdm-data

3.) Newly install unity, lightdm and ubuntu-desktop
$ apt-get install unity lightdm ubuntu-desktop

After the following command, the lightdm login screen appears and all should work fine...
$ service lightdm start

Martin

@GourouLubrik
Copy link

GourouLubrik commented Mar 18, 2019

I was unable to start xfce4 / lightdm on openmediavault 4 (based on debian stretch).
I was thinking to reinstall everything... but I won't need to because of your lifesaving fix. <3

@joseananio
Copy link

joseananio commented Jun 26, 2019

on Debian*

dpkg-reconfigure xserver-xorg-legacy

select anybody as allowed users

thank you @alepez

@salotz
Copy link

salotz commented Aug 17, 2020

On 18.04.

Don't know why but surprised that the needs_root_rights=yes line is actually needed, but its true :P

@Stinkers
Copy link

Stinkers commented Nov 8, 2020

I had this problem but bizarrely,it was caused by a couple of entries in /etc/fstab which pointed to NFS mounts that didn't exist. Even though the "noauto" was set, it still stopped me logging in to the desktop.

@cagnulein
Copy link

cagnulein commented Nov 19, 2020

On 18.04.

Don't know why but surprised that the needs_root_rights=yes line is actually needed, but its true :P

i confirm it too!

@nhuongmh
Copy link

nhuongmh commented Nov 14, 2021

Thank you, you saved me after hour of googling

@milind-brahme
Copy link

milind-brahme commented Jan 23, 2022

Right on the money. You are doing god's service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment