SaCarde
tigervnc-standalone x86 & sparc + avvio da lightdm
configurazione su sistemi x86 e sparc + avvio da lightdm
1) installare tigervnc-standalone-server
2) inserire il servizio systemd
#
# /usr/lib/systemd/user/vncserver@.service
#
# 1. Switches for vncserver should be entered in ~/.vnc/config rather than
# hard-coded into this unit file. See the vncserver(1) manpage.
#
# 2. Users wishing for the server to continue running after the owner logs
# out MUST enable 'linger' with loginctl like this:
# `loginctl enable-linger username`
#
# 3. The server can be enabled and started like this once configured:
# `systemctl --user start vncserver@:.service`
# `systemctl --user enable vncserver@:.service`
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 :'
ExecStart=/usr/bin/vncserver -localhost no %i
ExecStop=/usr/bin/vncserver -kill %i
[Install]
WantedBy=default.target
3) abilitarlo e avviarlo
systemctl --user enable vncserver@:1
systemctl --user start vncserver@:1
4) configurare l'avvio delle applicazioni:
~/.vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS
xclock -update 1 &
konsole &
exec /usr/bin/fluxbox &
chmod u+x ~/.vncxstartup
5) impostare la password con: vncpasswd
riavviare il servizio
6) una volta partito il server, dal client:
vncviewer -SecurityTypes VncAuth -passwd /home/sacarde/.vnc/passwd 192.168.1.x:1
-------------------------------------
>>> avvio tramite lightdm o sddm <<<
- - - - - - - - - - - - - - - - - - -
Installare i pacchetti:
liblightdm
lightdm
lightdm-gtk-greeter
opz. lightdm-gtk-greeter-settings
tightvncserver
tigervnc-standalone-server
----------------------------------------
impostare password
vncpasswd /etc/vncpasswd
----------------------------------------
abilitare DM
systemctl enable lightdm
verificare:
sudo update-alternatives --config Xvnc
modificare: /etc/lightdm/lightdm.config
[SeatDefaults]
greeter-session=lightdm-gtk-greeter
user-session=sacarde
[VNCServer]
enabled=true
command=Xvnc -rfbauth /etc/vncpasswd
port=5900
width=1024
height=768
depth=16
-----------------------------------------
al comando:
netstat -anp
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 1962/lightdm
---------------------------------------
accedere tramite: "vncviewer IP" o "gvncviewer IP" + password
----------------------------------------
----------------------------------------
Per un sistema che usa sddm (kubuntu) : (in questo caso in ascolto ci sara' il server vnc)
- installare: x11vnc
- generare la password (come sopra)
- aggiungere a: /usr/share/sddm/scripts/Xsetup la riga:
/usr/bin/x11vnc -rfbauth /etc/vncpasswd -o /var/log/x11vnc.log -forever -bg
- questo si colleghera' all'esistente videata (login) presente sul "server"
- accedere tramite "vncviewer IP" o "gvncviewer IP" + password
-------------------------------------
Le ultime notizie relative a questo argomento





























































Tutte le notizie relative a questo argomento