RHEL7安装配置VNC

作者:Eric
微信:loveoracle11g 安装配置VNC服务程序
[root@zhouwanchun yum.repos.d]# cd ~
[root@zhouwanchun ~]# yum -y install tigervnc*
[root@zhouwanchun ~]# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:3.service 编辑vnc服务的配置文件,将所有的修改为root用户
[root@zhouwanchun ~]# vim /etc/systemd/system/vncserver@\:3.service
32 [Unit]
33 Description=Remote desktop service (VNC)
34 After=syslog.target network.target
35
36 [Service]
37 Type=forking
38 # Clean any existing files in /tmp/.X11-unix environment
39 ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
40 ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
41 PIDFile=/root/.vnc/%H%i.pid
42 ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
43
44 [Install]
45 WantedBy=multi-user.target [root@zhouwanchun ~]# firewall-cmd --permanent --zone=public --add-port=5903/tcp
success
[root@zhouwanchun ~]# firewall-cmd --reload
success [root@zhouwanchun ~]# vim /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.10.70 zhouwanchun.example.com [root@zhouwanchun ~]# vncserver You will require a password to access your desktops. Password:
Verify: New 'zhouwanchun.example.com:1 (root)' desktop is zhouwanchun.example.com:1 Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/zhouwanchun.example.com:1.log [root@zhouwanchun ~]# systemctl status vncserver@:3.service
vncserver@:3.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:3.service; disabled)
Active: inactive (dead) [root@zhouwanchun ~]# systemctl start vncserver@:3.service
[root@zhouwanchun ~]# systemctl enable vncserver@:3.service
ln -s '/etc/systemd/system/vncserver@:3.service' '/etc/systemd/system/multi-user.target.wants/vncserver@:3.service' [root@zhouwanchun ~]# systemctl status vncserver@:3.service
vncserver@:3.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:3.service; enabled)
Active: active (running) since Thu 2017-12-07 23:25:07 CST; 10s ago
Main PID: 5008 (Xvnc)
CGroup: /system.slice/system-vncserver.slice/vncserver@:3.service
‣ 5008 /usr/bin/Xvnc :3 -desktop zhouwanchun.example.com:3 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30... Dec 07 23:25:04 zhouwanchun.example.com systemd[1]: Starting Remote desktop service (VNC)...
Dec 07 23:25:07 zhouwanchun.example.com systemd[1]: Started Remote desktop service (VNC). 使用VNC远程连接RHEL7.0系统

RHEL7安装配置VNC的更多相关文章

  1. Redhat安装配置VNC服务器

    1. 检查安装VNC服务器 # rpm -qa|grep vnc 如果返回信息中有tigervnc-server,说明已安装了VNC:如果没有: # yum install tigervnc # yu ...

  2. centos6.7下安装配置vnc

    vnc是一款使用广泛的服务器管理软件,可以实现图形化管理,下面简单介绍一下如何在centos6.7下安装vnc. 1.安装vncserver yum install tigervnc tigervnc ...

  3. Ubuntu22.04 安装配置VNC Server

    如果转载, 请注明出处 https://www.cnblogs.com/milton/p/16730512.html Ubuntu22.40下VNC和远程桌面的区别 使用远程桌面时, 用户必须在hos ...

  4. RHEL7安装配置TigerVNC

    TigerVNC使用非加密的链接,默认会被firewalld blocked 掉,想要 vnc正常工作就需要让firewalld开放相应的端口才行. vnc默认的端口号为5900,而每个vnc win ...

  5. 安装和配置VNC服务器的法则

    导读 这是一个关于怎样在你的 CentOS 7 上安装配置VNC服务的教程.当然这个教程也适合 RHEL 7 .在这个教程里,我们将学习什么是 VNC 以及怎样在 CentOS 7 上安装配置VNC ...

  6. 怎样在CentOS 7.0上安装和配置VNC服务器

    VNC轻松连接远程Linux桌面 http://jingyan.baidu.com/article/6c67b1d6f1bac92786bb1e6d.html 这是一个关于怎样在你的 CentOS 7 ...

  7. 怎样在 CentOS 7.0 上安装和配置 VNC 服务器

    这是一个关于怎样在你的 CentOS 7 上安装配置 VNC 服务的教程.当然这个教程也适合 RHEL 7 .在这个教程里,我们将学习什么是 VNC 以及怎样在 CentOS 7 上安装配置 VNC ...

  8. Centos6.8安装并配置VNC

    一般服务器都会在IDC或云端,为了可以看到服务器的图形化界面,需要安装配置VNC,本例为Centos6.8上安装配置VNC. [root@hostname ~]#yum install -y tige ...

  9. centos7 配置vnc

    这是一个关于怎样在你的 CentOS 7 上安装配置 VNC 服务的教程.当然这个教程也适合 RHEL 7 .在这个教程里,我们将学习什么是 VNC 以及怎样在 CentOS 7 上安装配置 VNC ...

随机推荐

  1. 非系统服务如何随系统启动时自动启动(rc.local加了可执行权限,仍然没有生效)

    我们知道,例如我们直接yum 安装的httpd mysqld之类的服务可以直接systemctl enable mysql使服务自动启动,但是,我们应该关心的是但是的那部分 例如nginx,我的话,我 ...

  2. win10安装系统后,提示initializing and establishing link无法启动系统

    使用老毛桃安装系统前,先对硬盘进行分区,分区时选择mbr格式分区就可以了,安装好系统重启进入系统时将boot安全启动关闭,模式改为legal(那个单词大概长这样,不记得了,反正那里就两个模式,可以都试 ...

  3. Redis Cluster 4.0高可用集群安装、在线迁移操作记录

    之前介绍了redis cluster的结构及高可用集群部署过程,今天这里简单说下redis集群的迁移.由于之前的redis cluster集群环境部署的服务器性能有限,需要迁移到高配置的服务器上.考虑 ...

  4. supervisorctl 常用命令

    命令官方文档:http://supervisord.org/running.html#running-supervisorctl supervisorctl 常用命令: supervisorctl 常 ...

  5. DefinePlugin插件

    这个插件允许你创建全局常量用于编译时解析.如果设置mode:"production",webpack默认会设置"process.env.NODE_ENV": J ...

  6. python引入自定义模块

    Python的包搜索路径 Python会在以下路径中搜索它想要寻找的模块:1. 程序所在的文件夹2. 标准库的安装路径3. 操作系统环境变量PYTHONPATH所包含的路径 将自定义库的路径添加到Py ...

  7. Scala实战

    1. Eclipse中设置scala调试器 scala的调试器要选择Scala Application(new debuger)Launcher:开始选择图省事,选择了一个字母少的,亲切的Launch ...

  8. mongodb morphia删除数组中指定条件的数据

    先看mongodb操作: db.test.update({"msgid":170},{"$pull":{"msg":{"comti ...

  9. 一文说尽 MySQL 优化原理

    说起MySQL的查询优化,相信大家收藏了一堆奇技淫巧:不能使用SELECT *.不使用NULL字段.合理创建索引.为字段选择合适的数据类型..... 你是否真的理解这些优化技巧?是否理解其背后的工作原 ...

  10. C++Builder 网站。记住学习

    http://www.ccrun.com/ C++Builder