ironrdp_client: update README

This commit is contained in:
Vladyslav Hordiienko
2020-03-19 14:59:44 +02:00
parent d1d6c6b04a
commit 8a90aaa7fc
+24 -19
View File
@@ -1,46 +1,51 @@
# IronRDP client
A command-line RDP client, which performs connection to an RDP server up to the Active state.
The client collects the minimum information about the system (the screen width, height, DPI, etc.),
and takes other info from the command-line arguments (all the arguments have a default value).
If the RDP Connection Sequence completes, the client returns a `SUCCESS` exit code,
or an `error` exit code in case of failure.
A command-line RDP client, which performs connection to an RDP server and decodes RFX graphical updates.
If IronRDP client will encounter an error, then will return `error` exit code and print what caused
an error.
## Prerequisites
Before connection to a Windows 10 RDP server please enable RFX feature:
1. run `gpedit.msc`;
2. go to `Administrative Templates` → `Windows Components` → `Remote Desktop Services` →
`Remote Desktop Session Host` → `Remote Session Environment` →
`RemoteFX for Windows Server 2008 R2`→ `Configure RemoteFX`;
3. tap Enabled.
## Command-line Interface
```
USAGE:
ironrdp_client [OPTIONS] <ADDR> --password <PASSWORD> --security_protocol <SECURITY_PROTOCOL>... --username <USERNAME>
ironrdp_client [OPTIONS] <ADDR> --password <PASSWORD> --security-protocol <SECURITY_PROTOCOL>... --username <USERNAME>
FLAGS:
-h, --help Prints help information
-v, --version Prints version information
OPTIONS:
--dig_product_id <DIG_PRODUCT_ID>
--dig-product-id <DIG_PRODUCT_ID>
Contains a value that uniquely identifies the client [default: ]
-d, --domain <DOMAIN> An optional target RDP server domain name
--ime_file-name <IME_FILENAME>
--ime-file-name <IME_FILENAME>
The input method editor (IME) file name associated with the active input locale [default: ]
--keyboard_functional_keys_count <KEYBOARD_FUNCTIONAL_KEYS_COUNT>
--keyboard-functional-keys-count <KEYBOARD_FUNCTIONAL_KEYS_COUNT>
The number of function keys on the keyboard [default: 12]
--keyboard_subtype <KEYBOARD_SUBTYPE>
--keyboard-subtype <KEYBOARD_SUBTYPE>
The keyboard subtype (an original equipment manufacturer-dependent value) [default: 0]
--keyboard_type <KEYBOARD_TYPE>
--keyboard-type <KEYBOARD_TYPE>
The keyboard type [default: ibm_enhanced] [possible values: ibm_pc_xt, olivetti_ico, ibm_pc_at,
ibm_enhanced, nokia1050, nokia9140, japanese]
-l, --log_file <LOG_FILE>
--log-file <LOG_FILE>
A file with IronRDP client logs [default: ironrdp_client.log]
-p, --password <PASSWORD> A target RDP server user password
-s, --security_protocol <SECURITY_PROTOCOL>...
--security-protocol <SECURITY_PROTOCOL>...
Specify the security protocols to use [default: hybrid_ex] [possible values: ssl, hybrid, hybrid_ex]
--static_channel <STATIC_CHANNEL>... Unique static channel name
-u, --username <USERNAME> A target RDP server user name
ARGS:
@@ -57,9 +62,9 @@ It worth to notice that the client takes mandatory arguments as
1. Run the RDP server (Windows RDP server, FreeRDP server, etc.);
2. Run the IronRDP client and specify the RDP server address, username and password:
```
cargo run -- 192.168.1.100:3389 -u SimpleUsername -p SimplePassword!
cargo run 192.168.1.100:3389 -u SimpleUsername -p SimplePassword!
```
3. After the RDP Connection Sequence finishes,
the client will print `RDP connection sequence finished`
in case of success, and (for example) `RDP failed because of negotiation error: ...`
in case of error. Additional logs are available in `<LOG_FILE>`.
3. After the RDP Connection Sequence the client will start receive RFX updates
and save to the internal buffer.
In case of error, the client will print (for example) `RDP failed because of negotiation error: ...`.
Additional logs are available in `<LOG_FILE>` (`ironrdp_client.log` by default).