Install Gnome and VNC on Ubuntu Server

  1. Install tigervnc server
sudo apt install tightvncserver
  1. Install gnome
sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
  1. Start vncserver
vncserver

You need to set a password for the first run
“`
New ‘X’ desktop is server_name:1

Starting applications specified in /root/.vnc/xstartup
“`
5. Close vncserver

vncserver -kill :1
  1. Edit the xstartup file
vi ~/.vnc/xstartup

Modify to the following content and save
“`
#! /bin/sh

[ - x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ - r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
x-window-manager &
gnome-session &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
“`
8. Start vncserver again, you can use the Viewer to connect at this time, the default port is 5901.
The port changes depending on the ID of the display. For example, if the display ID is 2, the default is 5902. The port can also be found in the log file location prompted after the operation.

Recommended Posts

Install Gnome and VNC on Ubuntu Server
Install OpenSSL 1.0.2 on Ubuntu Server 14.04
How to install and configure VNC on Ubuntu 18.04
Install and configure Mono production environment on Ubuntu Server
Install and configure MySQL on Ubuntu
Install Chef server workstation on Ubuntu 18.04
Install Oracle 11gR2 on Ubuntu Server 12.4.0
How to install Bacula Server on Ubuntu 14.04
Install docker on ubuntu and basic usage
Install fonts on Ubuntu and switch default fonts
Install and uninstall CUDA and CUDNN on Ubuntu
Ubuntu install ftp server and possible problems
How to install Zabbix on Ubuntu 16.04 Server
install vscode on ubuntu18
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install docker on Ubuntu
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
Install mysql on Ubuntu 14.04
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
Install Python3 on Ubuntu 14.04
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
Install Python3 on Ubuntu 16.04
Install KDE on Ubuntu16.04.2
ubuntu install nginx server
Install Docker on Ubuntu18
Install Python3.7 on Ubuntu
Install flashplayer on Ubuntu
How to install Squid proxy server on Ubuntu 18.04
How to install Pycharm and Ipython on Ubuntu 16.04/18.04
How to install and configure NATS on Ubuntu 16.04
Install JDK and configure environment variables on Ubuntu 16.04
How to install and configure Gogs on Ubuntu 18.04
How to install and configure Cyberpanel on Ubuntu 18.04
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install and configure ownCloud on Ubuntu 16.04
How to install and configure ownCloud on Ubuntu 16.04
Install and use Git and GitHub on Ubuntu Linux
How to install and configure GitLab on Ubuntu 18.04
How to install and use Docker on Ubuntu 20.04
How to install and configure VNC on CentOS 8
How to install and configure Ansible on Ubuntu 18.04
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install and configure Elasticsearch on Ubuntu 16.04
How to install and configure PostGIS on Ubuntu 14.04
How to install and use Composer on Ubuntu 20.04
How to install and use BaasBox on Ubuntu 14.04
How to install and configure Sphinx on Ubuntu 16.04
How to install and configure OrientDB on Ubuntu 14.04
How to install and use PostgreSQL on Ubuntu 16.04
How to install and configure AppScale on Ubuntu 12.04
How to install and use Docker on Ubuntu 16.04
How to install and configure PostGIS on Ubuntu 14.04