博主原创:
#!/bin/bash
echo "更换源&更新源......"
yum install wget -y
yum install yum-fastestmirror -y
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
yum install flash-plugin -y
wget -c -P /etc/yum.repos.d http://mirrors.163.com/.help/fedora-163.repo
wget -c -P /etc/yum.repos.d http://mirrors.163.com/.help/fedora-updates-163.repo
wget -c -P /etc/yum.repos.d http://mirrors.sohu.com/help/fedora-sohu.repo
wget -c -P /etc/yum.repos.d http://mirrors.sohu.com/help/fedora-updates-sohu.repo
wget -c -P /etc/yum.repos.d http://mirror.bjtu.edu.cn/fedora-bjtu.repo
wget -c -P /etc/yum.repos.d http://mirror.bjtu.edu.cn/fedora-updates-bjtu.repo
yum makecache
dnf update -y echo "清理垃圾......"
yum clean all
dnf clean all echo "安装‘右键添加打开终端’......"
yum install nautilus-open-terminal -y echo "安装‘界面设置’......"
yum install gnome-tweak-tool -y echo "安装文件压缩插件......"
yum install unzip -y echo "安装谷歌浏览器......"
yum install --nogpgcheck https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm -y echo "安装搜狗输入法......"
yum remove ibus -y
gsettings set org.gnome.settings-daemon.plugins.keyboard active false
yum install fcitx -y
yum install fcitx-configtool.x86_64 -y
echo "export GTK_IM_MODULE=fcitx" >> ~/.bashrc
echo "export QT_IM_MODULE=fcitx" >> ~/.bashrc
echo 'export XMODIFIERS="@im=fcitx"' >> ~/.bashrc
source ~/.bashrc
wget -c -nv -P /opt http://pinyin.sogou.com/linux/download.php?f=linux&bit=64
mv /opt/download.php?f=linux /opt/sougou-.deb
ar vx /opt/sougou-.deb
tar -Jxvf data.tar.xlsz -C /
cp /usr/lib/x86_64-linux-gnu/fcitx/fcitx-sogoupinyin.so /usr/lib64/fcitx/fcitx-sogoupinyin.so
fcitx
sogou-qimpanel echo "安装docker......"
yum install docker -y
sevice docker start
setenforce
cp /etc/selinux/config /etc/selinux/config.bak
cat /dev/null > /etc/selinux/config
echo "SELINUX=disabled" >> /etc/selinux/config
echo "SELINUXTYPE=targeted" >> /etc/selinux/config echo "清理垃圾......"
yum clean all
dnf clean all echo "重启系统......"
reboot