5 Star 29 Fork 10

hkmc/linuxpc_setup

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
install_software.sh 3.92 KB
一键复制 编辑 原始数据 按行查看 历史
set -eux
install_sublime() {
sudo dpkg -i linuxpc_setup/software/sublime.deb
echo "安装 sublime 完成"
}
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/hkmc/linuxpc_setup.git
git@gitee.com:hkmc/linuxpc_setup.git
hkmc
linuxpc_setup
linuxpc_setup
master

搜索帮助