Skip to content

Commit 1d04668

Browse files
authored
makes minor revs to ops setup + adds ssh install (#187)
1 parent 42bb266 commit 1d04668

File tree

5 files changed

+49
-32
lines changed

5 files changed

+49
-32
lines changed

ops-setup/1-update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ sudo apt upgrade
3030

3131
---
3232

33-
### [⇐ Previous](../README.md) | [Next ⇒](./2-rdp.md)
33+
### [⇐ Previous](../README.md) | [Next ⇒](./2-remote-access.md)

ops-setup/2-rdp.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

ops-setup/2-remote-access.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Ops Setup
2+
3+
## Configure Remote Access
4+
Now, let's configure your lab so that you can access its Graphical User Interface (called a GUI) from your home computer over your home network.
5+
6+
To do this we will first install a software package called `ssh`, which will give us access this Terminal on your lab computer from your home computer, allowing us to run commands just like we are now.
7+
8+
Second, we will install `xrdp`, which uses the Remote Desktop Protocol (often shortened to RDP), then set it to run automatically when the computer boots up.
9+
10+
Finally, we will configure the firewall to allow this network traffic.
11+
12+
### Install The `ssh` Software Package:
13+
```bash
14+
sudo apt install ssh -y
15+
```
16+
> Note: The `-y` option bypasses an "Are you sure?" prompt.
17+
18+
### Install The `xrdp` Software Package:
19+
```bash
20+
sudo apt install xrdp -y
21+
```
22+
23+
### Set `xrdp` To Run Automatically
24+
This will tell the computer to run `xrdp` whenever the computer boots up, ensuring that when you reboot, you'll still be able to connect remotely.
25+
```bash
26+
sudo systemctl enable --now xrdp
27+
```
28+
> Note: `ssh` is enabled and started automatically when it is installed, so we do not need to enable it like this.
29+
30+
### Create Firewall Rules
31+
This instructs the firewall application to create rules allowing all traffic coming and going over network port 22 (used for SSH connections) and port number 3389 (used for RDP connections).
32+
33+
```bash
34+
sudo ufw allow from any to any port 22 proto tcp
35+
```
36+
37+
```bash
38+
sudo ufw allow from any to any port 3389 proto tcp
39+
```
40+
---
41+
42+
### [⇐ Previous](./1-update.md) | [Next ⇒](./3-rdp-config.md)

ops-setup/3-rdp-config.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Adjust settings for RDP (Remote Desktop Protocol). These steps will make your remote-connection sessions easier.
66

7+
> Note: Some of these commands run silently! If they execute successfully they will not return anything to the screen. If they fail then you should receive an error message.
8+
79
### Get regular gnome experience over RDP
810
Copy and run each of these commands in the terminal:
911

@@ -14,7 +16,7 @@ sudo sed -i '4 i\export XDG_CURRENT_DESKTOP=ubuntu:GNOME' /etc/xrdp/startwm.sh
1416
sudo sed -i '4 i\export GNOME_SHELL_SESSION_MODE=ubuntu' /etc/xrdp/startwm.sh
1517
```
1618
```bash
17-
sudo sed -i '4 i\export DESKTOP_SESSION=ubuntu' /etc/xrdp/startwm.sh```
19+
sudo sed -i '4 i\export DESKTOP_SESSION=ubuntu' /etc/xrdp/startwm.sh
1820
```
1921

2022
### Remove "color profile authentication" popup in XRDP
@@ -53,4 +55,4 @@ EOL
5355
```
5456
---
5557

56-
### [⇐ Previous](./2-rdp.md) | [Next ⇒](./4-virtualbox.md)
58+
### [⇐ Previous](./2-remote-access.md) | [Next ⇒](./4-virtualbox.md)

ops-setup/4-virtualbox.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ sudo apt install virtualbox -y
2222
sudo apt install virtualbox-ext-pack -y
2323
```
2424

25+
> Note: Installing the extension pack will launch a special installer box within the Terminal, which will require you to confirm your choice. If you can't use your arrows to navigate this box, try using \<Tab\> to change your selection and \<Space\> to mark or un-mark a selection.
26+
2527
### Create a shortcut to Virtualbox
2628
```bash
2729
gsettings set org.gnome.shell favorite-apps "$(gsettings get org.gnome.shell favorite-apps | sed s/.$//), 'virtualbox.desktop']"

0 commit comments

Comments
 (0)