manual: fixing parsing #70
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|     ``` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user