Skip to content

Commit 91a98b8

Browse files
Moien Tajikkylecarbs
Moien Tajik
authored andcommitted
Fixed documentation download links based on latest version (#130)
* Fixed documentation based on latest release * Fixed google-cloud documentation steps order * Edited docs based on the latest release versions * Make docs more dynamic based on Releases * Changed ordered list to unordered list
1 parent 6028a8b commit 91a98b8

File tree

3 files changed

+68
-19
lines changed

3 files changed

+68
-19
lines changed

doc/admin/install/aws.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,26 @@ If you're just starting out, we recommend [installing code-server locally](../..
3232
```
3333
>example: `ssh -i "/Users/John/Downloads/TestInstance.pem" [email protected]`
3434
- You should see a prompt for your EC2 instance like so<img src="../../assets/aws_ubuntu.png">
35-
- At this point it is time to download the `code-server` binary. We will of course want the linux version. Make sure you copy the link for the latest linux version on our [releases page](https://github.com/codercom/code-server/releases)
36-
- With the URL in the clipboard, run:
35+
- At this point it is time to download the `code-server` binary. We will of course want the linux version.
36+
- Find the latest Linux release from this URL:
3737
```
38-
wget https://github.com/codercom/code-server/releases/download/0.1.4/code-server-linux
38+
https://github.com/codercom/code-server/releases/latest
39+
```
40+
- Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page):
41+
```
42+
wget https://github.com/codercom/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz
43+
```
44+
- Extract the downloaded tar.gz file with this command, for example:
45+
```
46+
tar -xvzf code-server-{version}-linux-x64.tar.gz
47+
```
48+
- Navigate to extracted directory with this command:
49+
```
50+
cd code-server-{version}-linux-x64
3951
```
4052
- If you run into any permission errors, make the binary executable by running:
4153
```
42-
chmod +x code-server-linux
54+
chmod +x code-server
4355
```
4456
> To ensure the connection between you and your server is encrypted view our guide on [securing your setup](../../security/ssl.md)
4557
- Finally, run

doc/admin/install/digitalocean.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,25 @@ If you're just starting out, we recommend [installing code-server locally](../..
1616
- Open a terminal on your computer and SSH into your instance
1717
> example: ssh [email protected]
1818
- Once in the SSH session, visit code-server [releases page](https://github.com/codercom/code-server/releases/) and copy the link to the download for the latest linux release
19-
- In the shell run the below command with the URL from your clipboard
19+
- Find the latest Linux release from this URL:
2020
```
21-
wget https://github.com/codercom/code-server/releases/download/0.1.4/code-server-linux
21+
https://github.com/codercom/code-server/releases/latest
22+
```
23+
- Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page):
24+
```
25+
wget https://github.com/codercom/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz
26+
```
27+
- Extract the downloaded tar.gz file with this command, for example:
28+
```
29+
tar -xvzf code-server-{version}-linux-x64.tar.gz
30+
```
31+
- Navigate to extracted directory with this command:
32+
```
33+
cd code-server-{version}-linux-x64
2234
```
2335
- If you run into any permission errors when attempting to run the binary:
2436
```
25-
chmod +x code-server-linux
37+
chmod +x code-server
2638
```
2739
> To ensure the connection between you and your server is encrypted view our guide on [securing your setup](../../security/ssl.md)
2840
- Finally start the code-server

doc/admin/install/google_cloud.md

+37-12
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,52 @@ If you're just starting out, we recommend [installing code-server locally](../..
2020

2121
## Final Steps
2222

23-
1. SSH into your Google Cloud VM
23+
- SSH into your Google Cloud VM
2424
```
2525
gcloud compute ssh --zone [region] [instance name]
2626
```
27-
2. Download the binary using the link we copied to clipboard
27+
28+
- Find the latest Linux release from this URL:
29+
```
30+
https://github.com/codercom/code-server/releases/latest
31+
```
32+
33+
- Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page):
34+
```
35+
wget https://github.com/codercom/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz
2836
```
29-
wget https://github.com/codercom/code-server/releases/download/0.1.4/code-server-linux
37+
38+
- Extract the downloaded tar.gz file with this command, for example:
3039
```
31-
3. Make the binary executable if you run into any errors regarding permission:
32-
```
33-
chmod +x code-server-linux
34-
```
35-
> To ensure the connection between you and your server is encrypted view our guide on [securing your setup](../../security/ssl.md)
36-
4. Start the code-server
40+
tar -xvzf code-server-{version}-linux-x64.tar.gz
41+
```
42+
43+
- Navigate to extracted directory with this command:
44+
```
45+
cd code-server-{version}-linux-x64
46+
```
47+
48+
- Make the binary executable if you run into any errors regarding permission:
49+
```
50+
chmod +x code-server
51+
```
52+
53+
> To ensure the connection between you and your server is encrypted view our guide on [securing your setup](../security/ssl.md)
54+
55+
- Start the code-server
3756
```
3857
sudo ./code-server-linux -p 80
3958
```
59+
4060
> For instructions on how to keep the server running after you end your SSH session please checkout [how to use systemd](https://www.linode.com/docs/quick-answers/linux/start-service-at-boot/) to start linux based services if they are killed
41-
5. Access code-server from the public IP of your Google Cloud instance we noted earlier in your browser.
61+
62+
- Access code-server from the public IP of your Google Cloud instance we noted earlier in your browser.
4263
> example: 32.32.32.234
43-
6. You will be greeted with this page. Code-server is using a self-signed SSL certificate for easy setup. To proceed to the IDE, click **"Advanced"**<img src ="../../assets/chrome_warning.png">
44-
7. Then click **"proceed anyway"**<img src="../../assets/chrome_confirm.png">
64+
65+
- You will be greeted with this page. Code-server is using a self-signed SSL certificate for easy setup. To proceed to the IDE, click **"Advanced"**<img src ="../../assets/chrome_warning.png">
66+
67+
- Then click **"proceed anyway"**<img src="../../assets/chrome_confirm.png">
68+
4569
---
70+
4671
> NOTE: If you get stuck or need help, [file an issue](https://github.com/codercom/code-server/issues/new?&title=Improve+self-hosted+quickstart+guide), [tweet (@coderhq)](https://twitter.com/coderhq) or [email](mailto:[email protected]?subject=Self-hosted%20quickstart%20guide).

0 commit comments

Comments
 (0)