diff --git a/published/20210618 5 more reasons to run Kubernetes in your Linux homelab.md b/published/20210618 5 more reasons to run Kubernetes in your Linux homelab.md new file mode 100644 index 0000000000..92af1e9e3a --- /dev/null +++ b/published/20210618 5 more reasons to run Kubernetes in your Linux homelab.md @@ -0,0 +1,100 @@ +[#]: subject: (5 more reasons to run Kubernetes in your Linux homelab) +[#]: via: (https://opensource.com/article/21/6/kubernetes-linux-homelab) +[#]: author: (Seth Kenlon https://opensource.com/users/seth) +[#]: collector: (lujun9972) +[#]: translator: (chai001125) +[#]: reviewer: (wxy) +[#]: publisher: (wxy) +[#]: url: (https://linux.cn/article-15278-1.html) + +在你的 Linux 家庭实验室上运行 Kubernetes 的 5 个理由 +====== + +> Kubernetes 的优势不仅在于它能够做什么,还在于知道它能为你做什么。 + +![][0] + +在 [树莓派家庭实验室上运行 Kubernetes 的 5 个理由][2] 这篇文章中,我解释了为什么推荐在家里使用 Kubernetes。其中的理由相对来说会有点随意,并且主要于关注结果。除了 Kubernetes 好用的功能之外,还有其他几个应将 Kubernetes 包含在你自己的计算机的理由。 + +(LCTT 译注:家庭实验室Homelab 指的是安置在你家里的一个服务器或者多服务器的组合配置。在之上托管了多个服务和虚拟系统,以此来进行测试、开发,或者提供家庭功能用途。) + +### 1、Kubernetes 是基于 Linux 而建立的 + +![T-shirt reading "Containers are Linux"][3] + +Kubernetes 有很高的知名度。对于一些人来说,Kubernetes 是一种神秘技术,有一个不好念的名字;而对另一些人来说,Kubernetes 就好像是牧羊犬放牧羊群一样,可以帮助他们管理过多的容器;对于其它人来说,Kubernetes 是一种 cloud 的操作系统,是 实效云开发 effective cloud development 的一个有用的界面;对于大多数人来说,Kubernetes 可能是他们从未听说过的后端软件。正如人们所想的那样,Kubernetes 具有所有这些能力,甚至有更多的功能。 + +并非每个人都以相同的方式使用 Kubernetes,但如果你主要的工作是系统管理,你会发现 Kubernetes _只是又一个 Linux 命令_。 + +我有一件 T 恤,上面写着 “容器就是 Linux Containers are Linux ”,它的意思是显而易见的。容器技术使用 cgroup,来运行包含一个或一组应用程序的最小 Linux 操作系统镜像。当你运行容器时,实际上你就是在运行 Linux。虽然 Kubernetes 能在许多平台上使用,但 Kubernetes 管理的是 Linux 容器。当你通过终端与 Kubernetes 交互时,就像是使用 Linux:有命令、选项、参数和语法。运行 Kubernetes 的 `kubeadm` 或(在 OKD 或 OpenShift 上)运行 `oc` 命令,你会感觉到很熟悉,是因为它们的工作方式与你习惯使用的任何其他 Linux 命令一样。开始时看似陌生的东西很快就会变得自然,任何有兴趣在终端上花时间的 Linux 用户都可以在 Kubernetes 中探索到许多有趣的东西。 + +### 2、Kubernetes 很灵活 + +在过去,Kubernetes 有点死板,因为从本质上来说,它仅能支持一个 容器运行时 container runtime 。这个规定非常严格,以至于今天需要一个 硬编码的垫片 hardcoded shim ,才能绕过这个遗留问题。幸运的是,如今 Kubernetes 已经变得足够灵活,可以满足管理员的许多不同需求了。[Podman][5] 和 [CRI-O][6] 可用作于容器引擎,它们都可以与 [systemd][7] 集成(这是因为 Kubernetes 的底层都是 Linux)。你可以自己选择 Kubernetes 所使用的文件系统、集群大小和构造、监控工具、镜像、编程语言等等配置。甚至现在有些人说 Kubernetes 有 _太多_ 的选择了。 + +### 3、学习 Kubernetes 有助于个人发展 + +容器是一个硕果累累的事物,它们会快速地成倍增长,这就是它的设计。容器旨在扩展,它们通过生成克隆来扩展。将容器分组(称为 “容器荚pod”),并自动管理容器荚的生命周期,这就是 Kubernetes 运用的方式。它正在改变服务器的运行方式。 + +你可能不需要无限扩展的容器集合,也不需要任何东西来帮助你管理正运行的一或两个容器。但是,如果你希望受益于处理容器荚的能力,那么 Kubernetes 正是你需要学习的工具。随着越来越多的公司和组织走向全球,拥抱 [数字化转型][8],Kubernetes 正在成为 IT 领域的必备技能。如果你想要在这个领域中发展,那么现在开始学习 Kubernetes 并熟悉它的常见问题及其解决方案,将会是一项很好的投资。 + +### 4、Kubernetes 让容器更有意义 + +你可能还记得几年前,当开源项目刚开始将它们的代码作为容器镜像分发时,对于许多人来说,容器这一概念是令人费解的:没有多少系统管理员真正理解 [容器是什么][9],或者明白容器的边界在哪里、如何进入容器,以及为什么数据不能存在于容器内。 + +现在,IT 界(包括开发人员在内)都对容器的概念都十分熟悉了。对于现代的 [CI/CD 工作流程][10] 来说,交付给容器十分有意义。不过,对于系统管理员来说,容器的优势如下:安装容器(理论上)比等待发行版更新其软件包更为容易,而且容器可以扩展。然而,在你使用 Kubernetes 之前,你很可能都不会真正地感受到这些好处。当你开始使用 Kubernetes 和相关工具管理容器之前,持续交付容器的好处和容器的扩展能力可能只是你从文章里面读过的想法。将容器集成到你管理服务器的方式中,你会突然明白 Kubernetes 中令人兴奋的是什么。 + +![Apache JMeter][11] + +你可以试试看这个最基本的测试:只需在容器中启动你最喜欢的 Web 服务器,创建一个容器荚,然后使用来自 [Apache JMeter][12] 的流量访问你的服务器,然后观察容器响应。 + +### 5、Kubernetes 是云原生的 + +如果你主要做的是软件开发,而不是系统管理,那么 Kubernetes 也是 网页应用程序 web apps 的一个很好的平台。我们现在都在使用网页应用程序,尽管大多数人只是将它们视为 “网站 website ”。网络拥有庞大的用户群,因此通过浏览器提供开源的应用程序是非常有意义的。有一些很棒的开源应用程序在网络上运行,其中许多的应用程序都以容器的形式分发的,它们可以支持简单的安装和持续的用户体验。 + +### Kubernetes 的其他优势:Kubernetes 很有意思 + +你还记得你还是 Linux 新手的时候吗?对于一些人来说,那可能是几十年前的事了,而对于其他人来说,可能是不久的过去。不过,对于所有人来说,学习一项新事物会是一个有趣的挑战。如果你达到了认为 “Linux 的安装与其说是一个挑战,不如说是一个麻烦” 的程度,那么你可以尝试一下构建一个 Kubernetes 集群。它会让你回忆起你忘记的各种概念:如何修改纯文本(特别是 [YAML][13] 格式的)配置文件,如何配置网络接口和网络,如何路由流量,知道一个后端相对于另一个后端的优缺点,在 `--dry-run` 测试之后运行 `--dry-run` 测试,试探性地按回车键来确定你是否做对了。老实说,使用 Kubernetes 很有趣。 + +如果你想构建自己的基础架构,没有什么比构建你自己的 Kubernetes 集群更好的了。Kubernetes 集群将会为你打开一个全新的世界。你很快就会成为一名云架构师,学会完善你的开放云,在容器中安装令人惊叹的开源 Web 应用程序,也能为你的家人和朋友提供访问权限。 + +你自己就能得到解决方案。这真是太棒啦。 + +### 快来试试看 Kubernetes 吧 + +对 Kubernetes 的初学者来说,Kubernetes 似乎很难快速上手,因为 Kubernetes 是一个新的工具,会让你感到有点害怕,而且它还需要云服务。但是,以下有几种方法可以让你开始 Kubernetes 体验。 + +首先,安装 [Minikube][14] 或 [Minishift][14]。这两个工具都允许你在自己的计算机上运行 Kubernetes 的本地实例。虽然这种方式比不上“构建一个集群并与你的朋友共享”那么令人满意,但它是一种让你熟悉 Kubernetes 环境、命令和工具包的很好且安全的方式。 + +当你准备进一步研究 Kubernetes 后,请进一步阅读 Chris Collins 的《[使用树莓派构建 Kubernetes 集群][15]》 的文章。之后,再下载我们的免费电子书 《[在你树莓派家庭实验室上运行 Kubernetes][16]》。在不知不觉中,你会发现自己也明白了“容器就是 Linux”的含义。 + +-------------------------------------------------------------------------------- + +via: https://opensource.com/article/21/6/kubernetes-linux-homelab + +作者:[Seth Kenlon][a] +选题:[lujun9972][b] +译者:[chai001125](https://github.com/chai001125) +校对:[wxy](https://github.com/wxy) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://opensource.com/users/seth +[b]: https://github.com/lujun9972 +[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/wfh_work_home_laptop_work.png?itok=VFwToeMy (Working from home at a laptop) +[2]: https://opensource.com/article/20/8/kubernetes-raspberry-pi +[3]: https://opensource.com/sites/default/files/uploads/containers-are-linux.jpg (T-shirt reading "Containers are Linux") +[4]: https://creativecommons.org/licenses/by-sa/4.0/ +[5]: http://podman.io +[6]: http://cri-o.io +[7]: https://opensource.com/article/21/5/systemd +[8]: https://enterprisersproject.com/what-is-digital-transformation +[9]: https://opensource.com/article/18/11/behind-scenes-linux-containers +[10]: https://opensource.com/article/18/8/what-cicd +[11]: https://opensource.com/sites/default/files/uploads/jmeter.png (Apache JMeter) +[12]: https://jmeter.apache.org +[13]: https://www.redhat.com/sysadmin/yaml-beginners +[14]: https://opensource.com/article/18/10/getting-started-minikube +[15]: https://opensource.com/article/20/6/kubernetes-raspberry-pi +[16]: https://opensource.com/downloads/kubernetes-raspberry-pi +[0]: https://img.linux.net.cn/data/attachment/album/202211/22/000124imal02j2yollqbqj.jpg \ No newline at end of file diff --git a/published/20221104.3 ⭐️ How to Install Latest LibreOffice in Ubuntu and other Linux.md b/published/20221104.3 ⭐️ How to Install Latest LibreOffice in Ubuntu and other Linux.md new file mode 100644 index 0000000000..179b548be1 --- /dev/null +++ b/published/20221104.3 ⭐️ How to Install Latest LibreOffice in Ubuntu and other Linux.md @@ -0,0 +1,135 @@ +[#]: subject: "How to Install Latest LibreOffice in Ubuntu and other Linux" +[#]: via: "https://www.debugpoint.com/install-latest-libreoffice-ubuntu-linux/" +[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" +[#]: collector: "lkxed" +[#]: translator: "littlebirdnest" +[#]: reviewer: "wxy" +[#]: publisher: "wxy" +[#]: url: "https://linux.cn/article-15277-1.html" + +如何在 Ubuntu 中安装最新的 LibreOffice +====== + +![][0] + +> 在 Ubuntu 和其他 Linux 中安装最新的 LibreOffice 版本的快速指南。 + +自由开源的办公套件 LibreOffice 有两个版本:社区版和企业版。“社区” 版是为那些希望获得最新的尖端软件技术的早期采用者准备的。而 “企业” 版本更加稳定,可能不包括所有的最新功能,但它是生产环境和专业工作的理想选择。 + +### 在 Ubuntu 和其他 Linux 中安装最新的 LibreOffice + +#### 1、删除预安装的 LibreOffice + +Ubuntu 和其他的 Linux 发行版带有预安装的 LibreOffice。这可能不是最新的,这是因为发行版有特定的发行周期。在进行新安装之前,你可以通过以下命令删除 Ubuntu 及其衍生发行版中的的旧版本。 + +打开一个终端并运行以下命令,以删除 Ubuntu 和相关发行版中的已安装的 LibreOffice。对于其他发行版,你可以使用发行版的软件包管理器将其删除。 + +``` +sudo apt remove –purge libreoffice* +sudo apt autoclean +sudo apt autoremove +``` + +然后重启以确保一切正常(尽管你也可以跳过这一步)。 + +#### 2、从网站上下载安装 + +前往 [官方下载页面][1]. 并通过从下拉菜单中选择类型下载 “最新的” 版本。对于 Ubuntu 和其他衍生产品,请选择 .deb 文件。 + +![LibreOffice download and install from official website][2] + +下载后,提取文件;你应该看到下面的所有软件包。 + +![Extracted LibreOffice DEB files][3] + +在提取文件的位置打开终端,并按顺序运行以下命令。首先,你需要安装 ure 包,其次是核心包,然后是所有的基本包。最后,就是主要的 LibreOffice 软件包。下面是一组典型的命令。你需要更改为具体版本的版本号。 + +``` +sudo dpkg -i libobasis7.0-ure_7.0.4.2-2_amd64.deb +sudo dpkg -i libobasis7.0-core_7.0.4.2-2_amd64.deb +sudo dpkg -i libobasis7.0* +``` + +``` +sudo dpkg -i libreoffice7.0* +``` + +如果你使用的是 Fedora Linux 或 Red Hat Linux,请按照上述相同的顺序使用 [dnf 命令][4]。 + +![Install LibreOffice via dpkg][5] + +等待安装完成。完成后,你可以通过应用程序菜单找到 LibreOffice。 + +![Latest LibreOffice in Menu][6] + +这应该完成安装最新 LibreOffice 的步骤。如果你不想遵循上述方法,请参阅以下选项。 + +### 通过 PPA 安装 + +如果你想通过 PPA 安装它,请按照以下步骤操作。确保在上面的第 1 步中删除现有的 LibreOffice。 + +``` +sudo add-apt-repository ppa:libreoffice/ppa +``` + +最后,运行以下命令从这个官方 PPA 安装最新的 LibreOffice 5.4 系列。 + +``` +sudo apt update +sudo apt install libreoffice +``` + +安装后,你可以通过 Dash 搜索启动 LibreOffice。 + +![LibreOffice 5.4.2 Running in Ubuntu][7] + +### 通过 Snap 和 Flatpak 安装 + +如果你是 Linux 用户,你可以尝试 LibreOffice 独立的可执行文件,它在 Snap 或 Flatpak 等沙箱中运行。 + +要通过 [Flatpak][8] 安装 LibreOffice ,请访问 [这个页面][9] 进行设置,然后运行以下命令进行安装: + +``` +flatpak install flathub org.libreoffice.LibreOffice +``` + +同样,对于 [Snap][10] 版本,使用以下命令进行安装: + +``` +sudo snap install libreoffice +``` + +### 如何升级到最新的 LibreOffice 版本? + +如果你不想删除 LibreOffice 但想升级到最新版本,请阅读我们下面的完整指南。 + +> **[在 Ubuntu、Linux Mint 和 Windows 中升级到最新的 LibreOffice][11]** + +如果你在安装最新的 LibreOffice 时遇到问题,请随时留言。 + +-------------------------------------------------------------------------------- + +via: https://www.debugpoint.com/install-latest-libreoffice-ubuntu-linux/ + +作者:[Arindam][a] +选题:[lkxed][b] +译者:[littlebirdnest](https://github.com/littlebirdnest) +校对:[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.libreoffice.org/download/download/ +[2]: https://www.debugpoint.com/wp-content/uploads/2017/10/LibreOffice-download-and-install-from-official-website.jpg +[3]: https://www.debugpoint.com/wp-content/uploads/2017/10/Extracted-LibreOffice-DEB-files.jpg +[4]: https://www.debugpoint.com/dnf-commands-examples/ +[5]: https://www.debugpoint.com/wp-content/uploads/2017/10/Install-LibreOffice-via-dpkg.jpg +[6]: https://www.debugpoint.com/wp-content/uploads/2017/10/Latest-LibreOffice-in-Menu.jpg +[7]: https://www.debugpoint.com/wp-content/uploads/2017/10/LibreOffice-5.4.2-Running-in-Ubuntu-.png +[8]: https://flathub.org/apps/details/org.libreoffice.LibreOffice +[9]: https://flatpak.org/setup/ +[10]: https://snapcraft.io/libreoffice +[11]: https://www.debugpoint.com/libreoffice-upgrade-update-latest/ +[12]: https://www.debugpoint.com/libreoffice-upgrade-update-latest/embed/#?secret=KINquNxuYI#?secret=FGij1s6Mfc +[0]: https://img.linux.net.cn/data/attachment/album/202211/21/232133g8pmpgssszv6p1v8.jpg \ No newline at end of file diff --git a/sources/tech/20221015.0 ⭐️ How to Enable and Access USB Drive in VirtualBox.md b/sources/tech/20221015.0 ⭐️ How to Enable and Access USB Drive in VirtualBox.md deleted file mode 100644 index 3570d136cb..0000000000 --- a/sources/tech/20221015.0 ⭐️ How to Enable and Access USB Drive in VirtualBox.md +++ /dev/null @@ -1,108 +0,0 @@ -[#]: subject: "How to Enable and Access USB Drive in VirtualBox" -[#]: via: "https://www.debugpoint.com/enable-usb-virtualbox/" -[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" -[#]: collector: "lkxed" -[#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -How to Enable and Access USB Drive in VirtualBox -====== -Here’s a precise guide on how you can enable USB in Oracle VirtualBox. - -![][1] - -When you work in a Virtual machine environment, the USB is usually plugged into the host system. But it is a little difficult to access that USB content from the guest system. - -In VirtualBox, you need to install some extensions and enable some settings to access USB in. Here’s how. - -This article assumes that you have already installed VirtualBox and also installed some Linux distribution or operating system inside it. - -If not, check out the [articles here][2]. - -### Enable USB in VirtualBox 7.0 - -#### Install VirtualBox Extension Pack - -* Open the VirtualBox download page and download the VirtualBox Extension pack for all supported platforms using [this link][3]. - -![Download the extension pack][4] - -* Then Click on `File > Tools > Extension Pack Manager.` - -* Click on the `Install` button in the toolbar and select the downloaded .vbox-extpak file. - -* Hit `Install`. Accept the terms, and give the admin password for the installation. - -![install extension pack manager][5] - -![install extension pack manager after accepting terms][6] - -* After successful installation, you can see it in the installed list. - -* Restart your host system. Restarting is mandatory. - -#### Enable USB in the guest box - -* Plugin the USB stick into your host system – which you want to access from the guest virtual machine. - -* Start VirtualBox and right-click on the VM name where you want to enable USB. Select Settings. - -![Launch settings for the virtual machine][7] - -* On the left pane, click on USB. Then select the controller version. For example, you can select USB 3.0. Then click on the small plus icon to add a USB filter. - -* In this list, you should see your USB stick name (which you plugged in). For this example, I can see my Transcend Jetflash drive, which I plugged in. - -* Select it and press OK. - -![Select the USB stick][8] - -* Now, start your virtual machine. Open the file manager, and you should see the USB is enabled and mounted on your virtual machine. - -* In this demonstration, you can see the Thunar file manager of my [Arch-Xfce][9] virtual machine is showing the contents of my USB stick. - -![Enabling USB and accessing contents from VirtualBox][10] - -### Usage notes - -Now, here are a couple of things you should remember. - -* When you plug in the USB in the host system, keep it mounted. But do not open or access any file before launching the virtual machine. - -* Once you start your virtual machine, the USB will be unmounted in the host system and auto-mounted in the guest system, i.e. your virtual machine. - -* After you finish with a USB stick, ensure to eject or unmount it inside a virtual machine. Then it will be accessible again inside your host system. - -### Wrapping Up - -VirtualBox is a powerful utility and provides easy-to-use features to extensively set up your Virtual Machines. The steps are straightforward, and make sure your USB stick is detected properly in the host system to work. - -Also, remember that USB stick detection via extension pack is not related to VirtualBox guest addition. They are completely unrelated and provide separate functions. - -Finally, let me know if this guide helps you in the comment box. - --------------------------------------------------------------------------------- - -via: https://www.debugpoint.com/enable-usb-virtualbox/ - -作者:[Arindam][a] -选题:[lkxed][b] -译者:[CoWave-Fall](https://github.com/CoWave-Fall) -校对:[校对者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/wp-content/uploads/2022/10/usb-vbox-1024x576.jpg -[2]: https://www.debugpoint.com/tag/virtualbox -[3]: https://www.virtualbox.org/wiki/Downloads -[4]: https://www.debugpoint.com/wp-content/uploads/2022/10/Download-the-extension-pack.jpg -[5]: https://www.debugpoint.com/wp-content/uploads/2022/10/install-extension-pack-manager.jpg -[6]: https://www.debugpoint.com/wp-content/uploads/2022/10/install-extension-pack-manager-after-accepting-terms.jpg -[7]: https://www.debugpoint.com/wp-content/uploads/2022/10/Launch-settings-for-the-virtual-machine.jpg -[8]: https://www.debugpoint.com/wp-content/uploads/2022/10/Select-the-USB-stick.jpg -[9]: https://www.debugpoint.com/xfce-arch-linux-install-4-16/ -[10]: https://www.debugpoint.com/wp-content/uploads/2022/10/Enabling-USB-and-accessing-contents-from-VirtualBox.jpg diff --git a/sources/tech/20221111.2 ⭐️⭐️ How to Install Elementary OS’s Pantheon Desktop in Arch Linux.md b/sources/tech/20221111.2 ⭐️⭐️ How to Install Elementary OS’s Pantheon Desktop in Arch Linux.md deleted file mode 100644 index b44c292758..0000000000 --- a/sources/tech/20221111.2 ⭐️⭐️ How to Install Elementary OS’s Pantheon Desktop in Arch Linux.md +++ /dev/null @@ -1,176 +0,0 @@ -[#]: subject: "How to Install Elementary OS’s Pantheon Desktop in Arch Linux" -[#]: via: "https://www.debugpoint.com/pantheon-arch-linux-install/" -[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" -[#]: collector: "lkxed" -[#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -How to Install Elementary OS’s Pantheon Desktop in Arch Linux -====== - -**Pantheon is the default desktop environment for the elementary OS. This quick guide explains the steps to install the Pantheon desktop environment in Arch Linux.** - -Pantheon is a beautiful desktop environment used by the elementary OS. It is based on GTK3 (GTK4 porting in progress) and Vala and is a nice and clean desktop that provides you with a refined experience of a Linux desktop. - -The desktop is primarily used by the elementary OS. Elementary OS provides a modified version of Pantheon desktop, which is based on the GNOME software base. - -The elementary OS is based on the Ubuntu LTS release. Hence it is super easy to install the Pantheon desktop in ubuntu-based distributions. That means if you want to experience Pantheon without installing elementary OS – it’s just one or two commands to install it in Ubuntu. - -In Fedora, you can also install using group packages. However, a distro called [Ultramarine Linux][1] provides it by default with a Fedora base. - -But, installing Pantheon in Arch Linux requires some work. It is not straightforward with a simple pacman command and won’t work out of the box at all. Some configuration is required and might break your system. - -Here I give you the guideline and steps to install Pantheon Desktop in Arch Linux. - -**Warning:**Things may not go well the first time, so I suggest you do it on a virtual machine before installing it on a physical system. Because installing Pantheon in Arch is not as streamlined as installing GNOME, Xfce, and KDE Plasma desktop in Arch Linux. It requires some additional manual configuration as well. - -Here are the steps to install Pantheon Desktop in Arch Linux. - -### Install Pantheon Desktop in Arch Linux - -#### Step 1: Install Base System - -Make sure you install the Arch Linux base system by following the automated [archinstall script using this guide][2]. If you’re already running an Arch installation, you can skip this step and follow the next step. - -#### Step 2: Update Your System - -Open a terminal in your Arch installation. And make sure the system is up to date by running the below command: - -``` -pacman -Syu -``` - -#### Step 3: Instal yay AUR Helper - -Many packages that are required for Pantheon are not available in the Arch official repository. They are available in Arch User Repo (AUR). Hence you need to install yay for additional packages. Follow [this guide to install yay AUR helper][3]. - -#### Step 4: Install Pantheon Desktop in Arch Linux - -Install the following packages using the below command. These are required packages available in the Arch official repository consisting of all necessary components, wingpanel, icons, and wallpapers. - -- [pantheon][4] -- lightdm-pantheon-greeter -- sound-theme-elementary -- switchboard -- lightdm-gtk-greeter -- elementary-icon-theme -- elementary-wallpapers -- pantheon-applications-menu -- wingpanel-indicator-session -- wingpanel-indicator-datetime - -``` -pacman -S --needed pantheon lightdm-pantheon-greeter sound-theme-elementary switchboard lightdm-gtk-greeter elementary-icon-theme elementary-wallpapers pantheon-applications-menu wingpanel-indicator-session wingpanel-indicator-datetime inter-font firefox -``` - -Install the following packages from the user repository. These are some additional packages that are not available in the Arch official repository. And these might take some time to install. - -- pantheon-session-git -- gnome-settings-daemon-elementary -- pantheon-default-settings -- switchboard-plug-pantheon-tweaks-git -- urutau-icons-git -- pantheon-dock-git - -``` -yay -S pantheon-session-git pantheon-default-settings switchboard-plug-pantheon-tweaks-git urutau-icons-git pantheon-dock-git -``` - -The next step is to install the display server and manager. Use `lightdm` as the display manager for Pantheon in Arch. I tried using other display managers with Pantheon but that didn’t end well. - -``` -pacman -S --needed xorg lightdm -``` - -#### Step 5: Configure - -The default greeter needs some modifications. Run the below command to check the available sessions. - -``` -ls -1 /usr/share/xgreeters -``` - -![greeters list][5] - -Open the lightdm configuration file and change the greeter-session to io.elementary.greeter. - -``` -sudo nano /etc/lightdm/lightdm.conf - -greeter-session=io.elementary.greeter -``` - -Save and close the file (CTRL+O, ENTER and CTRL+X). - -![lightdm conf][6] - -Enable the display manager and network manager in systemd. - -``` -systemctl enable lightdmsystemctl enable NetworkManager -``` - -Reboot the system. - -``` -systemctl reboot -``` - -If all went well, you should see the following login screen (I know, it doesn’t look cool at all, anyway). Change the session from the top dropdown and log in with the username and password. - -![Login screen - Pantheon in Arch][7] - -#### Step 6: Post-Install Configuration - -When I first logged in to my test system, many things didn’t work. Here’s a list of items and their possible solutions. - -a) **Wallpaper**: The wallpaper module seems not to be working at all. So, there was no wallpaper by default. Even the “Change Wallpaper” option is not opening. If you face this, install `dconf` editor and change the wallpaper via the below steps. - -``` -pacman -S --needed dconf-editor -``` - -Then Launch the dconf editor from the menu. Navigate to `"org > gnome > desktop > background > picture-uri"`. Turn off the default value and add the custom value `file:////usr/share/backgrounds/Ashim DSilva.jpg`. You can use any other image as well. Save and close. - -![Change background property using dconf-editor][8] - -b) **Icons**: Change the icons via `Settings > Tweaks.` Then change the icon and cursors to urutau-icons. - -After all the configurations and installation, you should be all set with the Pantheon Desktop in Arch Linux. Here’s a screenshot of my test machine. - -![Pantheon Desktop in Arch Linux][9] - -### Closing Notes - -I hope this guide helps you eventually install the Pantheon desktop in Arch Linux. It took me a couple of days to finally able to fit the pieces together and make them work. - -Although some small features are still not working, a workable Pantheon desktop is still available. - -The only thing that surprises me is the performance of Pantheon in Arch. The elementary OS installation is not that fast in my same test machine. But the Pantheon base is faster in Arch than a vanilla elementary OS. However, if you would like Pantheon, give it a go. - -If you face any errors, let me know using the comment box below. - --------------------------------------------------------------------------------- - -via: https://www.debugpoint.com/pantheon-arch-linux-install/ - -作者:[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/ultramarine-linux-36/ -[2]: https://www.debugpoint.com/archinstall-guide/ -[3]: https://www.debugpoint.com/install-yay-arch/ -[4]: https://wiki.archlinux.org/index.php/Pantheon -[5]: https://www.debugpoint.com/wp-content/uploads/2021/02/greeters-list.jpg -[6]: https://www.debugpoint.com/wp-content/uploads/2021/02/lightdm-conf.jpg -[7]: https://www.debugpoint.com/wp-content/uploads/2021/02/Login-screen-Pantheon-in-Arch.jpg -[8]: https://www.debugpoint.com/wp-content/uploads/2021/02/Change-background-property-using-dconf-editor.jpg -[9]: https://www.debugpoint.com/wp-content/uploads/2021/02/Pantheon-Desktop-in-Arch-Linux-1.jpg diff --git a/sources/tech/20221111.5 ⭐️⭐️ How to switch from Twitter to Mastodon.md b/sources/tech/20221111.5 ⭐️⭐️ How to switch from Twitter to Mastodon.md index de816dc913..80cf78e2dd 100644 --- a/sources/tech/20221111.5 ⭐️⭐️ How to switch from Twitter to Mastodon.md +++ b/sources/tech/20221111.5 ⭐️⭐️ How to switch from Twitter to Mastodon.md @@ -2,7 +2,7 @@ [#]: via: "https://opensource.com/article/22/11/switch-twitter-mastodon" [#]: author: "Jessica Cherry https://opensource.com/users/cherrybomb" [#]: collector: "lkxed" -[#]: translator: " " +[#]: translator: "geekpi" [#]: reviewer: " " [#]: publisher: " " [#]: url: " " diff --git a/translated/tech/20210618 5 more reasons to run Kubernetes in your Linux homelab.md b/translated/tech/20210618 5 more reasons to run Kubernetes in your Linux homelab.md deleted file mode 100644 index 7f6f78304c..0000000000 --- a/translated/tech/20210618 5 more reasons to run Kubernetes in your Linux homelab.md +++ /dev/null @@ -1,99 +0,0 @@ -[#]: subject: (5 more reasons to run Kubernetes in your Linux homelab) -[#]: via: (https://opensource.com/article/21/6/kubernetes-linux-homelab) -[#]: author: (Seth Kenlon https://opensource.com/users/seth) -[#]: collector: (lujun9972) -[#]: translator: (chai001125) -[#]: reviewer: ( ) -[#]: publisher: ( ) -[#]: url: ( ) - -在你的 Linux 主机上运行 Kubernetes 的 5 个理由 -====== - ->Kubernetes 的优势不仅在于它能够做什么,还在于知道它能为你做什么。 - -![Working from home at a laptop][1] - -在 [Raspberry Pi 家庭实验室 homelab 上运行 Kubernetes 的 5 个理由][2] 这篇文章中,我解释了为什么推荐在家里使用 Kubernetes。其中的理由相对来说会有点随意,并且主要于关注结果。除了 Kubernetes 好用的功能之外,还有其他几个应将 Kubernetes 包含在你自己的计算机的理由。 - -(LCTT译注:Homelab 指的是安置在你家里的一个服务器或者多服务器的组合配置。在之上托管了多个服务和虚拟系统,以此来进行测试、开发,或者提供家庭功能用途。) - -### 1、Kubernetes 是基于 Linux 而建立的 - -![T-shirt reading "Containers are Linux"][3] - -Kubernetes 有很高的知名度。对于一些人来说,Kubernetes 是一种难以言说的神秘技术;对其他人来说,Kubernetes 就好像是牧羊犬放牧羊群一样,可以帮助他们管理过多的容器;对于另一些人来说,Kubernetes 是一种 cloud 的操作系统,是 实效云开发 effective cloud development 的一个有用的界面;对于大多数人来说,Kubernetes 可能是他们从未听说过的后端软件。正如人们所想的那样,Kubernetes 具有所有这些能力,甚至有更多的功能。 - -并非每个人都以相同的方式使用 Kubernetes,但如果你主要的工作是系统管理,你会发现 Kubernetes _只是另一个 Linux 命令_。 - -我有一件 T 恤,上面写着 “容器就是 Linux” Containers are Linux ,它的意思是显而易见的。容器技术使用 cgroups,来运行包含一个或一组应用程序的最小 Linux 操作系统映像。当你运行容器时,实际上你就是在运行 Linux。虽然在许多平台上都能使用 Kubernetes 命令,但 Kubernetes 命令管理的是 Linux 容器。当你通过终端与 Kubernetes 交互时,Kubernetes 命令类似于 Linux 的使用:有命令、选项、参数和语法。运行 Kubernetes 的 `kubeadm` 或(在 OKD 或 OpenShift 上)运行 `oc` 命令,你会感觉到很熟悉,是因为它们的工作方式与你习惯使用的任何其他 Linux 命令一样。开始时看似陌生的东西很快就会变得自然,任何有兴趣花时间在终端上的 Linux 用户都可以在 Kubernetes 中探索到许多有趣的东西。 - -### 2、Kubernetes 很灵活 - -在过去,Kubernetes 有点死板,因为从本质上来说,它仅能支持一个 容器运行时 container runtime 。这个规定非常严格,以至于今天需要一个 硬编码的垫片 hardcoded shim ,才能绕过这个遗留问题。幸运的是,如今 Kubernetes 已经变得足够灵活,可以满足管理员的许多不同需求了。[Podman][5] 和 [CRI-O][6] 可用作于容器引擎,它们都可以与 [systemd][7] 集成(这是因为 Kubernetes 的底层都是 Linux)。你可以自己选择 Kubernetes 所使用的文件系统、集群大小和构造、监控工具、镜像、编程语言等等配置。甚至现在有些人说 Kubernetes 有 _太多_ 的选择了。 - -### 3、学习 Kubernetes 有助于个人发展 - -容器是一个硕果累累的事物,它们会快速地成倍增长。这是设计使然的,容器旨在扩展,它们通过生成克隆来扩展。将容器分组(称为 _pods_),并自动化 Pod 生命周期的管理方式,这就是 Kubernetes 运用的方式。Kubernetes 正在改变服务器的运行方式。 - -你可能不需要无限扩展的容器集合,也不需要任何东西来帮助你管理正运行的一或两个容器。但是,如果你希望受益于处理 Pods 的能力,那么 Kubernetes 正是你需要学习的工具。随着越来越多的公司和组织走向全球,并拥抱 [数字化转型][8],Kubernetes 正在成为 IT 领域的必备技能。如果你想要在这个领域中发展,那么现在开始学习 Kubernetes 并熟悉它的常见问题及其解决方案,将会是一项很好的投资。 - -### 4、Kubernetes 让容器更有意义 - -你可能还记得几年前,当开源项目刚开始将它们的代码作为容器镜像分发时,对于许多人来说,容器这一概念是令人费解的:没有多少系统管理员真正理解 [容器是什么][9],或者明白容器的边界在哪里、如何进入容器,以及为什么数据不能存在于容器内。 - -现在,IT 界(包括开发人员在内)都对容器的概念都十分熟悉了。对于现代的 [CI/CD 工作流程][10] 来说,分发容器十分有意义。不过,对于系统管理员来说,容器的优势如下:安装容器比等待发行版更新其软件包和容器规模,更为容易。然而,在你使用 Kubernetes 之前,你很可能都不会真正地感受到这些好处。当你开始使用 Kubernetes 和相关工具管理容器之前,持续交付容器的好处和容器的扩展能力可能只是你读过的想法。将容器集成到你管理服务器的方式中,你会突然明白 Kubernetes 中令人兴奋的是什么。 - -![Apache JMeter][11] - -你可以试试看这个最基本的测试:只需在容器中启动你最喜欢的 Web 服务器,创建一个 pod,然后使用来自 [Apache JMeter][12] 的流量访问你的服务器,然后观察容器响应。 - -### 5、Kubernetes 是 云原生的 Cloud-native - -如果你主要做的是系统开发,而不是系统管理,那么 Kubernetes 也是 网络应用程序 web apps 的一个很好的平台。我们现在都在使用网络应用程序,尽管大多数人只是将它们视为“网站 website ”。Web 拥有庞大的用户群,因此通过浏览器提供开源的应用程序是非常有意义的。有一些很棒的开源应用程序在网络上运行,其中许多的应用程序都以容器的形式分发的,它们可以支持简单的安装和持续的用户体验。 - -### Kubernetes 的其他优势:Kubernetes 很有意思 - -你还记得你还是 Linux 新手的时候吗?对于一些人来说,那可能是几年前的事了,而对于其他人来说,可能是不久的过去。不过,对于所有人来说,学习一项新事物会是一个有趣的挑战。如果你达到了认为“Linux 的安装是麻烦多于挑战”的程度,那么你可以尝试一下构建一个 Kubernetes 集群。它会让你回忆起你忘记的各种概念:如何破解纯文本(特别是 [YAML][13] 格式的)配置文件,如何配置网络接口和网络,如何路由流量,知道一个后端相对于另一个后端的优缺点,在 `--dry-run` 测试之后运行 `dry-run` 测试,试探性地按 Return 来确定你是否做对了。老实说,使用 Kubernetes 很有趣。 - -如果你想自己构建基础架构,没有什么比构建你自己的 Kubernetes 集群更好的了。Kubernetes 集群将会为你打开一个全新的世界。你很快就会成为一名云架构师,学会完善你的开放云,在容器中安装令人惊叹的开源 Web 应用程序,也能为你的家人和朋友提供访问权限。 - -你自己就能得到解决方案。这真是太棒啦。 - -### 快来试试看 Kubernetes 吧 - -对 Kubernetes 的初学者来说,Kubernetes 似乎很难快速上手,因为 Kubernetes 是一个新的工具,会让你感到有点害怕,而且它还需要云。但是,以下有几种方法可以让你开始 Kubernetes 体验。 - -首先,安装 [Minikube][14] 或 [Minishift][14]。这两个工具都允许你在自己的计算机上运行 Kubernetes 的本地实例。虽然这种方式比不上“构建一个集群并与你的朋友共享”那么令人满意,但它是一种让你熟悉 Kubernetes 环境、命令和工具包的很好且安全的方式。 - -当你准备进一步研究 Kubernetes 后,请进一步阅读 Chris Collins 关于 [使用 Raspberry Pi 构建 Kubernetes 集群][15] 的文章。之后,再下载我们的免费电子书 [在你的 Raspberry Pi 家庭实验室上运行 Kubernetes][16]。在不知不觉中,你会发现自己也明白了“容器就是 Linux”的含义。 - --------------------------------------------------------------------------------- - -via: https://opensource.com/article/21/6/kubernetes-linux-homelab - -作者:[Seth Kenlon][a] -选题:[lujun9972][b] -译者:[chai001125](https://github.com/chai001125) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://opensource.com/users/seth -[b]: https://github.com/lujun9972 -[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/wfh_work_home_laptop_work.png?itok=VFwToeMy (Working from home at a laptop) -[2]: https://opensource.com/article/20/8/kubernetes-raspberry-pi -[3]: https://opensource.com/sites/default/files/uploads/containers-are-linux.jpg (T-shirt reading "Containers are Linux") -[4]: https://creativecommons.org/licenses/by-sa/4.0/ -[5]: http://podman.io -[6]: http://cri-o.io -[7]: https://opensource.com/article/21/5/systemd -[8]: https://enterprisersproject.com/what-is-digital-transformation -[9]: https://opensource.com/article/18/11/behind-scenes-linux-containers -[10]: https://opensource.com/article/18/8/what-cicd -[11]: https://opensource.com/sites/default/files/uploads/jmeter.png (Apache JMeter) -[12]: https://jmeter.apache.org -[13]: https://www.redhat.com/sysadmin/yaml-beginners -[14]: https://opensource.com/article/18/10/getting-started-minikube -[15]: https://opensource.com/article/20/6/kubernetes-raspberry-pi -[16]: https://opensource.com/downloads/kubernetes-raspberry-pi diff --git a/translated/tech/20221015.0 ⭐️ How to Enable and Access USB Drive in VirtualBox.md b/translated/tech/20221015.0 ⭐️ How to Enable and Access USB Drive in VirtualBox.md new file mode 100644 index 0000000000..231302dd62 --- /dev/null +++ b/translated/tech/20221015.0 ⭐️ How to Enable and Access USB Drive in VirtualBox.md @@ -0,0 +1,108 @@ +[#]: subject: "How to Enable and Access USB Drive in VirtualBox" +[#]: via: "https://www.debugpoint.com/enable-usb-virtualbox/" +[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" +[#]: collector: "lkxed" +[#]: translator: "geekpi" +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +如何在 VirtualBox 中启用和访问 USB 驱动器 +====== +这是有关如何在 Oracle VirtualBox 中启用 USB 的指南。 + +![][1] + +当你在虚拟机环境中工作时,USB 通常插入主机系统。但是从访客系统访问 USB 内容有点困难。 + +在 VirtualBox 中,你需要安装一些扩展并启用一些设置才能访问 USB。方法如下。 + +本文假设你已经安装了 VirtualBox,并且还在其中安装了一些 Linux 发行版或操作系统。 + +如果没有,请查看[此处的文章][2]。 + +### 在 VirtualBox 7.0 中启用 USB + +#### 安装 VirtualBox 扩展包 + +* 打开 VirtualBox 下载页面并从[此链接][3]下载适用于所有支持平台的 VirtualBox 扩展包。 + +![下载扩展包][4] + +* 然后单击 `文件 > 工具 > 扩展包管理器`。 + +* 单击工具栏中的`安装`按钮并选择下载的 .vbox-extpak 文件。 + +* 点击`安装`。接受条款,并为安装提供管理员密码。 + +![安装扩展包管理器][5] + +![接受条款后安装扩展包管理器][6] + +* 安装成功后,可以在已安装列表中看到。 + +* 重启主机系统。重启是强制性的。 + +#### 在客户机中启用 USB + +* 将 U 盘插入你的宿主机系统,你希望从虚拟机中访问该系统。 + +* 启动 VirtualBox 并右键单击要启用 USB 的 VM 名称。选择设置。 + +![虚拟机的启动设置][7] + +* 在左窗格中,单击 USB。然后选择控制器版本。例如,你可以选择 USB 3.0。然后单击小加号图标添加 USB 过滤器。 + +* 在此列表中,你应该看到你的 U 盘名称(你插入的)。对于这个例子,我可以看到我插入的 Transcend Jetflash 驱动器。 + +* 选择它并按 OK。 + +![选择 U 盘][8] + +* 现在,启动你的虚拟机。打开文件管理器,你应该会看到 USB 已启用并挂载到你的虚拟机上。 + +* 在此演示中,你可以看到我的 [Arch-Xfce][9] 虚拟机的 Thunar 文件管理器正在显示我的 U 盘中的内容。 + +![启用 USB 并从 VirtualBox 访问内容][10] + +### 使用说明 + +现在,这里有几件事你应该记住。 + +* 当你在主机系统中插入 USB 时,请保持挂载状态。但在启动虚拟机之前不要打开或访问任何文件。 + +* 启动虚拟机后,USB 将在主机系统中卸载并自动挂载到客户机系统中,即你的虚拟机。 + +* 使用完 U 盘后,确保在虚拟机中将其弹出或卸载。然后它将能再从你的宿主机系统内访问。 + +### 总结 + +VirtualBox 是一个功能强大的程序,提供易于使用的功能来设置的你虚拟机。这些步骤很简单,并确保你的 U 盘在主机系统中被正确检测到以正常工作。 + +另外,请记住,通过扩展包检测 U 盘与 VirtualBox 客户端增强包无关。它们完全不相关并提供独立的功能。 + +最后,如果本指南对你有帮助,请在评论栏中告诉我。 + +-------------------------------------------------------------------------------- + +via: https://www.debugpoint.com/enable-usb-virtualbox/ + +作者:[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.debugpoint.com/wp-content/uploads/2022/10/usb-vbox-1024x576.jpg +[2]: https://www.debugpoint.com/tag/virtualbox +[3]: https://www.virtualbox.org/wiki/Downloads +[4]: https://www.debugpoint.com/wp-content/uploads/2022/10/Download-the-extension-pack.jpg +[5]: https://www.debugpoint.com/wp-content/uploads/2022/10/install-extension-pack-manager.jpg +[6]: https://www.debugpoint.com/wp-content/uploads/2022/10/install-extension-pack-manager-after-accepting-terms.jpg +[7]: https://www.debugpoint.com/wp-content/uploads/2022/10/Launch-settings-for-the-virtual-machine.jpg +[8]: https://www.debugpoint.com/wp-content/uploads/2022/10/Select-the-USB-stick.jpg +[9]: https://www.debugpoint.com/xfce-arch-linux-install-4-16/ +[10]: https://www.debugpoint.com/wp-content/uploads/2022/10/Enabling-USB-and-accessing-contents-from-VirtualBox.jpg diff --git a/translated/tech/20221104.3 ⭐️ How to Install Latest LibreOffice in Ubuntu and other Linux.md b/translated/tech/20221104.3 ⭐️ How to Install Latest LibreOffice in Ubuntu and other Linux.md deleted file mode 100644 index 3eaae1e4ba..0000000000 --- a/translated/tech/20221104.3 ⭐️ How to Install Latest LibreOffice in Ubuntu and other Linux.md +++ /dev/null @@ -1,134 +0,0 @@ -[#]: subject: "How to Install Latest LibreOffice in Ubuntu and other Linux" -[#]: via: "https://www.debugpoint.com/install-latest-libreoffice-ubuntu-linux/" -[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" -[#]: collector: "lkxed" -[#]: translator: "littlebirdnest" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -如何在Ubuntu和其他Linux中安装最新的Libreoffice -====== - -**在Ubuntu和其他Linux中安装最新的Libreoffice版本的快速指南。** - -免费和开源的办公套件Libreoffice有两个版本。社区版本和企业版本。社区版本主要是给前期的用户尝鲜,有较前沿的技术. 企业版本较为稳定但不会包括最新的功能,是生产环境和专业工作的最佳选择 - -### 在Ubuntu和其他Linux中安装最新的Libreoffice - -#### 1.删除预安装的libreoffice - -ubuntu和其他linux,带预安装的Libreoffice。这可能不是最新的,因为发行版的发行周期是之前的版本.但是,在进行新安装之前,您可以通过以下命令删除Ubuntu及其相关的旧版本: - -打开一个终端并运行以下命令,以删除Ubuntu和相关分布中的已安装的Libreoffice。对于其他人,您可以使用Distro的软件包管理器将其删除。 - -``` -sudo apt remove –purge libreoffice* -sudo apt autoclean -sudo apt autoremove -``` - -然后重启以确保一切正常(你也可以跳过) - -#### 2. 从网站上下载安装 - -前往[官方下载页面][1]. 并通过从下拉菜单中选择类型下载“Fresh”版本。对于Ubuntu和其他导数,请选择.deb文件。 - -![LibreOffice download and install from official website][2] - -下载后,提取文件;您应该看到下面的所有软件包。 - -![Extracted LibreOffice DEB files][3] - -下载解压后y,在提取文件的位置打开终端并按顺序运行以下命令。首先,你需要安装 ure 包。第二个是核心包,然后是所有基本包。最后,就是主要的 LibreOffice 软件包。下面是主要一些的命令。但是您需要更具体版本的版本号。 - -``` -sudo dpkg -i libobasis7.0-ure_7.0.4.2-2_amd64.deb -sudo dpkg -i libobasis7.0-core_7.0.4.2-2_amd64.deb -sudo dpkg -i libobasis7.0* -``` - -``` -sudo dpkg -i libreoffice7.0* -``` - -如果您使用的是 Fedora Linux 或 Red Hat Linux,请按照上述相同的顺序使用[dnf 命令][4] - -![Install LibreOffice via dpkg][5] - -等待安装完成。完成后,您可以通过应用程序菜单找到 LibreOffice。 - -![Latest LibreOffice in Menu][6] - -这应该完成安装最新 LibreOffice 的步骤。如果您不想遵循上述方法,请参阅以下选项。 - -#### 通过 PPA 安装 - -如果您想通过 PPA 安装它,请按照以下步骤操作。确保在上面的第 1 步中删除现有的 LibreOffice。 - -``` -sudo add-apt-repository ppa:libreoffice/ppa -``` - -最后,运行以下命令从这个官方 PPA 安装最新的 LibreOffice 5.4 系列。 - -``` -sudo apt update -sudo apt install libreoffice -``` - -安装后,您可以通过 Dash 搜索启动 LibreOffice。 - -![LibreOffice 5.4.2 Running in Ubuntu][7] - -#### 通过 Snap 和 Flatpak 安装 - -如果您是 Linux 用户,您可以尝试 LibreOffice 独立的可执行文件,它在 Snap 或 Flatpak 等沙箱中运行。 - -- 要通过[Flatpak][8]安装 LibreOffice ,请访问this page][9] 进行设置,然后运行以下命令进行安装 - -``` -flatpak install flathub org.libreoffice.LibreOffice -``` - -- 同样,对于[Snap version][10],使用以下命令进行安装。 - -``` -sudo snap install libreoffice -``` - -### 如何升级到最新的 LibreOffice 版本? - -如果您不想删除 LibreOffice 但想升级到最新版本,请阅读我们下面的完整指南。 - -> [在 Ubuntu、Linux Mint 和 Windows 中升级到最新的 LibreOffice[11] - -![“在 Ubuntu、Linux Mint 和 Windows 中升级到最新的 LibreOffice” — DebugPoint.com][12] - -如果您在安装最新的 LibreOffice 时遇到问题,请随时发表评论。 - --------------------------------------------------------------------------------- - -via: https://www.debugpoint.com/install-latest-libreoffice-ubuntu-linux/ - -作者:[Arindam][a] -选题:[lkxed][b] -译者:[littlebirdnest](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.libreoffice.org/download/download/ -[2]: https://www.debugpoint.com/wp-content/uploads/2017/10/LibreOffice-download-and-install-from-official-website.jpg -[3]: https://www.debugpoint.com/wp-content/uploads/2017/10/Extracted-LibreOffice-DEB-files.jpg -[4]: https://www.debugpoint.com/dnf-commands-examples/ -[5]: https://www.debugpoint.com/wp-content/uploads/2017/10/Install-LibreOffice-via-dpkg.jpg -[6]: https://www.debugpoint.com/wp-content/uploads/2017/10/Latest-LibreOffice-in-Menu.jpg -[7]: https://www.debugpoint.com/wp-content/uploads/2017/10/LibreOffice-5.4.2-Running-in-Ubuntu-.png -[8]: https://flathub.org/apps/details/org.libreoffice.LibreOffice -[9]: https://flatpak.org/setup/ -[10]: https://snapcraft.io/libreoffice -[11]: https://www.debugpoint.com/libreoffice-upgrade-update-latest/ -[12]: https://www.debugpoint.com/libreoffice-upgrade-update-latest/embed/#?secret=KINquNxuYI#?secret=FGij1s6Mfc diff --git a/translated/tech/20221111.2 ⭐️⭐️ How to Install Elementary OS’s Pantheon Desktop in Arch Linux.md b/translated/tech/20221111.2 ⭐️⭐️ How to Install Elementary OS’s Pantheon Desktop in Arch Linux.md new file mode 100644 index 0000000000..ed4ecc1d09 --- /dev/null +++ b/translated/tech/20221111.2 ⭐️⭐️ How to Install Elementary OS’s Pantheon Desktop in Arch Linux.md @@ -0,0 +1,177 @@ +[#]: subject: "How to Install Elementary OS’s Pantheon Desktop in Arch Linux" +[#]: via: "https://www.debugpoint.com/pantheon-arch-linux-install/" +[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" +[#]: collector: "lkxed" +[#]: translator: "geekpi" +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +如何在 Arch Linux 中安装 Elementary OS 的 Pantheon 桌面 +====== + +**Pantheon 是 Elementary OS 的默认桌面环境。本快速指南解释了在 Arch Linux 中安装 Pantheon 桌面环境的步骤**。 + +Pantheon 是 elementary OS 使用的一个漂亮的桌面环境。它基于 GTK3(GTK4 移植正在进行中)和 Vala,是一个漂亮而干净的桌面,为你提供了一个精致的 Linux 桌面体验。 + +该桌面主要由 elementary OS 使用。Elementary OS 提供了 Pantheon 桌面的修改版,它是基于 GNOME 软件基础的。 + +Elementary OS 是基于 Ubuntu LTS 版本。因此,在基于 ubuntu 的发行版中安装 Pantheon 桌面是超级容易的。这意味着如果你想在不安装 elementary OS 的情况下体验 Pantheon,在 Ubuntu 中这只需要一两个命令就可以安装。 + +在 Fedora 中,你也可以使用组包进行安装。然而,一个以 Fedora 为基础,名为 [Ultramarine Linux][1] 的发行版默认提供了它。 + +但是,在 Arch Linux 中安装 Pantheon 需要一些工作。它不是用简单的 pacman 命令就能直接完成的,而且不能开箱即用。需要一些配置,这可能会破坏你的系统。 + +这里我给你提供了在 Arch Linux 中安装 Pantheon 桌面的指南和步骤。 + +**警告:**第一次可能不顺利,所以我建议你在物理系统上安装前先在虚拟机上进行。因为在 Arch 中安装 Pantheon 并不像在 Arch Linux 中安装 GNOME、Xfce 和 KDE Plasma 桌面那样流畅。它还需要一些额外的手动配置。 + +下面是在 Arch Linux 中安装 Pantheon 桌面的步骤。 + +### 在 Arch Linux 中安装 Pantheon 桌面 + +#### 第 1 步:安装基础系统 + +确保你按照[本指南的自动 archinstall 脚本][2]安装了 Arch Linux 基础系统。如果你已经在完成了 Arch 安装,你可以跳过这一步,按照下一步进行。 + +#### 第 2 步:更新你的系统 + +在你的 Arch 中打开一个终端。并通过运行以下命令确保系统是最新的: + +``` +pacman -Syu +``` + +#### 第 3 步:安装 yay AUR 助手 + +Many packages that are required for Pantheon are not available in the Arch official repository. They are available in Arch User Repo (AUR). Hence you need to install yay for additional packages. Follow [this guide to install yay AUR helper][3]. +Pantheon 所需的许多包在 Arch 官方仓库中不可用。它们存在于 Arch 用户仓库 (AUR) 中。因此你您需要安装 yay 以获得额外的软件包。按照[本指南安装 yay AUR 助手][3]。 + +#### 第 4 步:在 Arch Linux 中安装 Pantheon 桌面 + +使用以下命令安装以下软件包。这些是 Arch 官方仓库中可用的必需软件包,包括所有必要的组件、wingpanel、图标和壁纸。 + +- [pantheon][4] +- lightdm-pantheon-greeter +- sound-theme-elementary +- switchboard +- lightdm-gtk-greeter +- elementary-icon-theme +- elementary-wallpapers +- pantheon-applications-menu +- wingpanel-indicator-session +- wingpanel-indicator-datetime + +``` +pacman -S --needed pantheon lightdm-pantheon-greeter sound-theme-elementary switchboard lightdm-gtk-greeter elementary-icon-theme elementary-wallpapers pantheon-applications-menu wingpanel-indicator-session wingpanel-indicator-datetime inter-font firefox +``` + +从用户仓库安装以下包。这些是 Arch 官方仓库中不可用的一些附加包。这些可能需要一些时间来安装。 + +- pantheon-session-git +- gnome-settings-daemon-elementary +- pantheon-default-settings +- switchboard-plug-pantheon-tweaks-git +- urutau-icons-git +- pantheon-dock-git + +``` +yay -S pantheon-session-git pantheon-default-settings switchboard-plug-pantheon-tweaks-git urutau-icons-git pantheon-dock-git +``` + +下一步是安装显示服务器和管理器。使用 `lightdm` 作为 Arch 中 Pantheon 的显示管理器。我尝试将其他显示管理器与 Pantheon 一起使用,但结果并不理想。 + +``` +pacman -S --needed xorg lightdm +``` + +#### 第 5 步:配置 + +默认欢迎程序需要一些修改。运行以下命令以检查可用会话。 + +``` +ls -1 /usr/share/xgreeters +``` + +![greeters 列表][5] + +打开 lightdm 配置文件并将 greeter-session 更改为 io.elementary.greeter。 + +``` +sudo nano /etc/lightdm/lightdm.conf + +greeter-session=io.elementary.greeter +``` + +保存并关闭文件(CTRL+O、回车 和 CTRL+X)。 + +![lightdm 配置][6] + +在 systemd 中启用显示管理器和网络管理器。 + +``` +systemctl enable lightdmsystemctl enable NetworkManager +``` + +重启系统。 + +``` +systemctl reboot +``` + +如果一切顺利,你应该会看到以下登录屏幕(我知道,它看起来一点也不酷)。从顶部下拉菜单更改会话并使用用户名和密码登录。 + +![Pantheon 在 Arch 中的登录页面][7] + +#### 第 6 步:安装后配置 + +当我第一次登录到我的测试系统时,很多东西都不起作用。以下是列表及其可能的解决方案。 + +a) **壁纸**:壁纸模块似乎根本不起作用。因此,默认情况下没有壁纸。甚至“更改壁纸”选项也没有打开。如果遇到这种情况,请安装 `dconf` 编辑器并通过以下步骤更改壁纸。 + +``` +pacman -S --needed dconf-editor +``` + +接着从菜单启动 dconf 编辑器。进入 `“org > gnome > desktop > background > picture-uri”`。关闭默认值并添加自定义值 `file:////usr/share/backgrounds/Ashim DSilva.jpg`。你也可以使用任何其他图像。保存并关闭。 + +![使用 dconf-editor 更改背景属性][8] + +b) **图标**:通过 `Settings > Tweaks` 更改图标。然后将图标和光标更改为 urutau-icons。 + +在完成所有配置和安装之后,你应该已经在 Arch Linux 中设置了 Pantheon 桌面。这是我的测试机的截图。 + +![Arch Linux 中的 Pantheon 桌面][9] + +### 结束语 + +我希望本指南能帮助你最终在 Arch Linux 中安装 Pantheon 桌面。我花了几天时间才终于能够将各个部分组合在一起并使它们发挥作用。 + +尽管一些小功能仍然无法使用,但有一个可用的 Pantheon 桌面。 + +唯一让我惊喜的是 Pantheon 在 Arch 中的表现。在我的同一台测试机上,elementary OS 安装不是那么快。但 Pantheon 基础版在 Arch 中的速度比原始 elementary OS 快。不过,如果你喜欢 Pantheon,可以试试。 + +如果你遇到任何错误,请使用下面的评论栏告诉我。 + +-------------------------------------------------------------------------------- + +via: https://www.debugpoint.com/pantheon-arch-linux-install/ + +作者:[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.debugpoint.com/ultramarine-linux-36/ +[2]: https://www.debugpoint.com/archinstall-guide/ +[3]: https://www.debugpoint.com/install-yay-arch/ +[4]: https://wiki.archlinux.org/index.php/Pantheon +[5]: https://www.debugpoint.com/wp-content/uploads/2021/02/greeters-list.jpg +[6]: https://www.debugpoint.com/wp-content/uploads/2021/02/lightdm-conf.jpg +[7]: https://www.debugpoint.com/wp-content/uploads/2021/02/Login-screen-Pantheon-in-Arch.jpg +[8]: https://www.debugpoint.com/wp-content/uploads/2021/02/Change-background-property-using-dconf-editor.jpg +[9]: https://www.debugpoint.com/wp-content/uploads/2021/02/Pantheon-Desktop-in-Arch-Linux-1.jpg