Question

Using a code-server 1 click app

Posted October 1, 2020 133 views
Ubuntu 18.04VS Code

Hi, I was trying to follow along on the tutorial for implementing code-server from the marketplace here: https://marketplace.digitalocean.com/apps/code-server?ipAddress=188.166.250.224#getting-started

But when I entered the console and logged into root user, I couldn’t find any of the directories it was mentioning via ll. Namely: “/etc/code-server/pass”

Am I doing something wrong? Is the app broken?

Please help. :(

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @gabbyvilloria,

I just created a code-server from the marketplace. I can confirm the file

/etc/code-server/pass

was there.

Additionally, when you entered via SSH were you shown the following message in your terminal :

********************************************************************************
Welcome to code-server.
code-server may be accessed at https://138.197.186.98.
The password for accessing code-server has been randomly generated
and placed in /etc/code-server/pass.
The /home/coder directory is mounted inside the code-server container
as /home/coder so your project directory on the droplet is at /home/coder/project.
Nothing else is mounted in.
The certificate code-server uses is self signed. It is normal
if your browser gives you a warning when try to access it for the first time.
You can use your own certificate easily by adjusting the arguments to code-server
in /usr/local/bin/code-server.
If you wish to change the password, just modify /etc/code-server/pass
and then restart the code-server systemd unit.
Docs for code-server are available at https://github.com/cdr/code-server.
This droplet also has nginx configured to redirect all HTTP requests to HTTPS.
********************************************************************************

I assume by accident you have created just a simple droplet rather than one from the marketplace with code-server inside.

I’ll urge you to try one more time to create the droplet.

Regards,
KFSys

Submit an Answer