提交 8393b1fd 编写于 作者: R root

add install.sh for ubuntu/debian

上级 b25924bb
#!/bin/bash
# 参考:https://coder.com/docs/code-server/install
echo -n "输入code-server版本(默认4.90.3): "
read VERSION
VERSION=${VERSION:-4.90.3}
echo 准备安装code-server:${VERSION}
curl -fOL https://x.haod.me/https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_amd64.deb
dpkg -i code-server_${VERSION}_amd64.deb
apt update
apt install -y screen
screen -dmS code code-server
echo "等待5s..."
sleep 5
screen -ls
echo "服务器配置信息:"
cat ~/.config/code-server/config.yaml
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册