• 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
  • 相关阅读:
    染色问题的算法(转)
    函数的定义域和定义区间的区别(转)
    详解c++指针的指针和指针的引用(转)
    母函数(转)
    别人整理的DP大全(转)
    HDU 1430 魔板(康托展开+BFS+预处理)
    ZZULIOJ 1726 迷宫(BFS+小坑)
    NBUT 1635 Explosion(最小顶点覆盖)
    NBUT 1602 Mod Three(线段树单点更新区间查询)
    NBUT 1028 该减肥了(简单递推)
  • 原文地址:https://www.cnblogs.com/jikexianfeng/p/5781087.html
Copyright © 2020-2023  润新知