From bd835ef00ba752033fe94d27b63965a7f376cea4 Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Tue, 14 May 2024 12:43:45 -0400 Subject: [PATCH] manual, sysadmins, gui --- .../xrdp_guide/xrdp_guide.md | 102 +++++++++--------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/collections/system_administrators/getstarted/remote-desktop_gui/xrdp_guide/xrdp_guide.md b/collections/system_administrators/getstarted/remote-desktop_gui/xrdp_guide/xrdp_guide.md index 8b47a0a..444e96a 100644 --- a/collections/system_administrators/getstarted/remote-desktop_gui/xrdp_guide/xrdp_guide.md +++ b/collections/system_administrators/getstarted/remote-desktop_gui/xrdp_guide/xrdp_guide.md @@ -36,44 +36,44 @@ If you are new to the Threefold ecosystem and you want to deploy workloads on th ``` * Once connected, update, upgrade and install the desktop environment * Update - ``` - sudo apt update -y && sudo apt upgrade -y - ``` +``` +sudo apt update -y && sudo apt upgrade -y +``` * Install a light-weight desktop environment (Xfce) - ``` - sudo apt install xfce4 xfce4-goodies -y - ``` +``` +sudo apt install xfce4 xfce4-goodies -y +``` * Create a user with root access - ``` - adduser newuser - ``` - ``` - ls /home - ``` - * You should see the newuser directory +``` +adduser newuser +``` +``` +ls /home +``` + * You should see the newuser directory * Give sudo capacity to newuser - ``` - usermod -aG sudo newuser - ``` + ``` + usermod -aG sudo newuser + ``` * Make newuser accessible by SSH - ``` - su - newuser - ``` - ``` - mkdir ~/.ssh - ``` - ``` - nano ~/.ssh/authorized_keys - ``` - * add authorized public key in file and save + ``` + su - newuser + ``` + ``` + mkdir ~/.ssh + ``` + ``` + nano ~/.ssh/authorized_keys + ``` + * add authorized public key in file and save * Exit the VM and reconnect with new user - ``` - exit - ``` +``` +exit +``` * Reconnect to the VM terminal and install XRDP - ``` - ssh newuser@VM_IPv4_address - ``` +``` +ssh newuser@VM_IPv4_address +``` * Install XRDP ``` sudo apt install xrdp -y @@ -83,9 +83,9 @@ If you are new to the Threefold ecosystem and you want to deploy workloads on th sudo systemctl status xrdp ``` * If not running, run manually: - ``` - sudo systemctl start xrdp - ``` +``` +sudo systemctl start xrdp +``` * If needed, configure xrdp (optional) ``` sudo nano /etc/xrdp/xrdp.ini @@ -93,9 +93,9 @@ If you are new to the Threefold ecosystem and you want to deploy workloads on th * Create a session with root-access user Move to home directory * Go to home directory of root-access user - ``` - cd ~ - ``` +``` +cd ~ +``` * Create session ``` echo "xfce4-session" | tee .xsession @@ -107,9 +107,9 @@ Move to home directory * Find your local computer IP address * On your local computer terminal, write - ``` - curl ifconfig.me - ``` +``` +curl ifconfig.me +``` * On the VM terminal, allow client computer port to the firewall (ufw) ``` @@ -124,16 +124,16 @@ Move to home directory sudo ufw status ``` * If not active, do the following: - ``` - sudo ufw disable - ``` - ``` - sudo ufw enable - ``` +``` +sudo ufw disable +``` +``` +sudo ufw enable +``` * Then the ufw status should show changes - ``` - sudo ufw status - ``` +``` +sudo ufw status +``` ## Client Side: Install Remote Desktop Connection for Windows, MAC or Linux @@ -149,7 +149,7 @@ Simply download the app, open it and write the IPv4 address of the VM. You then * [Remote Desktop Connection app](https://apps.microsoft.com/store/detail/microsoft-remote-desktop/9WZDNCRFJ3PS?hl=en-ca&gl=ca&rtc=1) * MAC * Download in app store - * [Microsoft Remote Desktop Connection app](https://apps.apple.com/ca/app/microsoft-remote-desktop/id1295203466?mt=12) +* [Microsoft Remote Desktop Connection app](https://apps.apple.com/ca/app/microsoft-remote-desktop/id1295203466?mt=12) * Linux * [Remmina RDP Client](https://remmina.org/)