Linux 常用工具
YUM
yum init system
create local repo yum
centos 7 init system
FTP
How to Install and Configure vsftpd on CentOS 6
vsftp install on centos 7
Email
aliyun ecs install email
postfix smtp on centos
centos 6 postfix smpt test
GIT
gogs install centos6
git command example
git format markdown
HTTP Web
apache exampe
h5ai web php file server
apache vhosgts code debug
Nginx Web
nginx install from source
nginx set directory autoindex
autoindex with h5ai web
nginx install pugin ngx-fancyindex
proxy internal vhost to web
dynamic and static by nginx
proxy directory second by nginx
nginx proxy gogs web
jenkns proxy from nginx
ssl certify by nginx
nginx threads fix to 9x
NTP
linux install ntp use asia date
VNC
vnc remote desktop
x11vnc on centos6
Firewall
iptables on centos 7
centos7 firewalld config
Kernel
centos kernel packages
kernel update to 3.10 on centos 6
SYSCTL 内核配置参数分析
NFS
centos6 install nfs servers
mount nfs to linux
mount nfs on centos 6
centos6 nfs verify permissions
SSH
ssh keygen rsa to client
ssh config diffent
Network
centos 7 config net-tool debug ifconfig
debug network card up or down
Samba
samba install on centos 6
samba config example
VIM
VIM using example
本文档使用 MrDoc 发布
-
+
首页
vnc remote desktop
# vnc remote desktop --- # vnc-on-centos-6 ## 一、安装相应桌面环境与vnc服务端和客户端 # yum groupinstall "X Window System" "Desktop"(CentOS 6.x安装GNOME桌面环境) # yum install tigervnc-server tigervnc (CentOS 6.x里) ## 二、VNC的启动和重启 # /etc/init.d/vncserver restart 注:有时候上面的命令启动会报错,直接运行就可以: # vncserver ## 三、设置远程登陆到gnome桌面的配置 # useradd vnc1 # passwd vnc1 # su vnc1 # vncpasswd Password: Verify: #vim /etc/sysconfig/vncservers ```bash VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 1024x768 -alwaysshared -depth 24" ``` 为了安装,这是不建议使用root用户。 ```bash VNCSERVERS="1:root 2:tester 3:vnc1" VNCSERVERARGS[2]="-geometry 1024x768" ``` ## 四、设置vnc访问密码 # vncpasswd # vncserver :1 # vncserver :2 ## 五:修改远程桌面显示配置文件: # vim /root/.vnc/xstartup #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #twn & gnome-session & ## 六、vnc客户端登陆 vnc客户端中输入:服务器端IP:1 或 服务器端IP:2(win10) #vncviewer 192.168.1.33:1 #vncviewer 192.168.1.33:1 补充:: ## 七、防火墙设置。5801/5901/6001/ ```bash # iptables -I INPUT -p tcp --dport 5901 -j ACCEPT # iptables -I INPUT -p tcp --dport 5902 -j ACCEPT # iptables -I INPUT -p tcp --dport 5903 -j ACCEPT A INPUT -m state –state NEW -m tcp -p tcp –dport 5901 -j ACCEPT A INPUT -m state –state NEW -m tcp -p tcp –dport 5902 -j ACCEPT A INPUT -m state –state NEW -m tcp -p tcp –dport 5903 -j ACCEPT ``` 关于VNC服务使用的端口号与桌面号相关,VNC使用TCP端口从5900开始,对应关系如下 ```bash 桌面号为“1” —- 端口号为5901 桌面号为“2” —- 端口号为5902 桌面号为“3” —- 端口号为5903 ``` 基于Java的VNC客户程序Web服务TCP端口从5800开始,也是与桌面号相关,对应关系如下 ```bash 桌面号为“1” —- 端口号为5801 桌面号为“2” —- 端口号为5802 桌面号为“3” —- 端口号为5803 ``` ## 八、 开机自启动。 # chkconfig vncserver on ## 九、 vnc # [root@TM1 sysconfig]# vncserver -list ```bash TigerVNC server sessions: X DISPLAY # PROCESS ID :2 24199 ``` # [root@TM1 sysconfig]# vncserver -kill :2 Killing Xvnc process ID 24199 ## 十、error 备注: a、输入的格式为IP:号码,号码要看你自己的配置而定。如192.168.1.33:1 b、登陆提示connection refused(10061),则是因为linux防火墙的问题,请检查防火墙设置。 c、后面的尾缀”:x”也是不能少的,要不然老提示failed to connect : connection refused (10061) ## 十1、参数说明 关于参数配置说明: 1:-geometry 表示桌面分辨率,默认为1024×768,所以上面的1024×768也可以不写。 2:-nohttpd 表示不监听HTTP端口(58xx)。 3:-nolisten tcp 表示不监听TCP端口(60xx) 4:-localhost 只运行从本机访问。 5:AlwaysShared 默认只允许一个VNCVIEWER连接,此参数表示同一个显示端口允许多用户同时登录. 6:-depth 表示色深,参数有8,16,24,32. 7: SecurityTypes None 登录不需要密码认证VncAuth默认值,要密码认证。 ```
Bobby
2021年12月20日 23:27
分享文档
收藏文档
阅读
103
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码