rdesktop(1)
rdesktop π the RDP client that just gets you
okay bestie, welcome to rdesktop(1) β the General Commands Manual entry for the one and only Remote Desktop Protocol client. This is the manual page, but make it a group chat. Everything's here, nothing's skipped, and yes we're doing all of it. Let's go π¦
β¨ NAME β¨
rdesktop β Remote Desktop Protocol client. That's it, that's the name, iconic behavior. π
πΈ SYNOPSIS πΈ
rdesktop [options] server[:port]
You give it a server, you give it options, you optionally give it a port, and it gives you a whole other computer. Periodt. π
π DESCRIPTION π
So rdesktop is a client for Remote Desktop Protocol (RDP, iykyk), which is used in a bunch of Microsoft products. It's known to work with Microsoft Windows server versions ranging from NT 4 terminal server all the way to Windows Server 2012 R2. Like, that's a glow-up journey and she did it flawlessly. π
π OPTIONS π
Every single one. No skips, no skimming, we're thorough in this house. β¨
-u <username>β Username for authentication on the server. Who are you? Say it. π«Ά-d <domain>β Domain for authentication. The whole domain, not just the vibe.-s <shell>β Startup shell for the user. Starts a specific application instead of Explore. And if SeamlessRDP is enabled, this is the application that gets started in seamless mode. Fancy. π-c <directory>β The initial working directory for the user. Often used together with-sto set up a fixed login environment, which is giving very "curated experience" energy. π-p <password>β The password to authenticate with. Heads up though: this may have no effect if "Always prompt for password" is enabled on the server. And now the serious part:
WARNING: if you specify a password on the command line it may be visible to other users when they use tools likeps. Use-p -to makerdesktoprequest a password at startup (from standard input).
Bestie. Do not put your password in the command line. Use -p -. Protect yourself. π
-n <hostname>β Client hostname. Normallyrdesktopautomatically obtains the hostname of the client, so this is the "I'll do it myself" option. π-k <keyboard-map>β Keyboard layout to emulate. This requires a corresponding keymap file to be installed. The standard keymaps provided withrdesktopfollow the RFC1766 naming scheme: a language code followed by a country code if necessary β e.g.en-us,en-gb,de,fr,sv, etc.
The default keyboard map depends on the current locale (LC_* and LANG environment variables). If the current locale is unknown, the default keyboard map is en-us (a US English keyboard). π
The keyboard maps are file names, which means they are case sensitive. The standard keymaps are all in lowercase. Don't be out here typing EN-US, she will not answer. π
The keyboard maps are searched relative to the directories $HOME/.rdesktop/keymaps, KEYMAP_PATH (specified at build time), and $CWD/keymaps, in this order. The keyboard-map argument can also be an absolute filename. π
The special value none can be used instead of a keyboard map. In this case, rdesktop will guess the scancodes from the X11 event key codes using an internal mapping method. This method only supports the basic alphanumeric keys and may not work properly on all platforms, so its use is discouraged. Like, lowkey don't. π«
-g <geometry>β Desktop geometry (WxH[@DPI][+X[+Y]]). If geometry is the special wordworkarea, the geometry will be fetched from the extended window manager hints property_NET_WORKAREA, from the root window. The geometry can also be specified as a percentage of the whole screen, e.g.-g 80%,-g 80%x70%. Math but make it fashion. β¨
If the specified geometry depends on the screen size, and the screen size is changed, rdesktop will automatically reconnect using the new screen size. This requires that rdesktop has been compiled with RandR support. π
The optional DPI parameter should be specified if the screen rdesktop is being displayed on is too far from 96 DPI for unscaled Windows to be readable. Windows currently accepts values from 96 to 480. π
Offset placement of window is optional. Starting point is upper left corner of screen. Window manager might push into visible area, if a panel would be covered. The schema is -g <value>+<xoff>+<yoff>, f.e. -g 30%+200+600. π
-iβ Use password as smartcard pin. If a valid user certificate is matched in smart card reader, the password passed with p argument is used as pin for the smart card. This feature also requires that smart card redirection is used usingr scardargument. Two-factor but make it seamless. π-fβ Enable fullscreen mode. This overrides the window manager and causes therdesktopwindow to fully cover the current screen. Fullscreen mode can be toggled at any time usingCtrl-Alt-Enter. Main character energy, screen is hers now. π-bβ Force the server to send screen updates as bitmaps rather than using higher-level drawing operations. Brute force but polite.-tβ Disable use of remote control. This will disable features like seamless connection sharing. No sharing, we're independent. π-A <seamlessrdpshell>β Enable SeamlessRDP by specifying the path to seamless rdp shell. In this mode,rdesktopcreates a X11 window for each window on the server side. This mode requires the SeamlessRDP server side component, which is available fromhttp://www.cendio.com/seamlessrdp/. πͺβ¨
When using this option, you should normally specify a startup shell which launches the desired application through SeamlessRDP.
Example:
rdesktop -A 'c:\seamlessrdp\seamlessrdpshell.exe' -s 'notepad' mywts.domain.com
Any subsequential call to the above command line example will make use of the seamless connection sharing feature which spawns another notepad in the current connection to the specified server and then exit. She reuses the connection, she's efficient, we love her. π«Ά
-V <tls version>β Set the Transport Level Security (also known as SSL) Version used. Should be one of the following values:1.0,1.1,1.2. By default all versions are supported. Security but with options. π₯-Bβ Use theBackingStoreof the Xserver instead of the integrated one inrdesktop. Outsourcing, love that for her.-eβ Disable encryption. This option is only needed (and will only work) if you have a French version of NT TSE. Very specific, very niche, very c'est la vie. π«π·-Eβ Disable encryption from client to server. This sends an encrypted login packet, but everything after this is unencrypted (including interactive logins).
Bestie, everything after the login is unencrypted. Including interactive logins. Just so we're clear. π
-mβ Do not send mouse motion events. This saves bandwidth, although some Windows applications may rely on receiving mouse motion. Bandwidth said "let me breathe". π¬οΈ-Mβ Use local X cursor inherited from window manager instead of server cursor. This is mostly useful with-m, but is also useful if the server is sending bogus mouse cursors. Cursor glow-up. π±οΈβ¨-Cβ Use private colourmap. This will improve colour accuracy on an 8-bit display, butrdesktopwill appear in false colour when not focused. The colour accuracy only shows up when she has your attention, and honestly? Same. π-Dβ Hide window manager decorations, by using MWM hints. Minimalism.-Kβ Do not override window manager key bindings. By defaultrdesktopattempts to grab all keyboard input when it is in focus. So this is the "chill, let the WM cook" option. π³-S <button size>β Enable single application mode. This option can be used when running a single, maximized application (via-s). When the minimize button of the windows application is pressed, therdesktopwindow is minimized instead of the remote application. The maximize/restore button is disabled. For this to work, you must specify the correct button size, in pixels. The special wordstandardmeans 18 pixels. Maximized and unbothered. πͺ-T <title>β Sets the window title. The title must be specified using an UTF-8 string. Name her something cute. π-Nβ Enable numlock synchronization between the Xserver and the remote RDP session. This is useful with applications that looks at the numlock state, but might cause problems with some Xservers like Xvnc. Numlock but it's a communication skill. π’-X <windowid>β Embedrdesktop-window in another window. Thewindowidis expected to be decimal or hexadecimal (prefixed by0x). Nesting, but make it intentional. πͺ-a <bpp>β Sets the colour depth for the connection (8,15,16,24or32). More than 8 bpp are only supported when connecting to Windows XP (up to 16 bpp) or newer. Note that the colour depth may also be limited by the server configuration. The default value is the depth of the root window. Pretty privilege, but for pixels. π-zβ Enable compression of the RDP datastream. Squish. ποΈ-x <experience>β Changes default bandwidth performance behaviour for RDP5. By default only theming is enabled, and all other options are disabled (corresponding tomodem(56 Kbps)). Setting experience tob[roadband]enables menu animations and full window dragging. Setting experience tol[an]will also enable the desktop wallpaper. Setting experience tom[odem]disables all (including themes). Experience can also be a hexadecimal number containing the flags. Pick your vibe, bestie. β‘-Pβ Enable caching of bitmaps to disk (persistent bitmap caching). This generally improves performance (especially on low bandwidth connections) and reduces network traffic at the cost of slightly longer startup and some disk space. ( 10MB for 8-bit colour, 20MB for 15/16-bit colour, 30MB for 24-bit colour and 40MB for 32-bit colour sessions). Trading disk for speed, a classic deal. πΎ-r <device>β Enable redirection of the specified device on the client, such that it appears on the server. Note that the allowed redirections may be restricted by the server configuration. The server has boundaries and we respect them. π«Ά
Following devices are currently supported:
-r comport:<comport>=<device>,...β Redirects serial devices on your client to the server. Note that if you need to change any settings on the serial device(s), do so with an appropriate tool before startingrdesktop. In most OSes you would usestty. Bidirectional/Read support requires Windows XP or newer. In Windows 2000 it will create a port, but it's not seamless, most shell programs will not work with it. π-r disk:<sharename>=<path>,...β Redirects a path to the share\\tsclient\<sharename>on the server (requires Windows XP or newer). The share name is limited to 8 characters. Short and sweet, keep it cute. πΎ-r lptport:<lptport>=<device>,...β Redirects parallel devices on your client to the server. Bidirectional/Read support requires Windows XP or newer. In Windows 2000 it will create a port, but it's not seamless, most shell programs will not work with it. π¨οΈ-r printer:<printername>[=<driver>],...β Redirects a printer queue on the client to the server. The<printername>is the name of the queue in your local system.<driver>defaults to a simple PS-driver unless you specify one. Keep in mind that you need a 100% match in the server environment, or the driver will fail. The first printer on the command line will be set as your default printer. First come, first printed. π¨οΈβ¨-r sound:[local|off|remote]β Redirects sound generated on the server to the client.remoteonly has any effect when you connect to the console with the-0option. (Requires Windows XP or newer). π
okay that's the end of part 1 bestie β more is coming, don't go anywhere π
-r lspciβ Activates the lspci channel, which lets the server enumerate the clients PCI devices. See the filelspci-channel.txtin the documentation for more information.-r scard[:<Scard Name>=<Alias Name>[;<Vendor Name>][,...]]β Enables redirection of one or more smart-cards. You can provide static name binding between GNU/Linux and Windows. To do this you can use optional parameters as described:<Scard Name>β device name in GNU/Linux and UNIX environment,<Alias Name>β device name shown in Windows environment,<Vendor Name>β optional device vendor name. For list of examples runrdesktopwithout parameters. iykyk-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 the console of the server (requires Windows Server 2003 or newer).-4β Use RDP version 4.-5β Use RDP version 5 (default).-vβ Enable verbose output.
π³ CredSSP Smartcard options π³
--sc-csp-name <name>β Specify the CSP (Crypto Service Provider) to use on the windows side for the smartcard authentication. CSP is the driver for your smartcard and it seems like this is required to be specified for CredSSP authentication. For Swedish NetID the following CSP name is used;"Net iD - CSP".--sc-container-name <name>β Specify the container name, usually this is the username for default container and it seems like this is required to be specified for CredSSP authentication.--sc-reader-name <name>β Specify the reader name to be used to prevent the pin code being sent to wrong card if there are several readers.--sc-card-name <name>β Specify the card name for example;"Telia EID IP5a".
π₯ EXIT VALUES π₯
0β RDP session terminated normally β¨1β Administrator initiated disconnect (also returned for logoff by Windows XP joined to a domain)2β Administrator initiated logout3β Server idle session time limit reached4β Server active session time limit reached5β The session was replaced6β The server is out of memory7β The server denied the connection8β The server denied the connection for security reasons9β The user cannot connect to the server due to insufficient access privileges10β The server does not accept saved user credentials and requires that the user enter their credentials for each connection11β Disconnect initiated by user12β Logout initiated by user16β Internal licensing error17β No license server available18β No valid license available19β Invalid licensing message from client20β The client license has been modified and does no longer match the hardware ID21β The client license is in an invalid format22β Network error during licensing protocol23β Licensing protocol was not completed24β Incorrect client license encryption25β Can't upgrade or renew license26β The server is not licensed to accept remote connections30β The target endpoint chosen by the broker could not be found32β The target endpoint is disconnecting from the broker34β Error occurred while being redirected by broker35β Error while the endpoint VM was being awakened by the broker36β Error while the endpoint VM was being started by the broker37β The IP address of the endpoint VM could not be determined by the broker38β No available endpoints in the connection broker pool39β Connection processing cancelled by the broker40β The connection settings could not be validated by the broker41β Timeout while the endpoint VM was being started by the broker42β Session monitoring error while the endpoint VM was being started by the broker50β The server can only host Remote Applications51β Update of session keys failed52β Decryption or session key creation failed53β Encryption failed62β The local client window was closed63β Some other, unknown error occurred64β Command line usage error69β A service or resource (such as memory) is unavailable70β An internal software error has been detected71β Operating system error76β Protocol error or unable to connect to remote host.
π LINKS π
Main website of rdesktop: http://www.rdesktop.org/
Thatβs the whole rdesktop(1) page, bestie β source/version is rdesktop(1), dated 2017-10-28. Stay iconic, stay connected π
β¨
π¦ where this page comes from
- alpine 3.24: rdesktop-doc 1.9.0-r4 Β· GPL-3.0-or-later
- arch rolling: rdesktop 1.9.0-4 Β· GPL-3.0-only
- debian bookworm: rdesktop 1.9.0-2+b1
- debian trixie: rdesktop 1.9.0-2+b2
- epel 10: rdesktop 1.9.0-15.el10_0 Β· GPL-3.0-or-later
- epel 9: rdesktop 1.9.0-8.el9 Β· GPLv3+
- fedora 43: rdesktop 1.9.0-18.fc43 Β· GPL-3.0-or-later
- fedora 44: rdesktop 1.9.0-19.fc44 Β· GPL-3.0-or-later
- nixos 26.05: rdesktop 1.9.0
- nixpkgs unstable: rdesktop 1.9.0
- ubuntu jammy: rdesktop 1.9.0-2build1
- ubuntu noble: rdesktop 1.9.0-2build4
- ubuntu questing: rdesktop 1.9.0-2build4
- ubuntu resolute: rdesktop 1.9.0-3 Β· GPL-3.0-or-later
- ubuntu stonking: rdesktop 1.9.0-3 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms