mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-01 21:00:29 +08:00
WIP: combine install -a and tools/ scripts
This commit is contained in:
parent
8a660cb324
commit
104d1b1db3
@ -5,8 +5,7 @@ set -e
|
|||||||
set_mirror()
|
set_mirror()
|
||||||
{
|
{
|
||||||
MIRROR=${1:-"mirrors.tuna.tsinghua.edu.cn"}
|
MIRROR=${1:-"mirrors.tuna.tsinghua.edu.cn"}
|
||||||
MIRROR=${MIRROR//\//\\\/}
|
sed -i "s@dl-cdn.alpinelinux.org@$MIRROR@g" /etc/apk/repositories
|
||||||
sed -i "s/dl-cdn.alpinelinux.org/$MIRROR/g" /etc/apk/repositories
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apk_add()
|
apk_add()
|
||||||
|
@ -5,7 +5,6 @@ set -e
|
|||||||
set_mirror()
|
set_mirror()
|
||||||
{
|
{
|
||||||
MIRROR=${1:-"mirrors.tuna.tsinghua.edu.cn"}
|
MIRROR=${1:-"mirrors.tuna.tsinghua.edu.cn"}
|
||||||
MIRROR=${MIRROR//\//\\\/}
|
|
||||||
sed -i "s@http://.*archive.ubuntu.com@https://${MIRROR}@g" /etc/apt/sources.list
|
sed -i "s@http://.*archive.ubuntu.com@https://${MIRROR}@g" /etc/apt/sources.list
|
||||||
sed -i "s@http://.*security.ubuntu.com@https://${MIRROR}@g" /etc/apt/sources.list
|
sed -i "s@http://.*security.ubuntu.com@https://${MIRROR}@g" /etc/apt/sources.list
|
||||||
}
|
}
|
||||||
@ -16,9 +15,14 @@ apt_install()
|
|||||||
apt-get update
|
apt-get update
|
||||||
for i in {man-db,vim,ca-certificates}; do apt-get install $i -y; done
|
for i in {man-db,vim,ca-certificates}; do apt-get install $i -y; done
|
||||||
|
|
||||||
# mass installation
|
# lite
|
||||||
apt-get install git tmux zsh curl wget dialog net-tools dnsutils netcat traceroute sudo python3 python3-pip cron inetutils-ping openssh-client openssh-server htop gcc g++ cmake make zip less bsdmainutils
|
apt-get install -y git zsh bash tmux vim curl inetutils-ping less bsdmainutils
|
||||||
for i in {fzf,ripgrep}; do apt-get install $i -y; done
|
|
||||||
|
# full
|
||||||
|
if [[ -z "$DFS_LITE" ]]; then
|
||||||
|
apt-get install wget dialog net-tools dnsutils netcat traceroute sudo python3 python3-pip cron openssh-client openssh-server htop gcc g++ cmake make zip
|
||||||
|
for i in {fzf,ripgrep}; do apt-get install -y $i; done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
set_timezone()
|
set_timezone()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user