Window&os7互相远程桌面

来源:互联网 发布:知行理工app最新版 编辑:程序博客网 时间:2024/05/21 08:38


Window连接centos7

1.#yum list | grep vnc

2.#yum install tigervnc-server.x86_64 libvncserver.x86_64 tigervnc.x86_64

接下来的配置按/lib/systemd/system/vncserver@.service说明做即可。

3.cp /lib/systemd/system/vncserver@.service /etc/systemd/system

4.runuser -l test -c /usr/bin/vncserver %i :11

 

You will require a password to access your desktops.

 

Password:

Verify:

 

New 'master:1 (test)' desktop is master:1<这地方的1为后面登录时候用到的登录地址ip:1>

 

Creating default startup script /home/test/.vnc/xstartup

Starting applications specified in /home/test/.vnc/xstartup

Log file is /home/test/.vnc/master:1.log

5.[root@master ~]# systemctl daemon-reload 

6.[root@master ~]# systemctl enable vncserver@:1.service 

ln -s '/etc/systemd/system/vncserver@.service' '/etc/systemd/system/multi-user.target.wants/vncserver@:1.service'

7.Systemctl stop firewalld.service//关闭防火墙

8.Win7安装tigervnc客户端http://tigervnc.org/

9.打开vnc客户端,server框中输入ip:1 (1代表上面给出的display),这时你便可以轻松的通过友好的远程桌面来控制centOS了。

 

Centos7连接win

参考:http://www.server-world.info/en/note?os=CentOS_7&p=x&f=5

1.#yum -y install freerdp

2.#startx

3.#xfreerdp -g 800x600 -u Serverworld 10.0.0.100

# -g [screen resolution]
# -u [username]
# [destination hostname or IP address]

 

 

0 0
原创粉丝点击