Linux Ubuntu - how to set up VNC access

Linux Ubuntu - how to set up VNC access

Hello, would there be some short instructions for set up VNC access on Ubuntu? I tried x11vnc, but I didn't walk much. Thanks for the help

REPLY


Hi,

if the local instructions for x11vnc do not suit you, try tightvncserver.

1.) If you have Ubuntu Server without GUI, first install eg GUI from Xubuntu:

X11 - installation xubuntu-core
--------------------
apt install tasksel
tasksel install xubuntu-core
reboot


2.) Intall and set up Tight VNC server:

tightvncserver
--------------------

apt install tightvncserver
su user1
vncserver

sudo vim /etc/systemd/system/vncserver@.service

[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target

[Service]
Type=forking
User=user1
Group=user1
WorkingDirectory=/home/user1

PIDFile=/home/user1/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target


systemctl daemon-reload
systemctl enable vncserver@1.service
systemctl start vncserver@1

Check:
-------------------
netstat -tulpn | grep 5901

tcp 0 0 127.0.0.1:5901 0.0.0.0:* LISTEN 32099/Xtightvnc

Související obsah

linux

bash

terminal

vnc

x11

Komentáře

Vaše reakce na Linux Ubuntu - jak nastavit VNC přístup

Reference

Podívejte se na naše reference

Prohlédnout

Aplikace

Podívejte se na naše aplikace

Prohlédnout

Co umíme?

Podívejte se co umíme

Prohlédnout

Co umíme?

Vytváříme sofistikované aplikace pro náročné

Od webových aplikací přes android až po převodové můstky či složité informační systémy.

Podívejte se k nám

Máte ještě čas? Podívejte se na další rubriky

Tento web používá soubory cookie. Dalším procházením tohoto webu vyjadřujete souhlas s jejich používáním.. Více informací zde.