diff --git a/README.md b/README.md index fb05dc1..522c310 100644 --- a/README.md +++ b/README.md @@ -942,23 +942,24 @@ fbterm Install RealVNC ``` +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 ; \ -apt clean all ; \ -echo 'deb http://mirrors.tuna.tsinghua.edu.cn/debian/ sid main non-free contrib' \ +sudo apt clean all ; \ +sudo echo 'deb http://mirrors.tuna.tsinghua.edu.cn/debian/ sid main non-free contrib' \ >>/etc/apt/sources.list ; \ -dpkg --add-architecture armhf ; apt update \ -cd ~ ; wget https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.6.0-Linux-ARM.deb \ -apt install ./VNC-Server-6.6.0-Linux-ARM.deb \ -rm -rf ./VNC-Server-6.6.0-Linux-ARM.deb \ -dpkg --remove-architecture armhf ; apt update \ -systemctl enable vncserver-x11-serviced.service ; \ -systemctl start vncserver-x11-serviced.service ; \ +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 ; \ -apt clean all ; apt update +sudo apt clean all ; sudo apt update ``` **Attention please!!**