VNC配置
来源:互联网 发布:扫描网络摄像头ip 编辑:程序博客网 时间:2024/05/18 01:22
[root@localhost ~]# yum install vnc
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository c6-media is listed more than once in the configuration
Determining fastest mirrors
* base: mirror.sunnyvision.com
* extras: mirror.sunnyvision.com
* updates: centos.uhost.hk
adobe-linux-x86_64 | 951 B 00:00
adobe-linux-x86_64/primary | 1.3 kB 00:00
adobe-linux-x86_64 3/3
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.7 MB 00:22
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc.x86_64 0:1.1.0-18.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
tigervnc x86_64 1.1.0-18.el6 base 184 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 184 k
Installed size: 437 k
Is this ok [y/N]: y
Downloading Packages:
tigervnc-1.1.0-18.el6.x86_64.rpm | 184 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : tigervnc-1.1.0-18.el6.x86_64 1/1
Verifying : tigervnc-1.1.0-18.el6.x86_64 1/1
Installed:
tigervnc.x86_64 0:1.1.0-18.el6
Complete!
[root@localhost ~]# rpm -qa vnc*
[root@localhost ~]# rpm -qa vnc
[root@localhost ~]# yum install vnc sevice
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 4761.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:13 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:15 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:17 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:19 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:21 ago
State : Sleeping, pid: 4761
^C
Exiting on user cancel.
[root@localhost ~]# yum install vnc sevice
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 4761.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:25 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:27 ago
State : Sleeping, pid: 4761
^C
Exiting on user cancel.
[root@localhost ~]# yum install tigervnc-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 4761.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 42 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:23 ago
State : Running, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 43 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:25 ago
State : Running, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 43 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:27 ago
State : Running, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 42 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:29 ago
State : Running, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 42 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:31 ago
State : Running, pid: 4761
^C
Exiting on user cancel.
[root@localhost ~]# kill -9 4761
[root@localhost ~]# yum install tigervnc-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository c6-media is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirror.sunnyvision.com
* extras: mirror.sunnyvision.com
* updates: centos.uhost.hk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.1.0-5.el6_4.1 will be updated
---> Package tigervnc-server.x86_64 0:1.1.0-18.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
tigervnc-server x86_64 1.1.0-18.el6 base 1.0 M
Transaction Summary
================================================================================
Upgrade 1 Package(s)
Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
tigervnc-server-1.1.0-18.el6.x86_64.rpm | 1.0 MB 00:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : tigervnc-server-1.1.0-18.el6.x86_64 1/2
Cleanup : tigervnc-server-1.1.0-5.el6_4.1.x86_64 2/2
Verifying : tigervnc-server-1.1.0-18.el6.x86_64 1/2
Verifying : tigervnc-server-1.1.0-5.el6_4.1.x86_64 2/2
Updated:
tigervnc-server.x86_64 0:1.1.0-18.el6
Complete!
[root@localhost ~]# rpm -qa tigervnc-server
tigervnc-server-1.1.0-18.el6.x86_64
[root@localhost ~]# vim /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see this URL:
# https://access.redhat.com/knowledge/solutions/7027
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
VNCSERVERS="1:root 2:fieldyang 3:test"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
~
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
[root@localhost ~]# su fieldyang
[fieldyang@localhost root]$ vncpasswd
Password:
Verify:
[fieldyang@localhost root]$
[fieldyang@localhost root]$ service vncserver restart
[fieldyang@localhost root]$ service vncserver restart
[fieldyang@localhost root]$ /etc/init.d/vncserver restart
[fieldyang@localhost root]$ vncserver -list
TigerVNC server sessions:
X DISPLAY # PROCESS ID
[fieldyang@localhost root]$ exit
exit
[root@localhost ~]# vncserver :1
A VNC server is already running as :1
[root@localhost ~]# iptables off
Bad argument `off'
Try `iptables -h' or 'iptables --help' for more information.
[root@localhost ~]# vncserver :2
New 'localhost.localdomain:2 (root)' desktop is localhost.localdomain:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:2.log
[root@localhost ~]# vncserver :3
New 'localhost.localdomain:3 (root)' desktop is localhost.localdomain:3
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:3.log
[root@localhost ~]# /etc/init.d/vncserver restart
关闭 VNC 服务器:1:root 2:fieldyang 3:test [确定]
正在启动 VNC 服务器:1:root
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
2:fieldyang A VNC server is already running as :2
3:test vncserver: Could not create /var/www/html/.vnc.
[确定]
[root@localhost ~]#
[root@localhost ~]# vncserver -list
TigerVNC server sessions:
X DISPLAY # PROCESS ID
:3 3319
:1 2743
:2 3202
[root@localhost ~]# service iptables stop
[root@localhost ~]# chkconfig vncserver on
[root@localhost ~]#
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository c6-media is listed more than once in the configuration
Determining fastest mirrors
* base: mirror.sunnyvision.com
* extras: mirror.sunnyvision.com
* updates: centos.uhost.hk
adobe-linux-x86_64 | 951 B 00:00
adobe-linux-x86_64/primary | 1.3 kB 00:00
adobe-linux-x86_64 3/3
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.7 MB 00:22
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc.x86_64 0:1.1.0-18.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
tigervnc x86_64 1.1.0-18.el6 base 184 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 184 k
Installed size: 437 k
Is this ok [y/N]: y
Downloading Packages:
tigervnc-1.1.0-18.el6.x86_64.rpm | 184 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : tigervnc-1.1.0-18.el6.x86_64 1/1
Verifying : tigervnc-1.1.0-18.el6.x86_64 1/1
Installed:
tigervnc.x86_64 0:1.1.0-18.el6
Complete!
[root@localhost ~]# rpm -qa vnc*
[root@localhost ~]# rpm -qa vnc
[root@localhost ~]# yum install vnc sevice
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 4761.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:13 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:15 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:17 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:19 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:21 ago
State : Sleeping, pid: 4761
^C
Exiting on user cancel.
[root@localhost ~]# yum install vnc sevice
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 4761.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:25 ago
State : Sleeping, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 38 M RSS (347 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 00:27 ago
State : Sleeping, pid: 4761
^C
Exiting on user cancel.
[root@localhost ~]# yum install tigervnc-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 4761.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 42 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:23 ago
State : Running, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 43 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:25 ago
State : Running, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 43 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:27 ago
State : Running, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 42 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:29 ago
State : Running, pid: 4761
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 42 M RSS (352 MB VSZ)
Started: Mon Jan 9 15:36:18 2017 - 05:31 ago
State : Running, pid: 4761
^C
Exiting on user cancel.
[root@localhost ~]# kill -9 4761
[root@localhost ~]# yum install tigervnc-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository c6-media is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirror.sunnyvision.com
* extras: mirror.sunnyvision.com
* updates: centos.uhost.hk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.1.0-5.el6_4.1 will be updated
---> Package tigervnc-server.x86_64 0:1.1.0-18.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
tigervnc-server x86_64 1.1.0-18.el6 base 1.0 M
Transaction Summary
================================================================================
Upgrade 1 Package(s)
Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
tigervnc-server-1.1.0-18.el6.x86_64.rpm | 1.0 MB 00:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : tigervnc-server-1.1.0-18.el6.x86_64 1/2
Cleanup : tigervnc-server-1.1.0-5.el6_4.1.x86_64 2/2
Verifying : tigervnc-server-1.1.0-18.el6.x86_64 1/2
Verifying : tigervnc-server-1.1.0-5.el6_4.1.x86_64 2/2
Updated:
tigervnc-server.x86_64 0:1.1.0-18.el6
Complete!
[root@localhost ~]# rpm -qa tigervnc-server
tigervnc-server-1.1.0-18.el6.x86_64
[root@localhost ~]# vim /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see this URL:
# https://access.redhat.com/knowledge/solutions/7027
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
VNCSERVERS="1:root 2:fieldyang 3:test"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
~
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
[root@localhost ~]# su fieldyang
[fieldyang@localhost root]$ vncpasswd
Password:
Verify:
[fieldyang@localhost root]$
[fieldyang@localhost root]$ service vncserver restart
[fieldyang@localhost root]$ service vncserver restart
[fieldyang@localhost root]$ /etc/init.d/vncserver restart
[fieldyang@localhost root]$ vncserver -list
TigerVNC server sessions:
X DISPLAY # PROCESS ID
[fieldyang@localhost root]$ exit
exit
[root@localhost ~]# vncserver :1
A VNC server is already running as :1
[root@localhost ~]# iptables off
Bad argument `off'
Try `iptables -h' or 'iptables --help' for more information.
[root@localhost ~]# vncserver :2
New 'localhost.localdomain:2 (root)' desktop is localhost.localdomain:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:2.log
[root@localhost ~]# vncserver :3
New 'localhost.localdomain:3 (root)' desktop is localhost.localdomain:3
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:3.log
[root@localhost ~]# /etc/init.d/vncserver restart
关闭 VNC 服务器:1:root 2:fieldyang 3:test [确定]
正在启动 VNC 服务器:1:root
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
2:fieldyang A VNC server is already running as :2
3:test vncserver: Could not create /var/www/html/.vnc.
[确定]
[root@localhost ~]#
[root@localhost ~]# vncserver -list
TigerVNC server sessions:
X DISPLAY # PROCESS ID
:3 3319
:1 2743
:2 3202
[root@localhost ~]# service iptables stop
[root@localhost ~]# chkconfig vncserver on
[root@localhost ~]#
阅读全文
0 0
- VNC配置
- VNC配置
- 配置VNC
- VNC配置
- vnc配置
- 配置 VNC
- VNC配置
- vnc 配置
- 配置VNC
- VNC配置
- VNC 配置
- vnc配置
- vnc配置
- VNC配置
- VNC配置
- 配置VNC
- vnc配置
- VNC配置
- MV3D -- 3D 点云表示
- 【安全牛学习笔记】w3af-截断代理
- D3力导向图及树状布局变换
- DB2 V9.7.4 下使用LISTAGG时报错,SQL0440N,SQLSTATE=42884解决办法
- On Date/Timestamp Value in A Distributed System
- VNC配置
- IDEA添加toString方法的模板
- CSS(六)— 样式设置
- 架构师需要了解的Paxos原理、历程及实战
- 4,selenium 模拟鼠标操作 (悬浮和左键点击)
- webView中遇到一些坑
- TP5引入静态资源文件
- leetCode 85. Maximal Rectangle
- HTTP 返回状态代码详解