First download rdesktop from http://www.rdesktop.org
Then
# Tar zxvf rdesktop-NN-tar.gz
# Cd rw.op-nn
# Cat readme
#./Configure
# Make; make install
#/Usr/local/bin/rdesktop view usage
# Ln-S/usr/local/bin/rdesktop/usr/bin/rdesktop
You can use rdesktop-u username-P password IP: port to achieve automatic connection.
If you want to set the desktop resolution after connection, you can add appropriate parameters during connection,
The help information is shown below.
Hey, you don't have to restart Windows to connect to 3389. Haha ~ '''
------------------------
[Airs @ clin003 rdesktop-1.5.0] $ rdesktop-help
Rdesktop: A Remote Desktop Protocol client.
Version 1.5.0. Copyright (c) 1999-2005 Matt Chapman.
See http://www.rdesktop.org/for more information.
Usage: rdesktop [Options] server [: Port]
-U: User Name
-D: domain
-S: Shell
-C: working directory
-P: Password (-to prompt)
-N: client hostname
-K: keyboard layout on server (En-US, de, SV, etc .)
-G: desktop geometry (WXH)
-F: full-screen mode
-B: Force bitmap updates
-L: Local codePage
-A: Enable 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 color map
-D: Hide Window Manager decorations
-K: keep window manager key bindings
-S: caption button size (single application mode)
-T: window title
-N: Enable numlock Syncronization
-X: embed into another window with a given ID.
-A: Connection color depth
-Z: Enable RDP Compression
-X: rdp5 experience (M [ODEM 28.8], B [roadband], L [an] or hex Nr .)
-P: use persistent bitmap caching
-R: Enable specified device redirection (this flag can be repeated)
'-R comport: COM1 =/dev/ttys0': Enable serial redirection of/dev/ttys0 to COM1
Or COM1 =/dev/ttys0, com2 =/dev/ttys1
'-R Disk: floppy =/mnt/Floppy': Enable redirection of/mnt/floppy to 'floppy 'share
Or 'floppy =/mnt/floppy, CDROM =/mnt/CDROM'
'-R clientname = <client name>': Set the client name displayed
For redirected Disks
'-R lptport: LPT1 =/dev/lp0': Enable parallel redirection of/dev/lp0 to LPT1
Or LPT1 =/dev/lp0, lpt2 =/dev/lp1
'-R printer: mydeskjet': Enable Printer redirection
Or mydeskjet = "HP LaserJet iiip" to enter server driver as well
'-R sound: [local | off | remote]': enable sound redirection
Remote wocould leave sound on server
'-R clipboard: [Off | primaryclipboard | clipboard]': Enable clipboard
Redirection.
'Primaryclipboard' looks at both primary and clipboard
When sending data to server.
'Clipboard' looks at only clipboard.
-0: attach to console
-4: Use RDP version 4
-5: Use RDP version 5 (default)