脚本宝典收集整理的这篇文章主要介绍了Fedora系统的一些基本配置分享,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_
512_0@
1)关闭selinux
修改/etc/selinux/config文件中的SELINUX="" 为 disabled,然后重启。
2) 关闭firewall
Systemctl disable iptables.service
3) 启动sshd
yum install o
PEnssh
-server openssh-server-sysvin
ITsystemctl enable sshd.service
如果没有关闭防火墙,还要打开22端口
iptables
-i INPUT -p
-tcp --dport 22 -j ACCEPT
4) 系统清理
a)清除yum的cache:
yum clean all
yum clean cache
b) 清除无用的包
package-cleanup --orphans
package-cleanup --dupes
package-cleanup --
PRoblems
package-cleanup --oldkernel
5)本地源设置
将Fedora 17 DVD ISO添加为源
$sudo mkdir /mnt/
F17dvd
$
mount Fedora-17-
i386-DVD.iso /mnt/f17dvd
&nbs
p;第二步在/etc/yum.repos.d目录添加源install-dvd.repo:
[install-dvd]
n
ame=dvd
baseurl=file:///mnt/f17dvd
enabled=1
gpgcheck=0
之后使用yum的相关参数可以忽略其他的源而只使用指定源。这样就可以不下载而直接安装:
$ yum --disablerepo=* --enablerepo=install-dvd list av
ailable
PS: 如何将源同步到本地:
从fedora的官网http://mirrors.fedoraproject.org/publiclist//Fedora/ 可以查到所有的镜像站点,国内有几个比较
著名的镜像,比如中科大,163, 还有搜狐.
比如从sohu同步x86_64的二进制包:
wget -m ftp://mirrors.sohu
.COM/fedora/releases/17/Everything/x86_64/os/
wget -m ftp://mirrors.sohu.com/fedora/updates/17/x86_64/
然后将同步下来的目录放入ftp的根目录,在/etc/yum.repo.d/下面创建一个local.repo和local-updates.repo
[fedora-local]
name=Fedora $releasever - $base
Archfailovermethod=priority
baseurl=ftp://192.168.0.5/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=0</p>
<p>
[fedora-local-updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=ftp://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
enabled=1
gpgcheck=0
脚本宝典总结
以上是脚本宝典为你收集整理的Fedora系统的一些基本配置分享全部内容,希望文章能够帮你解决Fedora系统的一些基本配置分享所遇到的问题。
如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。