安装code-server 本文共有2778个字,关键词: 安装code-server、node、dotnet ``` #!/bin/bash if [[ -d "/xgg" ]]; then rm -rf /xgg fi mkdir /xgg wget -O /xgg/frp_0.54.0_linux_amd64.tar.gz https://gitee.com/mbaisha/frp/releases/download/v0.54.0/frp_0.54.0_linux_amd64.tar.gz tar xvf /xgg/frp_0.54.0_linux_amd64.tar.gz -C /xgg mv /xgg/frp_0.54.0_linux_amd64 /xgg/frp mv /xgg/frp/frpc /xgg/frp/sh rm -rf *.toml rm -rf /xgg/frp/frps content=" serverAddr: \"60.186.61.140\" serverPort: 22 proxies: - name: \"x\" type: \"http\" localIP: \"127.0.0.1\" localPort: 8080 customDomains: - \"x.l.vxlife.com\" subdomain: \"x\" #remotePort: 6060 " echo -e "$content" > /xgg/frp/sh.toml wget -O /xgg/code-server-4.23.0-linux-amd64.tar.gz https://cf.ghproxy.cc/https://github.com/coder/code-server/releases/download/v4.23.0/code-server-4.23.0-linux-amd64.tar.gz tar xvf /xgg/code-server-4.23.0-linux-amd64.tar.gz -C /xgg wget -O /xgg/node-v20.12.1-linux-x64.tar.xz https://nodejs.org/dist/v20.12.1/node-v20.12.1-linux-x64.tar.xz tar xvf /xgg/node-v20.12.1-linux-x64.tar.xz -C /xgg wget -O /xgg/dotnet8.tar.gz https://download.visualstudio.microsoft.com/download/pr/0a1b3cbd-b4af-4d0d-9ed7-0054f0e200b4/4bcc533c66379caaa91770236667aacb/dotnet-sdk-8.0.204-linux-x64.tar.gz mkdir /xgg/dotnet8 tar xvf /xgg/dotnet8.tar.gz -C /xgg/dotnet8 echo "PATH=$PATH:/xgg/node-v20.12.1-linux-x64/bin:/xgg/dotnet8" >> ~/.bashrc source ~/.bashrc mkdir -p /xgg/code echo "bind-addr: 127.0.0.1:8080" > /xgg/code/config.yaml echo "auth: password" >> /xgg/code/config.yaml echo "password: 123456" >> /xgg/code/config.yaml echo "cert: false" >> /xgg/code/config.yaml echo "user-data-dir: /xgg/code" >> /xgg/code/config.yaml /xgg/code-server-4.23.0-linux-amd64/bin/code-server --config /xgg/code/config.yaml ``` ------------ ``` bind-addr: 0.0.0.0:8080 auth: password password: zhuge823 cert: false user-data-dir: /root/config /root/code-server/bin/code-server --config /root/config/config.yaml docker run -it --name codeserver -p 706:8080 \ -v "/data/code-server/config/:/root/config" \ -v "/data/code-server/project/:/root/project" \ -v "/opt/dotnet:/dotnet" \ -u "$(id -u):$(id -g)" \ -e "DOCKER_USER=$USER" \ codercom/code-server:latest 安装python3.10 https://blog.csdn.net/m0_60595450/article/details/127748788 apt install software-properties-common docker run -itd --name code-server --privileged -v /data/code-server/main/:/root/code-server -v /data/code-server/config/:/root/config -v /data/code-server/project/:/root/project -v /opt/dotnet:/dotnet ubuntu:latest apt update && apt upgrade -y apt install vim wget curl nodejs openssl git -y ``` 「一键投喂 软糖/蛋糕/布丁/牛奶/冰阔乐!」 赞赏 × 梦白沙 (๑>ڡ<)☆谢谢老板~ 1元 2元 5元 10元 50元 任意金额 2元 使用微信扫描二维码完成支付 版权声明:本文为作者原创,如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。 随手发现 2024-04-10 评论 276 次浏览