LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Unable to open display ':0' when launching an app on Debian 12 (https://www.linuxquestions.org/questions/debian-26/unable-to-open-display-%27-0%27-when-launching-an-app-on-debian-12-a-4175733961/)

Fleshyguy147 02-17-2024 06:22 AM

Unable to open display ':0' when launching an app on Debian 12
 
I recently installed CasaOS for a minecraft server, and recently had a thought that i could install Teamviewer on my server computer thinking i could WOL my main PC through there but my problem is that when i try to open teamviewer it shows me this message:

Init...
xprop: unable to open display ':0'
CheckCPU: SSE2 support: yes
Checking setup...
Launching TeamViewer ...
Launching TeamViewer GUI ...
Aborted

I tried following this guide: "https://linuxconfig.org/fixing-the-cannot-open-display-error-on-linux", but it didn't work, any advice?

michaelk 02-17-2024 08:41 AM

Does your server have a desktop installed?

How are you trying to launch teamviewer?

smallpond 02-17-2024 09:09 AM

When you log into a system running X-Windows, your system needs to set a DISPLAY environment variable to point to your display and keyboard. ssh does this when you give the -X or -Y options. Logging in from the local keyboard and monitor usually sets this to :0. You can check in a terminal with the command:
Code:

echo $DISPLAY
You can check if X is running with the command
Code:

pgrep X

Fleshyguy147 02-17-2024 09:27 AM

Quote:

Originally Posted by michaelk (Post 6484208)
Does your server have a desktop installed?

How are you trying to launch teamviewer?

1. If dy desktop you mean visual interface then no, only terminal on the server itself and i interact trough CasaOS

2. Through terminal by writing teamviewer

Fleshyguy147 02-17-2024 09:30 AM

Quote:

Originally Posted by smallpond (Post 6484214)
When you log into a system running X-Windows, your system needs to set a DISPLAY environment variable to point to your display and keyboard. ssh does this when you give the -X or -Y options. Logging in from the local keyboard and monitor usually sets this to :0. You can check in a terminal with the command:
Code:

echo $DISPLAY
You can check if X is running with the command
Code:

pgrep X


when i write

Code:

echo $DISPLAY
i get :0

and

Code:

pgrep X
outputs nothing

michaelk 02-17-2024 10:33 AM

TeamViewer is a remote desktop application and without a desktop it is not going to run. An alternative would be to use ssh and then run etherwake or other utilities that send WOL magic packets.

Fleshyguy147 02-17-2024 01:14 PM

Quote:

Originally Posted by michaelk (Post 6484232)
TeamViewer is a remote desktop application and without a desktop it is not going to run. An alternative would be to use ssh and then run etherwake or other utilities that send WOL magic packets.

thanks for pointing out that it can't run without desktop, i had problems with teamviewer after getting a desktop installed but i worked it out with anydesk in the end, thanks


All times are GMT -5. The time now is 07:38 PM.