LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-17-2024, 06:22 AM   #1
Fleshyguy147
LQ Newbie
 
Registered: Feb 2024
Posts: 4

Rep: Reputation: 0
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?
 
Old 02-17-2024, 08:41 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,705

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Does your server have a desktop installed?

How are you trying to launch teamviewer?
 
Old 02-17-2024, 09:09 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
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
 
Old 02-17-2024, 09:27 AM   #4
Fleshyguy147
LQ Newbie
 
Registered: Feb 2024
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
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

Last edited by Fleshyguy147; 02-17-2024 at 09:39 AM.
 
Old 02-17-2024, 09:30 AM   #5
Fleshyguy147
LQ Newbie
 
Registered: Feb 2024
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
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
 
Old 02-17-2024, 10:33 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,705

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
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.
 
Old 02-17-2024, 01:14 PM   #7
Fleshyguy147
LQ Newbie
 
Registered: Feb 2024
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
launching app under wine only works in root mtdew3q Linux - Newbie 3 04-22-2007 09:22 PM
Independant monitors: launching an app to a monitor from CLI / script piete Slackware 0 12-12-2006 09:41 AM
launching an app into a specific workspace? jasonv Fedora 0 11-14-2004 04:58 PM
Launching an app through telnet? P_Shep Linux - Newbie 2 10-22-2004 09:51 AM
Oddly sluggish: app launching in KDE nvn Slackware 5 08-02-2004 05:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration