随笔 - 746  文章 - 0  评论 - 39  阅读 - 79万

Centos 6/Redhat 6:远程图形桌面: tigervnc

step 0:【Centos 6/Redhat 6】安装桌面环境。

step 1:安装tigervnc-server

step 2:配置 /etc/sysconfig/vncservers  

  样例:

VNCSERVERS="1:root 2:oracle 3:mysql"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"
VNCSERVERARGS[3]="-geometry 1024x768"

 

step 3:配置sysV(init.d)的tigervnc服务,使用chkconfig

step 4:启动服务

  

复制代码
 1 [root@restore1 sysconfig]# service vncserver restart
 2 Shutting down VNC server: 1:root 2:oracle 3:mysql          [  OK  ]
 3 Starting VNC server: 1:root 
 4 New 'restore1:1 (root)' desktop is restore1:1
 5 
 6 Starting applications specified in /root/.vnc/xstartup
 7 Log file is /root/.vnc/restore1:1.log
 8 
 9 2:oracle 
10 New 'restore1:2 (oracle)' desktop is restore1:2
11 
12 Starting applications specified in /home/oracle/.vnc/xstartup
13 Log file is /home/oracle/.vnc/restore1:2.log
14 
15 3:mysql 
16 New 'restore1:3 (mysql)' desktop is restore1:3
17 
18 Starting applications specified in /home/mysql/.vnc/xstartup
19 Log file is /home/mysql/.vnc/restore1:3.log
20 
21                                                            [  OK  ]
复制代码

 

  

 

posted on   jinzhenshui  阅读(383)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
历史上的今天:
2010-01-17 Linux:grep基本使用、与之配合的正则表达式

点击右上角即可分享
微信分享提示