Ho provato il Remote Desktop di Windows ma, una volta arrivato su Ubuntu, mi viene richiesto in continuazione il login anche se sono già loggato e pertanto risulta inutilizzabile.
Ho provato installando tigervnc server su Ubuntu seguendo le varie guide creando:
il file /home/luca/.vnc/xstartup
Codice: Seleziona tutto
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
Codice: Seleziona tutto
#!/bin/sh
test x"$SHELL" = x"" && SHELL=/bin/bash
test x"$1" = x"" && set -- default
vncconfig -iconic &
"$SHELL" -l << EOF
export XDG_SESSION_TYPE=x11
export GNOME_SHELL_SESSION_MODE=ubuntu
dbus-launch --exit-with-session gnome-session --session=ubuntu
EOF
vncserver -kill $DISPLAY
Codice: Seleziona tutto
luca@ubuntu-luca:~$ vncserver
/usr/bin/xauth: /run/user/1000/gdm/Xauthority not writable, changes will be ignored
/usr/bin/xauth: timeout in locking authority file /run/user/1000/gdm/Xauthority
New 'ubuntu-luca:1 (luca)' desktop at :1 on machine ubuntu-luca
Starting applications specified in /home/luca/.vnc/xstartup
Log file is /home/luca/.vnc/ubuntu-luca:1.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/luca/.vnc/passwd :1 to connect to the VNC server.
vncserver: Failed command '/home/luca/.vnc/xstartup': 256!
=================== tail -15 /home/luca/.vnc/ubuntu-luca:1.log ===================
Mon Apr 5 12:47:43 2021
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
Xvnc TigerVNC 1.10.0 - built Apr 9 2020 06:49:31
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12008000, The X.Org Foundation
Mon Apr 5 12:53:45 2021
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5901
vncext: created VNC server for screen 0
==================================================================================
Starting applications specified in /home/luca/.vnc/xstartup has failed.
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
Codice: Seleziona tutto
luca@ubuntu-luca:~$ vncserver -list
TigerVNC server sessions:
X DISPLAY # RFB PORT # PROCESS ID
:1 5901 59577
Poi provo a connettermi da Windows 10 con RealVNC impostando come indirizzo quello del PC su cui c'è Ubuntu (192.168.178.49:5901) ma non riesco.
Mi date una mano, per favore?
Grazie mille!