Use VNC to operate a remote device, such as a home computer. Equipment in hazardous areas.The above several blog is to realize this function.First computer-side1, first, we need to be able to properly through the system to bring the Remote Desktop Connection on the rental machine, and download good RealVNC2, double-click Install RealVNC, according to the general installation of software, please note that the following step, please select the
/root/.vnc/-eyh7:2.log3. Configure the Xstartup startup script.Edit/root/.vnc/xstartup script with VIComment out Twm Add a sentence to the last lineGnome-session is to launch the Gnome graphical interface window.After saving, restart VNC.Note: In the/root/.vnc/directory has a pair of log and PID files, such as Machinename:2.pid and Machinename:2.log, the file PI
firewall (root permission required ):
Input and edit:
[Root @ localhost ~] # In vi/etc/sysconfig/iptables, only one root account and desktop 1 are added. Therefore, add a "5901" port number according to the above rules. -A input-m state -- state NEW-m tcp-p tcp -- dport 5901-j ACCEPT 6. restart firewall service iptables restart 7. set VNC to automatically start [root @ localhost ~] # Chkconfig vncserver on 8. disable
Vncserver-kill: 1 (note that ther
Use the VNC service in Linux
Connect to Linux Through VNC in Window
Enable the VNC service in Linux: service vncserver start
Run the "vncserver" command. Note the identity of the command. If it is ROOT, the. vnc/directory is generated under root to generate the log pid and xstartup files.
Otherwise, it is generated
CentOs6.5 install the gnome graphical interface and remotely access it through VNCPreface
To meet project requirements, you must install a graphical interface on a remote host (only controlled by PUTTY. I want to describe the entire process in as much detail as possible. If anything is inappropriate, please point it out.
Configure the environment
Remote Host: CentOS release 6.5 (Final)
Local: Windows 7 32bit
VNC version:
startVi/etc/rc.localAdd the following to the file/etc/init.d/vncserverstart7, change VNC connection passwordvncpasswd8. Connect Remote DesktopUse SECURECRT to connect to the target machine.Execute the iptables–f command,You can then connect using the VNC viewer
After the remote Desktop is accepted, the reboot firewall will allow the remote
VNC connect: Connection refused (10061), vnc10061
When you use VNC Viewer on a Windows server to access a Linux server, you may encounter the "connect: Connection refused (10061)" error. The cause of this error is as follows:
1: when using the VNC Viewer, you forget to
VNC easy connection to remote Linux desktopsTo connect to the Linux desktop, VNC connects to the Linux Remote Desktop and, following the steps below, it is very simple, fast, and Linux configures VNC (for example, Redhat, CentOS, Fedora Series).Tools/Materials
Linux Platform Installation Vncserver
Windows platform uses
--state NEW -m tcp -p tcp --dport 5900:5903 -j ACCEPT
Restart iptable
service iptables restart
If you use the Centos 7 default firewall, you may need
[root@wic ~]# firewall-cmd --permanent --add-service vnc-server[root@wic ~]# systemctl restart firewalld.service
Step 6: Enable and enable VNC by default
[root@wic ~]# systemctl enable vncserver@:1.service[root@wic ~]# systemctl start vncserver@:1.service
In
vncserver start
To automatically start the vncserver service during boot, run the following command:
# chkconfig vncserver on
Note: No output is generated after this command is executed, and a command prompt is directly returned, as shown in figure
# chkconfig vncserver on# chkconfig --list vncservervncserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Iv. modify resolution
The default resolution of vncserver is 1024x768, and our current display generally supports higher than this. For better real
command to install vnc.Yum install vnc-server2. Start the vnc serviceVncserverYou will require a password to access yourdomaintops.Password:Verify:You will be prompted to enter the password, which is required for remote logon. Enter the password and press Enter.4. Switch to the root account: su root and enter the password of the root account.
Vim/etc/sysconfig/vncservers #
# Install the vnc software packageyuminstalltigervnctigervnc-server-y# Set vncserver startupchkconfigvncserveron# Set the vnc logon password. Save the password in ~ /. Vnc/passwd# If you want to change the vnc password of a common user, su must switch to this user first.vncpasswd# Viewing the vncserver configuratio
control the LAN server, you must download the installation of strongultra@vncat http://ycsti.sti.js.cn/old/down/cultravnc.exe.ProgramAnd install it on the server. After the control program is installed, the ultra @ VNC Viewer icon and ultra @ VNC Server icon will automatically appear on the system desktop. The icon above is usually used on the client, the follow
GreyXterm-geometry 80x24 10-ls-title "$VNCDESKTOP Desktop" TWM Change the last line toStartgnomeDisplay=:1 gnome-sessionis to launch the Gnome graphical interface window.After saving, restart VNC.4. Download the Windows VNC client software.Run the VNC viewer and enter the IP and desktop number of the server:such as: 1
Xsetroot-solid gray
Xterm-geometry 80x24 10 10-ls-title "$ VNCDESKTOP Desktop "
Twm
Change the last line
Startgnome
DISPLAY =: 1 gnome-session
Is to start the gnome GUI window.
After saving, restart vnc.
4. Download the windows vnc client software.
Run VNC Viewer and enter the Server IP address and desktop number:
Ex
]~]# chkconfig vncserver on
6. Setting up a firewall
Vncserver listening port starting from 5900, display:1 monitoring 5901,display:2 monitoring 5902, and so on.[[Email protected]~]# iptables-i input-m State--state new-m tcp-p TCP--dport 5901-j ACCEPT[[Email protected]~]# service Iptables Save
7. VNC Server configuration complete
Client
8. Installing the VNC client
To connect to the Linux desktop, VNC connects to the Linux Remote Desktop and, following the steps below, it is very simple, fast, and Linux configures VNC (for example, Redhat, CentOS, Fedora Series). Tools/Materials
Linux Platform Installation Vncserver
Windows platform uses Vnc-viewer
Method/Step
The Linux system provides the developer with the convenience of performance, but it loses the convenience of the interface management of window System. Here's how to implement an interface on a Linux system. (CentOS as an example)This article explains in detail the installation of the VNC service under CentOS and the VNC Viewer connection.
1. VNC Introduction: VNC (VirtualNetworkComputing) is a set of software developed by the AT amp; T lab that can control remote computers. It adopts the GPL Authorization Clause, anyone can obtain the software for free. VNC consists of two parts: VNCserver and VNC
1. VNC int
Xsetroot-solid gray
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "
Twm
Change the last line
Startgnome
DISPLAY =: 1 gnome-session
Is to start the gnome GUI window.
After saving, restart vnc.
4. Download the windows vnc client software.
Run VNC Viewer and enter the Server IP address and desktop numbe
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.