How to Install IDE Code-Server on Ubuntu 18.04

Berikut adalah script untuk menginstall code server sebuah ide lebih cepat dengan versi code-server 3.12.0

mkdir ~/code-server
cd ~/code-server
wget https://github.com/cdr/code-server/releases/download/v3.12.0/code-server-3.12.0-linux-amd64.tar.gz
tar -xzvf code-server-3.12.0-linux-amd64.tar.gz
sudo cp -r code-server-3.12.0-linux-amd64 /usr/lib/code-server
sudo ln -s /usr/lib/code-server/code-server /usr/bin/code-server
sudo mkdir /var/lib/code-server
#sudo nano /lib/systemd/system/code-server.service
sudo touch /lib/systemd/system/code-server.service
sudo su root -c "printf '[Unit]\nDescription=code-server\nAfter=nginx.service\n\n' >> /lib/systemd/system/code-server.service"
sudo su root -c "printf '[Service]\nType=simple\nEnvironment=PASSWORD=12345678\nExecStart=/usr/bin/code-server --bind-addr 0.0.0.0:8080 --user-data-dir /var/lib/code-server --auth password\nRestart=always\n\n' >> /lib/systemd/system/code-server.service"
sudo su root -c "printf '[Install]\nWantedBy=multi-user.target\n\n' >> /lib/systemd/system/code-server.service"
sudo systemctl daemon-reload
sudo systemctl start code-server
sudo systemctl restart code-server
sudo systemctl enable code-server
sudo systemctl status code-server

source:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store