Ubuntu Server
vi ~/.ssh/authorized_keys
cd /etc/apt/apt.conf.d sudo vi 10proxy
Acquire::http::Proxy "http://172.16.7.13:7890"; Acquire::https::Proxy "http://172.16.7.13:7890";
sudo systemctl daemon-reload
sudo apt update sudo apt upgrade -y sudo apt install dotnet-sdk-8.0 -y sudo apt install dotnet-sdk-6.0 -y sudo apt install docker.io -y sudo apt install docker-compose -y
# 安装 Zsh sudo apt install zsh -y # 将 Zsh 设置为默认 Shell chsh -s /bin/zsh # 安装 Oh My Zsh wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
ZSH_THEME="amuse" ... plugins=( git zsh-autosuggestions zsh-syntax-highlighting ) ... export https_proxy=http://172.16.7.13:7890 http_proxy=http://172.16.7.13:7890 all_proxy=socks5://172.16.7.13:7890
sudo timedatectl set-timezone Asia/Hong_Kong
sudo mkdir -p /etc/systemd/system/docker.service.d sudo touch /etc/systemd/system/docker.service.d/http-proxy.conf
[Service] Environment="HTTP_PROXY=http://172.16.7.13:7890" Environment="HTTPS_PROXY=http://172.16.7.13:7890"
sudo systemctl daemon-reload sudo systemctl restart docker
Free PE / Size
sudo vgdisplay
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
No due date set.
No dependencies set.
Deleting a branch is permanent. It CANNOT be undone. Continue?
Free PE / Size部分未分区大小