fedora装机运行第一脚本
博主原创:
1 #!/bin/bash 2 echo "更换源&更新源......" 3 yum install wget -y 4 yum install yum-fastestmirror -y 5 rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm 6 rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm 7 rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm 8 yum install flash-plugin -y 9 wget -c -P /etc/yum.repos.d http://mirrors.163.com/.help/fedora-163.repo 10 wget -c -P /etc/yum.repos.d http://mirrors.163.com/.help/fedora-updates-163.repo 11 wget -c -P /etc/yum.repos.d http://mirrors.sohu.com/help/fedora-sohu.repo 12 wget -c -P /etc/yum.repos.d http://mirrors.sohu.com/help/fedora-updates-sohu.repo 13 wget -c -P /etc/yum.repos.d http://mirror.bjtu.edu.cn/fedora-bjtu.repo 14 wget -c -P /etc/yum.repos.d http://mirror.bjtu.edu.cn/fedora-updates-bjtu.repo 15 yum makecache 16 dnf update -y 17 18 echo "清理垃圾......" 19 yum clean all 20 dnf clean all 21 22 echo "安装‘右键添加打开终端’......" 23 yum install nautilus-open-terminal -y 24 25 echo "安装‘界面设置’......" 26 yum install gnome-tweak-tool -y 27 28 echo "安装文件压缩插件......" 29 yum install unzip -y 30 31 echo "安装谷歌浏览器......" 32 yum install --nogpgcheck https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm -y 33 34 echo "安装搜狗输入法......" 35 yum remove ibus -y 36 gsettings set org.gnome.settings-daemon.plugins.keyboard active false 37 yum install fcitx -y 38 yum install fcitx-configtool.x86_64 -y 39 echo "export GTK_IM_MODULE=fcitx" >> ~/.bashrc 40 echo "export QT_IM_MODULE=fcitx" >> ~/.bashrc 41 echo 'export XMODIFIERS="@im=fcitx"' >> ~/.bashrc 42 source ~/.bashrc 43 wget -c -nv -P /opt http://pinyin.sogou.com/linux/download.php?f=linux&bit=64 44 mv /opt/download.php?f=linux /opt/sougou-64.deb 45 ar vx /opt/sougou-64.deb 46 tar -Jxvf data.tar.xlsz -C / 47 cp /usr/lib/x86_64-linux-gnu/fcitx/fcitx-sogoupinyin.so /usr/lib64/fcitx/fcitx-sogoupinyin.so 48 fcitx 49 sogou-qimpanel 50 51 echo "安装docker......" 52 yum install docker -y 53 sevice docker start 54 setenforce 0 55 cp /etc/selinux/config /etc/selinux/config.bak 56 cat /dev/null > /etc/selinux/config 57 echo "SELINUX=disabled" >> /etc/selinux/config 58 echo "SELINUXTYPE=targeted" >> /etc/selinux/config 59 60 echo "清理垃圾......" 61 yum clean all 62 dnf clean all 63 64 echo "重启系统......" 65 reboot