低质量的社交,不如高质量的独处

linux VNC-server




[root@kvm-server Packages]# rpm -qpi tigervnc-server-1.8.0-1.el7.x86_64.rpm Name : tigervnc-server Version : 1.8.0 Release : 1.el7 Architecture: x86_64 Install Date: (not installed) Group : User Interface/X Size : 516418 License : GPLv2+ Signature : RSA/SHA256, 2017年08月11日 星期五 04时05分16秒, Key ID 24c6a8a7f4a80eb5 Source RPM : tigervnc-1.8.0-1.el7.src.rpm Build Date : 2017年08月07日 星期一 09时32分46秒 Build Host : c1bm.rdu2.centos.org Relocations : (not relocatable) Packager : CentOS BuildSystem <http://bugs.centos.org> Vendor : CentOS URL : http://www.tigervnc.com Summary : A TigerVNC server Description : The VNC system allows you to access the same desktop from a wide variety of platforms. This package includes set of utilities which make usage of TigerVNC server more user friendly. It also contains x0vncserver program which can export your active X session. [root@kvm-server Packages]#

 

[root@kvm-server Packages]# yum install tigervnc-server
tigervnc-server-1.8.0-1.el7.x86_64.rpm          tigervnc-server.x86_64
tigervnc-server-minimal-1.8.0-1.el7.x86_64.rpm  
[root@kvm-server Packages]# yum install tigervnc-server
tigervnc-server-1.8.0-1.el7.x86_64.rpm          tigervnc-server.x86_64
tigervnc-server-minimal-1.8.0-1.el7.x86_64.rpm  
[root@kvm-server Packages]# yum install tigervnc-server
tigervnc-server-1.8.0-1.el7.x86_64.rpm          tigervnc-server.x86_64
tigervnc-server-minimal-1.8.0-1.el7.x86_64.rpm  
[root@kvm-server Packages]# yum install tigervnc-server-1.8.0-1.el7.x86_64.rpm
已加载插件:fastestmirror, langpacks
正在检查 tigervnc-server-1.8.0-1.el7.x86_64.rpm: tigervnc-server-1.8.0-1.el7.x86_64
tigervnc-server-1.8.0-1.el7.x86_64.rpm 将被安装
正在解决依赖关系
--> 正在检查事务
---> 软件包 tigervnc-server.x86_64.0.1.8.0-1.el7 将被 安装
--> 解决依赖关系完成
c7-media                                                                                        | 3.6 kB  00:00:00     

依赖关系解决

=======================================================================================================================
 Package                   架构             版本                   源                                             大小
=======================================================================================================================
正在安装:
 tigervnc-server           x86_64           1.8.0-1.el7            /tigervnc-server-1.8.0-1.el7.x86_64           504 k

事务概要
=======================================================================================================================
安装  1 软件包

总计:504 k
安装大小:504 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : tigervnc-server-1.8.0-1.el7.x86_64                                                                 1/1 
  验证中      : tigervnc-server-1.8.0-1.el7.x86_64                                                                 1/1 

已安装:
  tigervnc-server.x86_64 0:1.8.0-1.el7                                                                                 

完毕!
[root@kvm-server Packages]# 

  

[root@kvm-server Packages]# rpm -qc tigervnc-server
/etc/sysconfig/vncservers
[root@kvm-server Packages]#

  

[root@kvm-server Packages]# vncpasswd 
Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:
[root@kvm-server Packages]# 

  

[root@kvm-server Packages]# vncserver 
xauth:  file /root/.Xauthority does not exist

New 'kvm-server:1 (root)' desktop is kvm-server:1

Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/kvm-server:1.log

[root@kvm-server Packages]# ps aux|grep vnc
root      3707  0.2  0.2 187924 17372 pts/1    Sl   15:59   0:00 /usr/bin/Xvnc :1 -auth /root/.Xauthority -desktop kvm-server:1 (root) -fp catalogue:/etc/X11/fontpath.d -geometry 1024x768 -pn -rfbauth /root/.vnc/passwd -rfbport 5901 -rfbwait 30000
root      3922  0.0  0.0 112676   984 pts/1    S+   15:59   0:00 grep --color=auto vnc
您在 /var/spool/mail/root 中有邮件
[root@kvm-server Packages]#

  

[root@kvm-server Packages]# systemctl stop firewalld.service 
[root@kvm-server Packages]# 
[root@kvm-server Packages]# systemctl status firewalld.service 
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since 日 2019-03-10 16:14:54 CST; 12s ago
     Docs: man:firewalld(1)
  Process: 4223 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
 Main PID: 4223 (code=exited, status=0/SUCCESS)

3月 10 16:14:26 kvm-server firewalld[4223]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -w --table filter...in?).
3月 10 16:14:26 kvm-server firewalld[4223]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -w --table filter...name.
3月 10 16:14:26 kvm-server firewalld[4223]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -w --table filter...name.
3月 10 16:14:26 kvm-server firewalld[4223]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -w --table filter...in?).
3月 10 16:14:26 kvm-server firewalld[4223]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -w --table filter...in?).
3月 10 16:14:26 kvm-server firewalld[4223]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -w --table filter...in?).
3月 10 16:14:26 kvm-server firewalld[4223]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -w --table filter...in?).
3月 10 16:14:26 kvm-server firewalld[4223]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -w --table filter...in?).
3月 10 16:14:53 kvm-server systemd[1]: Stopping firewalld - dynamic firewall daemon...
3月 10 16:14:54 kvm-server systemd[1]: Stopped firewalld - dynamic firewall daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@kvm-server Packages]# systemctl disable firewalld.service 
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

  

关闭防火墙 关闭SElinux

 

 

 

 

 

 

 

 

 

 

第一个桌面

 192.168.31.140:1

 

 

 

posted @ 2019-03-10 15:51  Eren.li  阅读(465)  评论(0编辑  收藏  举报
liweiming0611@163.com
等待有三大特征:
清晰的目的、努力达成的过程、充满不确定性的结果
因上努力,果上随缘
求其上,得其中;求其中,得其下;求其下,无所得