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 ]
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 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基本使用、与之配合的正则表达式