我的個人博客:https://lixiaohui.live
title: 從Debian遠程桌面到Windows
date: 2017-11-21 18:20:14
tags:
- Debian
- linux
- 遠程控制
- windows
- rdesktop
重點:使用rdesktop
rdesktop是linux下支持Windows遠程桌面連接的客戶端程序磕谅,
在linux系統(tǒng)下可通過它遠程訪問Windows桌面伙狐,支持多種版本吹害。
rdesktop是sourceforge下支持GPL協(xié)議的一個開源項目而账,采用RDP(Remote Desktop Protocol,遠程桌面協(xié)議)序臂,幾乎可以連接windows的所有版本,諸如NT 4 Terminal Server, 2000, XP, 2003, 2003 R2, Vista, 2008, 7, and 2008 R2等。
目前蹦玫,rdesktop可運行于所有的基于X window平臺的Unix系統(tǒng)中,當前穩(wěn)定版本是1.7.0.
官方網(wǎng)站:http://www.rdesktop.org/
主要的流程分為兩步:
- 從電腦上啟用遠程連接
- 安裝rdesktop
做完上述兩步就可以連接到遠程的Windows桌面了。
1. 從電腦上啟用遠程連接
在桌面的計算機圖標右鍵 -> 屬性 ->遠程里打開允許遠程連接到此計算機
刘绣,同時取消勾選僅允許運行使用網(wǎng)絡(luò)....
這一項樱溉,不取消的話會報以下這個錯:
aukuno@DataScience:~/rdesktop$ rdesktop 192.168.203.41
Autoselected keyboard map en-us
ERROR: CredSSP: Initialize failed, do you have correct kerberos tgt initialized ?
Failed to connect, CredSSP required by server.
此時Windows的遠程設(shè)置如下:
Screenshot from 2017-11-09 05-19-55.png
2. Debian上安裝rdesktop
直接上命令:
sudo apt-get install -y rdesktop
其中,-y
表示直接允許安裝請求的意思
至此纬凤,基本配置就搞定了
3. 從debian遠程命令
rdesktop -g 1024x768 serverName
其中-g
指定分辨率福贞,其他參數(shù)見man rdesktop
。下面列出了部分可選參數(shù):
Usage: rdesktop [options] server[:port]
-u: user name
-d: domain
-s: shell / seamless application to start remotly
-c: working directory
-p: password (- to prompt)
-n: client hostname
-k: keyboard layout on server (en-us, de, sv, etc.)
-g: desktop geometry (WxH)
-i: enables smartcard authentication, password is used as pin
-f: full-screen mode
-b: force bitmap updates
-L: local codepage
-A: path to SeamlessRDP shell, this enables SeamlessRDP mode
-B: use BackingStore of X-server (if available)
-e: disable encryption (French TS)
-E: disable encryption from client to server
-m: do not send motion events
-C: use private colour map
-D: hide window manager decorations
-K: keep window manager key bindings
-S: caption button size (single application mode)
-T: window title
-t: disable use of remote ctrl
-N: enable numlock syncronization
-X: embed into another window with a given id.
-a: connection colour depth
-z: enable rdp compression
到這里就可以看見已經(jīng)成功遠程到Windows桌面了停士!