[misc] remove obsolete ubuntu folder
This commit is contained in:
parent
593c2fbbfe
commit
df243e1081
|
@ -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
|
|
@ -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
|
|
@ -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 <<EOF > $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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
|
||||
if [ -t 1 ]; then
|
||||
exec /usr/bin/fish
|
||||
fi
|
Loading…
Reference in New Issue
Block a user