Root has stopped working

Please provide the following information:


ROOT Version (e.g. 6.12/02): 6.13/01
Platform, compiler (e.g. CentOS 7.3, gcc6.2): gcc version 5.4.1


Hello, i have issues when i start root with the command ‘root’. When i have typed root in the
terminal, i get the message PopupLogo, XOpenDisplay failed. TBrowser dosen’t work either.
The weird part is that it worked yesterday, both root and TBrowser. Im using Ubuntu shell 16.04.4, xenial. Installed on windows 10.

Looks like you have a problem with X server, not root.
Do you have X server running?
Do you have the DISPLAY environment variable properly set in the WSL?

If i type $DISPLAY in the terminal i get:
localhost:0.0: command not found.
I have used this command in the terminal: export DISPLAY=localhost:0.0
And i get the same error

Does xterm work in the WSL?

If i type xterm in the terminal i get :

Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can’t open display: %s
root@LAPTOP-RN8LCL9D:~# xterm
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can’t open display: %s

So, as I’ve said, the problem is in your X server, not in root.

I typed these commands in the console:
sudo apt update
sudo apt install fluxbox xinit xterm
and then startx
I got the following

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-97-generic x86_64 Ubuntu
Current Operating System: Linux LAPTOP-RN8LCL9D 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64
Kernel command line: BOOT_IMAGE=/kernel init=/init ro
Build Date: 13 October 2017 01:57:05PM
xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
Before reporting problems, check
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.0.log”, Time: Mon Apr 2 14:55:48 2018
(==) Using system config directory “/usr/share/X11/xorg.conf.d”
(EE)
Fatal server error:
(EE) xf86OpenConsole: Switching VT failed
(EE)
(EE)
Please consult the The Foundation support
at
for help.
(EE) Please also check the log file at “/var/log/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

X server does not run inside WSL (“bash shell” in Windows®™ 10®™).
If root worked yesterday, it means you have X server on Windows®™. Something like Xming.
Make sure it is running or restart it.

I forgot that i have not Xming started yet, that fixed the problem.
Thanks for the help

regards
fabstr

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.