How to install Code Server on Ubuntu 22.04

time
8 months ago
view
0 views

original uri https://youtu.be/_nSSibt0bmw RUN VS CODE ON ANY MACHINE ANYWHERE AND ACCESS IT IN THE BROWSER.

And it is a web implementation of VS Code that you can install on a server and then access it from the web.

In this video, you will learn how to install Code Server on Ubuntu 22.04, so you will have your IDE in the cloud for your many projects.

Useful Links: VPS/VDS - https://www.mivocloud.com/

WARNING - ANGLED BRACKETS AREN'T ALLOWED IN DESCRIPTION SO BE ATTENTIVE TO THE VIDEO IN NANO EDITOR

Commands Used: mkdir ~/code cd code wget https://github.com/coder/code-server/releases/download/v4.9.1/code-server-4.9.1-linux-amd64.tar.gz tar -xzvf code-server-4.9.1-linux-amd64.tar.gz sudo cp -r code-server-4.9.1-linux-amd64 /usr/lib/code-server sudo ln -s /usr/lib/code-server/bin/code-server /usr/bin/code-server sudo mkdir /var/lib/code-server sudo nano /lib/systemd/system/code-server.service

[Unit] Description=code-server After=nginx.service

[Service] Type=simple Environment=PASSWORD= ExecStart=/usr/bin/code-server --bind-addr 127.0.0.1:8080 --user-data-dir /var/lib/code-server --auth password Restart=always

[Install] WantedBy=multi-user.target

sudo systemctl enable code-server sudo systemctl start code-server sudo systemctl status code-server sudo apt install nginx sudo nano /etc/nginx/sites-available/code-server.conf

server { listen 80; listen [::]:80;

server_name DOMAINNAME;

location / { proxy_pass http://localhost:8080/; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Accept-Encoding gzip; } }

sudo nginx -t sudo ln -s /etc/nginx/sites-available/code-server.conf /etc/nginx/sites-enabled/code-server.conf sudo systemctl restart nginx

Loading comments...
affpapa
sigma-africa
sigma-asia
sigma-europe

Licensed