#!/bin/bash sudo timedatectl set-timezone Asia/Shanghai echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee "/etc/sudoers.d/dont-prompt-$USER-for-sudo-password" mkdir $HOME/.ssh &> /dev/null cat > $HOME/.ssh/authorized_keys < $HOME/.ssh/id_rsa.pub < $HOME/.ssh/id_rsa < /etc/apt/sources.list.d/wuke.list # curl -fsSL https://mirrors.aliyun.com/kubernetes-new/core/stable/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/aliyun_kubernetes_1.29.gpg # curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/aliyun_docker-ce.gpg deb [signed-by=/etc/apt/trusted.gpg.d/aliyun_kubernetes_1.29.gpg] https://mirrors.aliyun.com/kubernetes-new/core/stable/v1.29/deb/ / deb [signed-by=/etc/apt/trusted.gpg.d/aliyun_docker-ce.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable UK' sudo mv /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak sudo bash -c 'cat << UK > /etc/apt/sources.list.d/ubuntu.sources Types: deb URIs: https://mirrors.ustc.edu.cn/ubuntu Suites: noble noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg Types: deb URIs: https://mirrors.ustc.edu.cn/ubuntu Suites: noble-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg UK' sudo apt update sudo apt install vim git curl zsh bash-completion wget unzip tree tmux iputils-ping net-tools dnsutils traceroute sysstat -y sudo apt clean curl -sL https://dev.yorhel.nl/download/ncdu-2.9-linux-$(uname -m).tar.gz | tar zxvf - -C /usr/local/sbin/ # ready to install zsh echo 'curl -fsSL https://gist.smtx.fun/uk/shell/raw/HEAD/install_ohmyzsh.sh | bash'