LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-21-2023, 09:54 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,693
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
uses for VNC


other than as a server to let a client connect to, to become the virtual display for a virtual instance of an X server (such as, but not limited to) Xvnc, what uses would a Linux user or Linux system administrator have for running (another) VNC server, either for herself, or for public use?

if you have ever run a VNC server for any reason other than to run a virtual X or to just try it out to learn more about it, what would such a reason be?
 
Old 04-21-2023, 10:19 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,400
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
I've played with VNC's on my home network to learn about them, but, when it comes usage in the Enterprise, I would say it's to allow someone who has a compelling need to access a remote computer via a GUI interface to do so when that need arises.

The key word there is "compelling."

I remember the first time I used a VNC. At the time I was working tech support for a company that manufactured a very specialized form of security software and hardware. My employer sold through authorized dealers and we in support supported the authorized dealers, usually in trouble-shooting problems at end user sites.

Under the auspices of an authorized dealer rep, an end user set me up with a VNC to the computer that was running our product so I could help diagnose and fix the problem they were having. It was a long time ago and I don't remember precisely what the problem was, but I do remember that, thanks to the VNC connection, the dealer rep and I were able to figure it out and fix it.

This was under Windows, not Linux, but I think it pretty much encapsulates what VNC's are for.

Just my opinion.

Last edited by frankbell; 04-21-2023 at 10:21 PM.
 
Old 04-22-2023, 04:41 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,096

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
using gui with an rpi ? RPi has no display, but I wanted to use some gui apps. But actually I don't understand. Vnc is used as a remote display, what else can it be?
 
Old 04-22-2023, 09:17 AM   #4
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 503

Rep: Reputation: 183Reputation: 183
Quote:
Vnc is used as a remote display, what else can it be?
+1. Remote access. I used/use it to access my home server which runs headless. Same now and then with other RPIs. Most times I just SSH into the systems, but sometimes using a GUI tool is easier to use.
 
Old 04-22-2023, 09:32 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,388

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
As a rule, I access remote systems via SSH. If I want a GUI application such as a file manager then I will add the -Y option when connecting via SSH.
My one use case for VNC is a media server running Kodi. Kodi over a SSH connection is like wading through treacle. Kodi via VNC tunnelled through SSH is acceptable.

Last edited by allend; 04-22-2023 at 09:43 AM.
 
Old 04-22-2023, 12:29 PM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,779

Rep: Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772
VNC serves the same purpose as Windows Terminal Server, but in a different way and shoving off the security question to other application (generally SSH/SSL). Anywhere you need a tool to provide a GUI session into a remote server and network where Terminal Server would do, VNC is another and far more generally compatible (although somewhat less efficient) option.
 
Old 04-25-2023, 03:11 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,693

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
the summary i make out of this, so far, is the VNC is generally used as a tool to access a system console of some kind, be it software (i think of X Windows and Microsoft Windows both as software) or hardware. i have been thinking of doing something different.

several years ago i was thinking of an application which seemed better to do in VNC due to having parts of the display continuously updated several times a second. today that might be better done as a live video.

a few weeks ago i started thinking about something new. this would be a VNC switcher. it would have one client connect to it and have a custom keyboard sequence to switch among VNC servers. raw byte stream switching would not work with any protocol i can think of. my thought is that VNC is simple enough to do switching with it. i currently switch between many users on my laptop to have many ongoing contexts of work in wider windows. for example, i am typing this in on a nearly full screen web browser in a username dedicated to many forums i access (user "forums"). with a switcher that can connect to other hosts with a different port number for each user, or maybe some kind of session trunking with SCTP. other "server" applications or devices could be used, as well.

would a switch be considered its own application or just a VNC tool?
 
Old 04-25-2023, 03:17 PM   #8
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,693

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by pan64 View Post
Vnc is used as a remote display, what else can it be?
using a broad meaning for "display" that pretty much covers it all. i once thought of it as a less complicated way to transmit less efficient "video" display content being rapidly calculated by software.
 
Old 04-26-2023, 03:21 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,779

Rep: Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772
You would need to define your terms very loosely to make that description fit.
CONSOLE has a specific meaning, and neither Terminal Services nor VNC gets you to the system console: they get you to a exported GUI window. In the case of VNC (And Terminal Service in server mode) a window created just for that session.

I see no purpose in a switcher, since when using vnc clients I often have multiple sessions open to multiple servers and switch between them using my normal desktop tools. If that application would have utility for you, then build it. IT might be useful for many others as well.

Why would you care if you called it an application or a VNC tool? That makes no functional or technical difference. It might to those who have more to contribute to community politics than to community code and resources, but that is really not something that should make your decisions for you.

Last edited by wpeckham; 04-26-2023 at 03:23 PM.
 
Old 04-29-2023, 03:13 AM   #10
vivek101
LQ Newbie
 
Registered: Apr 2023
Location: India
Posts: 1

