Chinaunix首页 | 论坛 | 博客
  • 博客访问: 200747
  • 博文数量: 75
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 970
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-11 09:44
文章存档

2010年(5)

2009年(18)

2008年(52)

我的朋友

分类:

2008-05-22 17:09:22



   


在.bashrc 中可以定义自己喜欢的命令的简写,打开.bashrc可以看到:
     alias rm='rm -rf'
     alias cp='cp -r'
     alias mv='mv -i'
     俺加了一些自己常用的命令:
     alias cdmnt='mount /dev/cdrom /mnt/cdrom/'
     alias cdexit='umount /mnt/cdrom'
     alias myvnc='vncviewer ip -passwd ~/.vnc/passwd -FullColour -FullScreen &'
     修改完用source .bashrc更新,或者直接logout再login进来生效。
     说到最后一个myvnc,用于唤起全屏的vncviewer,自动登陆输入密码,采用全色,这些options看
man可以查到。当时我自己编辑了~/.vnc/passwd,把密码写在里面,但是老是提示Authentication Failed。
百思不得其解,后来google里面翻了好几屏,才发现其中的奥秘。这个passwd文件不是自己用vi可以去编辑
的,要用vncpasswd来生成,它会帮你生成一个~/.vnc/passwd,里面的内容是密文。然后再运行myvnc,可以
登录上去。可是在全屏方式下怎么退出来呢?也蛮tricky的,windows下是用CTRL+ESC,linux下不行,是
用F8,出现一个menu让你退出的。
     不过vnc反应比较迟滞,比remote desktop还是差了点。

    如果用remote desktop登录windows,命令如下:

   rdesktop ip -f -a 24

   如果要自动登录,则可以加上 -u yourname -p password,它的密码格式不像vnc那样需要加密存储。

  不过有时候可能会看到有WARNING: colour depth changed from 24 to 16,也就是说,没法达到24位色显示,从google上寻找一下,rdesktop的sourceforge论坛里面已经有人讨论过这个问题了,其中有 个人说这样解决:

> Adilson is right. I was trying to connect with -a 24, but I always
> connected at 16bpp. But, there is a "Limit Maximum Color Depth" setting
> on the "Client Settings" tab, which, by default is set to 16. I changed
> it to 24 and, I am telling you now and you can believe me later, it"s
> connecting at 24bpp.

至于说的这个Limit Maximum Color Depth在哪里修改呢?MS的网站上有如下说明:

Set Group Policy for Maximum Color Depth of Terminal Services
In many cases, after you perform these steps, the client still connects with 256 colors rather than whatever value you specified in the Remote Desktop Connection box. This behavior can occur because of a group policy on the Windows XP-based computer that determines the maximum color depth that can be negotiated by the client. In Windows XP, the default policy setting is 256 colors, but this setting can be changed by using the Group Policy Editor.

To use the Group Policy Editor to change the setting, follow these steps:

1. Click Start, click Run, and then type MMC.
2. Click the Console menu, click Add/Remove Snap-in, and then click Add. Select Group Policy.
3. Click Add, make certain that Local Computer is selected in the Group Policy Object box, click Finish, and then click Close.
4. Select Computer Configuration, click Administrative Templates, and then click Terminal Services.
5. Select Limit Maximum Color Depth and set it to the color depth that you want.

     rdesktop的全屏切换的方法:To toggle between full screen and not full screen, use the key combination: Ctrl-Alt-Enter

    用rdesktop就比vnc顺畅多了。

阅读(860) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~