# Remote Control Jetson Xavier NX via VNC
###### tags: `Jetson Xavier NX`
:::info
Teamviewer is not working on the Jetson Xavier NX.
:::
## Install & Setup
> Use VNC to remote desktop to control Jetson Xavier NX.
Following the steps to Setup the VNC Server.
```command
sudo apt update
```
```command
sudo apt install vino
```
```command
sudo ln -s ../vino-server.service /usr/lib/systemd/user/graphical-session.target.wants
```
```command
gsettings set org.gnome.Vino prompt-enabled false
```
```command
gsettings set org.gnome.Vino require-encryption false
```
```command
sudo vi /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
```
Press `i` to insert the words at the bottom of file.
```
<key name='enabled' type='b'>
<summary>Enable remote access to the desktop</summary>
<description>
If true, allows remote access to the desktop via the RFB
protocol. Users on remote machines may then connect to the
desktop using a VNC viewer.
</description>
<default>false</default>
</key>
```
```command
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
```
Run the vnc server.
```command
/usr/lib/vino/vino-server
```
To set VNC automatically start when the system boot up.
```command
gsettings set org.gnome.Vino enabled true
```
```command
mkdir -p ~/.config/autostart
```
Open the file.
```command
vi ~/.config/autostart/vino-server.desktop
```
Add into the file.
```
[Desktop Entry]
Type=Application
Name=Vino VNC server
Exec=/usr/lib/vino/vino-server
NoDisplay=true
```
Setting the Desktop Resolution
```command
$sudo vi /etc/X11/xorg.conf
```
Insert words below into the file.
```
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Tegra0"
SubSection "Display"
Depth 24
Virtual 1920 1080 # Modify the resolution by editing these values
EndSubSection
EndSection
```
Remember to reboot.
```command
sudo reboot
```
## Reference
https://www.jianshu.com/p/e670a9a26989