Linux and Windows Remote Desktop: Difference between revisions

From chriesibaum wiki
Jump to navigation Jump to search
No edit summary
Line 30: Line 30:
</syntaxhighlight>
</syntaxhighlight>


Add the following config:
Add the following config for a 3d Mouse and a USB Network Adapter:
<syntaxhighlight lang="sh">
<syntaxhighlight lang="sh">
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c626", OWNER="ubuntu", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", MODE="0666", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b95", MODE="0666", GROUP="plugdev", TAG+="uaccess"
</syntaxhighlight>
</syntaxhighlight>


And finaly reload the udev rules:
And finaly reload the udev rules:
<syntaxhighlight lang="sh">
<syntaxhighlight lang="sh">
sudo udevadm control --reload-rules
sudo udevadm control --reload-rules && udevadm trigger
</syntaxhighlight>
</syntaxhighlight>

Revision as of 17:54, 21 January 2022

How to

A nice and convenient variant to use RDP from a Linux box to a windowos system is xfreerdp.

The following switches are used to enable multimonitor usage as well as microphone and sound. Monitor 0 and 1 is used in full screen mode on the linux box. Run xfreerdp from your favorite terminal:

xfreerdp /monitors:0,1 /multimon /sound /microphone /kbd:0x00000807 /u:<user name> /v:<ip address or domain name of the server>

add /usb to route an USB Device to the remote session

 /usb:auto,dev:046d:c626

To quit the rdp session press the right <ctrl> key and switch to then in the terminal and press <ctrl>+c.


Installation

Ubuntu 20.04 install the package 'freerdp2-x11':

sudo apt install freerdp2-x11


Add access rights to a USB device

Add/Adjust the udev rules file: /etc/udev/rules.d/100-local.rules

sudo nano /etc/udev/rules.d/100-local.rules

Add the following config for a 3d Mouse and a USB Network Adapter:

SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", MODE="0666", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b95", MODE="0666", GROUP="plugdev", TAG+="uaccess"

And finaly reload the udev rules:

sudo udevadm control --reload-rules && udevadm trigger