From 5e20cae3dec2ad4328d23f7a8880a3e4cd04f933 Mon Sep 17 00:00:00 2001 From: aiminick Date: Fri, 26 Mar 2021 12:17:11 +0800 Subject: [PATCH] remove_realvnc remove_realvnc cuz rpi had added the realvnc 64bit pkg --- README.md | 160 ------------------------------------------------------ 1 file changed, 160 deletions(-) diff --git a/README.md b/README.md index 9e847eb..000d8df 100644 --- a/README.md +++ b/README.md @@ -1096,166 +1096,6 @@ Change the default VNC access password. ---- -If you wanna install another VNC server packages, just like RealVNC, you can do this bellow: - -(You need to disable our system default VNC service before installation) - -*But we still suggest you to use the default VNC of system by us.* - -#### Install RealVNC Remote Desktop Of macOS Mojave Theme Desktop Environment - -``` -vnc_pkg='VNC-Server-6.6.0-Linux-ARM.deb' ; \ -sudo \ -sed -i '/deb http:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ sid main non-free contrib/d' \ -/etc/apt/sources.list ; \ -sudo apt clean all ; \ -sudo echo 'deb http://mirrors.tuna.tsinghua.edu.cn/debian/ sid main non-free contrib' \ ->>/etc/apt/sources.list ; \ -sudo dpkg --add-architecture armhf ; sudo apt update ; \ -cd ~ ; wget https://www.realvnc.com/download/file/vnc.files/$vnc_pkg ; \ -sudo apt install ./$vnc_pkg ; \ -rm -rf ./$vnc_pkg ; \ -sudo dpkg --remove-architecture armhf ; sudo apt update ; \ -sudo systemctl enable vncserver-x11-serviced.service ; \ -sudo systemctl start vncserver-x11-serviced.service ; \ -sudo \ -sed -i '/deb http:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ sid main non-free contrib/d' \ -/etc/apt/sources.list ; \ -sudo apt clean all ; sudo apt update -``` - -**Attention please!!** - -``` -sudo \ -sed -i '/deb http:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ sid main non-free contrib/d' \ -/etc/apt/sources.list ; \ -``` - -**Don't miss this command in the process of installing RealVNC on it above!!!** - -Click [here](https://www.realvnc.com/en/connect/download/viewer/) to download RealVNC client - -Install and run the client, enter the IP address directly, do not need to fill in the port, username, and password is your system's login user and password. - -**PS:** - -*Some advanced instructions for Realvnc:* - -#### Installed system unit for VNC Server in Service Mode Mode Daemon - -Start or stop service with: - -``` -systemctl (start-stop) vncserver-x11-service.service -``` - -Mark or unmark the service to be started at boot time with: - -``` -systemctl (enable-disable) vncserver-x11-service.service -``` - -How to kill all Process: - -``` -killall vncserver-x11-core vncserver-x11 vncagent vncserverui -``` - -**When you do not have a monitor you need do this way** - -*VNC Server Virtual Mode* - -In this mode, the VNC connect address is: - -``` -your-Rpi-ip-address:1 -``` - -``` -## Mode A: - -Installed system unit for VNC Server in Virtual Mode Daemon -(This feature needs a RealVNC license) - -Start or stop service with: - - systemctl (start-stop) vncserver-virtuald.service - -Mark or unmark the service to be started at boot time with: - - systemctl (enable-disable) vncserver-virtuald.service -``` - -``` -## Mode B: - -Another way run Virtual Mode Daemon: -(Custom way without license) -(From Pi forum https://www.raspberrypi.org/forums/viewtopic.php?t=249124) - -Do as the follow steps: - -1. Install a package: - - apt install xserver-xorg-video-dummy -y - -2. Run command: - - killall vncserver-x11-core vncserver-x11 vncagent vncserverui ;\ - systemctl stop vncserver-x11-serviced.service ;\ - systemctl disable vncserver-x11-serviced.service ;\ - systemctl stop vncserver-virtuald.service ;\ - systemctl disable vncserver-virtuald.service - -3. Create a service script: - -/usr/lib/systemd/system/vncserver-pi.service - ---------------------------------------------------- -[Unit] -Description=VNC Server in Virtual Mode daemon -After=network.target - -[Service] -User=pi -Type=forking -ExecStart=/usr/bin/vncserver :1 -ExecStop=/usr/bin/vncserver -kill :1 -Restart=on-failure -RestartSec=5 -KillMode=process - -[Install] -WantedBy=multi-user.target ---------------------------------------------------- - -4. To enable the system Xorg server for all users, run: - - vncinitconfig -enable-system-xorg - - All answers need to choose "Y" - - If you wanna disable, run: - - vncinitconfig -disable-system-xorg - -5. Generate a "/etc/X11/vncserver-virtual.conf" conf file, run: - - vncinitconfig -virtual-xorg-conf - -6. Then enable and start service: - - systemctl enable vncserver-pi.service - systemctl start vncserver-pi.service - - -Known issue: -This mode isn't support restart vncserver-pi.service -You need to reboot system. -``` - ### 3-11. Switch Sound Output Channels Vesrion 2.0: System Default Use the **HDMI** to output audio.