Comments on How to Install Visual Studio Code - Server IDE on Ubuntu 18.04 LTS
Code-server is a Visual Studio Code (VS) that can be run remotely on the server and which is accessible through a web browser. It allows you to create and have a consistent development environment that can be accessed anytime and everywhere.
4 Comment(s)
Comments
Hello,
thank you for this great site and your great tutorials. I regualry check you site for trying some new things. I love it.
I just tried this tutorial and have some remarks, because of some problems I ran in.
First of all I could not use the default port 8080. Just in case you have the same issue try:
netstat -an |grep 8080
If there is no output you dont have to change anything and you can go on with this tutorial as it is.
If there is an output it wont work for you without changing the port vscode listens on. The service will fail to start.
Try your desired port after grep.
netstat -an |grep YoUrPoRt
Change "YoUrPoRt" by a portnumber e.g. 8081
If there is no output you can use this port.
You can easily change the port vscode listens on by editing the ExecStart-section in your code-server.service:
ExecStart=/home/code/bin/code-server --host 127.0.0.1 --port YoUrPoRt --user-data-dir /home/code/data --auth password
Before you start with Point 2 of the tutorial change user to su (sudo -s) for getting all your work saved.
Kind regards
i cannot get the Environment=PASSWORD to work . it fails with the error message no such file or directory. i have tried it with both ways as below:
Environment=PASSWORD=mypassword
Environment="PASSWORD=mypassword"
and i get the errror message: nohup: failed to run the command 'PASSWORD=mypassword' No such file or directory
how do i do this?
Hint for finding and using the latest release:
find out on: https://github.com/cdr/code-server/releases
find the right version for your system
right click and copy the link to use with wget
Hi, I encounted a problem when doing th certbox section. Would like to ask for your advice.
when applying for cert
``` certbot certonly --standalone --agree-tos -m [email protected] -d vscode.hakase-labs.io ```
It shows
``` Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator standalone, Installer None Obtaining a new certificate Performing the following challenges: http-01 challenge for vscode.hakase-labs.io Waiting for verification... Cleaning up challenges Failed authorization procedure. vscode.hakase-labs.io (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for vscode.hakase-labs.io - check that a DNS record exists for this domain IMPORTANT NOTES: - The following errors were reported by the server: Domain: vscode.hakase-labs.io Type: None Detail: DNS problem: NXDOMAIN looking up A for vscode.hakase-labs.io - check that a DNS record exists for this domain ``` Seems the system not knowing the vscode.hakase-labs.io kind regards, Grec