From f0683c7c46fd5f52dd68d29d916737a4722b3993 Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Tue, 14 May 2024 12:42:19 -0400 Subject: [PATCH] manual, sysadmins, gui --- .../cockpit_guide/cockpit_guide.md | 89 +++++++++---------- .../guacamole_guide/guacamole_guide.md | 14 +-- 2 files changed, 50 insertions(+), 53 deletions(-) diff --git a/collections/system_administrators/getstarted/remote-desktop_gui/cockpit_guide/cockpit_guide.md b/collections/system_administrators/getstarted/remote-desktop_gui/cockpit_guide/cockpit_guide.md index 2686e18..e9805d3 100644 --- a/collections/system_administrators/getstarted/remote-desktop_gui/cockpit_guide/cockpit_guide.md +++ b/collections/system_administrators/getstarted/remote-desktop_gui/cockpit_guide/cockpit_guide.md @@ -39,48 +39,45 @@ To start, you must [deploy and SSH into a full VM](ssh_guide.md). ``` * Create a new user with root access * Here we use `newuser` as an example - ``` - adduser newuser - ``` +``` +adduser newuser +``` * To see the directory of the new user - ``` - ls /home - ``` +``` +ls /home +``` * Give sudo capacity to the new user - ``` - usermod -aG sudo newuser - ``` +``` +usermod -aG sudo newuser +``` * Make the new user accessible by SSH - ``` - su - newuser - ``` - ``` - mkdir ~/.ssh - ``` - ``` - nano ~/.ssh/authorized_keys - ``` - * add the authorized public key in the file, then save and quit - * Exit the VM and reconnect with the new user - ``` - exit - ``` - ``` - ssh newuser@VM_IPv4_address - ``` +``` +su - newuser +mkdir ~/.ssh +nano ~/.ssh/authorized_keys +``` +* Add the authorized public key in the file, then save and quit +* Exit the VM +``` +exit +``` + * Reconnect with the new user +``` +ssh newuser@VM_IPv4_address +``` ## Set the VM and Install Cockpit * Update and upgrade the VM - ``` - sudo apt update -y && sudo apt upgrade -y && sudo apt-get update -y - ``` +``` +sudo apt update -y && sudo apt upgrade -y && sudo apt-get update -y +``` * Install Cockpit - ``` - . /etc/os-release && sudo apt install -t ${UBUNTU_CODENAME}-backports cockpit -y - ``` +``` +. /etc/os-release && sudo apt install -t ${UBUNTU_CODENAME}-backports cockpit -y +``` @@ -94,23 +91,23 @@ We now change the system daemon that manages network configurations. We will be ``` * Update the `.yaml` file * Go to netplan's directory - ``` - cd /etc/netplan - ``` +``` +cd /etc/netplan +``` * Search for the proper `.yaml` file name - ``` - ls -l - ``` +``` +ls -l +``` * Update the `.yaml` file - ``` - sudo nano 50-cloud-init.yaml - ``` +``` +sudo nano 50-cloud-init.yaml +``` * Add the following lines under `network:` - ``` - version: 2 - renderer: NetworkManager - ``` - * Note that these two lines should be aligned with `ethernets:` + ``` + version: 2 + renderer: NetworkManager + ``` +* Note that these two lines should be aligned with `ethernets:` * Remove `version: 2` at the bottom of the file * Save and exit the file * Disable networkd and enable NetworkManager diff --git a/collections/system_administrators/getstarted/remote-desktop_gui/guacamole_guide/guacamole_guide.md b/collections/system_administrators/getstarted/remote-desktop_gui/guacamole_guide/guacamole_guide.md index f0381ff..9eb5fcb 100644 --- a/collections/system_administrators/getstarted/remote-desktop_gui/guacamole_guide/guacamole_guide.md +++ b/collections/system_administrators/getstarted/remote-desktop_gui/guacamole_guide/guacamole_guide.md @@ -120,14 +120,14 @@ If you are new to the Threefold ecosystem and you want to deploy workloads on th ## Download the Desktop Environment and Run xrdp * Download a Ubuntu desktop environment on the VM - ``` - sudo apt install tasksel -y && sudo apt install lightdm -y - ``` - * Choose lightdm +``` +sudo apt install tasksel -y && sudo apt install lightdm -y +``` +* Choose lightdm * Run tasksel and choose `ubuntu desktop` - ``` - sudo tasksel - ``` + ``` + sudo tasksel + ``` * Download and run xrdp ```