代码拉取完成,页面将自动刷新
同步操作将从 hkmc/linuxpc_setup 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
set -eux
install_sublime() {
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install -y sublime-text
}
install_chrome() {
if [ ! -d "./chrome.deb" ]; then
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O chrome.deb
fi
sudo dpkg -i chrome.deb
rm chrome.deb
echo "安装 chrome 完成"
}
install_input_baidu() {
echo "begin install baidu input"
sudo apt-get install aptitude
sudo aptitude install fcitx-bin fcitx-table fcitx-config-gtk fcitx-frontend-all
# sudo aptitude install qt5-default qtcreator qml-module-qtquick-controls2
if [ ! -d "./baidu_input.zip" ]; then
wget -O baidu_input.zip https://imeres.baidu.com/imeres/ime-res/guanwang/img/Ubuntu_Deepin-fcitx-baidupinyin-64.zip
fi
unzip baidu_input.zip
sudo dpkg -i fcitx-baidupinyin.deb
# 注销 sudo killall gdm3
# sudo reboot
rm fcitx-baidupinyin.deb
rm baidu_input.zip
echo "百度输入法安装完成, 按照 readme 进行配置"
}
install_fonts() {
sudo apt install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
echo "安装字体完成"
}
install_mpv() {
sudo apt install mpv
}
install_wine_qq_wechat() {
if [ ! -d "./deepintemp" ]; then
mkdir ./deepintemp
fi
cd ./deepintemp
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-22~rc0_all.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-22~rc0_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-22~rc0_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-22~rc0_all.deb
wget http://packages.deepin.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-22~rc0_i386.deb
wget http://packages.deepin.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb
wget http://packages.deepin.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb
echo '准备添加32位支持'
sudo dpkg --add-architecture i386
echo '添加成功,准备刷新apt缓存信息...'
sudo apt update
echo '即将开始安装...'
sudo dpkg --force-all -i *.deb
echo '安装完成,正在自动安装依赖...'
sudo apt install -f -o APT::Immediate-Configure=false
cd ..
rm -rf deepintemp
# 下载安装 wine qq and wine wechat
sudo dpkg -i linuxpc_setup/software/deepin.qq.deb
sudo dpkg -i linuxpc_setup/software/deepin.wechat.deb
# 高分辨率屏幕 or 需要增加系统托盘参考下面文章配置
# https://www.bilibili.com/read/cv6031375/
}
fix_wine_pic() {
# 需要脚本化
sudo cp /etc/default/grub /etc/default/grub.backup
sudo sed -i 's/quiet splash/ipv6.disable=1 splash quiet/g' /etc/default/grub
sudo update-grub
}
install_steam() {
sudo apt install curl
wget https://repo.steampowered.com/steam/archive/precise/steam_latest.deb
sudo dpkg -i steam_latest.deb
rm steam_latest.deb
echo "steam 安装完成"
}
init() {
if [ ! -d "./linuxpc_setup" ]; then
git clone https://gitee.com/hkmc/linuxpc_setup.git
fi
}
__main() {
init
install_sublime
install_chrome
install_fonts
install_mpv
#install_input_baidu
#install_wine_qq_wechat
fix_wine_pic
echo "软件安装完成"
}
__main
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。