rdesktop: A Remote Desktop Protocol client.
$ rdesktop -u [username] -p [password] [127.0.0.1] -g 1024x640
where:
username is the login name of the remote Windows machine.
password that matches the username of the remote Windows machine.
127.0.0.1 is the IP address of remote computer.
1024x640 is the preferred resolution.
-r clipboard:PRIMARYCLIPBOARD can be added to make sure that copy-paste will work from host to client of vice-versa.
The compete 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 colour 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 colour depth
-z: enable rdp compression
-x: RDP5 experience (m[odem 28.8], b[roadband], l[an] or hex nr.)
-P: use persistent bitmap caching
-0: attach to console
-4: use RDP version 4
-5: use RDP version 5 (default)
-y: use raw keyboard (default no)