New answers tagged

3

Switching window managers is supported by all X window managers; typically it involves running them with a --replace argument, so they replace the currently-running window manager: metacity --replace & Depending on how your X session started, you could kill the current window manager and start a new one, but for that to work, you need to be sure that ...


3

Debian and many other Gnu/Linux distros use X11+Gnu+Linux. The X11 server handles the screen/keyboard/mouse, your process is trying to connect to it, so that it can display stuff. This normally works without problem, but because you have changed user, it is having trouble authenticating. (There is security between user process and X11 display server, as it ...


3

If you have root access (or sudo ps) then you can display the environment of a process with the e option. Inside here you should be able to see the DISPLAY variable (if it's set). You probably need ww to ensure the output doesn't get truncated. e.g. % ps wwep $$ | tr ' ' '\012' | grep DISPLAY DISPLAY=:0 So my current shell is talking to :0. Many OS's ...


0

I purchased a second USB-C to HDMI adapter, and everything works perfectly with it. Conclusion: The first adapter I had is broken.


0

The first place to check, is if you happened to sudo to root. As a rule, your DISPLAY variable is un-set to guard against misuse of the root account. The workarounds consist of setting the DISPLAY variable using xhost to allow connections from the local machine as the root-user. From the comments of things tried, you are probably close, but missed a ...


0

In the /tmp folder there can also be .X??-lock files with ?? indicating the session numbers. You need to delete these if you want to re-use a session number. You can see them using ls -a as normally files starting with a . are hidden.


0

those are errors from your command shell. you are running code through the shell, not python. try from a python interpreter ;) $ python Python 2.7.5+ (default, Sep 19 2013, 13:48:49) [GCC 4.8.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import requests >>> from datetime import datetime,date,...



Top 50 recent answers are included