Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install vscodeonline on ubuntu 1h3g CVM

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install vscodeonline on ubuntu 1h3g cloud host, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.

basis

some variables

MIRROR_PATH="http://default-8g95m46n2bd18f80.service.tcloudbase.com/d/demos"# the code-server web ideCODE_SERVER_PATH=${MIRROR_PATH}/codeserver Install codeserver

The script is made to blend the style of installing pai and openfaas, installed standalone, and run as root. You can integrate your own languages and plug-in services into this IDE to be as out-of-the-box as possible.

# install codeserverinstallCodeserver() { echo "=====================codeserver install progress=======================" msg=$(mkdir -p ~/.local/lib/code-server-3.5.0 wget --no-check-certificate -qO- ${CODE_SERVER_PATH}/v3.5.0/code-server-3.5.0-linux-amd64.tar.gz > /tmp/code-server-3.5.0-linux-amd64.tar.gz && tar -xvf /tmp/code-server-3.5.0-linux-amd64.tar.gz -C ~/.local/lib/code-server-3.5.0 --strip-components=1 rm -rf /tmp/code-server-3.5.0-linux-amd64.tar.gz ln -s ~/.local/lib/code-server-3.5.0/bin/code-server ~/.local/bin/code-server PATH="~/.local/bin:$PATH" # systemd service start rm -rf ~/.config/code-server/config.yaml cat ~/.config/code-server/config.yamlbind-addr: 0.0.0.0:5000auth: passwordpassword: pleasecorrectmecert: falseEOF # systemd service start rm -rf /etc/systemd/system/code-server.service cat /etc/systemd/system/code-server.service[Unit]Description=code-serverAfter=network.target[Service]Type=execExecStart=~/.local/bin/code-serverRestart=alwaysUser=root[Install]WantedBy=default.targetEOF systemctl daemon-reload && systemctl enable code-server systemctl start code-server 2>&1) status=$? updateProgress 95 "$msg" "$status" "code-server install"}

After installation, remember to change the password under ~/.config/code-server/config.yaml to port 5000. If you want to use the certificate, it is best to match the nginx+certbot application in the script. cert: false You can also use the false localhost one, but it's basically useless.

In fact, using that remote-container, you can connect openfaas-cli with vscode, using the yml template under the project source file (.pai.yml,openfaas-cli.yml, etc...) File creates an engineering resource organization file with development deployment, forming remote-openfaas effect: under multi-environment and multi-language, it is necessary to switch environments frequently, and a development always starts with a tower environment. This is also the meaning of vagrant and docker for development (previously vm, no template mechanism), while docker is used for development and deployment. In the future, a set of apps will naturally have an online webide guardian, with its own development environment.

Thank you for reading this article carefully, I hope Xiaobian shared "How to install vscodeonline on ubuntu 1h3g cloud host" This article is helpful to everyone, but also hope that everyone will support more, pay attention to the industry information channel, more relevant knowledge waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report