diff --git a/ubuntu/bbr.sh b/ubuntu/bbr.sh deleted file mode 100755 index e16872e..0000000 --- a/ubuntu/bbr.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -if ! lsmod | grep bbr; then - echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf - echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf - sysctl -p -fi diff --git a/ubuntu/install-py3.sh b/ubuntu/install-py3.sh deleted file mode 100755 index af1f1a9..0000000 --- a/ubuntu/install-py3.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -set -e - -# install python3.8 -sudo add-apt-repository ppa:deadsnakes/ppa -sudo apt-get update -sudo apt-get install python3.8 - -# install pip and other distutils -sudo apt install python3.8-distutils -sudo python3.8 -m pip install --upgrade pip setuptools wheel - -# install virtualfish and enable auto_activation for `vf connect` -sudo pip3 install virtualfish -vf install -vf addplugins auto_activation diff --git a/ubuntu/install-sources.sh b/ubuntu/install-sources.sh deleted file mode 100755 index e26237f..0000000 --- a/ubuntu/install-sources.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -set -e - -DIR=$(dirname "${BASH_SOURCE[0]}") -ARCH=$(lscpu | head -n 1 | awk '{print $2}') -if [ ! -e /etc/apt/sources.bak ]; then - sudo mv /etc/apt/sources.list /etc/apt/sources.bak - - CURRENT_CODENAME=$(lsb_release -c | cut -f2) - SOURCE_CODENAME=$(head -n 1 $DIR/sources.$ARCH.list | cut -d' ' -f3) - sudo bash -c "sed s/$SOURCE_CODENAME/$CURRENT_CODENAME/g $DIR/sources.$ARCH.list > /etc/apt/sources.list" -fi - -# pip mirrors -mkdir -p $HOME/.pip -cat < $HOME/.pip/pip.conf -[global] -#trusted-host = mirrors.aliyun.com -#index-url = https://mirrors.aliyun.com/pypi/simple -index-url = https://pypi.doubanio.com/simple -trusted-host = pypi.doubanio.com -EOF - -# docker accelerator -if [ -d /etc/docker ]; then - dj='{}' - [ -f /etc/docker/daemon.json ] && dj=$(cat /etc/docker/daemon.json) - echo $dj | jq '. + {"registry-mirrors": ["https://izuhlbap.mirror.aliyuncs.com"]}' > /etc/docker/daemon.json - systemctl restart docker -fi diff --git a/ubuntu/setup.sh b/ubuntu/setup.sh deleted file mode 100755 index fb7d281..0000000 --- a/ubuntu/setup.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e - -DIR=$(dirname "${BASH_SOURCE[0]}") - -echo '=================== Replace sources.list ====================' -$DIR/install-sources.sh -echo '=================== Installing basic packages ====================' -$DIR/install-base.sh -echo '=================== Installing fish shell ====================' -$DIR/install-fish.sh -echo '=================== Installing nodejs ====================' -$DIR/install-nodejs.sh -echo '=================== Installing vim ====================' -$DIR/install-vim.sh -echo '=================== Installing tmux ====================' -$DIR/install-tmux.sh diff --git a/ubuntu/sources.aarch64.list b/ubuntu/sources.aarch64.list deleted file mode 100644 index a9e2d18..0000000 --- a/ubuntu/sources.aarch64.list +++ /dev/null @@ -1,17 +0,0 @@ -deb http://mirrors.aliyun.com/ubuntu-ports/ xenial main -deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial main - -deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main -deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates main - -deb http://mirrors.aliyun.com/ubuntu-ports/ xenial universe -deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial universe - -deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe -deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-updates universe - -deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-security main -deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-security main - -deb http://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe -deb-src http://mirrors.aliyun.com/ubuntu-ports/ xenial-security universe diff --git a/ubuntu/sources.x86_64.list b/ubuntu/sources.x86_64.list deleted file mode 100644 index 410a343..0000000 --- a/ubuntu/sources.x86_64.list +++ /dev/null @@ -1,15 +0,0 @@ -deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse - -deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse - -deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse - -deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse - -deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse -deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse - diff --git a/ubuntu/wsl.sh b/ubuntu/wsl.sh deleted file mode 100755 index 5c96668..0000000 --- a/ubuntu/wsl.sh +++ /dev/null @@ -1,4 +0,0 @@ - -if [ -t 1 ]; then - exec /usr/bin/fish -fi