Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐: 强烈推荐:Ylmf OS 3.0 正式版发布附迅雷高 XP系统下硬盘安装Fedora 14图文教程
搜索:
您的位置: Linux安全网 > Linux入门 > » 正文

烂泥:linux学习之VNC远程控制(一)(2)

来源: 未知 分享至:
IP地址:桌面号  下面我就开始启动vncserver view,看看登录效果。我使用的使用TightVnc汉化版(如有需要见附件)的viewer: 650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image021\" border=\"0\" alt=\"clip_image021\" src=\"/uploads/allimg/111107/09234L0T-10.png\" height=\"222\" ?602? />   在VNC主机出输入远程登录的主机IP地址及用户分配的桌面号,然后输入该桌面号对应用户的VNC登录密码。我现在还是已系统管理员root用户为例: 650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image022\" border=\"0\" alt=\"clip_image022\" src=\"/uploads/allimg/111107/09234L393-11.png\" height=\"444\" ?568? />   可以很清楚的看到,root现在已经远程登录上我们的服务器,同时我们也发现。尽管已经登陆成功了,但是我们只能输入相应的命令来进行相关的操作。 650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image024\" border=\"0\" alt=\"clip_image024\" src=\"/uploads/allimg/111107/09234L520-12.jpg\" height=\"333\" ?580? />   那有没有登录成功后,是图形界面的呢?   答案是肯定,有的,只不过我们还需要进行相关的设置罢了。无论是系统管理员,还是普通用户我们只要修改这个文件xstartup就行了。   而该文件对于root用户是存在于boot路径下的“.vnc/xstartup”,而对于普通用户是存在home路径(这是相对于root来修改来说)下,如果不是root用户修改那么普通用户可以直接在命令行就行修改。   同时还要说明一点,由于文件夹“.vnc”的属性为隐藏,所以使用“ls”命令是无法查看到的。但是我们可以打开该文件夹,如下图: 650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image026\" border=\"0\" alt=\"clip_image026\" src=\"/uploads/allimg/111107/09234J4Z-13.jpg\" height=\"432\" ?580? /> 650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image027\" border=\"0\" alt=\"clip_image027\" src=\"/uploads/allimg/111107/09234J558-14.png\" height=\"465\" ?602? />650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image029\" border=\"0\" alt=\"clip_image029\" src=\"/uploads/allimg/111107/09234G095-15.jpg\" height=\"399\" ?580? /> Xstartup文件内容如下: #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title \"$VNCDESKTOP Desktop\" & twm & 呵呵,我们现在要做的就是把以下这段给注释掉 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title \"$VNCDESKTOP Desktop\" & twm & 然后再添加一行“gnome-session &”,最后此文件内容如下: #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc #[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup #[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources #xsetroot -solid grey #vncconfig -iconic & #xterm -geometry 80x24+10+10 -ls -title \"$VNCDESKTOP Desktop\" & #twm & gnome-session & ~ 650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image030\" border=\"0\" alt=\"clip_image030\" src=\"/uploads/allimg/111107/09234J947-16.png\" height=\"369\" ?529? />650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image031\" border=\"0\" alt=\"clip_image031\" src=\"/uploads/allimg/111107/09234JS3-17.png\" height=\"373\" ?528? />   这些做好后,重启服务器即可。 650) this.width=650;\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"clip_image033\" border=\"0\" alt=\"clip_image033\" src=\"/uploads/allimg/111107/09234M403-18.jpg\" height=\"512\" ?580? />

Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史