Some simple settings for Chinese users after installing Fedora 36

Introduction: Fedora can be used happily after some simple optimization and configuration after installation.

The number of words in this article: 5386, the reading time is about 7 minutes

https://ift.tt/AhdPZbw
Author:Insidentally

Fedora is the most radical of the Red Hat family of distributions. Many friends regard those who use Fedora as Red Hat’s guinea pigs. But Fedora’s ultra-fast update speed actually provides a lot of convenience for developers. This article introduces some simple settings after installing Fedora 36, ​​which can make your Fedora easier to use.

1. Set the software source

Fedora uses Metalink by default to provide a recommended mirror list to ensure that the mirror repositories used by users are sufficiently up-to-date and receive security updates as soon as possible, thus providing better security. So usually the default configuration can be used without changing the configuration file.

However, since Metalink needs to obtain meta information from the foreign Fedora project server, Metalink is not suitable for special situations such as campus intranet and no foreign access. In this case, you can refer to the method introduced by the tuna team of Tsinghua University.
? mirrors.tuna.tsinghua.edu.cn
to modify the software source.

2. Update the system

Aggressive distributions require aggressive usage, so the first thing to do after configuring the repositories is to perform a system update and refresh the repository list.

You can do this from the GNOME Software Center, or use Terminal.

For terminal, just use the following command:


A reboot may be required to complete the system update.

3. Remove the old kernel and other unneeded old packages

After updating the system, most of the new kernels will be installed, and some useless dependencies will appear. Reboot the system to the new kernel, make sure that the kernel is running without problems, you can remove the old kernel and useless dependencies.

Use the following command to automatically remove useless dependencies:


Fedora kernel update is fast, but every time the kernel is updated, the old kernel will not be automatically deleted, occupying hard disk space. The previous tutorials used to search for the old kernel first, and then remove the version to be deleted. Entering the version number is also very troublesome. Use the following commands to remove old kernels in one command:


  1. sudo dnf remove --oldinstallonly

Fedora One Command to Remove Old Kernels

4. Enable RPM Fusion software source

When installing Fedora, you will be prompted whether to enable other third-party software sources.

But the software sources that are automatically enabled are only software sources such as NVIDIA drivers, Google Chrome and Steam. The full set of RPM Fusion software sources are not automatically enabled, so software such as VLC and MPV are also unavailable.

It is recommended that you turn on the full set of RPM Fusion. Domestic players still recommend using Tsinghua’s mirror image to turn on RPM Fusion:


  1. sudo yum install --nogpgcheck https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

After the installation is successful, modify the files starting with rpmfusion and ending with .repo in the /etc/yum.repos.d/ directory. Specifically, you need to replace http://download1.rpmfusion.org/ in the link after the equal sign at the beginning of baseurl= with https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/ , replace The resulting file looks like this:


  1. [rpmfusion-free]

  2. name=RPM Fusion for Fedora $releasever - Free

  3. baseurl=https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/fedora/releases/$releasever/Everything/$basearch/os/

  4. mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch

  5. enabled=1

  6. metadata_expire=7d

  7. gpgcheck=1

  8. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

  9. [rpmfusion-free-debuginfo]

  10. name=RPM Fusion for Fedora $releasever - Free - Debug

  11. mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-debug-$releasever&arch=$basearch

  12. enabled=0

  13. metadata_expire=7d

  14. gpgcheck=1

  15. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

  16. [rpmfusion-free-source]

  17. name=RPM Fusion for Fedora $releasever - Free - Source

  18. baseurl=https://mirrors.tuna.tsinghua.edu.cn/rpmfusion/free/fedora/releases/$releasever/Everything/source/SRPMS/

  19. mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-source-$releasever&arch=$basearch

  20. enabled=0

  21. metadata_expire=7d

  22. gpgcheck=1

  23. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch

5. Add Flathub repository

Fedora has Flatpak enabled by default. However, it is a filtered Flatpak.

So, to access the various Flatpak applications available, you can add the Flathub repository with the following command in the terminal:


  1. flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

