准备慢慢的把自己的台式机的操作系统从Windows转移到Linux下面(OpenSUSE或者也可能是Ubuntu),所以最近总是在寻找一些Windows下必做的工作软件在Linux下面的替代软件,其实说实施,除了店里面使用的百胜BS3000+这个ERP系统必须使用Windows外,其它的都已经没有什么需要在Windows下面工作的了,而这个软件我可以直接连程连接上服务器使用,或者在Linux下面安装VirtualBox虚拟机安装Windows系统也可以。

如果使用远程连接的话,我一直使用TeamViewer也可以解决问题,另外我希望使用的就是一个在Linux下面连接Windows远程桌面的软件了 RDesktop,该软件是直接源码发行的,我写这篇文章时最近版本是1.7.1,可能你下载的版本与我这里使用的不一样,但是安装和使用方法是一样的。

使用下面命令进行安装:

tar zxvf rdesktop-1.7.1.tar.gz
cd rdesktop-1.7
./configure
make
make install
make clean

如果你使用的是Ubuntu/Debian,还可以像下面这样的安装:

apt-get install rdesktop

对于CentOS还可以这样安装:

yum install rdesktop

安装完成之后,会添加一个 rdesktop 命令,使用方法为:

rdesktop [options] server[:port]

例如我的服务器地址是 *192.168.1.10*,并且要以32位色彩(本地连接的速度是很快的,所以使用了更高的颜色),那么像下面这样的:

rdesktop -f -a 32 192.168.1.10

关于 rdesktop 更多的使用方法可以运行下面这行命令:

man rdesktop

Seamlessrdp

这里还有一个很有趣的使用方法,那就是让RDesktop结合Seamlessrdp使用,Seamlessrdp可以让你在Linux直接执行Windows桌面中的应用程序,就好像直接运行在Linux的源生程序一样,其实现方法如下:

  1. 下载Seamlessrdp,并将其提取到 C:seamlessrdp 目录中。
  2. 在 Linux 按下面方式执行 rdesktop(我这里想要直接打开IE浏览器):
    rdesktop -A -s "C:seamlessrdpseamlessrdpshell.exe C:Program FilesInternet Exploreriexplore.exe" <SERVER IP>:3389 -u administrator -p <ADMINISTRATOR PASSWORD>

    说明*:将 * 替换为你服务器的IP地址,把 替换为你Windows系统的登陆密码。

关于 Seamlessrdp 的使用,还可以查看一下下Ubuntu Wiki

安装过程中经常遇到的问题

  • Could not find X Window System headers/libraries To specify paths manually, use the options –x-includes and –x-libraries”

    解决办法
    # yast2 -i

    然后 software->Software Management->serch xorg-x11-devel,然后install
  • “configure: error: no acceptable C compiler found in $PATH See config.log' for more details.”

    解决办法
    # yast2 -i gcc
  • “ERROR: Could not find OpenSSL headers/libraries. To specify a path manually, use the Cwith-openssl option”

    解决办法
    # yast2 -i openssl-devel

    或者
    # yast2 -i libopenssl-devel

一些链接

标签: none

评论已关闭