2022-06-25 11:34:35 +02:00
|
|
|
---
|
|
|
|
title: VNC
|
2022-11-19 15:25:20 +01:00
|
|
|
visible: true
|
2022-06-28 14:14:10 +02:00
|
|
|
media_order: vnc-linux-pic1-example.png
|
2022-06-25 11:34:35 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
[toc]
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-06-25 11:34:35 +02:00
|
|
|
## Linux Server
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-06-25 11:34:35 +02:00
|
|
|
For the VNC Server we will be using tightVNC.
|
2023-02-23 14:48:51 +01:00
|
|
|
`# apt install tightvncserver`
|
2022-06-25 11:34:35 +02:00
|
|
|
|
|
|
|
Initial setup and starting VNC server
|
2023-02-23 14:48:51 +01:00
|
|
|
`vncserver`
|
2022-06-25 11:34:35 +02:00
|
|
|
|
|
|
|
You will have to enter a password
|
2023-02-23 14:48:51 +01:00
|
|
|
Optionally, a view-only password can be created as well.
|
2022-06-25 11:34:35 +02:00
|
|
|
|
|
|
|
Kill VNC server
|
2023-02-23 14:48:51 +01:00
|
|
|
`vncserver -kill :1`
|
2022-06-25 11:34:35 +02:00
|
|
|
|
2023-02-23 14:48:51 +01:00
|
|
|
Edit the `xstartup` file in `.vnc` to your liking.
|
2022-06-25 11:34:35 +02:00
|
|
|
|
2023-02-23 14:48:51 +01:00
|
|
|
_Example with xfce_
|
|
|
|
|
|
|
|
```sh
|
2022-06-25 11:34:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
xrdb $HOME/.Xresources
|
|
|
|
unset SESSION_MANAGER
|
|
|
|
unset DBUS_SESSION_BUS_ADRESS
|
|
|
|
exec startxfce4
|
|
|
|
```
|
|
|
|
|
|
|
|
### Change password
|
|
|
|
|
2023-02-23 14:48:51 +01:00
|
|
|
`vncpasswd`
|
|
|
|
|
|
|
|
You can also add a view-only password
|
2022-06-25 11:34:35 +02:00
|
|
|
|
|
|
|
## Windows Server
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-06-25 11:34:35 +02:00
|
|
|
Install tightVNC to get a VNC Client and also a VNC Server in one package for windows.
|
2023-02-23 14:48:51 +01:00
|
|
|
The server will be started automatically.
|
2022-06-25 11:34:35 +02:00
|
|
|
|
2023-02-23 14:48:51 +01:00
|
|
|
One important setting is `Require VNC authentication`, which allows you to define a password for viewing and interacting with the remote pc.
|
2022-06-25 11:34:35 +02:00
|
|
|
|
|
|
|
## Linux Client
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-06-25 11:34:35 +02:00
|
|
|
Install Remmina with libvncserver to get client functionality.
|
|
|
|
`# pacman -S remmina libvncserver`
|
2022-06-28 14:15:10 +02:00
|
|
|
![Picture showing the usage of VNC with Remmina](vnc-linux-pic1-example.png)
|
2022-06-25 11:34:35 +02:00
|
|
|
|
|
|
|
## Windows Client
|
|
|
|
|
2023-02-23 14:48:51 +01:00
|
|
|
Install tightVNC to get a VNC Client and also a VNC Server in one package for windows.
|