Difference between revisions of "Rockpi4/vnc"
< Rockpi4
Line 4: | Line 4: | ||
[[rockpi4 | ROCK Pi 4]] > [[rockpi4/vnc |Connect ROCK Pi via VNC]] | [[rockpi4 | ROCK Pi 4]] > [[rockpi4/vnc |Connect ROCK Pi via VNC]] | ||
− | + | This guide describes how to connect ROCK Pi via VNC. Here we use ROCK Pi 4 with Ubuntu system image. | |
− | + | === Install VNC server on your ROCK Pi 4 === | |
*Install VNC server | *Install VNC server | ||
Line 14: | Line 14: | ||
sudo apt-get install xrdp | sudo apt-get install xrdp | ||
− | *Run the VNC server | + | *Run the VNC server followed by setting password |
sudo vncserver | sudo vncserver | ||
Line 37: | Line 37: | ||
sudo service xrdp restart #Restart the xrdp | sudo service xrdp restart #Restart the xrdp | ||
− | ===Install VNC client on your PC | + | ===Install VNC client on your Linux PC === |
− | * | + | *Install VNC Viewer |
− | + | Download [https://www.realvnc.com/en/connect/download/viewer/ VNC Viewer] and install it on your PC. | |
sudo dpkg -i VNC-Viewer-6.19.325-Linux-x64.deb | sudo dpkg -i VNC-Viewer-6.19.325-Linux-x64.deb | ||
− | * | + | *Connect ROCK Pi 4 |
− | Power on your ROCK Pi 4 and | + | Power on your ROCK Pi 4 and make sure that it is connected to the network. |
Type on your PC: | Type on your PC: | ||
− | vncviewer | + | vncviewer <IP address of ROCK Pi 4>:1 |
− | If you don't | + | If you don't know what the IP address of your ROCK Pi 4 is, type this on your ROCK Pi 4: |
− | ifconfig | + | ifconfig #type the command, man config, to get some help |
− | If | + | If the IP address of ROCK Pi 4 is 192.168.31.196, type vncviewer 192.168.31.196:1 to connect to it, and then input your VNC password can open the desktop. |
Revision as of 05:56, 8 February 2020
ROCK Pi 4 > Connect ROCK Pi via VNC
This guide describes how to connect ROCK Pi via VNC. Here we use ROCK Pi 4 with Ubuntu system image.
Install VNC server on your ROCK Pi 4
- Install VNC server
sudo apt-get install xfce4 sudo apt-get install vnc4server sudo apt-get install xrdp
- Run the VNC server followed by setting password
sudo vncserver
- Edit the config file
sudo vim ~/.vnc/xstartup
- Change the contents to:
#!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources vncconfig -iconic & xfce4-session &
- Restart the vncserver and xrdp
sudo vncserver -kill :1 #Kill the vncserver process sudo vncserver #Restart the vncserver sudo service xrdp restart #Restart the xrdp
Install VNC client on your Linux PC
- Install VNC Viewer
Download VNC Viewer and install it on your PC.
sudo dpkg -i VNC-Viewer-6.19.325-Linux-x64.deb
- Connect ROCK Pi 4
Power on your ROCK Pi 4 and make sure that it is connected to the network.
Type on your PC:
vncviewer <IP address of ROCK Pi 4>:1
If you don't know what the IP address of your ROCK Pi 4 is, type this on your ROCK Pi 4:
ifconfig #type the command, man config, to get some help
If the IP address of ROCK Pi 4 is 192.168.31.196, type vncviewer 192.168.31.196:1 to connect to it, and then input your VNC password can open the desktop.