Linux and Windows Remote Desktop: Difference between revisions

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


add /usb to route an USB Device to the remote session
<syntaxhighlight lang="sh">
/usb:auto,dev:046d:c626
</syntaxhighlight>


To quit the rdp session press the right <ctrl> key and switch to then in the terminal and press <ctrl>+c.
To quit the rdp session press the right <ctrl> key and switch to then in the terminal and press <ctrl>+c.
Line 17: Line 21:
<syntaxhighlight lang="sh">
<syntaxhighlight lang="sh">
sudo apt install freerdp2-x11
sudo apt install freerdp2-x11
</syntaxhighlight>
=Add access rights to a USB device=
Add/Adjust the udev rules file: /etc/udev/rules.d/100-local.rules
<syntaxhighlight lang="sh">
sudo nano /etc/udev/rules.d/100-local.rules
</syntaxhighlight>
Add the following config:
<syntaxhighlight lang="sh">
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c626", OWNER="ubuntu", GROUP="plugdev", TAG+="uaccess"
</syntaxhighlight>
And finaly reload the udev rules:
<syntaxhighlight lang="sh">
sudo udevadm control --reload-rules
</syntaxhighlight>
</syntaxhighlight>

Revision as of 17:32, 26 May 2021

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:

SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c626", OWNER="ubuntu", GROUP="plugdev", TAG+="uaccess"

And finaly reload the udev rules:

sudo udevadm control --reload-rules