LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2023, 11:24 AM   #1
Linf-ord
LQ Newbie
 
Registered: Dec 2023
Distribution: Arch, Slackware
Posts: 4

Rep: Reputation: 0
Remote desktop display


Hi, not sure what to use and hoping someone has a recommendation. Iv already looked at TigerVNC but after reading Bobs blog about it, it doesn't let you view the current logged in user unless I've missed something, this is something I need it to do.
 
Old 12-22-2023, 11:28 AM   #2
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 573

Rep: Reputation: Disabled
Why spy on someone else?
 
Old 12-22-2023, 11:33 AM   #3
Linf-ord
LQ Newbie
 
Registered: Dec 2023
Distribution: Arch, Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
? its my own computer its just that I want to control it from my laptop instead of having to get up and go to the keyboard/mouse (lazy i know) but still want the current display on my TV... I can ssh into and that's fine but I also want to use some GUI things like browsers, VLC and such. I hope that clears things up better.
 
Old 12-22-2023, 12:55 PM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
If you just want control, barrier is a great tool. For example, you can set it up so that when you move your mouse to the upper left corner of your laptop's screen, it "magically" goes to the upper right corner of the TV computer. And then when you move the mouse past the right edge of the TV computer's screen it "magically" returns to the left edge of your laptop's screen.

Basically, barrier emulates a multi-monitor display set up, but across different computers. You can even mix and match Windows and Mac computers in there also.

If you want a replicated display (while also keeping the original display active), then x11vnc and xtightvncviewer are a great combo. Naturally the replicated display will be a little bit laggy, especially over WiFi, but it's pretty good.

On your server (the TV computer) you run:
Code:
x11vnc -nowf -display :0
On your laptop, you run:
Code:
vncviewer 192.168.111.222
Replace 192.168.111.222 with your TV computer's IP address. (You may want to create entries in /etc/hosts so you can use computer names rather than raw IP addresses.)
 
3 members found this post helpful.
Old 12-22-2023, 01:23 PM   #5
Linf-ord
LQ Newbie
 
Registered: Dec 2023
Distribution: Arch, Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your answer Barrier looks really useful never heard of it before but not really good for this case since I would like Slackware to be on another virtual desktop on my laptop to save confusion but thanks for the recommendation. Ill have a look at x11vnc and xtightvncviewer, again thank you for your help

--edit x11vnc was perfect for my needs, thank you

Last edited by Linf-ord; 12-22-2023 at 03:34 PM.
 
Old 12-22-2023, 05:21 PM   #6
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 978

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by Linf-ord View Post
I can ssh into and that's fine but I also want to use some GUI things like browsers, VLC and such.
Ssh supports tunneling of X traffic through the encrypted connection. Example:

Code:
mylocalmachine> ssh -X theremotemachine
theremotemachine> firefox &
An voila! The firefox window running on theremotemachine will appear on the screen of mylocalmachine.

regards Henrik
 
2 members found this post helpful.
Old 12-24-2023, 04:25 AM   #7
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by Linf-ord View Post
? its my own computer its just that I want to control it from my laptop instead of having to get up and go to the keyboard/mouse (lazy i know) but still want the current display on my TV... I can ssh into and that's fine but I also want to use some GUI things like browsers, VLC and such. I hope that clears things up better.
I run ssh with the "-X" option to allow for GUI applications to be run on the "remote" computer (i.e., my desktop computer) with the application window displaying on the "local" computer (i.e., my laptop).

It isn't the greatest solution, in that it won't run everything; playing videos on my laptop screen, for instance, won't work and just makes a mess of it.

However, I can now log in to my desktop computer through ssh and then run vlc & to open the VLC window, select my Google Chromecast as the playback device, and watch videos without hassle.

Some configuration was required to tell the ssh server to allow for X sessions; I cannot check the details at the moment, but I can look them up again later, if you wish.

I also set up two-factor authentication, so whenever I log in to my desktop computer through ssh, I now have to type in a verification code generated by, e.g., Google Authenticator on my phone.

Last edited by luvr; 12-24-2023 at 04:27 AM.
 
Old 12-24-2023, 07:37 AM   #8
Linf-ord
LQ Newbie
 
Registered: Dec 2023
Distribution: Arch, Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
I never really thought about x-forward via ssh tbh. x11vnc is doing the job so I'm happy with that. As a side note, I'm also using antimicrox to map keyboard shortcuts to a wireless game controller for simple navigation and such, so wont really be using remote desktop all that often its just their for when I need it

Last edited by Linf-ord; 12-24-2023 at 07:41 AM.
 
  


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
LXer: 'Chrome Remote Desktop' A Linux Remote Desktop App LXer Syndicated Linux News 0 08-13-2016 04:15 PM
X: display remote session or "Can't open display" DBabo Linux - General 1 07-06-2015 12:28 AM
SSH shell disabled + Remote desktop NX (or another remote desktop software) zoltan32 Linux - Software 2 04-12-2011 03:36 AM
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 06:54 PM
Remote login with SSH, but display on remote computer. brodin Linux - Software 3 09-09-2007 03:01 AM

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

All times are GMT -5. The time now is 01:16 PM.

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