Skip to content

Instantly share code, notes, and snippets.

@LinauxTerminology
Last active March 26, 2022 19:54
Show Gist options
  • Save LinauxTerminology/e1bc9d88afb7e8d87d86438da1ff7578 to your computer and use it in GitHub Desktop.
Save LinauxTerminology/e1bc9d88afb7e8d87d86438da1ff7578 to your computer and use it in GitHub Desktop.
I Will Do Install Code Server On Ubuntu 20.04 Linux
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
@LinauxTerminology
Copy link
Author

Screenshot from 2022-03-23 01-10-14
Screenshot from 2022-03-23 20-31-32
Screenshot from 2022-03-23 20-31-51
Screenshot from 2022-03-23 20-32-02
Screenshot from 2022-03-23 20-34-01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment