KALI: differenze tra le versioni

Da GazziNet.
Vai alla navigazione Vai alla ricerca
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 12: Riga 12:
  Description=start vnc at boot
  Description=start vnc at boot
  After=multi-user.target
  After=multi-user.target
  [Service]
  [Service]
  Type=simple
  Type=simple
  ExecStart=/usr/bin/x11vnc -display :0 -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/vncserver.pass -rfbport 5900 -shared
  ExecStart=/usr/bin/x11vnc -display :0 -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/vncserver.pass -rfbport 5900 -shared
  [Install]
  [Install]
  WantedBy=multi-user.target
  WantedBy=multi-user.target

Versione delle 20:31, 3 dic 2024

Moduli:

sudo  apt install -y x11vnc  
x11vnc -storepasswd
sudo mv ~/.vnc/passwd /etc/vncserver.pass
sudo chmod 600 /etc/vncserver.pass

sudo nano /etc/systemd/system/vncserver.service

[Unit]
Description=start vnc at boot
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -display :0 -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/vncserver.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target



sudo apt install openssh-server
systemctl start ssh
systemctl enable ssh