I use tigervnc on my 5 machines.
I have it start on each machine using rc.local (rc-local service)
runuser -l USER -c 'vncserver :XX -geometry 1600x845'
USER is the userid to run it on at startup
XX is the Port you want to run in on (02 would be 5902)
geometry is for my notebook, so would vary to what you need.
Other things.
/etc/firewalld/services
[root@setzco services]# cat vnc-server.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Virtual Network Computing Server (VNC)</short>
<description>A VNC server provides an external accessible X
session. Enable this option if you plan to provide a VNC server
with direct access. The access will be possible for displays :0 to :3.
If you plan to provide access with SSH, do not open this option and
use the via option of the VNC viewer.</description>
<port protocol="tcp" port="5900-5979"/>
</service>
I prefer to use the XFCE desktop with vnc so modify the xstartup
~/.vnc
[root@setzco .vnc]# cat xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec /bin/sh /etc/xdg/xfce4/xinitrc # X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
#vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"
&
startxfce4 &
#twm &
You have to start the vncserver locally with user first time to setup
password.
Then you should be able to vnc to machines using
vnc ipaddress:XX
I run 5 machines in room on private network, so didn't setup ssh,
but not a big deal to do it.
On 12 Oct 2023 at 0:18, Patrick Dupre wrote:
From: Patrick Dupre <pdupre(a)gmx.com>
To: Community support for Fedora users
<users(a)lists.fedoraproject.org>
Subject: vnc
Date sent: Thu, 12 Oct 2023 00:18:56 +0200
Send reply to: Community support for Fedora users
<users(a)lists.fedoraproject.org>
Hello,
I am trying to use remmina
nmap -v -n -Pn -p5900-5910 localhost
Starting Nmap 7.93 (
https://nmap.org ) at 2023-10-11 23:58 CEST
Initiating SYN Stealth Scan at 23:58
Scanning localhost (127.0.0.1) [11 ports]
Completed SYN Stealth Scan at 23:58, 0.01s elapsed (11 total ports)
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000013s latency).
Other addresses for localhost (not scanned): ::1
PORT STATE SERVICE
5900/tcp closed vnc
5901/tcp closed vnc-1
5902/tcp closed vnc-2
5903/tcp closed vnc-3
5904/tcp closed ag-swim
5905/tcp closed asmgcs
5906/tcp closed rpas-c2
5907/tcp closed dsd
5908/tcp closed ipsma
5909/tcp closed agma
5910/tcp closed cm
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
Raw packets sent: 11 (484B) | Rcvd: 22 (924B)
The ports are closed. Should not I open them?
If yes how?
When I do
vncviewer -via pdupre@themachine :1
I get
Thu Oct 12 00:00:02 2023
Parameters: Failed to read line 18 in file
/home/pdupre/.vnc/default.tigervnc: Unknown parameter
Parameters: Failed to read line 19 in file
/home/pdupre/.vnc/default.tigervnc: Unknown parameter
main: FullScreenAllMonitors is deprecated, set FullScreenMode to 'all'
instead
pdupre@themachine's password:
The connection was dropped by the server beforethe session could be established
nmap -v -n -Pn -p5900-5906 themachine
Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times
may be slower.
Starting Nmap 7.93 (
https://nmap.org ) at 2023-10-12 00:03 CEST
Initiating Connect Scan at 00:03
Scanning themachine (xxx.yyy.ttt.rrr) [7 ports]
Completed Connect Scan at 00:03, 3.00s elapsed (7 total ports)
Nmap scan report for themachine ()
Host is up.
PORT STATE SERVICE
5900/tcp closed vnc
5901/tcp closed vnc-1
5902/tcp closed vnc-2
5903/tcp closed vnc-3
5904/tcp closed ag-swim
5905/tcp closed asmgcs
5906/tcp closed rpas-c2
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.03 seconds
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
===========================================================================
_______________________________________________
users mailing list -- users(a)lists.fedoraproject.org
To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue
+------------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor (Retired)
mailto:mikes@guam.net
mailto:msetzerii@gmail.com
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+