Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the vncserver Virtual Network console in Ubuntu 18.04 LTS

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install the vncserver virtual network console in Ubuntu 18.04 LTS. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Install the desktop environment

We can Ubuntu provides many desktop environments, you can choose your favorite desktop environment, choose to install Xfce4 desktop here:

Bpang@ubuntu1804:~$ sudo apt install xfce4*

Install VNC Server

Install the vnc4server provided by the warehouse:

Bpang@ubuntu1804:~$ sudo apt install vnc4server

Run the vncserver command to create an initial configuration and set the password:

Bpang@ubuntu1804:~$ vncserverYou will require a password to access your desktops.Password:Verify:New 'ubuntu1804:1 (bpang)' desktop is ubuntu1804:1Creating default startup script / home/bpang/.vnc/xstartupStarting applications specified in / home/bpang/.vnc/xstartupLog file is / home/bpang/.vnc/ubuntu1804:1.log

Then stop the vncserver service:

Bpang@ubuntu1804:~$ vncserver-kill: 1Killing Xvnc4 process ID 10260

Configure VNC Server

Edit the .vnc / xstartup file under the user's home directory

Bpang@ubuntu1804:~$ vim .vnc / xstartup HOME/.Xresourcesxsetroot HOME/.Xresourcesxsetroot / iconic / # x-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" & # x-window-manager & startxfce4 &

Set vncserver to boot

Create a vncserver file under the / etc/init.d folder, and change export USER='bpang' to your own user name

Bpang@ubuntu1804:~$ sudo vim / su USER init.dsu USER USER; *) echo "Usage: / etc/init.d/vncserver {start | stop}" exit 1;; esacexit 0

Add execution permissions to vncserver

Bpang@ubuntu1804:~$ sudo chmod + x / etc/init.d/vncserver

Boot setup

Bpang@ubuntu1804:~$ sudo update-rc.d vncserver defaultsbpang@ubuntu1804:~$ sudo service vncserver start on Ubuntu 18.04 LTS on how to install vncserver virtual network console to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report