枫叶几度红 發表於 2017-3-12 19:46:40

CentOS 7下安装配置 VNC Server的方法

<p>需要使用Linux的远程桌面服务,xmanager之前用过,感觉一般,这次尝试下VNC。</p>
<p>我的操作系统是CentOS7</p>
<p><strong>一、服务端</strong></p>
<p>安装VNCServer</p>
<p><font color="#ff0000">#yum -y install vnc *vnc-server*</font></p>
<p>设置密码</p>
<p><font color="#ff0000"># vncserver</font></p>
<p>You will require a password to access your desktops.</p>
<p>Password: 123456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #输入vnc 连接密码<br />Verify: 123456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #确认vnc密码</p>
<p>xauth: creating new authority file /root/.Xauthority</p>
<p>New &lsquo;localhost.localdomain:1 (root)&rsquo; desktop is localhost.localdomain:1</p>
<p>Creating default startup script /root/.vnc/xstartup<br />Starting applications specified in /root/.vnc/xstartup<br />Log file is /root/.vnc/localhost.localdomain:1.log</p>
<p><strong>启动服务</strong></p>
<p>启动一个窗口,如1号窗口</p>
<p><font color="#ff0000"># vncserver :1</font></p>
<p><strong>停止服务</strong></p>
<p># <font color="#ff0000">vncserver -kill :1</font></p>
<p>Killing Xvnc process ID 1661</p>
<p><strong>安装GNOME桌面</strong></p>
<p>装完后记得重启下vncserver</p>
<p><font color="#ff0000">#yum groupinstall &quot;GNOME Desktop&quot; &quot;Graphical Administration Tools&quot;</font></p>
<p><strong>二、客户端</strong></p>
<p>我是Windows,用的客户端http://www.realvnc.com/,下载对应平台的VNC-Viewer</p>
<p>输入IP:窗口号,ok登录成功</p>
<p>网上说的修改 vi /root/.vnc/xstartup才能启动gnome桌面,我没有遇到过这种情况</p>
<p>我装完gnome,重启vncserver即可使用了。</p>
<img alt="" src="https://img.jbzj.com/file_images/article/201703/20170312194324.png" />
<p><img alt="" src="https://img.jbzj.com/file_images/article/201703/20170312194325.png" /></p>
頁: [1]
查看完整版本: CentOS 7下安装配置 VNC Server的方法