Last active
March 26, 2022 19:54
-
-
Save LinauxTerminology/e1bc9d88afb7e8d87d86438da1ff7578 to your computer and use it in GitHub Desktop.
I Will Do Install Code Server On Ubuntu 20.04 Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you need Code Server Setup contact with me: | |
Email: [email protected] | |
Skype: https://join.skype.com/ | |
Telegram:https://t.me/LinauxTerminology | |
WhatsApp: +8801408694088 | |
Imo: +8801408694088 | |
apt update -y | |
apt upgrade -y | |
2. Install Code-Server | |
cd /home | |
wget https://github.com/cdr/code-server/releases/download/v3.1.0/code-server-3.1.0-linux-amd64.tar.gz | |
tar xzf code-server-3.1.0-linux-amd64.tar.gz && rm code-server-3.1.0-linux-amd64.tar.gz | |
mv code-server-3.1.0-linux-amd64 code-server | |
cd code-server | |
./code-server –port 8000 | |
nano /lib/systemd/system/code-server.service | |
Copy and paste following content and replace <password> with the password you want to set. This will be the password you will use to login to code-server. | |
[Unit] | |
Description=Code Server Service | |
After=network.target | |
proxy_set_header Host $host; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection upgrade; | |
proxy_set_header Accept-Encoding gzip; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} | |
systemctl restart rsyslog.service | |
systemctl start fail2ban.service | |
systemctl enable fail2ban.service | |
http://localhost:8080 |
Author
LinauxTerminology
commented
Mar 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment