diff --git a/translated/tech/20230301.0 ⭐️ How to Install PgAdmin4 on RHEL 9 Step by Step.md b/published/20230301.0 ⭐️ How to Install PgAdmin4 on RHEL 9 Step by Step.md similarity index 52% rename from translated/tech/20230301.0 ⭐️ How to Install PgAdmin4 on RHEL 9 Step by Step.md rename to published/20230301.0 ⭐️ How to Install PgAdmin4 on RHEL 9 Step by Step.md index 0503a07dff..74398a0a84 100644 --- a/translated/tech/20230301.0 ⭐️ How to Install PgAdmin4 on RHEL 9 Step by Step.md +++ b/published/20230301.0 ⭐️ How to Install PgAdmin4 on RHEL 9 Step by Step.md @@ -3,46 +3,48 @@ [#]: author: "Pradeep Kumar https://www.linuxtechi.com/author/pradeep/" [#]: collector: "lkxed" [#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " +[#]: reviewer: "wxy" +[#]: publisher: "wxy" +[#]: url: "https://linux.cn/article-15618-1.html" 如何在 RHEL 9 上分步安装 PgAdmin4 ====== -Pgadmin4 是一个免费和开源的基于网络的 PostgreSQL 管理和开发平台。它与本地和远程服务器上的 PostgreSQL 数据库服务器进行交互,并使用直观和交互式的仪表板显示服务器的统计数据。 +![][0] -Pgadmin4 是对 Pgadmin3 的重写,提供了以下显著的特点: +PgAdmin4 是一个自由开源的基于网络的 PostgreSQL 管理和开发平台。它可以与本地或远程的服务器上的 PostgreSQL 数据库服务器进行交互,并使用直观的交互式仪表板显示服务器的统计数据。 -- 一个具有直观和实时监控仪表盘的响应式 Web UI。 -- 一个改进的 Web 界面,具有很酷的新面板和图标。 +PgAdmin4 是对 PgAdmin3 的重写,提供了以下显著的功能: + +- 具有直观的实时监控仪表盘的响应式 Web UI。 +- 改进的 Web 界面,具有很酷的新面板和图标。 - 带有语法高亮的 SQL 查询编辑器。 - 全面的文档。 - 帮助你入门的有用提示。 -在本指南中,我们将演示如何在 RHEL 9 上安装 Pgadmin4。 +在本指南中,我们将演示如何在 RHEL 9 上安装 PgAdmin4。 -##### 先决条件 +### 先决条件 -在开始之前,确保你有一台 RHEL 9 服务器实例并安装了 PostgreSQL 数据库。请查看如何在 RHEL 9 上安装 PostgreSQL 15 的指南。 +在开始之前,确保你有一台 RHEL 9 服务器实例并安装了 PostgreSQL 数据库。请查看如何在 RHEL 9 上 [安装 PostgreSQL 15][13] 的指南。 在安装了 PostgreSQL 服务器后,继续执行以下步骤。 -### 步骤 1)在 RHEL 9 上添加 Pgadmin4 仓库 +### 步骤 1)在 RHEL 9 上添加 PgAdmin4 仓库 -第一步是在 RHEL 9 上添加 Pgadmin4 仓库。但首先要安装 EPEL 仓库,它提供了基本的软件包。 +第一步是在 RHEL 9 上添加 PgAdmin4 仓库。但首先要安装 EPEL 仓库,它提供了基本的软件包。 ``` $ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm ``` -接下来,安装 Pgadmin4 仓库,如下所示。 +接下来,安装 PgAdmin4 仓库,如下所示: ``` $ sudo dnf install -y https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-2-1.noarch.rpm ``` -完成后,为 Pgadmin4 和 EPEL 仓库建立一个缓存,如下所示。 +完成后,为 PgAdmin4 和 EPEL 仓库建立一个缓存,如下所示: ``` $ sudo dnf makecache @@ -50,17 +52,17 @@ $ sudo dnf makecache ### 步骤 2)在 RHEL 9 上安装 PgAdmin4 -安装好 Pgadmin4 和 EPEL 仓库后,继续使用 DNF 包管理器安装 Pgadmin4,如下所示。 +安装好 PgAdmin4 和 EPEL 仓库后,继续使用 DNF 包管理器安装 PgAdmin4,如下所示: ``` $ sudo dnf install pgadmin4 -y ``` -这将安装许多软件包,包括 Pgadmin4、Apache HTTP web 服务器和 Python 软件包,仅举几例。 +这将安装许多软件包,包括 PgAdmin4、Apache HTTP web 服务器和 Python 软件包,仅举几例: ![][1] -要确认 Pgadmin4 是否已经安装,请运行以下命令: +要确认 PgAdmin4 是否已经安装,请运行以下命令: ``` $ rpm -qi pgadmin4 @@ -70,9 +72,9 @@ $ rpm -qi pgadmin4 ![][2] -### 步骤 3) 在 RHEL 9 上启动/启用 PgAdmin4 +### 步骤 3)在 RHEL 9 上启动/启用 PgAdmin4 -此时,Pgadmin4 已成功安装。然而,你需要更进一步,让它运行起来。要启动 Pgadmin4 服务,请运行以下命令: +此时,PgAdmin4 已成功安装。然而,你需要更进一步,让它运行起来。要启动 PgAdmin4 服务,请运行以下命令: ``` $ sudo systemctl start httpd @@ -84,7 +86,7 @@ $ sudo systemctl start httpd $ sudo systemctl enable httpd ``` -要确认 Pgadmin4 正在运行,请执行以下命令: +要确认 PgAdmin4 正在运行,请执行以下命令: ``` $ sudo systemctl status httpd @@ -94,9 +96,9 @@ $ sudo systemctl status httpd ### 步骤 4)在 RHEL 9 上初始化 PgAdmin4 -Pgadmin4 软件包提供了一个可配置的脚本来设置 pgAdmin 网络服务。这允许你创建一个用户账户,用来验证和配置 SELinux 策略和 Apache Web 服务器。 +PgAdmin4 软件包提供了一个可配置的脚本来设置 PgAdmin 网络服务。这允许你创建一个用户账户,用来验证和配置 SELinux 策略和 Apache Web 服务器。 -因此,如下运行该脚本。 +因此,如下运行该脚本: ``` $ sudo /usr/pgadmin4/bin/setup-web.sh @@ -104,29 +106,29 @@ $ sudo /usr/pgadmin4/bin/setup-web.sh 提供你将在登录页面上作为登录凭证使用的电子邮件和密码。 -注意:有时,你可能会遇到如下 “semanage: command not found” 的错误。这表明缺少 semanage 包。 +注意:有时,你可能会遇到如下 “semanage: command not found” 的错误。这表明缺少 `semanage` 包。 ![][4] Semanage 是 SELinux(安全增强型 Linux)策略管理工具的简称,是一个用于配置 SELinux 策略某些方面的工具,不需要对策略源进行修改或重新编译。 -为了解决这个错误,你需要检查提供 semanage 的软件包。你可以通过运行以下命令来完成: +为了解决这个错误,你需要检查提供 `semanage` 的软件包。你可以通过运行以下命令来完成: ``` $ sudo dnf provides /usr/sbin/semanage ``` -从输出中,你可以看到 semanage 是由 policycoreutils-python-utils-3.3-6.el9_0.noarch 包提供的。 +从输出中,你可以看到 `semanage` 是由 `policycoreutils-python-utils-3.3-6.el9_0.noarch` 包提供的。 ![][5] -要安装这个软件包,请运行以下命令。 +要安装这个软件包,请运行以下命令: ``` $ sudo dnf install policycoreutils-python-utils -y ``` -再一次如下运行 Pgadmn4 安装脚本。 提供电子邮件地址和密码,在提示时输入 “y”。 +再一次如下运行 Pgadmin4 安装脚本。 提供电子邮件地址和密码,在提示时输入 `y`。 ``` $ sudo /usr/pgadmin4/bin/setup-web.sh @@ -134,37 +136,39 @@ $ sudo /usr/pgadmin4/bin/setup-web.sh ![][6] -### 步骤 5) 访问 Pgadmin4 的 Web 界面 +### 步骤 5)访问 PgAdmin4 的 Web 界面 -此时,Pgadmin4 已经成功安装。要从网络浏览器访问它,请前往以下地址: +此时,PgAdmin4 已经成功安装。要从网络浏览器访问它,请前往以下地址: +``` http://server-ip/pgadmin4 +``` -你会看到登录网页界面。请确保提供你在运行安装脚本时提供的 Email 和密码,并点击 “Login”。 +你会看到登录网页界面。请确保提供你在运行安装脚本时提供的 Email 和密码,并点击 “登录Login”: ![][7] -登录后,Pgadmin4的仪表板将出现在视图中,如图所示。 +登录后,PgAdmin4 的仪表板将出现在视图中,如图所示: ![][8] -要添加一个可以由 Pgadmin4 管理的服务器,请点击 “Add New Server”。 +要添加一个可以由 PgAdmin4 管理的服务器,请点击 “添加新服务器Add New Server”: ![][9] -在 “General” 选项卡中,填写服务器的名称,并添加注释,以便更好地描述。 +在 “通用General” 选项卡中,填写服务器的名称,并添加注释,以便更好地描述: ![][10] -接下来,点击 “Connection”,填写主机名/地址、端口、维护数据库、用户名和密码。然后最后点击 “Save”。 +接下来,点击 “连接Connection”,填写主机名/地址、端口、维护数据库、用户名和密码。然后最后点击 “保存Save”: ![][11] -此后,你会看到 PosrgreSQL 服务器的统计数据显示在互动和直观的仪表板上。在左边的侧边栏,你可以浏览各种 PostgreSQL 参数。 +此后,你会看到 PosrgreSQL 服务器的统计数据显示在互动和直观的仪表板上。在左边的侧边栏,你可以浏览各种 PostgreSQL 参数: ![][12] -##### 总结 +### 总结 我们希望你觉得本指南内容丰富,请在下面的评论部分发表你的疑问和反馈。 @@ -175,7 +179,7 @@ via: https://www.linuxtechi.com/how-to-install-pgadmin-on-rhel/ 作者:[Pradeep Kumar][a] 选题:[lkxed][b] 译者:[geekpi](https://github.com/geekpi) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 @@ -183,13 +187,15 @@ via: https://www.linuxtechi.com/how-to-install-pgadmin-on-rhel/ [b]: https://github.com/lkxed/ [1]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Install-pgadmin4-rhel9-dnf-command.png [2]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Pgadmin4-RPM-Package-Information-RHEL9.png -[3]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Start-Enable-Http-Pgadmin-RHEL9.png?ezimgfmt=ng:webp/ngcb22 -[4]: https://www.linuxtechi.com/wp-content/uploads/2023/03/semange-not-found-pgadmin4-rhel9.png?ezimgfmt=ng:webp/ngcb22 -[5]: https://www.linuxtechi.com/wp-content/uploads/2023/03/DNF-Whatprovides-semanage-RHEL9.png?ezimgfmt=ng:webp/ngcb22 -[6]: https://www.linuxtechi.com/wp-content/uploads/2023/03/pgadmin-setup-web-script-rhel9.png?ezimgfmt=ng:webp/ngcb22 -[7]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Pgadmin4-Login-Page-RHEL9.png?ezimgfmt=ng:webp/ngcb22 -[8]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Dashboard-Pgadmin4-RHEL9.png?ezimgfmt=ng:webp/ngcb22 -[9]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Add-New-PostgreSQL-to-Pgadmin4-RHEL9.png?ezimgfmt=ng:webp/ngcb22 -[10]: https://www.linuxtechi.com/wp-content/uploads/2023/03/General-Description-Pgadmin-New-PostgreSQL.png?ezimgfmt=ng:webp/ngcb22 -[11]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Connection-Details-PostgreSQL-Pgadmin4-GUI.png?ezimgfmt=ng:webp/ngcb22 -[12]: https://www.linuxtechi.com/wp-content/uploads/2023/03/PostgreSQL-Statistics-Dashboard-Pgadmin4.png?ezimgfmt=ng:webp/ngcb22 \ No newline at end of file +[3]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Start-Enable-Http-Pgadmin-RHEL9.png +[4]: https://www.linuxtechi.com/wp-content/uploads/2023/03/semange-not-found-pgadmin4-rhel9.png +[5]: https://www.linuxtechi.com/wp-content/uploads/2023/03/DNF-Whatprovides-semanage-RHEL9.png +[6]: https://www.linuxtechi.com/wp-content/uploads/2023/03/pgadmin-setup-web-script-rhel9.png +[7]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Pgadmin4-Login-Page-RHEL9.png +[8]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Dashboard-Pgadmin4-RHEL9.png +[9]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Add-New-PostgreSQL-to-Pgadmin4-RHEL9.png +[10]: https://www.linuxtechi.com/wp-content/uploads/2023/03/General-Description-Pgadmin-New-PostgreSQL.png +[11]: https://www.linuxtechi.com/wp-content/uploads/2023/03/Connection-Details-PostgreSQL-Pgadmin4-GUI.png +[12]: https://www.linuxtechi.com/wp-content/uploads/2023/03/PostgreSQL-Statistics-Dashboard-Pgadmin4.png +[13]: https://www.linuxtechi.com/how-to-install-postgresql-on-rhel/ +[0]: https://img.linux.net.cn/data/attachment/album/202303/12/080937o03a11xsz99zawzm.jpg \ No newline at end of file diff --git a/translated/tech/20230305.0 ⭐️ Install DOSBox in Ubuntu to Play Retro Games.md b/published/20230305.0 ⭐️ Install DOSBox in Ubuntu to Play Retro Games.md similarity index 79% rename from translated/tech/20230305.0 ⭐️ Install DOSBox in Ubuntu to Play Retro Games.md rename to published/20230305.0 ⭐️ Install DOSBox in Ubuntu to Play Retro Games.md index c997261351..eb2ec3d0ba 100644 --- a/translated/tech/20230305.0 ⭐️ Install DOSBox in Ubuntu to Play Retro Games.md +++ b/published/20230305.0 ⭐️ Install DOSBox in Ubuntu to Play Retro Games.md @@ -3,14 +3,16 @@ [#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/" [#]: collector: "lkxed" [#]: translator: "Cubik65536" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " +[#]: reviewer: "wxy" +[#]: publisher: "wxy" +[#]: url: "https://linux.cn/article-15619-1.html" 在 Ubuntu 中安装 DOSBox 来玩复古游戏 ====== -DOSBox 是一款免费且开源的软件,它允许你模拟上个世纪的 MS-DOS 操作系统。 +![][0] + +DOSBox 是一款自由开源的软件,它可以让你模拟上个世纪的 MS-DOS 操作系统。 你为什么要这么做呢?因为怀旧:它可以让你游玩在 80 年代和 90 年代流行的 8 位游戏。 @@ -18,15 +20,13 @@ DOSBox 是一款免费且开源的软件,它允许你模拟上个世纪的 MS- 听起来不错吧?让我介绍一下如何在 Ubuntu 中安装 DOSBox。我还会向你展示如何在 DOSBox 中安装并游玩复古游戏。 -**DOSBox 也可以在其他 Linux 发行版中使用。除了安装部分,其余的指令应该对所有发行版都有效。** +DOSBox 也可以在其他 Linux 发行版中使用。除了安装部分,其余的指令应该对所有发行版都有效。 -✋🏻 - -DOS 是一个主要基于命令行的操作系统。使用 DOSbox 需要使用终端。 +> ✋🏻 DOS 是一个主要基于命令行的操作系统。使用 DOSbox 需要使用终端。 ### 在 Ubuntu 中安装 DOSBox -DOSBox 包可以在 [Universe 软件仓库][1]中找到。这个仓库应该已经被启用了,所以可以使用下面的命令来安装 DOSBox: +DOSBox 包可以在 [Universe 软件仓库][1] 中找到。这个仓库应该已经被启用了,所以可以使用下面的命令来安装 DOSBox: ``` sudo apt install dosbox @@ -40,7 +40,7 @@ sudo apt install dosbox dosbox ``` -**第一次运行是必要的,因为它会为我们创建一个配置文件。实际上,第一次启动时不需要做任何事情,因为它会创建配置文件。** +**需要首先运行一次,因为它会为我们创建一个配置文件。实际上,第一次启动时不需要做任何事情,因为它会创建配置文件。** 然后在 DOSBox 终端中执行 `exit` 命令来关闭 DOSBox: @@ -64,7 +64,7 @@ exit 你可以从互联网档案馆的软件库中访问数百款流行游戏。 -[从互联网档案馆下载游戏][4] +> **[从互联网档案馆下载游戏][4]** 每款游戏都有自己的 zip 文件,其中包含 .exe 文件。下载你喜欢的游戏。 @@ -125,8 +125,12 @@ mario 如果你有不再使用的旧电脑或者树莓派,你可以把它们变成复古游戏机。有很多 Linux 项目就是为了这个目的而存在的。 +> **[把你的电脑变成复古游戏机的 Linux 发行版](https://itsfoss.com/retro-gaming-console-linux-distros/)** + 为什么只玩游戏呢?你也可以把复古的计算机终端带回来。 +> **[用 Cool Retro Terminal 获得一个复古的 Linux 终端](https://itsfoss.com/cool-retro-term/)** + 希望该指南对你有所帮助。你是如何在 Linux 上玩游戏的?在评论中告诉我吧。 -------------------------------------------------------------------------------- @@ -136,7 +140,7 @@ via: https://itsfoss.com/ubuntu-dosbox/ 作者:[Sagar Sharma][a] 选题:[lkxed][b] 译者:[Cubik65536](https://github.com/Cubik65536) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 @@ -153,3 +157,4 @@ via: https://itsfoss.com/ubuntu-dosbox/ [9]: https://itsfoss.com/content/images/2023/02/mount-the-game-to-the-virtual-C-drive.png [10]: https://itsfoss.com/content/images/2023/02/switch-to-the-virtual-drive-C.png [11]: https://itsfoss.com/content/images/2023/02/play-mario-on-Linux.gif +[0]: https://img.linux.net.cn/data/attachment/album/202303/12/091038c81kxkmhdonj1mkm.jpg \ No newline at end of file