Rep: Reputation: 0
Thumbs up

Hi Skaperen,

Running a VNC server on Linux can be useful for remote desktop access, headless server management, accessing GUI applications, and training/support. Personally, I have used it for remote desktop access and headless server management.

Have a nice day.
 
Old 04-29-2023, 03:51 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
" If I want a GUI application such as a file manager then I will add the -Y option when connecting via SSH."

May be typo to mean -X?

Took me a while to decide on that too.
 
Old 04-30-2023, 01:17 AM   #12
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,693

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by wpeckham View Post
I see no purpose in a switcher, since when using vnc clients I often have multiple sessions open to multiple servers and switch between them using my normal desktop tools.
what if all those sessions were (nearly) full screen in size? would you minimize all but one, much like switching workspaces does? what if many of the places to make a GUI connection to were on different hosts? at what level would you make the network connections?
 
Old 04-30-2023, 03:09 PM   #13
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,779

Rep: Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772Reputation: 2772
Quote:
Originally Posted by Skaperen View Post
what if all those sessions were (nearly) full screen in size?
That would be the normal case, yes.
Quote:
would you minimize all but one, much like switching workspaces does?
First, I see no problem in having them all full sized on one behavior on my desktops. screen as long as when I select one that one jumps to the front. That is normal behavior on my desktops. Second, there is nothing wrong with one per workspace, and my machines can support a LOT of workspaces!
Quote:
what if many of the places to make a GUI connection to were on different hosts?
ALL of my sessions are to different hosts.
Quote:
at what level would you make the network connections?
I am not sure what you mean. Each VNC session makes a unique connection when it is started. If you have two to a single host you can put them all in a single ssh/ssl tunnel, but that is a special case: and in that case the network connection is made when you open that first session and the tunnel gets established.
 
Old 05-01-2023, 02:16 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,096

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
actually I would not make several connections from the same client to the server, that is not that efficient. But anyway, there can be a case...
 
Old 05-01-2023, 02:07 PM   #15
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,693

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by wpeckham View Post
ALL of my sessions are to different hosts.
Quote:
Originally Posted by wpeckham View Post
I am not sure what you mean. Each VNC session makes a unique connection when it is started. If you have two to a single host you can put them all in a single ssh/ssl tunnel, but that is a special case: and in that case the network connection is made when you open that first session and the tunnel gets established.
i am trying to understand how different LQ users set this up (then how is the reaction to how i would set it up). some means to "switch" has to happen. i see many possible ways.

i currently do it by each session running on a separate X server on my laptop and directing LightDM to switch via "dm-tool switch-to-user $user" where $user is the unique user name for each session. the switch happens via "chvt $n" or the kernel syscall it does. the steps at this point are unknown to me but the currently active X server becomes inactive and the appropriate X server becomes active. the new X server puts its last buffer back on the physical display and sends expose requests to all its X clients.

i want to change this so that each session that runs X (most, usually all) with something like Xvnc. it would run like an X server listening both for X clients and one VNC client. on some machine (i could do this on my laptop as one option) i would run my VNC switcher. if this runs across any unsafe network it will need an encrypted path such as SSH. doing SSH everywhere might be simpler to design. the switcher will listen for incoming VNC clients, authenticate them as appropriate, and pre-connect certain sessions. the user on those VNC clients can then request session connections and disconnections as desired and switch to which session to be active. on my laptop i would run a VNC client (most likely under X or Wayland). it would do the VNC connection to VNC switcher and go from there.

i am thinking to make my switcher require SSH for both incoming (from its one client) and outgoing (to each session). so each session will have to be running some form of an SSH layer, a VNC layer and an application layer (XVNC or WaylandVNC or whatever). this would avoid having to track where there is no SSH by having it always present.

so why would i do this?

as i start to deploy things i am developing out to the cloud, i would have many new sessions to deal with. VNC would make this easier. but i have found many clients that do VNC are awkward as clients and even more so for session switching. nothing integrates any SSH security, yet, so that is even more awkwardness. i could hack some existing client to add all this at the user client level. but i find it to be more awkward to hack around an existing design (it can change in the future and forking has all the same hassle of a new project). i might as well do my own design. i feel a switching server is easier for me and still leaves it possible for others to have their client on Microsoft Windows (they could run the switcher in a cloud instance).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Microsoft's Charm Offensive Against GNU/Linux Uses the Same Media Strategy Donald Trump Uses LXer Syndicated Linux News 0 04-04-2016 06:13 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
need VNC to allow 'logout/login' from Gnome (gnome & VNC runs fine) spudler Linux - Networking 3 11-14-2004 10:02 AM
xinetd uses service --> slackware uses ??? kntgtaid Slackware 1 06-06-2004 02:10 PM
VNC - Selecting different WindowManagers with VNC cmfarley19 Linux - Software 0 04-16-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:14 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