Fedora安装后要做的10件事
Fedora在Linux社区中很流行。 我已经在使用Fedora。 我更喜欢Fedora,因为它具有更新的软件包和虚拟化支持。 如果您不使用它,请尝试。 安装后,Fedora中有一些事情要做,以使用户体验更加流畅。 这些步骤也可以在CentOS,RedHat中实现。
禁用SELinux (Disable SELinux)
SELinux is a security mechanism to prevent intrusions into operating systems. It’s very powerful for security reasons but if you are using Fedora as desktop or if you do not have enough source and knowledge for SElinux try disabling it. Keep in mind that disabling SELinux does not make us vulnerable to the attacks or make us a target for attackers. It is just an extra security layer for Linux.
SELinux是一种安全机制,可防止入侵操作系统。 出于安全原因,它非常强大,但是如果您将Fedora用作桌面,或者您没有足够的源和知识来了解SElinux,请尝试将其禁用。 请记住,禁用SELinux不会使我们容易受到攻击,也不会使我们成为攻击者的目标。 它只是Linux的额外安全层。
$ sudo nano /etc/selinux/config
Open the file and change SELINUX=enforcing
to the SELINUX=disabled
打开文件并将SELINUX=enforcing
SELINUX=disabled
更改为SELINUX=disabled
-
# This file controls the state of SELinux on the system.
-
# SELINUX= can take one of these three values:
-
# enforcing – SELinux security policy is enforced.
-
# permissive – SELinux prints warnings instead of enforcing.
-
# disabled – No SELinux policy is loaded.
-
SELINUX=disabled
-
# SELINUXTYPE= can take one of these three values:
-
# targeted – Targeted processes are protected,
-
# minimum – Modification of targeted policy. Only selected processes are protected.
-
# mls – Multi Level Security protection.
-
SELINUXTYPE=targeted
设置主机名(Set Hostname)
The hostname is the name of the host and it is used by a lot of different application and services in Fedora. To prevent unexpected errors and problems set a reliable hostname to the system.
主机名是主机的名称,Fedora中的许多不同应用程序和服务都使用该主机名。 为防止意外的错误和问题,请为系统设置可靠的主机名。
$ sudo nano /etc/hostname
Open hostname file and add the hostname to the file
打开主机名文件,然后将主机名添加到该文件中
poftut1
To apply hostname change reboot the system.
要应用主机名更改,请重新引导系统。
设定DNS (Setup DNS)
DNS is a core protocol for network communication. It translates domain and host names into IP addresses. To access network/internet fast DNS speed is important so add fast DNS to the system by using the GUI or command line interface.
DNS是网络通信的核心协议。 它将域名和主机名转换为IP地址。 要访问网络/互联网,快速DNS速度很重要,因此请使用GUI或命令行界面将快速DNS添加到系统中。
更新系统 (Update System)
System updates are an important issue for today. It gives new features, security, and stability to the existing systems.
系统更新是当今的重要问题。 它为现有系统提供了新功能,安全性和稳定性。
$ sudo dnf update -y
安装Chrome (Install Chrome)
Chrome is a modern fast browser used millions of people. Chrome does not provide by default in Fedora repositories. We need to add chrome repository and then install it.
Chrome浏览器是一种现代的快速浏览器,已有数百万人使用。 默认情况下, Chrome在Fedora存储库中不提供。 我们需要添加chrome存储库,然后进行安装。
-
$ sudo cat << EOF > /etc/yum.repos.d/google-chrome.repo
-
[google-chrome]
-
name=google-chrome – \$basearch
-
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
-
enabled=1
-
gpgcheck=1
-
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
-
EOF
$ sudo dnf install google-chrome-stable
安装Firefox (Install Firefox)
Firefox is old and open source browser whose predecessor is Netscape. Firefox can be found in Fedora repositories.
Firefox是旧的开放源代码浏览器,其前身是Netscape。 Firefox可以在Fedora存储库中找到。
[[email protected] ~]# dnf install firefox -y
禁用IPv6 (Disable IPv6)
IPv6 is a new replacement for IPv4 protocol but for a long time, it does not become primary for now too. If you have no idea about IPv6 application you can disable IPv6.
IPv6是IPv4协议的新替代品,但是很长一段时间以来,它现在也不是主要的。 如果您不了解IPv6应用程序,则可以禁用IPv6。
$ sudo nano /etc/sysctl.conf
And add following lines to the sysctl.conf
并将以下行添加到sysctl.conf
-
#Disable IPv6
-
net.ipv6.conf.all.disable_ipv6 = 1
-
net.ipv6.conf.default.disable_ipv6 = 1
-
net.ipv6.conf.lo.disable_ipv6 = 1
安装Terminal Yakuake (Install Terminal Yakuake)
Terminals are the heart of the Linux there are a lot of different types. Yakuake brings new concepts to the terminal or command line console usage. Yakuake have the ability to work all workspaces and can be hidden with F12 key.
终端是Linux的心脏,有很多不同的类型。 Yakuake为终端或命令行控制台的使用带来了新的概念。 Yakuake可以处理所有工作区,并且可以使用F12键隐藏。
$ sudo dnf install yakuake -y
启用RPM融合 (Enable RPM Fusion)
RpmFusion is a repo that provides a lot of useful and closed source applications. Using RpmFusion will make your Fedora life easier.
RpmFusion是一个回购协议,提供了许多有用的封闭源代码应用程序。 使用RpmFusion将使您的Fedora生活更加轻松。
-
$ sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https:/
-
/download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
安装VLC (Install VLC)
VLC is my favorite multimedia player for years. I can not use my desktop without it. To install VLC use following command.
多年来,VLC是我*喜欢的多媒体播放器。 没有它,我将无法使用桌面。 要安装VLC,请使用以下命令。
$ sudo dnf install -y vlc