vnc ubuntu 18.04

in vnc •  6 years ago  (edited)

ubuntu 18.04

sudo apt update
sudo apt install xfce4 xfce4-goodies
sudo apt install tightvncserver
vncserver
введите пароль от vnc
можете включить vnc только для просмотра
vncserver -kill :1

** mv ~/.vnc/xstartup ~/.vnc/xstartup.bak **

** nano ~/.vnc/xstartup **

#!/bin/bash

xrdb $HOME/.Xresources

startxfce4 &

** sudo chmod +x ~/.vnc/xstartup **

** vncserver **

** ssh -L 5901:127.0.0.1:5901 -C -N -l sammy your_server_ip **

установите программу tightvnc https://www.tightvnc.com/

https://www.virustotal.com/ru/url/1e282c63943c454b0438729b9dd736e82065b5f012e7bfc0a4bf6d5344db433a/analysis/

** sudo nano /etc/systemd/system/[email protected] **

[Unit]

Description=Start TightVNC server at startup

After=syslog.target network.target



[Service]

Type=forking

User=sammy

Group=sammy

WorkingDirectory=/home/sammy



PIDFile=/home/sammy/.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

** sudo systemctl daemon-reload **

** sudo systemctl enable [email protected] **

** vncserver -kill :1 **

** sudo systemctl start vncserver@1 **

** sudo systemctl status vncserver@1 **

** ssh -L 5901:127.0.0.1:5901 -C -N -l sammy your_server_ip **

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you so much for sharing this amazing post with us!

Have you heard about Partiko? It’s a really convenient mobile app for Steem! With Partiko, you can easily see what’s going on in the Steem community, make posts and comments (no beneficiary cut forever!), and always stayed connected with your followers via push notification!

Partiko also rewards you with Partiko Points (3000 Partiko Point bonus when you first use it!), and Partiko Points can be converted into Steem tokens. You can earn Partiko Points easily by making posts and comments using Partiko.

We also noticed that your Steem Power is low. We will be very happy to delegate 15 Steem Power to you once you have made a post using Partiko! With more Steem Power, you can make more posts and comments, and earn more rewards!

If that all sounds interesting, you can:

Thank you so much for reading this message!