Merge pull request #29547 from wxy/20230612.2-️-10-Things-to-Do-After-Installing-Debian-12-Bookworm

ATRP:published/20230612.2 ️ 10 Things to Do After Installing Debian 12 Bookworm.md
This commit is contained in:
Xingyu.Wang 2023-06-14 17:25:55 +08:00 committed by GitHub
commit ce661bbc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 176 additions and 172 deletions

View File

@ -0,0 +1,176 @@
[#]: subject: "10 Things to Do After Installing Debian 12 Bookworm"
[#]: via: "https://www.debugpoint.com/things-to-do-debian-12/"
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lkxed"
[#]: translator: "ChatGPT"
[#]: reviewer: "wxy"
[#]: publisher: "wxy"
[#]: url: "https://linux.cn/article-15905-1.html"
Debian 12 “Bookworm” 安装完成后需要做的 10 件事
======
![][0]
> 在安装完 Debian 12 “Bookworm”要做的一些事情。
我想你已经安装好了 Debian 12 “Bookworm” 或者 [准备升级][1] 了。Debian 12 经过一年多的开发,于 2023 年 6 月 10 日发布。它带来了最新的软件包、升级和替换一些关键模块。请在此查看 Debian 12 的一些新特性 [指南][2]。
如果你在笔记本电脑或台式机上使用 Debian那么在安装或升级到 Debian 12 后,以下是你可能需要完成的一些步骤。
### Debian 12 安装后需要做的几件事情
#### 启用 sudo
如果你将 Debian 12 作为新安装的系统那么你的用户账户可能没有超级用户访问权限。出于安全原因Debian 在安装期间不允许任何选项给予用户账户 sudo 访问权限。以下是如何将用户添加到超级用户组。
打开终端并使用 root 密码进入 root 账户。
```
su
```
然后运行以下命令,将你的用户账户添加到 `sudo` 组。请将下面的用户名更改为你的账户。
```
/sbin/addgroup 用户名 sudo
```
现在,你可以注销并再次登录该账户。
#### 确保 Debian 已更新至最新版本
在开始工作或进行任何配置之前,确保 Debian 12 已更新至最新版本非常重要。从终端中按以下顺序运行以下命令以刷新 Debian 系统。
```
sudo apt update
sudo apt upgrade
```
#### Debian 12 中的非自由软件
Debian 12 中有一个关于管理“非自由”固件包的根本变化。Debian 创建了一个新的软件源,以便轻松访问那些专有包。因此,如果你想添加非自由软件包,需要确保在 APT 软件源文件 `/etc/apt/sources.list` 中添加以下行:
```
sudo nano /etc/apt/sources.list
```
```
deb http://deb.debian.org/debian bookworm non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security non-free non-free-firmware
deb-src http://deb.debian.org/debian-security bookworm-security non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates non-free non-free-firmware
```
保存并关闭文件。然后刷新 Debian 系统。完成后,你现在可以安装“非自由”软件包。
```
sudo apt update
```
#### 安装额外的桌面环境
Debian Linux 提供了所有主要的桌面环境包。如果你使用 Debian 的 Netinst ISO 文件(最小化 ISO 镜像)进行安装,那么你可能已经获得了默认的 Xfce 桌面环境。在 Debian 12 安装期间,你可以选择桌面环境。
如果你想安装任何额外的桌面环境,则可以使用各种软件包管理器进行安装。或者,获取专用的 ISO 文件。从 Debian 12 开始,团队为每个桌面提供单独的 ISO 文件。你可以在以下链接中获取它们。
- [amd64 种子][3]GNOME、KDE Plasma、Xfce、LXQt、LXDE、MATE 和 Cinnamon
- [直接下载 ISO 文件][4]GNOME、KDE Plasma、Xfce、LXQt、LXDE、MATE 和 Cinnamon
#### 设置 Flatpak 和 Flathub
你应该在 Debian 中 [设置 Flatpak][5],以便从 Flathub 获取数百款最新的应用程序。要设置它,可以从终端中运行以下命令。
```
sudo apt install flatpak
```
如果你想通过浏览器安装 Flatpak 应用程序,则以下软件包是可选的。
```
sudo apt install gnome-software-plugin-flatpak
```
添加 Flathub 软件源库,其中包含所有 Flatpak 应用程序。从终端中运行以下命令。
```
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
```
重新启动 Debian 系统就可以使用 Flatpak 应用程序了。
#### 安装最新的 Firefox
Debian Linux 附带的是 Firefox ESR 版本,这个版本的功能略旧。不过它非常稳定和安全。如果你想 [安装最新版本的 Firefox][6],可以从以下官方网站下载预编译的二进制文件,并执行 `firefox`
> **[下载 Firefox][7]**
#### 安装额外的软件 图形界面
默认的 Debian 安装只有非常简洁的图形界面应用程序。为了配置你的工作站,你可以考虑安装以下一组应用程序。但是,以下列表非常基本,对于基本用例应该是足够的。
它们包括分区软件、BT 客户端、媒体播放器和图形实用工具。
```
sudo apt install gparted transmission-gtk vlc pavucontrol geany gimp inkscape audacity filezilla leafpad
```
#### 安装额外的软件 命令行界面
虽然上述图形界面应用程序是必要的,但是你应该始终安装一些超级重要的命令行实用工具。以下是我为你准备的列表。
```
sudo apt install ffmpeg default-jdk git wget nano vim htop locate p7zip p7zip-full unzip
```
#### Debian 12 中的替代包
如果你正在运行 Debian 服务器或桌面系统,你应该注意本版本中一些关键软件包已被替换。以下是其中的一些:
- 默认系统时钟现在由 `systemd-timesyncd` 管理,`ntp` 已被 `ntpsec` 替换。
- DNS 选项 `dnssec-enable` 已经过时。如果遇到无效选项错误,请在 `named.conf` 文件中注释该行(应该在 `/etc``/etc/bind9` 中)。
- 不会自动安装 `systemd-resolved` 包。你需要手动安装和启动它。
- `rsyslog` 包不会默认安装,因为 `journalctl` 接管了该功能。
#### 配置 Debian 多媒体仓库
由社区创建的流行 Debian 多媒体仓库已更新为 Bookworm 版本。你可以在 APT 软件源文件中添加以下行,并利用数百个多媒体软件包来完成你的项目。
```
deb https://www.deb-multimedia.org bookworm main non-free
```
你可以访问 [官方页面][8] 以了解有关该软件源库的更多信息。
### 总结
以上是你可以利用的各种提示列表。它们只是指南,可能不适用于你的情况,但它们可以成为你开始 Debian 12 后安装旅程的起点。
在评论框中让我知道你最喜欢的 Debian 后安装提示是什么。
--------------------------------------------------------------------------------
via: https://www.debugpoint.com/things-to-do-debian-12/
作者:[Arindam][a]
选题:[lkxed][b]
译者ChatGPT
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://www.debugpoint.com/author/admin1/
[b]: https://github.com/lkxed/
[1]: https://www.debugpoint.com/upgrade-debian-12-from-debian-11/
[2]: https://www.debugpoint.com/debian-12-features/
[3]: https://cdimage.debian.org/debian-cd/current-live/amd64/bt-hybrid/
[4]: https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/
[5]: https://www.debugpoint.com/how-to-install-flatpak-apps-ubuntu-linux/
[6]: https://www.debugpoint.com/download-firefox/
[7]: https://www.mozilla.org/en-US/firefox/new/
[8]: https://deb-multimedia.org/
[0]: https://img.linux.net.cn/data/attachment/album/202306/14/171813q0a3ua96lt0i9mm9.jpg

View File

@ -1,172 +0,0 @@
[#]: subject: "10 Things to Do After Installing Debian 12 Bookworm"
[#]: via: "https://www.debugpoint.com/things-to-do-debian-12/"
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lkxed"
[#]: translator: " "
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
10 Things to Do After Installing Debian 12 Bookworm
======
**A few important things to do after installing Debian 12 Bookworm.**
I am sure you have already installed Debian 12 Bookworm or [planning to upgrade][1]. Debian 12 was released on June 10, 2023, after more than a year of development. It brings the latest packages, upgrades and replaces some key modules as well. Do check out the Debian 12 feature [guide here][2].
If you use Debian on your laptops or desktops, here are a few steps you might want to do after installing or upgrading to Debian 12.
### A few things to do after installing Debian 12
#### Enable sudo
If you have installed Debian 12 as a new installation, likely, your user account doesnt have super user access. For security reasons, Debian doesnt allow any option to give user accounts sudo access while installation. Heres how you can add the user to the superuser group.
Open a terminal and get into the root account by entering the root password.
```
su
```
Then run the following command to add your user account to the sudo group. Do change the user name to the account.
```
/sbin/addgroup arindam sudo
```
You can now log out and log back in using the user account.
#### Make sure Debian is up to date
Its important that you make sure that Debian 12 is up to date before starting your work or any configurations. From the terminal, run the below commands in sequence to refresh the Debian installation.
```
sudo apt updatesudo apt upgrade
```
#### Non-free software in Debian 12
A fundamental change arrived in Debian 12 on handling “non-free” firmware packages. A new repository has been created for easy access to those proprietary packages. So, if you want to add the non-free packages, you need to make sure to add the following lines in the APT sources file /etc/apt/sources.list:
```
sudo nano /etc/apt/sources.list
```
```
deb http://deb.debian.org/debian bookworm non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security non-free non-free-firmware
deb-src http://deb.debian.org/debian-security bookworm-security non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates non-free non-free-firmware
```
Save and close the file. Then refresh your Debian installation. Once done, you can now install the “non-free” packages.
```
sudo apt update
```
#### Install additional desktop environments
Debian Linux provides all the major desktop environment packages. If you have installed using the Debian “netinst” ISO file (minimal ISO image), then you may have got the default Xfce desktop environment. During the Debian 12 installation, you have the option to choose the Desktop environment.
If you want to install any additional desktop environments, you can either install them using any package manager. Or, grab the dedicated ISO files. From Debian 12 onwards, the team is providing separate ISO files for each desktop. You can grab them in the below links.
- [amd64 torrent][3] (GNOME, KDE Plasma, Xfce, LXQt, LXDE, MATE and Cinnamon)
- [direct ISO file][4] (GNOME, KDE Plasma, Xfce, LXQt, LXDE, MATE and Cinnamon)
#### Set up Flatpak and Flathub
You should [set up Flatpak in Debian][5] to get access to hundreds of the latest applications from Flathub. To set it up, you can run the below command from the terminal.
```
sudo apt install flatpak
```
The below installation is optional if you want to install Flatpak apps via the browser.
```
sudo apt install gnome-software-plugin-flatpak
```
Add the Flathub repository where all the Flatpak apps reside. Run the below commands from the terminal.
```
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
```
Reboot your Debian system and enjoy Flatpak apps.
#### Install latest Firefox
Debian Linux comes with the Firefox ESR version, which is a little older in terms of features. However, it is stable and very secure. That said, if you want to [install the latest Firefox][6], you can download the pre-compiled binary from the official website below. And execute “firefox”.
[Download Firefox][7]
#### Install additional software GUI
The default Debian installation comes with very minimal GUI applications. To configure your workstation, you may consider installing the below set of applications. However, the below list is very basic and should be sufficient for all basic use cases.
They include partition software, torrent client, media player and graphics utilities.
```
sudo apt install gparted transmission-gtk vlc pavucontrol geany gimp inkscape audacity filezilla leafpad
```
#### Install additional software CLI
While the above GUI applications are necessary, you should always install some super-important command line utilities. Heres a list I have prepared for you.
```
sudo apt install ffmpeg, default-jdk git wget nano vim htop locate p7zip p7zip-full unzip
```
#### Replacement packages in Debian 12
If you are running Debian server or desktop, you should note that some key packages have been replaced in this release. Here are some of them:
- The default system clock is now managed by systemd-timesyncd and ntp is replaced by ntpsec.
- The DNS option dnssec-enable is now obsolete. If you encounter an invalid option error, comment out the line in named.conf file (should be in /etc or /etc/bind9).
- The systemd-resolved package will not be installed automatically. You need to install and start it manually.
- The rsyslog package is not installed by default since it is becoming obsolete as journalctl takes over.
#### Configure Debian Multimedia Repo
The popular Debian multimedia repo (created by the community) is updated for the Bookworm release. You can add the following lines in APT sources file and take advantage of hundreds of multimedia packages for your projects.
```
deb https://www.deb-multimedia.org bookworm main non-free
```
You can visit the [official page][8] to learn more about this repo.
### Wrapping up
There you have it. A list of tips that every user can take advantage of. Although, these are just guidelines and may not apply to you. But they can be a starting point for your Debian 12 post-install journey.
Let me know in the comment box what is your favourite post-install tip for Debian.
--------------------------------------------------------------------------------
via: https://www.debugpoint.com/things-to-do-debian-12/
作者:[Arindam][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://www.debugpoint.com/author/admin1/
[b]: https://github.com/lkxed/
[1]: https://www.debugpoint.com/upgrade-debian-12-from-debian-11/
[2]: https://www.debugpoint.com/debian-12-features/
[3]: https://cdimage.debian.org/debian-cd/current-live/amd64/bt-hybrid/
[4]: https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/
[5]: https://www.debugpoint.com/how-to-install-flatpak-apps-ubuntu-linux/
[6]: https://www.debugpoint.com/download-firefox/
[7]: https://www.mozilla.org/en-US/firefox/new/
[8]: https://deb-multimedia.org/