惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic
Last Week in AI
Last Week in AI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
O
OpenAI News
The Last Watchdog
The Last Watchdog
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
Forbes - Security
Forbes - Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
有赞技术团队
有赞技术团队
Jina AI
Jina AI
GbyAI
GbyAI
V
Vulnerabilities – Threatpost
L
LangChain Blog
Vercel News
Vercel News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
AI
AI
博客园 - 聂微东
W
WeLiveSecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Scott Helme
Scott Helme
罗磊的独立博客
Martin Fowler
Martin Fowler
S
Security Affairs
T
Tor Project blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
美团技术团队
C
Cisco Blogs
PCI Perspectives
PCI Perspectives
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
Cisco Talos Blog
Cisco Talos Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
I
Intezer
B
Blog
WordPress大学
WordPress大学
I
InfoQ
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
V2EX
P
Privacy & Cybersecurity Law Blog
雷峰网
雷峰网

博客园 - hiaming

doclever 5.5.1 安装及升级【原创】 SPARROW-JS 从0开始写 0依赖,原生JS框架 Sparrow算法篇 从日期取交集到思维模式-2 高性能轻量级markdown 解析器java 版sparrow-markdown Sparrow 算法篇 由日期取交集到思维模式 自己动手写mvc框架SPARROW MVC REDIS客户端封装实践2 SPARROW 框架redis客户端封装实践 SPARROW架构介绍 Sparrow 框架设计哲学 陌院俅颗难炎先当粮澜 openresty在centos/redhat6.7上部署 tomcat 日志那点事 Redhat6.7 切换Centos yum源 Quartz corn时间表达式(转) Jquery控制滚动Div 滚动条事件 fastjson排序 Map多层嵌套转换自动排序问题终极解决方案 Spring 外部注入Bean (JAX-WS) SSH,如何恢复通过输入密码的方式来登录服务器
Redhat Linux6.5 开启VNC 远程桌面
hiaming · 2015-01-15 · via 博客园 - hiaming

       相关技术介绍不废话了,直入主题

 1.检查vnc服务是否安装

       执行:vncserver 

       如果不是提示未找到命令,请跳到第三步

2.如果以上报未找到命令,那么就需要先安装服务(这里只带64位的包,32位包请光盘中找)

      从光盘里面找到vnc-server-4.1.2-14.el5_6.6.x86_64.rpm 或见本文最下面附件,将其上传到服务器,然后执行:rpm -ivh vnc-server-4.1.2-14.el5_6.6.x86_64.rpm  ,出现warning: ...很快就安装完了。

3.设置VNC用户名密码:

      命令行输入:vncserver ,如果第一次执行,系统会让你输入初始化密码,输入两次确认即可,VNC启动后会提示New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1,表示已经开启其中对应的端口是1(他的实际端口是5901,如果是2就是5902以此类推),这还没完,系统默认你登陆进去什么都没有就是一个空的桌面,需要在下面进行图形化配置

4.配置图形化

 [root@localhost /]# cd /root/.vnc

 [root@localhost .vnc]# vi xstartup

.....

unset SESSION_MANAGER        #将此行的注释去掉

exec /etc/X11/xinit/xinitrc        #将此行的注释去掉

.......

gnome-session gnome           #添加这一句是连接时使用gnome 桌面环境,添加到twm &上面

图形化配置只要修改上面两处和增加一处即可搞定

5.重启服务

      图形化设置完毕需要生效,先重启服务 vncserver -kill :1  注意kill后面有个空格,

      启动服务vncserver

6.开启防火墙

      有些默认开启了防火墙,需要先将其加入可信

iptables -I INPUT -p tcp --dport 5901 -jACCEPT 

iptables -I INPUT -p udp --dport 5901 -jACCEPT 

7.客户端开始连接吧