u
This commit is contained in:
parent
4b808e2bde
commit
6f6e75f12b
0
ssl-acme-install.sh → acme-install.sh
Executable file → Normal file
0
ssl-acme-install.sh → acme-install.sh
Executable file → Normal file
0
ssl-acme-setup-all.sh → acme-setup-all.sh
Executable file → Normal file
0
ssl-acme-setup-all.sh → acme-setup-all.sh
Executable file → Normal file
@ -2,7 +2,7 @@
|
||||
|
||||
echo "Usage: this.sh [NewUser]"
|
||||
echo "Example: this.sh alice"
|
||||
echo "curl https://git.faronear.org/npm/sysconfig/raw/branch/main/debian-setup.sh > ~/debian-setup.sh && bash ~/debian-setup.sh"
|
||||
echo "curl https://git.faronear.org/npm/sysconfig/raw/branch/main/debian-setup.sh -o ~/debian-setup.sh && bash ~/debian-setup.sh"
|
||||
|
||||
if [ "$1" ]
|
||||
then
|
||||
@ -13,7 +13,8 @@ fi
|
||||
|
||||
echo "=== Installing basic tools"
|
||||
apt update
|
||||
apt install -y emacs git wget curl screen sudo automake rsync net-tools dnsutils gcc g++ make python jq
|
||||
apt install -y emacs git wget curl screen sudo automake rsync net-tools dnsutils gcc g++ make python3 jq
|
||||
# Debian 12.0 has no python package, However the following packages replace it: python-is-python3 2to3
|
||||
echo
|
||||
|
||||
echo "=== Making dir /faronear/"
|
||||
|
@ -3,11 +3,11 @@ if [ "$1" ]
|
||||
then
|
||||
DOCKERUSER=$1
|
||||
else
|
||||
echo "Enter the <user name> or <leave blank> for default 'adot'"
|
||||
echo "Enter the <user name> or <leave blank> for default to '`whoami`'"
|
||||
read -p ">>> " DOCKERUSER
|
||||
if [ ! "$DOCKERUSER" ]
|
||||
then
|
||||
DOCKERUSER=adot
|
||||
DOCKERUSER=`whoami`
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -6,22 +6,22 @@
|
||||
# 安装自带版本 apt install docker.io && apt install docker-compose
|
||||
# sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||
|
||||
echo "=== Choose docker source (a: 阿里云, z: 中科大, leave blank for default):"
|
||||
echo "=== Choose docker source: <a> 阿里云, <z> 中科大, <leave blank> for default"
|
||||
read -p ">>> " DOCKER_SOURCE
|
||||
if [ "$DOCKER_SOURCE" = 'a' ]
|
||||
then
|
||||
GPG_URL=http://mirrors.aliyun.com/docker-ce/linux/debian/gpg
|
||||
DOCKER_URL=http://mirrors.aliyun.com/docker-ce/linux/debian
|
||||
COMPOSE_URL=https://get.daocloud.io/docker/compose/releases/download/2.12.2/
|
||||
# COMPOSE_URL=https://get.daocloud.io/docker/compose/releases/download/2.20.3/
|
||||
elif [ "$DOCKER_SOURCE" = 'z' ]
|
||||
then
|
||||
GPG_URL=https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg
|
||||
DOCKER_URL=https://mirrors.ustc.edu.cn/docker-ce/linux/debian
|
||||
COMPOSE_URL=https://get.daocloud.io/docker/compose/releases/download/2.12.2/
|
||||
# COMPOSE_URL=https://get.daocloud.io/docker/compose/releases/download/2.20.3/
|
||||
else
|
||||
GPG_URL=https://download.docker.com/linux/debian/gpg
|
||||
DOCKER_URL=https://download.docker.com/linux/debian
|
||||
COMPOSE_URL=https://github.com/docker/compose/releases/download/2.12.2/
|
||||
# COMPOSE_URL=https://github.com/docker/compose/releases/download/2.20.3/
|
||||
fi
|
||||
|
||||
echo Prepare environment ...
|
||||
@ -48,37 +48,24 @@ docker compose version
|
||||
# sudo curl -L $COMPOSE_URL/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
|
||||
# sudo chmod +x /usr/local/bin/docker-compose
|
||||
|
||||
echo "=== 配置中国加速镜像源 /etc/docker/daemon.json (d: Docker中国, t: 腾讯云, z: 中科大, leave blank for no mirror):"
|
||||
echo "=== Enter <y> to 配置中国加速镜像源 /etc/docker/daemon.json, <anything else> for no mirror:"
|
||||
read -p ">>> " DOCKER_MIRROR
|
||||
if [ ! "$DOCKER_MIRROR" ]
|
||||
if [ "$DOCKER_MIRROR" = 'y' ]
|
||||
then
|
||||
echo "--- Docker mirror is not specified."
|
||||
elif [ "$DOCKER_MIRROR" = 'd' ]
|
||||
then
|
||||
DOCKER_MIRROR=https://registry.docker-cn.com
|
||||
elif [ "$DOCKER_MIRROR" = 't' ]
|
||||
then
|
||||
DOCKER_MIRROR=https://mirror.ccs.tencentyun.com
|
||||
elif [ "$DOCKER_MIRROR" = 'z' ]
|
||||
then
|
||||
DOCKER_MIRROR=https://docker.mirrors.ustc.edu.cn
|
||||
fi
|
||||
|
||||
if [ "$DOCKER_MIRROR" ]
|
||||
then
|
||||
echo "{" | sudo tee /etc/docker/daemon.json > /dev/null
|
||||
echo " \"registry-mirrors\": [" | sudo tee -a /etc/docker/daemon.json > /dev/null
|
||||
echo " \"$DOCKER_MIRROR\"" | sudo tee -a /etc/docker/daemon.json > /dev/null
|
||||
echo " ]" | sudo tee -a /etc/docker/daemon.json > /dev/null
|
||||
echo "}" | sudo tee -a /etc/docker/daemon.json > /dev/null
|
||||
echo '{ "registry-mirrors": [' > /etc/docker/daemon.json
|
||||
echo ' "https://registry.docker-cn.com",' >> /etc/docker/daemon.json
|
||||
echo ' "http://hub-mirror.c.163.com",' >> /etc/docker/daemon.json
|
||||
echo ' "https://docker.mirrors.ustc.edu.cn",' >> /etc/docker/daemon.json
|
||||
echo ' "https://mirror.ccs.tencentyun.com",' >> /etc/docker/daemon.json
|
||||
echo ' "https://ung2thfc.mirror.aliyuncs.com"' >> /etc/docker/daemon.json
|
||||
echo '] }' >> /etc/docker/daemon.json
|
||||
fi
|
||||
|
||||
echo "=== 启动docker服务?<y> for yes, <anything else> for no"
|
||||
read -p ">>> " StartDockerDaemon
|
||||
if [ "$StartDockerDaemon" = 'y' ]
|
||||
then
|
||||
# 开机启动
|
||||
sudo systemctl enable docker
|
||||
# 当前启动
|
||||
sudo systemctl start docker
|
||||
sudo systemctl enable docker # 开机启动
|
||||
sudo systemctl start docker # 当前启动
|
||||
sudo docker info # 查看状态,例如 'Registry Mirros:'
|
||||
fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
## https://dist.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EHPrDVUTrxQTeElUgy4YuCBz8tes9ZIp2eaq9jlm7vNzRhXUNRKS85/9Vw0pmwOy0BWO4s/4WQxoYtQ8Iz2a8mckUPLB4KIGg8OG9xJWZUltyMDf9BKCQ/nBVU7Dkcpjq8LR9NYvz2U7PE= luk@venus
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC54Ter4uwpDPhUKFswjwa4au7tor75Q5NJkFAjngvkwCjfftoc6guqRQn3dw3G5yJfrTawb09m6m+hVcf9ZwOGmc0VGG5I3P0WZH/PvJZZlc1ZN9/V+QRAanUE6rnzelsoVphm5Z1aCbpcyJdFxy8wKbst9HTdupJ5pCigHx9mg9J60TjIBP1UDgWuqvjhh0249ztTR9nNAJaLfAG2iNKK+SdgwpZ8Gv8gyu8TKx5KnBncdJbWw75iBFw7C1b8KbiZKIkBID8akwt4Mq0o8f85gHInZxzKp22KWYWUb8OtCTqpqWwxa+ljrxutKxujfFWxo0F4locQIFDL59NOLUzcXRsKvJUqTx1djXN2Dx3Pvyy77GU1CQR7KeC/ZM7PR4RokBlWkqL0SSREeN8ssrht+bquYw7qdYZulvQwmzWiiHxXKtJ49G+G+G5wz9CXshqXGCrCU2Fw79tMnsmSsSjM+lmP9EJ+8Suq6xQEQ62aDlItxXW3Byvgfo9OWn/9cHM= home@earth
|
||||
|
3
rclone-install.sh
Normal file
3
rclone-install.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo -v ; curl https://rclone.org/install.sh | sudo bash
|
3
rclone-web.sh
Normal file
3
rclone-web.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
rclone rcd --rc-web-gui
|
Loading…
Reference in New Issue
Block a user