update ssh commands
This commit is contained in:
parent
01170f4a0c
commit
a4a313d876
@ -1,6 +1,6 @@
|
||||
# Setting up a local development environment
|
||||
|
||||
This document is intended to guide you through setting up a local development environment for Colouring London. This guide assumes you already have Ubuntu 20.04 server installed, typically installed in a virtual environment such a Virtual Box and are able to SSH into your Ubuntu installation for convenience.
|
||||
This document is intended to guide you through setting up a local development environment for Colouring London. This guide assumes you already have Ubuntu 18.04 or 20.04 server installed, typically installed in a virtual environment such a VirtualBox and are able to SSH into your Ubuntu installation for convenience.
|
||||
|
||||
If you a running Ubuntu in a virtual environment you will need to configure networking to forward ports from the guest to the host. For Virtual Box the following was configured under NAT port forwarding (found under `Settings -> Network -> Advanced -> Port Forwarding`).
|
||||
|
||||
@ -10,6 +10,14 @@ app | TCP | 8080 | 3000
|
||||
app_dev | TCP | 3001 | 3001
|
||||
ssh | TCP | 4022 | 22
|
||||
|
||||
To run the commands in the rest of this setup guide, either `ssh` into the VirtualBox environment or open the terminal within the Ubuntu GUI.
|
||||
|
||||
You can ssh into the VirtualBox VM set up with the port forwarding described above like so, where `<linuxusername>` is the name you set up during the installation of Ubuntu (you can type `whoami` in the Ubuntu terminal to remind yourself of this).
|
||||
|
||||
```
|
||||
ssh <linuxusername>@127.0.0.1 -p 4022
|
||||
```
|
||||
|
||||
First upgrade the installed packages to the latest versions, to remove any security warnings.
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user