6. Configure DNF to download packages faster

Fedora can enhance the speed of downloading packages in a number of ways. For example, choosing the fastest mirror can improve the download speed of the package. Also, if your internet connection is fast enough, you can change the number of parallel downloads for faster downloads.

To do both, simply edit the DNF configuration file located at /etc/dnf/dnf.conf .

Append the following lines to the /etc/dnf/dnf.conf file, save and exit:


  1. fastestmirror=true

  2. deltarpm=true

  3. max_parellel_downloads=10

fastestmirror is to select the fastest software source. If you manually modify the information in the warehouse, you do not need to start this.

deltarpm is equivalent to incremental download, download the added part of the software, and synthesize a new software package with the original software package, similar to the current Android software update.

max_parellel_downloads sets the maximum number of parallel downloads.

7. Change the hostname after installation

After installation, the default hostname is set to fedora .

Therefore, if you want to personalize your system hostname after installation, you can set a new hostname with the following command:


  1. sudo hostnamectl set-hostname <你的主机名>

Please replace <你的主机名> with your hostname (excluding < and > ), FQDN hostname is recommended, which is fully qualified hostname including domain name.

You can then modify /etc/hosts to add your hostname to both the 127.0.0.1 and ::1 entries. Something like this:


  1. # Loopback entries; do not change.

  2. # For historical reasons, localhost precedes localhost.localdomain:

  3. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 <你的主机名>

  4. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 <你的主机名>

  5. # See hosts(5) for proper format and other examples:

  6. # 192.168.1.10 foo.mydomain.org foo

  7. # 192.168.1.13 bar.mydomain.org bar

8. Install GNOME Optimized and Extended Applications

To tweak the look and feel of GNOME, you’ll need to install the GNOME Tweaks and Extension Manager applications. This can be done through the software center or terminal using the following command:


  1. sudo dnf install gnome-tweaks gnome-extensions-app

Then you can go to the GNOME Shell extension page
? extensions.gnome.org
The selection is extended.

Enhance your desktop work experience with some nice GNOME extensions. Due to space limitations, this article will not expand the gameplay of GNOME extensions.

9. TLP for battery health management

TLP is a great utility to help optimize your laptop’s battery. The utility comes with various command line options to adjust and view reports on power consumption.

TLP works great, you just install it and forget about it. This doesn’t require any setup or setup to make it work. Once installed with default settings, it works out of the box.


Installing TLP can greatly improve the battery life of your laptop.

10. Install and configure the theme

GNOME desktop beautification is a matter of opinion.

My beautification plan is to use what is in the software source.

Install the theme:


  1. sudo dnf install gnome-shell-theme-flat-remix

Install icon:


  1. sudo dnf install numix-icon-theme-circle

Install cursor:


  1. sudo dnf install breeze-cursor-theme

Then enable the “User Themes” extension and enable it in the extension.

GNOME Extension Management

Then go to the “Appearance” settings of GNOME optimization (Tweaks) to modify the theme, icon and cursor you just installed, and you can also modify the font.

GNOME optimized appearance

11. Configure NTP for accurate time

Network Time Protocol (NTP) is a protocol for synchronizing computer time. It enables computers to synchronize their servers or clock sources, and it can provide high-precision time correction.

Fedora uses chrony by default for time synchronization.

Can modify /etc/chrony.conf

Modify the value of pool to:


  1. # 中国NTP 授时快速服务

  2. pool cn.ntp.org.cn

  3. # 阿里云NTP

  4. pool ntp.aliyun.com

  5. # 腾讯云NTP

  6. pool ntp.tencent.com

Then restart chrony.


  1. sudo systemctl restart chronyd.service

Finally is happy to use Fedora.

About the Author:

insidentally: A medical student who likes to mess around.

The text and pictures in this article are from Linux China

loading.gif

This article is reprinted from https://www.techug.com/post/some-simple-settings-suitable-for-chinese-users-after-installing-fedora-36/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment