Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recommendations for VNC servers
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 526
Location: Wales, UK

PostPosted: Fri Aug 20, 2021 11:25 am    Post subject: Recommendations for VNC servers Reply with quote

Good morning!
I have an Udoo Bolt computer in my ham shack running gentoo, and a desktop in the office in the house. I would like to access the running X session on the shack computer from the desktop (as opposed to cli ssh access used until now). The solutions seems to be to run a VNC server in the shack, and then connect through a vncviewer from the office (or laptop etc). I would like to have the following:
  • The ability to see and interact with the desktop currently on the monitor in the shack. In other words, I don't want to start another X session (although on occasion, the ability to do this might be useful as well!).
  • To have the server up and running when the computer boots up, before anyone logs in. I want to be able to log in remotely, but then go to the shack and continue to use the session I have started.

Based on these requirements, it looked like x11vnc would be the best candidate, but it doesn't seem to work "out of the box", and there isn't much gentoo specific information about getting it configured to work.Tigervnc seems to start a new X session - I can't see anywhere in the documentation which shows connecting to the existing session.
Other (potentially relevant) information: the shack computer uses kde/plasma as a desktop environment, and slim as login manager.

I would be interested to hear your views about which vnc server I should consider!

Thanks in advance,
Paul
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 501

PostPosted: Fri Aug 20, 2021 3:04 pm    Post subject: Reply with quote

I have TigerVNC on a couple of Gentoo Raspberry Pi's for a vnc server. I use it occasionally, seems to work. I usually access the server usingVNC Viewer from whatever is in front of me. It may be another Pi on RPi OS, a Mac, or Windows.

I don't run it as a daemon. I start it with a geometry statement that corresponds to the monitor in front of me, then kill the server when I am finished.

I'm posting this from one of those Pi's using a TigerVNC server and a Windows PC using VNC Viewer as the client. Just wanted to make sure it was still working. The Pi is presently maxed out compiling Firefox, but it is only slow, not unusable. Oh, what a lovely advance from the old 200 watt single core room heaters.
Back to top
View user's profile Send private message
user
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 213

PostPosted: Fri Aug 20, 2021 9:56 pm    Post subject: Reply with quote

Hi paulj,

you can use tigervnc as remote and persistent X server.
Code:
net-misc/tigervnc-1.9.0-r2::gentoo  USE="pam server xorgmodule -dri3 -drm -gnutls -java -nls -opengl -xinerama"

Together with slim windowsmanager like
Code:
x11-wm/fluxbox-1.3.7-r4::gentoo  USE="slit toolbar truetype -bidi -imlib -nls -systray -vim-syntax -xinerama"

there will be low ressource requirements.
Code:
# ps -orss,vsz,comm $(pgrep Xvnc) $(pgrep fluxbox)
  RSS    VSZ COMMAND
58764  73932 Xvnc
 5336  21496 fluxbox


Connection via vncviewer and ssh port forward of course.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22924

PostPosted: Sat Aug 21, 2021 12:59 am    Post subject: Reply with quote

Another option would be to use xpra. The X clients display to a headless xpra server, then both local and remote viewing are forwarding the xpra contents. The advantage of this is that each underlying window remains a distinct X window on the viewer system, rather than having all the shack windows confined to a VNC viewer window. Also, you can easily switch between local and remote viewing.

One reason I dislike VNC for the use case you seem to have is that x11vnc shows what is on the host's monitor, so you need the host to be unlocked to view it remotely.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Sat Aug 21, 2021 3:36 am    Post subject: Reply with quote

You may want to consider net-misc/x2goserver, depending on the DE/WM you run on your hamshack PC.
See: https://wiki.x2go.org/doku.php/doc:de-compat
I use it with OpenBox, LXDE, and older XFCE. Newer XFCE is becoming incompatible using the XFWM's composting.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 526
Location: Wales, UK

PostPosted: Sat Aug 21, 2021 7:53 am    Post subject: Reply with quote

Thanks everyone - some good options to try out! I’ll post back how I get on.
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1402
Location: Tri-Cities, WA USA

PostPosted: Thu Jan 02, 2025 3:19 pm    Post subject: Reply with quote

yo paulj,

what option did you go with?
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 526
Location: Wales, UK

PostPosted: Thu Jan 02, 2025 5:22 pm    Post subject: Reply with quote

cwc wrote:
yo paulj,

what option did you go with?


To be honest, I ended up just going in the shack when I want to do some Ham Radio!! None of the options were friction free, and I decided to spend more time on the radio rather than trying to get everything working.

I should also add that this can get challenging with wayland. While working on a separate issue, I experimented with a raspberry Pi, and you can get TigerVNC working with wayland, but if you use it under X then change, it doesn't work unless you clean out the various configuration files. I can't remember the details, but if you google it you will find information.

Let us know how you get on!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum