mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-03-27 02:30:10 +08:00
commit
f6db64ff11
@ -3,15 +3,18 @@
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
[#]: reviewer: "wxy"
|
||||
[#]: publisher: "wxy"
|
||||
[#]: url: "https://linux.cn/article-15186-1.html"
|
||||
|
||||
在你的 Linux 终端中享受经典的贪吃蛇游戏
|
||||
在你的 Linux 终端中玩经典的贪吃蛇游戏
|
||||
======
|
||||
这是你在 Linux 终端中安装和玩经典贪吃蛇的方法。
|
||||
|
||||
还记得老式手机经典简单的贪吃蛇吗?我记得玩了几个小时。嘿,当时没有其他选择,对吧?智能手机仍未上市。而你所拥有的就是这个。
|
||||

|
||||
|
||||
> 这是你在 Linux 终端中安装和玩经典贪吃蛇的方法。
|
||||
|
||||
还记得老式手机经典简单的贪吃蛇吗?我记得玩了几个小时。嘿,当时没有其他选择,对吧?智能手机仍未上市。而你所拥有的只有这个。
|
||||
|
||||
![Nokia 3310 中的旧版贪吃蛇游戏][1]
|
||||
|
||||
@ -23,7 +26,7 @@
|
||||
|
||||
### 安装 nSnake – Linux 终端的贪吃蛇
|
||||
|
||||
你可以使用以下方法通过终端安装[此游戏][4]。
|
||||
你可以使用以下方法通过终端安装 [此游戏][4]。
|
||||
|
||||
对于 Ubuntu、Linux Mint 或其他相关发行版:
|
||||
|
||||
@ -37,7 +40,7 @@ sudo apt install nsnake
|
||||
sudo dnf install nsnake
|
||||
```
|
||||
|
||||
对于 Arch Linux,此游戏可在 [Arch 用户仓库][5]中获得。你可以使用以下步骤安装它。
|
||||
对于 Arch Linux,此游戏可在 [Arch 用户仓库(AUR)][5] 中获得。你可以使用以下步骤安装它。
|
||||
|
||||
* [设置 Yay AUR 助手][6]
|
||||
* 然后打开终端并运行以下命令
|
||||
@ -46,27 +49,27 @@ sudo dnf install nsnake
|
||||
yay -S nsnake
|
||||
```
|
||||
|
||||
上面的命令会安装游戏的库存库版本,它可能不是最新的。但是,如果你想要最新版本,你可能需要通过 GitHub 编译源代码。我在本页末尾添加了编译说明供你参考。
|
||||
上面的命令会安装游戏的软件仓库版本,它可能不是最新的。但是,如果你想要最新版本,你可能需要通过 GitHub 编译源代码。我在本页末尾添加了编译说明供你参考。
|
||||
|
||||
### 玩游戏
|
||||
|
||||
玩游戏非常简单。在终端中输入 nsnake,这将启动游戏。
|
||||
玩游戏非常简单。在终端中输入 `nsnake`,这将启动游戏。
|
||||
|
||||
要立即退出,请按 q。
|
||||
要立即退出,请按 `q`。
|
||||
|
||||
以下是默认键绑定。
|
||||
|
||||
* 箭头键 - 移动蛇
|
||||
* q – 退出游戏
|
||||
* p – 暂停游戏
|
||||
* `箭头键` - 移动蛇
|
||||
* `q` – 退出游戏
|
||||
* `p` – 暂停游戏
|
||||
|
||||
你还可以通过主菜单以各种方式配置游戏。
|
||||
|
||||
![nsnake Linux 终端贪吃蛇设置][7]
|
||||
|
||||
完成了,享受吧!
|
||||
完成了,玩吧!
|
||||
|
||||
##### 编译
|
||||
### 编译
|
||||
|
||||
要编译最新版本,请在所有 Linux 发行版中使用以下命令。
|
||||
|
||||
@ -85,7 +88,7 @@ via: https://www.debugpoint.com/snake-game-linux-terminal/
|
||||
作者:[Arindam][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/) 荣誉推出
|
||||
|
@ -3,18 +3,18 @@
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "chai001125"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
[#]: reviewer: "wxy"
|
||||
[#]: publisher: "wxy"
|
||||
[#]: url: "https://linux.cn/article-15185-1.html"
|
||||
|
||||
安装 Ubuntu 22.10 后要做的 10 件事
|
||||
======
|
||||
|
||||
**以下是我们安装 Ubuntu 22.10 “Kinetic Kudu”(GNOME 版)后,推荐做的 10 件事列表。**
|
||||
> 以下是我们安装 Ubuntu 22.10 “Kinetic Kudu”(GNOME 版)后,推荐做的 10 件事列表。
|
||||
|
||||
![][1]
|
||||
|
||||
Ubuntu 22.10 带来了很多令人兴奋的新功能,例如 GNOME 43、最新的内核、重新设计的托盘菜单、文件功能和 Pipewire 等 [新功能][2]。
|
||||
Ubuntu 22.10 带来了很多令人兴奋的新功能,例如 GNOME 43、最新的内核、重新设计的托盘菜单、文件应用的功能和 Pipewire 等 [新功能][2]。
|
||||
|
||||
我相信你已经迫不及待地想尝试 Ubuntu 22.10 上的这些新功能了。
|
||||
|
||||
@ -36,19 +36,19 @@ sudo apt update && sudo apt upgrade
|
||||
|
||||
#### 2、删除 Firefox Snap,并安装 Flatpak 或者 deb 版本的 Firefox
|
||||
|
||||
自去年发布的 Ubuntu 21.10 版本以来,默认的网页浏览器 Firefox 开始以 Snap 软件包的形式出现。如果你是普通用户,这可能不是一个问题或者需要担心的事情。但是出于几个原因,例如 Snap 软件包的 Firefox 启动时间较长、且当 Firefox 有后端更新时,会有不必要的 Snap 更新通知等等原因,导致许多用户不太喜欢 Firefox 的 Snap 软件包。
|
||||
自去年发布的 Ubuntu 21.10 版本以来,默认的网页浏览器 Firefox 开始以 Snap 软件包的形式出现。如果你是普通用户,这可能不是一个问题或者需要担心的事情。但是出于几个原因,例如 Snap 软件包的 Firefox 启动时间较长、且当 Firefox 有后台更新时,会有不必要的 Snap 更新通知等等原因,导致许多用户不太喜欢 Firefox 的 Snap 软件包。
|
||||
|
||||
因此,你可以按照 [我写的另一篇操作指南][3],来完全删除 Firefox 的 Snap 软件包。这一过程有点复杂,需要花费一点时间。删除完成后,再从个人软件包存档(PPA)安装 deb 版本的 Firefox,或者使用 [Flatpak 版本][4] 的 Firefox。
|
||||
因此,你可以按照 [我写的另一篇操作指南][3],来完全删除 Firefox 的 Snap 软件包。这一过程有点复杂,需要花费一点时间。删除完成后,再从个人软件包存档(PPA)安装 deb 版本的 Firefox,或者使用 [Flatpak 版本][4] 的 Firefox。
|
||||
|
||||
这是一个可选的动作,你也可以跳过这一步骤。
|
||||
|
||||
#### 3、安装并启用 Flatpak
|
||||
|
||||
虽然,几乎所有最近的 linux 发行版都会默认安装 Flatpak,但是 Ubuntu 并没有默认安装 Flatpak,这是因为 Ubuntu 使用了它自己的沙箱技术 Snap。
|
||||
虽然,几乎所有最新的 Linux 发行版都会默认安装 Flatpak,但是 Ubuntu 并没有默认安装 Flatpak,这是因为 Ubuntu 使用了它自己的沙箱技术 Snap。
|
||||
|
||||
但 Flatpak 这一应用程序还是最适合于每个人。Flatpak 能够帮助你快速安装多个应用程序,并在使用过程中无需担心依赖性和其他事情。
|
||||
|
||||
大多数 Flatpak 应用程序都在集中的仓库 @ Flathub 中。
|
||||
大多数 Flatpak 应用程序都在集中的仓库 Flathub 中。
|
||||
|
||||
要在 Ubuntu 22.10 中启用 Flatpak 应用程序,请按照以下命令进行操作。
|
||||
|
||||
@ -62,9 +62,9 @@ sudo apt install flatpakflatpak remote-add --if-not-exists flathub https://flath
|
||||
|
||||
我建议你在安装 Ubuntu 后,手动退出任何数据收集项。大家都知道,无论怎么努力尝试,在互联网上保护自己的隐私都很困难。因此,这些小步骤很重要。
|
||||
|
||||
要配置隐私项,请打开设置并选择**隐私**。然后查看隐私菜单下列出的项目。
|
||||
要配置隐私项,请打开“<ruby>设置<rt>Settings</rt></ruby>”并选择“<ruby>隐私<rt>Privacy</rt></ruby>”。然后查看隐私菜单下列出的项目。
|
||||
|
||||
此外,请确保禁用对 Ubuntu 服务器的后端报告。需要运行以下命令来手动禁用,因为在设置中没有禁用它的选项。
|
||||
此外,请确保禁用对 Ubuntu 服务器的后台报告。需要运行以下命令来手动禁用,因为在设置中没有禁用它的选项。
|
||||
|
||||
```
|
||||
sudo ubuntu-report -f send no
|
||||
@ -74,13 +74,13 @@ sudo ubuntu-report -f send no
|
||||
|
||||
#### 5、探索 GNOME 43 的功能
|
||||
|
||||
在 Ubuntu 22.10 版本中,最具视觉和功能性的变化是 GNOME 43。因为 GNOME 43 有一些根本性和核心变化,所以它会影响每个人和他们的工作。GNOME 43 带来了一个新的药丸形状的托盘菜单,并更新了具有文件和 GNOME Web 等新功能的原生应用程序。
|
||||
在 Ubuntu 22.10 版本中,最具视觉和功能性的变化是 GNOME 43。因为 GNOME 43 有一些根本性和核心变化,所以它会影响每个人和他们的工作。GNOME 43 带来了一个新的药丸形状的托盘菜单,并更新了文件应用和 GNOME Web 等原生应用程序的功能。
|
||||
|
||||
请查看更为详细的 [GNOME 43 功能][7] 一文,以了解更多信息,或者你也可以自己探索 GNOME 43。
|
||||
|
||||
![Quick Settings Demo in GNOME 43][8]
|
||||
|
||||
#### 6、确保音频与 Pipewire 配合使用
|
||||
#### 6、确保音频可以与 Pipewire 配合使用
|
||||
|
||||
如果你经常使用音频,或者你的工作范围涉及到声音捕获、播放等内容,请确保在 Ubuntu 22.10 中,你的音频在有线或蓝牙情况下都能正常工作。
|
||||
|
||||
@ -88,7 +88,7 @@ sudo ubuntu-report -f send no
|
||||
|
||||
#### 7、安装其他软件包
|
||||
|
||||
确保你可以在 Ubuntu 桌面上,播放所有视频和音频格式是很重要的。如果你在设置期间跳过了额外的软件包安装,可以通过以下命令进行安装。
|
||||
确保你可以在 Ubuntu 桌面上播放所有视频和音频格式是很重要的。如果你在设置期间跳过了额外的软件包安装,可以通过以下命令进行安装。
|
||||
|
||||
```
|
||||
sudo apt install ubuntu-restricted-extras
|
||||
@ -98,7 +98,7 @@ sudo apt install ubuntu-restricted-extras
|
||||
|
||||
#### 8、安装基本的应用程序
|
||||
|
||||
带有 GNOME 的基础 Ubuntu 版本只有非常基本的应用程序。因此,在你使用 Ubuntu 之前,你需要安装一些其他必要的应用程序。
|
||||
带有 GNOME 的 Ubuntu 基础版本只有非常基本的应用程序。因此,在你使用 Ubuntu 之前,你需要安装一些其他必要的应用程序。
|
||||
|
||||
由于每个人的工作范围不同,每个人所需的应用程序也都不同。因此,在这里我仅提供一个通用的应用程序的列表,我认为你可以把这些应用程序都安装上,因为这些应用程序对所有人来说都很常用。
|
||||
|
||||
@ -141,9 +141,9 @@ flatpak install flathub com.mattjakeman.ExtensionManager
|
||||
sudo add-apt-repository -y ppa:teejee2008/ppasudo apt-get updatesudo apt-get install timeshift
|
||||
```
|
||||
|
||||
### 额外小贴士
|
||||
### 额外小技巧
|
||||
|
||||
如果你想进一步定制你新安装的 Ubuntu 系统,以下是一些额外的小贴士。
|
||||
如果你想进一步定制你新安装的 Ubuntu 系统,以下是一些额外的小技巧。
|
||||
|
||||
#### 安装漂亮的字体
|
||||
|
@ -2,7 +2,7 @@
|
||||
[#]: via: "https://opensource.com/article/22/10/compiling-code"
|
||||
[#]: author: "Alan Smithee https://opensource.com/users/alansmithee"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: " "
|
||||
[#]: translator: "Donkey-Hao"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
@ -90,7 +90,7 @@ via: https://opensource.com/article/22/10/compiling-code
|
||||
|
||||
作者:[Alan Smithee][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
译者:[Donkey-Hao](https://github.com/Donkey-Hao)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
@ -2,7 +2,7 @@
|
||||
[#]: via: "https://itsfoss.com/linux-halloween-makeover/"
|
||||
[#]: author: "Sreenath https://itsfoss.com/author/sreenath/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: " "
|
||||
[#]: translator: "chai001125"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
@ -1,89 +0,0 @@
|
||||
[#]: subject: "How to Install Viber in Ubuntu and Other Linux"
|
||||
[#]: via: "https://www.debugpoint.com/install-viber-linux/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
How to Install Viber in Ubuntu and Other Linux
|
||||
======
|
||||
|
||||
**Here’s a quick guide on how you can install Viber in Ubuntu and other Linux systems.**
|
||||
|
||||
[Viber][1] is a free, secure calling and messaging program for all popular mobile platforms and operating systems.
|
||||
|
||||
It has a rich set of features such as voice/video calls, text messages with GIFs, stickers, photos, and videos. In addition, Viber features group chats, group calls and disappearing messages.
|
||||
|
||||
Viber is a closed-source program, but available as free for Linux distributions with native executable clients.
|
||||
|
||||
Here’s how to install it.
|
||||
|
||||
### Install Viber on Linux
|
||||
|
||||
It is available as an AppImage executable, deb and rpm package. Follow the respective button below to download it directly. The average executable size is ~180MB.
|
||||
|
||||
[Download Appimage for all Linux distros][2]
|
||||
|
||||
[Deb executable for Ubuntu][3]
|
||||
|
||||
RPM package for Fedora
|
||||
|
||||
If you have downloaded AppImage, simply change the permission to executable from any file manager. Then run.
|
||||
|
||||
- For Ubuntu, Linux Mint, Debian and related distributions, you can install deb package via [many methods][4].
|
||||
|
||||
- You may double-click and open via the installed software manager. Or install via dpkg command as below.
|
||||
|
||||
```
|
||||
sudo dpkg -i viber.deb
|
||||
```
|
||||
|
||||
- For Fedora and RPM-based packages, you can install via the following command.
|
||||
|
||||
```
|
||||
sudo dnf localinstall viber.rpm
|
||||
```
|
||||
|
||||
For Arch Linux and other distributions, you can use the Appimage as I explained above.
|
||||
|
||||
### Usage
|
||||
|
||||
After you finish installing Viber, open it via the application menu. Here are a couple of things you need to remember.
|
||||
|
||||
Before you start using Viber from your Laptop/desktop, you need to set it up on your mobile phone. Download and install Viber for your mobile platform from the below links.
|
||||
|
||||
- [Google Play Store][5]
|
||||
- [Apple App Store][6]
|
||||
|
||||
Once installed, set up Viber. Remember, it requires your mobile number to register.
|
||||
|
||||
After setting up, open the app on the Linux desktop. And you should see a screen like the one below.
|
||||
|
||||
![Viber is Running in Linux][7]
|
||||
|
||||
Scan the QR code from your mobile phone app, and you should be ready to use Viber on your Linux desktop.
|
||||
|
||||
**Note:** Since it is a closed-source app, make sure you understand the terms of this app and privacy-related situations while using Viber.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/install-viber-linux/
|
||||
|
||||
作者:[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.viber.com/
|
||||
[2]: https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
|
||||
[3]: https://download.cdn.viber.com/desktop/Linux/viber.rpm
|
||||
[4]: https://www.debugpoint.com/install-deb-files/
|
||||
[5]: https://play.google.com/store/apps/details?id=com.viber.voip&hl=en_IN&gl=US
|
||||
[6]: https://apps.apple.com/us/app/viber-messenger-chats-calls/id382617920
|
||||
[7]: https://www.debugpoint.com/wp-content/uploads/2022/10/Viber-is-Running-in-Linux-1.jpg
|
@ -2,7 +2,7 @@
|
||||
[#]: via: "https://www.debugpoint.com/clean-up-snap/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: " "
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
@ -2,7 +2,7 @@
|
||||
[#]: via: "https://www.debugpoint.com/upgrade-ubuntu-22-04-22-10/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: " "
|
||||
[#]: translator: "robsean"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
@ -2,7 +2,7 @@
|
||||
[#]: via: "https://opensource.com/article/22/10/set-path-powershell"
|
||||
[#]: author: "Alan Smithee https://opensource.com/users/alansmithee"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: " "
|
||||
[#]: translator: "qfzy1233"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
@ -79,7 +79,7 @@ via: https://opensource.com/article/22/10/set-path-powershell
|
||||
|
||||
作者:[Alan Smithee][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
译者:[qfzy1222](https://github.com/qfzy1233)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
@ -1,110 +0,0 @@
|
||||
[#]: subject: "How to Recover Arch Linux Install via chroot"
|
||||
[#]: via: "https://www.debugpoint.com/recover-arch-linux/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "robsean"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
How to Recover Arch Linux Install via chroot
|
||||
======
|
||||
|
||||
**This quick guide explains some of the steps which may come in handy to recover an Arch Linux Install.**
|
||||
|
||||
Being a rolling release, sometimes things break in Arch Linux. Not because of your own actions but hundreds of other reasons, such as a new Kernel vs your hardware or software compatibility. But still, Arch Linux is still better and provides the latest packages and applications.
|
||||
|
||||
But sometimes, it gives you trouble, and you end up with a blinking cursor and nothing else.
|
||||
|
||||
So, in those scenarios, instead of re-formatting or reinstalling, you may want to try to recover the installation, including the data, before giving up your hope. This guide outlines some steps in that direction.
|
||||
|
||||
### Recover Arch Linux Installation
|
||||
|
||||
- The first step is to create a bootable LIVE USB with Arch Linux. Download the .ISO from this link and create a bootable .ISO. You can check out this guide on how to create bootable .ISO using Etcher. Remember this step requires another working stable system, obviously, as your current system is not usable.
|
||||
|
||||
[download arch linux][1]
|
||||
|
||||
- You need to know on **which partition your Arch Linux** is installed. This is a crucial step. If you don’t know, you can use GParted to find out. Or check in your Grub menu, Or you can run the below command to find out. This will list all your disk partitions, size, and labels.
|
||||
|
||||
```
|
||||
sudo lsblk -o name,mountpoint,label,size,uuid
|
||||
```
|
||||
|
||||
- Once done, plug in the USB stick and boot from it. And you should see the Arch Linux prompt in the LIVE medium.
|
||||
|
||||
- Now, mount to the Arch Linux partition using the below. Change the `/dev/sda3` to your respective partition.
|
||||
|
||||
```
|
||||
mount /dev/sda3 /mnt
|
||||
arch-chroot /mnt
|
||||
```
|
||||
|
||||
- The arch-chroot command will mount your Arch Linux partition in the terminal, so log in using your Arch credentials. Now, you have the following options based on what you want at this stage.
|
||||
|
||||
- You can take backups of your data by going through /home folders. In case the troubleshooter doesn’t work. You may copy the files to an external USB or another partition.
|
||||
|
||||
- Verify the log files, especially the pacman logs, because an unstable system may be caused by upgrading some packages, such as graphics driver or any other driver. Based on the log, you may want to downgrade any specific package if you want.
|
||||
- You may use the below command to view the last 200 lines of the pacman log file to find out any failing items or dependency removal.
|
||||
|
||||
```
|
||||
tail -n 200 /var/log/pacman.log | less
|
||||
```
|
||||
|
||||
- The above command gives you 200 lines from the end of the pacman.log file to verify. Now, carefully check which of the packages were updated since your successful boot.
|
||||
|
||||
- And note down the package name and version somewhere. And you may try to downgrade packages one-by-one or if you think a specific package created a problem. Use the -U switch of pacman command to downgrade.
|
||||
|
||||
```
|
||||
pacman -U <package name>
|
||||
```
|
||||
|
||||
- You can run the following to start your Arch system after downgrading if any.
|
||||
|
||||
```
|
||||
exec /sbin/init
|
||||
```
|
||||
|
||||
- Check the status of your display manager and whether if there are any errors. Sometimes, the display manager creates a problem which can’t communicate with X Server. For example, if you are using lightdm, then you can check its status via the below.
|
||||
|
||||
```
|
||||
systemctl status lightdm
|
||||
```
|
||||
|
||||
- Or, you may want to start it via the below command and check the error.
|
||||
|
||||
```
|
||||
lightdm --test-mode --debug
|
||||
```
|
||||
|
||||
- Here is an example of lightdm failure, which caused an unstable Arch system.
|
||||
|
||||
![lightdm - test mode][2]
|
||||
|
||||
- Or check via kicking off the X server using `startx`.
|
||||
|
||||
- In my experience, if you see errors in the above command, try to install another display manager, such as **sddm** and enable it. It may eliminate the error.
|
||||
|
||||
- Try the above steps based on the state of your system, and troubleshoot. For errors specific to display manager lightdm, we have a [guide][3] which you may want to check out.
|
||||
- If you are using sddm, then check out [these troubleshooting steps][4] if something works.
|
||||
|
||||
### Closing Notes
|
||||
|
||||
Every installation is different. And above steps may/may not work for you. But it is worth a try, and as per my experience, it works. If it works, well, good for you. Either way, let me know how it goes in the comment box below.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/recover-arch-linux/
|
||||
|
||||
作者:[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://archlinux.org/download/
|
||||
[2]: https://www.debugpoint.com/wp-content/uploads/2021/03/lightdm-test-mode.jpg
|
||||
[3]: https://www.debugpoint.com/2021/03/failed-to-start-lightdm/
|
||||
[4]: https://wiki.archlinux.org/title/SDDM#Troubleshooting
|
@ -0,0 +1,91 @@
|
||||
[#]: subject: "How to Install Viber in Ubuntu and Other Linux"
|
||||
[#]: via: "https://www.debugpoint.com/install-viber-linux/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
如何在 Ubuntu 和其他 Linux 中安装 Viber
|
||||
======
|
||||
|
||||
**这是有关如何在 Ubuntu 和其他 Linux 系统中安装 Viber 的快速指南。**
|
||||
|
||||
[Viber][1] 是一个免费、安全的呼叫和聊天程序,适用于所有流行的移动平台和操作系统。
|
||||
|
||||
它具有丰富的功能,例如语音/视频通话、带有 GIF 的文本消息、贴纸、照片和视频。此外,Viber 还具有群聊、群呼和消失消息功能。
|
||||
|
||||
Viber 是一个闭源程序,但有免费的 Linux 原生可执行客户端。
|
||||
|
||||
下面是安装它的方法。
|
||||
|
||||
### 在 Linux 上安装 Viber
|
||||
|
||||
它以 AppImage 可执行文件、deb 和 rpm 包的形式提供。按照下面的相应按钮直接下载。平均可执行文件大小约为 180MB。
|
||||
|
||||
[下载适用于所有 Linux 发行版的 Appimage][2]
|
||||
|
||||
[适用于 Ubuntu 的 Deb 可执行文件][3]
|
||||
|
||||
[Fedora 的 RPM 包][8]
|
||||
|
||||
如果你已下载 AppImage,只需从任意文件管理器将权限更改为可执行文件即可。然后运行。
|
||||
|
||||
|
||||
- 对于 Ubuntu、Linux Mint、Debian 和相关发行版,你可以通过[多种方法][4]安装 deb 包。
|
||||
|
||||
- 你可以通过已安装的软件管理器双击打开。或者通过 dpkg 命令安装,如下所示。
|
||||
|
||||
```
|
||||
sudo dpkg -i viber.deb
|
||||
```
|
||||
|
||||
- 对于 Fedora 和基于 RPM 的软件包,你可以通过以下命令安装。
|
||||
|
||||
```
|
||||
sudo dnf localinstall viber.rpm
|
||||
```
|
||||
|
||||
对于 Arch Linux 和其他发行版,你可以使用我上面提到的 Appimage。
|
||||
|
||||
### 使用
|
||||
|
||||
完成安装 Viber 后,通过应用菜单打开它。以下是你需要记住的几件事。
|
||||
|
||||
在从笔记本电脑/台式机开始使用 Viber 之前,你需要在手机上进行设置。从以下链接为你的移动平台下载并安装 Viber。
|
||||
|
||||
- [谷歌应用商店][5]
|
||||
- [苹果应用商店][6]
|
||||
|
||||
安装后,设置 Viber。请记住,它需要你的手机号码才能注册。
|
||||
|
||||
设置完成后,在 Linux 桌面上打开应用。你应该会看到如下页面。
|
||||
|
||||
![Viber 在 Linux 中运行][7]
|
||||
|
||||
从你的手机应用扫描二维码,你应该可以在 Linux 桌面上使用 Viber。
|
||||
|
||||
**注意:** 由于它是一个闭源应用,请确保你在使用 Viber 时了解此应用的条款和与隐私相关的情况。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/install-viber-linux/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者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.viber.com/
|
||||
[2]: https://download.cdn.viber.com/desktop/Linux/viber.AppImage
|
||||
[3]: https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
|
||||
[4]: https://www.debugpoint.com/install-deb-files/
|
||||
[5]: https://play.google.com/store/apps/details?id=com.viber.voip&hl=en_IN&gl=US
|
||||
[6]: https://apps.apple.com/us/app/viber-messenger-chats-calls/id382617920
|
||||
[7]: https://www.debugpoint.com/wp-content/uploads/2022/10/Viber-is-Running-in-Linux-1.jpg
|
||||
[8]: https://download.cdn.viber.com/desktop/Linux/viber.rpm
|
@ -0,0 +1,110 @@
|
||||
[#]: subject: "How to Recover Arch Linux Install via chroot"
|
||||
[#]: via: "https://www.debugpoint.com/recover-arch-linux/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "robsean"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
如何通过 chroot 恢复 Arch Linux 安装
|
||||
======
|
||||
|
||||
**这篇速成指南诠释了一些步骤,它对于恢复一个 Arch Linux 安装很有帮助。**
|
||||
|
||||
作为一个滚动发布版本,Arch Linux 有时会崩溃。那不是因为你自身的行为,而是因为数百个其它的原因,例如一个新内核与你的硬件或软件的兼容性。但是,即使如此,Arch Linux 仍然是比较优秀的,并且提供最新的软件包和应用程序。
|
||||
|
||||
但是,有些时候,它会给你带来麻烦,最后你只会看到一个闪烁的光标。
|
||||
|
||||
因此,在这种情况下,在你放弃希望前,你可能希望尝试恢复系统的安装以及数据,而不是重新格式化或重新安装。这篇指南在这些方面概述了一些步骤。
|
||||
|
||||
### 恢复 Arch Linux 安装
|
||||
|
||||
- 第一步骤是创建一个可启动的 Arch Linux 的 LIVE USB 。从下面的链接中下载 ISO 镜像文件,并创建一个可启动的 ISO 的启动盘。你可以查看这篇关于如何使用 Etcher 创建可启动的 ISO 的启动盘的指南。记住,这一步骤需要在另一个工作稳定的系统上完成,很明显,这是因为你当前系统是不可用的。
|
||||
|
||||
[下载 arch linux][1]
|
||||
|
||||
- 你需要知道在 **哪个分区上安装了你的 Arch Linux** 。这是关键的一步。如果你不知道,你可以使用 GParted 来找出来。或者在你的 Grub 菜单中查看,或你可以运行下面的命令来找出来。这将列出你所有的磁盘分区、大小和标签。
|
||||
|
||||
```
|
||||
sudo lsblk -o name,mountpoint,label,size,uuid
|
||||
```
|
||||
|
||||
- 在完成后,插入 USB 设备,并设置从中启动。你应该会在 LIVE 介质中看到 Arch Linux 提示符。
|
||||
|
||||
- 现在,使用下面的命令挂载 Arch Linux 分区。将 `/dev/sda3` 更改为你实际对应的分区。
|
||||
|
||||
```
|
||||
mount /dev/sda3 /mnt
|
||||
arch-chroot /mnt
|
||||
```
|
||||
|
||||
- arch-chroot 命令将在终端中挂载你的 Arch Linux 分区,如此,以便使用你的 Arch 用户名和密码来登录系统。现在,取决于你在这个阶段的各种需要,你可能有下面的一些选项。
|
||||
|
||||
- 你可以前往 /home 文件夹来备份你的数据。为防止不能正常的解决重大问题。你可以复制这些文件到一块外部的 USB 磁盘或其它的分区。
|
||||
|
||||
- 验证日志文件,尤其是 pacman 日志,因为升级一些软件包可能会导致系统不稳定工作,例如,图形驱动程序或其它一些驱动程序。依据日志的记载,如果你有需要的话,你可以降级一些具体指定的软件包。
|
||||
- 你可以使用下面的命令来查看 pacman 日志文件的最新的 200 行日志,来找出一些引起失败的项或依赖项的缺失。
|
||||
|
||||
```
|
||||
tail -n 200 /var/log/pacman.log | less
|
||||
```
|
||||
|
||||
- 上面的命令向你给出 pacman.log 文件的末尾处的 200 行来用于查对。现在,仔细检查自你成功启动以来更新了哪些软件包。
|
||||
|
||||
- 并且,在某个地方下,记录下软件包的名称和版本。你可以尝试逐个降级软件包,或者,如果你认为是某个特定的软件包造成的问题话,你可以使用 pacman 命令的 -U 开关选项来降级它。
|
||||
|
||||
```
|
||||
pacman -U <package name>
|
||||
```
|
||||
|
||||
- 在降级后(如果有一些软件包进行降级的话),你可以运行下面的命令来启动你的 Arch 系统。
|
||||
|
||||
```
|
||||
exec /sbin/init
|
||||
```
|
||||
|
||||
- 检查你的显示管理器的状态,并检查其是否有一些错误。有时,显示管理器会产生不能与 <ruby> X 服务器 <rt> X Server </rt></ruby> 通信的问题。例如,如果你正在使用 lightdm ,那么你可以通过下面的命令来检查它的状态。
|
||||
|
||||
```
|
||||
systemctl status lightdm
|
||||
```
|
||||
|
||||
- 或者,你可能希望通过下面的命令来启动它并检查错误。
|
||||
|
||||
```
|
||||
lightdm --test-mode --debug
|
||||
```
|
||||
|
||||
- 这里是一个 lightdm 故障的示例,它导致了 Arch 系统不稳定工作。
|
||||
|
||||
![lightdm - test mode][2]
|
||||
|
||||
- 或者,使用 `startx` 来启动 X 服务器 进行检查。
|
||||
|
||||
- 根据我的经验,如果你在上面的命令中看到这些错误,尝试安装另外一个显示管理器,例如, **sddm** 并启动它。它可以消除错误。
|
||||
|
||||
- 根据你的系统的实际状态来尝试上面的步骤,并解决重大问题。针对特定的显示管理器 lightdm 的错误,我们有一份[指南][3],你可能会想查看它。
|
||||
- 如果你正在使用 sddm ,那么,检查 [这些解决重大问题的步骤][4] 是否工作。
|
||||
|
||||
### 结束语
|
||||
|
||||
每个系统安装都是不同的。上面的步骤不一定适合你。但是,它值得一试,根据我的经验,它是工作的。如果它工作,对你有好处。不管怎样,在下面的评论区让我知晓它是如何进行的。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/recover-arch-linux/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[robsean](https://github.com/robsean)
|
||||
校对:[校对者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://archlinux.org/download/
|
||||
[2]: https://www.debugpoint.com/wp-content/uploads/2021/03/lightdm-test-mode.jpg
|
||||
[3]: https://www.debugpoint.com/2021/03/failed-to-start-lightdm/
|
||||
[4]: https://wiki.archlinux.org/title/SDDM#Troubleshooting
|
Loading…
Reference in New Issue
Block a user