如何连接到Linux远程桌面?

发布网友

我来回答

6个回答

热心网友

先SecureCRT  ssh远程到服务器安装相应的桌面环境和配置下vncserver服务;

安装配置

安装

    yum -y install tigervnc-server tigervnc

    chkconfig --add vncserver

    chkconfig --level 35 vncserver on


    yum -y groupinstall "X Window System" "Chinese Support" "Desktop"

    sed -i 's/en_US/zh_CN/' /etc/sysconfig/i18n

        配置

    cat<<EOF>>/etc/sysconfig/vncservers                            

    VNCSERVERS="2:root"                                            

    VNCSERVERARGS[2]="-geometry 1024x768 -alwaysshared -depth 24"  

    EOF                                                            

                                                               

    password1=$(cat /dev/urandom | head -1 | md5sum | head -c 8)   

    vncpasswd<<EOF                                                 

    $password1                                                     

    $password1                                                     

    EOF                                                            

    echo $password1>/etc/password1                                 

    unset password1                                                

                                                               

    /etc/init.d/vncserver start                                    


3.远程桌面环境

   下载vnc view 客户端;

   下载地址:http://www.realvnc.com/download/viewer/

  

热心网友

修改2个地方即可。
root身份登录修改
vim /etc/sysconfig/vncservers
打开注释并且修改:
VNCSERVERS=”1:root”
VNCSERVERARGS[1]=”-geometry 1024×768″
然后在设置个密码
vncpasswd root
Password:
Verify:
然后在修改第二处
如果.vnc不存在,执行vncserver
cd /root/.vnc
vim xstartup
编辑~/.vnc/xstartup
注释掉unset SESSION_MANAGER
注释掉exec /etc/X11/xinit/xinitrc
注释掉xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
注释掉twm &
另外在vncconfig -iconic &后面加一行gnome-session &
不需要什么输入法。直接无视。
搞定,搞不起就重启一下服务器init6

测试下

[root@localhost .vnc]# service vncserver start
启动 VNC 服务器:1:root
New ‘localhost.localdomain:1 (root)’ desktop is localhost.localdomain:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log

[确定]

至于vnc不能链接1006问题,直接解决办法就是
service iptables stop
用完了在打开防”水”墙。
或者
iptables -I input -p tcp --dport 5901 5801 6001 -j Accept
分三次打开。
/etc/rc.d/init.d/iptables save
默认VNC端口。
检查是ps -A |grep vnc*
如果黑屏,检查下是否装了GNOME

yum groupinstall “GNOME Desktop Environment”
---------------------------
参考:
http://hi.baidu.com/xiangmo/blog/item/becd9658e29b23c79d82044b.html

热心网友

要想远程操作 你可以搭建SSH服务器,或者VNC ,你在网上收索一下可以看到很多配置文档,你安装步骤,就可以实现远程桌面啊 希望对你有帮助

热心网友

vnc就最方便了5001端口

热心网友

看下这个吧,我写了里面有vnc怎么安装和使用的

热心网友

按照你的说法VNC应该是可以满足你的需求的

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com