Kali Linux Install xRDP: Difference between revisions
m (→References) |
|||
Line 68: | Line 68: | ||
* Rafe Hart: [https://rafaelhart.com/2019/10/installing-xrdp-on-kali-linux/ '''Installing xRDP on Kali Linux'''] | * Rafe Hart: [https://rafaelhart.com/2019/10/installing-xrdp-on-kali-linux/ '''Installing xRDP on Kali Linux'''] | ||
* Proxmox on Reddit: [https://www.reddit.com/r/Proxmox/comments/ax4glv/headless_gpu_passthrough_with_rdp_access/ '''Headless GPU Passthrough with RDP Access'''] | |||
* Unix & Linux: [https://unix.stackexchange.com/a/496519/201297 Authentication is required to create a color profile] | * Unix & Linux: [https://unix.stackexchange.com/a/496519/201297 Authentication is required to create a color profile] | ||
* BLOG‑D Without Nonsense: [https://dannyda.com/2020/02/21/how-to-switch-desktop-environments-for-kali-linux-easily/ How to Switch Desktop Environments for Kali Linux easily] | * BLOG‑D Without Nonsense: [https://dannyda.com/2020/02/21/how-to-switch-desktop-environments-for-kali-linux-easily/ How to Switch Desktop Environments for Kali Linux easily] |
Revision as of 07:03, 6 September 2022
Install xRDP
sudo apt update
sudo apt install xrdp
sudo systemctl enable xrdp
sudo systemctl start xrdp
sudo systemctl status xrdp
Setup Pulseaudio
sudo apt install pulseaudio-module-xrdp
sudo apt install pulseaudio-module-xrdp-dbgsym
pulseaudio -k
Authentication is required to create a color managed device
To bypass this authentication that is required at each log-in, we need to create the file /etc/polkit‑1/localauthority/50-local.d/color.pkla
.
sudo nano /etc/polkit-1/localauthority/50-local.d/color.pkla
[Allow colord for all users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile;org.freedesktop.packagekit.system-sources-refresh
ResultAny=yes
ResultInactive=yes
ResultActive=yes
sudo systemctl restart polkit
Switch the Desktop Environment
In order to change the desktop environment for xRDP you need to install a different (new) kali-desktop-${environment}
. The available desctop environments are listed at Figure 1. Let's assume we want to install Gnome.
sudo apt update && \
sudo apt install kali-desktop-gnome
Then you need to set-up the default desktop environment as it is shown at Figure 1.
sudo update-alternatives --config x-session-manager
Tweak the Browsers
If your are connecting to a virtual machine which doesn't have dedicated video card, you may want to disable the hardware acceleration within the browsers in use in order to achieve better performance – Figure 2.
Add Keyboard Layout
The source of this section is this answer at Ask Ubuntu. The firs step is to find the xRDP's key-map name for the language you want to add. For example the key-map code for Bulgarian language is 0x0402
. So to generate key-map for this language you need to perform the following commands and then log-out and restart rdp.service
via SSH or just reboot the instance.
xrdp-genkeymap km-0402.ini
sudo mv km-0402.ini /etc/xrdp/km-00000402.ini
sudo chown root:root /etc/xrdp/km-00000402.ini
References
- Rafe Hart: Installing xRDP on Kali Linux
- Proxmox on Reddit: Headless GPU Passthrough with RDP Access
- Unix & Linux: Authentication is required to create a color profile
- BLOG‑D Without Nonsense: How to Switch Desktop Environments for Kali Linux easily
- Ask Ubuntu: xrdp – how to change keyboard layout
- SourceForge: xRDP > docs > keymap-names.txt
- GitHub: xRDP > docs > keymap-names.txt