常用
sudo ufw disable #关防火墙
sudo apt update
sudo apt install htop net-tools
zsh
网络不好需要代理
#first run in bash
sudo apt install git curl zsh -y
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#second run in zsh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/agkozak/zsh-z $ZSH_CUSTOM/plugins/zsh-z
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
sed -i 's/plugins=(git)/plugins=(git zsh-z zsh-autosuggestions)/' ~/.zshrc
sed -i 's/# DISABLE_AUTO_UPDATE="true"/DISABLE_AUTO_UPDATE="true"/' ~/.zshrc
echo "[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh" >> ~/.zshrc
echo "source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme" >> ~/.zshrc
echo "bindkey ',' autosuggest-accept" >> ~/.zshrc
source ~/.zshrc
xrdp
安装
su - ubuntu #切到普通用户
wget https://soft.chiebot.com:10000/linux_utils/xrdp-installer-1.4.7.sh
chmod +x xrdp-installer-1.4.7.sh
sudo apt-get install xserver-xorg-core
./xrdp-installer-1.4.7.sh
若无法远程则安装配置xfce4
xfce4
sudo apt-get install xfce4
echo "xfce4-session" >> ~/.xsession
vi 打开/etc/xrdp/startwm.sh
注释掉这行:
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
最后添加
#xfce4-session
startxfce4
重启xrdp
sudo systemctl restart xrdp
chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get install -f
sudo dpkg -i google-chrome-stable_current_amd64.deb
X-UI
参考:https://baoge.vip/698.html
wget -N https://gitlab.com/rwkgyg/x-ui-yg/raw/main/install.sh && bash install.sh
docker
官方脚本自动安装
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun