Installing GUI Desktop for Linux VPS Server Ubuntu System (XWindows Gnome)

First, uninstall and delete unnecessary software in the system

apt-get purge apache2* bind9* samba*

Uninstall unnecessary software to reduce system resource occupation and improve utilization. During the uninstallation process, you will be prompted whether to continue. Enter y to continue.

Second, upgrade the system environment and the latest package, and install nano tools

apt-get update
apt-get upgrade
apt-get install nano

Third, install the desktop environment

apt-get install ubuntu-desktop

During the installation process, it will be mentioned to select the country, input method keyboard, code, etc. We can directly enter all. As follows:

Choose console country from the list, for example.: USA
Select keyboard layout, for example.: USA
If asked, choose optional keyboard shortcut to switch keyboard languages, for example.: Alt + Shift
Choose console charset, for example.: UTF-8
Choose console font: . Combined – Latin; Slavic Cyrillic, Hebrew, basic Arabic

Fourth, set Gnome and XWindows desktop environment

/etc/init.d/gdm start
dpkg-reconfigure xserver-xorg

Fifth, install TightVNC

apt-get install tightvncserver

Sixth, set VNC login password

vncpasswd

Then you need to enter the password twice. You can't see it. We need to see it clearly and don't enter it incorrectly. There will be a prompt of Would you like to enter a view only password. Here I enter n without setting.

Then set the following window:

vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565

Seventh, set Gnome's window manager

By default, the VNC server is not the window manager of Gnome. To enable the VNC server to use Gnome's window manager by default, we should configure the following files.

nano ~/.vnc/xstartup

Open the xstartup file and check whether the line "x-window-manager" is # commented out. If not, please comment out. If it is already commented out, don't bother. Then add gnome session&in the last line, so that all the scripts we see are as follows:

#!/ bin/sh
xrdb $HOME/. Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
gnome-session &

VIII. Set startup

update-rc.d ssh defaults

Ninth, check whether VNC is running

ps aux | grep Xtightvnc

 

 Installing GUI Desktop for Linux VPS Server Ubuntu System (XWindows Gnome)

If you see the prompt Xtightvnc: 1-desktop X-auth in the above figure, it indicates that it is already running.

Tenth, restart VPS to take effect

reboot

After restarting VPS, we use VNC tool Links. If the link fails, you need to execute the following script in SSH first:

vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565

Then log in to the desktop by linking VNC tools.

course

Apache uses. htaccess security chain

2017-9-12 6:41:11

course

How can Linux prevent the automatic upgrade of the system kernel Kernel to avoid unnecessary troubles

2018-5-26 8:27:39

0 replies A Author M administrators
    There is no discussion yet. Tell me your opinion
search