VNC installation settings in Linux

Source: Internet
Author: User

Oracle Installation on Linux requires a graphical interface (except for Silent Installation). good comrades can do it in the data center. The physical quality is generally the case of honest remote operations. For convenience, we will use the vnc-server that comes with Linux.
 
First, check whether the vnc-server service is installed:
 
[Root @ localhost ~] # Rpm-qa vnc-server
 
Vnc-server-4.0-8.1
 
If the installation is not complete, upload the installation package and install it. After the installation is complete, run vncserver. If this is the first operation, you need to set the vnc password. Otherwise, you do not need to set the password.
 
[Root @ localhost ~] $ Vncserver
 
You will require a password to access your tops.
 
Password:
 
Verify:
 
Xauth: creating new authority file/root/. Xauthority
 
New 'localhost. localdomain: 1 (root) 'desktop is localhost. localdomain: 1
 
Creating default startup script/root/. vnc/xstartup
 
Starting applications specified in/root/. vnc/xstartup
 
Log file is/root/. vnc/localhost. localdomain: 1.log
 
The above section indicates that a graphical terminal is started and numbered 1. Now we can remotely connect to the server using tools such as vncviewer. The graphic terminal number is required during connection. After the connection, we will find that the graphic interface is quite ugly, because the default Image Terminal uses xterm + twm. We can modify the startup script to use gnome or kde as the default image terminal. Edit/. vnc/xstartup in the user's home directory, replace twm with gnome-session, and restart vncserver.
 
[Root @ localhost ~] # Vi/root/. vnc/xstartup
 
#! /Bin/sh
 
# Uncomment the following two lines for normal desktop:
 
# Unset SESSION_MANAGER
 
# Exec/etc/X11/xinit/xinitrc
 
[-X/etc/vnc/xstartup] & exec/etc/vnc/xstartup
 
[-R $ HOME/. Xresources] & xrdb $ HOME/. Xresources
 
Xsetroot-solid gray
 
Vncconfig-iconic &
 
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
 
Gnome-session &
 
 
 
[Root @ localhost ~] # Vncserver-kill: 1
 
Killing Xvnc process ID 4117.
 
 
 
[Root @ localhost ~] # Vncserver
 
New 'localhost. localdomain: 1 (root) 'desktop is localhost. localdomain: 1
 
Starting applications specified in/root/. vnc/xstartup
 
Log file is/root/. vnc/localhost. localdomain: 1.log

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.