黑猴子的家:VNC 入门操作
1、网址
RealVNC
http://www.realvnc.com/
Tight VNC
http://www.tightvnc.com/
UltraVNC
http://www.uvnc.com/
2、下载
3、linux系统yum安装vnc相关组件
[[email protected] ~]# yum -y install tigervnc tigervnc-server tigervnc-server-module
4、linux系统复制vnc配置模板文件
[[email protected] ~]# cd /lib/systemd/system/
[[email protected] system]# cp [email protected] vncserver.service
[[email protected] system]# vim vncserver.service
5、修改分辨率大小
[[email protected] ~]# cd /usr/bin/
[[email protected] bin]# vim vnserver
$geometry = "1024x768";
6、启动前删除无用文件
[[email protected] ~]# rm -rf /tmp/.X11-unix
尖叫提示:如果不删除,可能会导致vnc启动不了
7、vnc常用命令
//启动VNC
[[email protected] ~]# systemctl start [email protected]:1.service
//开机自动启动VNC
[[email protected] ~]# systemctl enable [email protected]:1.service
//关闭VNC
[[email protected] ~]# systemctl stop [email protected]:1.service
//禁止开机自动启动
[[email protected] ~]# systemctl disable [email protected]:1.service
//查看VNC 状态
[[email protected] ~]# systemctl status [email protected]:1.service
[[email protected] ~]# systemctl status -l [email protected]:1.service
//查看VNC
[[email protected] ~]# vncserver -list
//干掉VNC
[[email protected] ~]# vncserver -kill :2
[[email protected] ~]# vncserver :1
[[email protected] ~]# vncviewer 192.168.1.106
尖叫提示:默认端口5901, vncserver :1命令,冒号前有空格
8、修改密码
[[email protected] ~]# vncpasswd
9、开机启动
方式一
[[email protected] ~]# echo 'vncserver :1 ' >> /etc/rc.local
方式二
[[email protected] ~]# systemctl enable [email protected]:1.service
10、Window安装VNC Server 、VNC Viewer
11、VNC Viewer 客户端使用
12、VNC Server 服务端使用
设置选项
设置加密方式
设置客户端访问权限
密码设置
文件传输
选择要发送的文件,完成传输
无密码登录