Prejsť na obsah
- Download official image RaspberryPi OS 64bit and write to SD card
- Do first time setup
- Install tigervnc server
sudo apt install tigervnc-standalone-server
- Create password with command
- Override systemd unit file by running this command
sudo systemctl edit vncserver-x11-serviced.service
- Enter this into file that is edited
[Unit]
Description=VNC Server in Service Mode daemon
After=network.target
[Service]
Type=forking
User=pi
WorkingDirectory=/home/pi
Environment="DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus"
Environment="XDG_RUNTIME_DIR=/run/user/1000"
ExecStart=
ExecStart=bash -c "tigervncserver -localhost no"
ExecStop=tigervncserver -kill :1
ExecReload=
[Install]
WantedBy=multi-user.target
- If user is different than pi then change it in previous step accordingly
- Reboot
- Connect to VNC server on port 5901