From 8393b1fdb2aaaff6e49af2a316b375358421b5ea Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Jun 2024 11:32:12 +0800 Subject: [PATCH] add install.sh for ubuntu/debian --- ubuntu-debian/install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ubuntu-debian/install.sh diff --git a/ubuntu-debian/install.sh b/ubuntu-debian/install.sh new file mode 100644 index 0000000..0737924 --- /dev/null +++ b/ubuntu-debian/install.sh @@ -0,0 +1,18 @@ +#!/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 -- GitLab