Home>

Installation may cause dns to be cleared, so you need to execute the following command before installing according to the steps

chattr + i /etc/resolv.conf

1. Installation (I installed separately,You can also choose to install at the same time)

yum install -y tigervnc tigervnc-server
yum groupinstall "desktop"
yum install gnome-panel
yum install nautilus

2. Set the login password (execute the following command,Need to be entered twice)

vncpasswd

3. Configuration (compare whether the following configuration file is consistent with yours)

cat ~/.vnc/xstartup
#!/bin/sh
[-r/etc/sysconfig/i18n]&&./etc/sysconfig/i18n
export lang
export sysfont
vncconfig -iconic&
unset session_manager
unset dbus_session_bus_address
os=`uname -s`
if [$os="linux"];then
case "$windowmanager" in
* gnome *)
if [-e/etc/suse-release];then
path=$path:/opt/gnome/bin
export path
fi
;;
esac
fi
if [-x/etc/x11/xinit/xinitrc];then
exec/etc/x11/xinit/xinitrc
fi
if [-f/etc/x11/xinit/xinitrc];then
exec sh/etc/x11/xinit/xinitrc
fi
[-r $home/.xresources]&&xrdb $home/.xresources
xsetroot -solid grey
xterm -geometry 80x24 + 10 + 10 -ls -title "$vncdesktop desktop" &
twm&

4. Start and close vnc

vncserver:1

vncserver -kill:1

5. Client connection test

The client software used is:vnc viewer

(1) Enter the server's external network IP:1

(2) Enter the login password set by vncpasswd

(3) Interface after successful connection

  • Previous Android development get picture crop from camera or album
  • Next VC method of accessing database based on ADO technology