Merge pull request #6 from LCTT/master

update 0731
This commit is contained in:
SamMa 2021-07-31 22:00:43 +08:00 committed by GitHub
commit 81306417ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 636 additions and 416 deletions

View File

@ -0,0 +1,157 @@
[#]: subject: (F\(r\)iction: Or How I Learnt to Stop Worrying and Start Loving Vim)
[#]: via: (https://news.itsfoss.com/how-i-started-loving-vim/)
[#]: author: (Theena https://news.itsfoss.com/author/theena/)
[#]: collector: (lujun9972)
[#]: translator: (piaoshi)
[#]: reviewer: (wxy)
[#]: publisher: (wxy)
[#]: url: (https://linux.cn/article-13634-1.html)
小说还是折磨:我如何学会克服焦虑并开始爱上 Vim
======
> 非技术人员也可以使用 Linux 和开源软件进行非技术工作。这是我的故事。
![](https://i2.wp.com/news.itsfoss.com/wp-content/uploads/2021/04/vim-writer.png?w=1200&ssl=1)
LCTT 译注:本文原文标题用 “F(r)iction” 一语双关的表示了<ruby>小说<rt>fiction</rt></ruby>写作过程中的<ruby>摩擦<rt>friction</rt></ruby>苦恼。)
时间2009 年 12 月。我准备辞去工作。
我希望专心写我的第一本书;我的工作职责和技术环境都没办法让我完成这本书的写作。
写作是件苦差事。
在现代世界中,很少有工作像写作这样奇特或者说艰巨的追求 —— 面对一张白纸,坐下来,迫使你的大脑吐出文字,向读者传达一个想法。当然,我并不是说写作不能与他人合作完成,而只是想说明,对于作家来说,自己着手写一部新作品是多么令人生畏。小说还是非小说写作都是如此。但由于我是一名小说家,我在这篇文章中主要想关注是小说的写作。
![][1]
还记得 2009 年是什么样子吗?
智能手机已经诞生 3 年了 —— 而我还在使用功能机。笔记本电脑又大又笨重。同时,基于云的生产力 Web 应用还处于起步阶段,并不那么好用。从技术上讲,像我这样的作家们正在以 Gmail 账户(和一个非常年轻的基于云的存储服务 Dropbox作为一个始终可用的选项来处理自己的草稿即使我的个人电脑不在身边。虽然这与作家们必须要使用打字机上帝保佑使用笔和纸工作时相比已经是一个很好的变化了但并没有好多少。
首先,对手稿的版本控制是一场噩梦。此外,我为简化工作流程而在工具包中添加的工具越多,我转换写作环境(无论是用户界面还是用户体验)的次数就越多。
我是在 Windows 记事本上开始写草稿的,然后把它保存在家里电脑上的 MS Word 文档中,用电子邮件发给自己一份副本,同时在 Dropbox 上保留另一份副本(因为在上班时无法访问 Dropbox在公司时对该文件的副本进行处理在一天结束时用电子邮件发给自己在家里的电脑上下载它用一个新的名字和相应的日期保存它这样我就能认出该文件是在公司而不是家里进行修改的……好吧你知道这是怎样一个画面。如果你能感受到这种涉及 Windows 记事本、MS Word、Gmail 和 Dropbox 的工作流程有多么疯狂,那么现在你就知道我为什么辞职了。
让我更清醒的是,我仍然知道一些作家,其中竟然有些还是好作家,依然在使用我 2009 年遵循的工作流程的各种变体。
在接下来的三年里,我一直在写手稿,在 2012 年完成了初稿。在这三年里,技术环境发生了很大变化。智能手机确实相当给力,我在 2009 年遇到的一些复杂情况已经消失了。我仍然可以用手机处理我在家里外理的文件(不一定是新的写作,但由于手机上的 Dropbox编辑变得相当容易。我的主要写作工具仍然是微软的 Windows 记事本和 Word我就是这样完成初稿的。
小说 [《第一声》][2] 于 2016 年出版,获得了评论界和商业界的好评。
结束了。
或许我是这么想的。
我一完成手稿发给了编辑,就已经开始着手第二部小说的写作。我不再为写作而辞职,而是采取了一种更务实的方法:我会在每年年底请两个星期的假,这样我就可以到山上的一个小木屋里去写作。
花了半天时间我才意识到,那些让我讨厌的 [写作工具][3] 和工作流程并没有消失,而是演变成了一个更复杂的野兽。作为一个作家,我并不像我想像的那样高产或高效。
### 新冠期间的 Linux
![][4]
时间2020 年。世界正处于集体疯狂的边缘。
起初在中国分离出的一种新型病毒正在演变成 1911 年以来的第一次全球大流行疾病。3 月 20 日,斯里兰卡,跟随世界上大多数国家的脚步,封城了。
四月是斯里兰卡旱季的高峰。在像科伦坡这样的混凝土丛林中,温度可以达到三十多度,湿度高达九十多度。在最好的情况下,它也可以使大多数人精神错乱,更别说在全球大流行病正在进行的时候,被困在没有一直开着空调的家里?真是一个让人疯狂的好温床。
让我的疯狂是 Linux或者说是“发行版跳跃”像我们在开源社区中所说的。
我越在各种 *nix 发行版间蹿来蹿,我就对控制的想法越迷恋。当任何事情似乎都不在我们的控制之中时 —— 即使是与另一个人握手这样的简单行为 —— 我们自然会倾向于做那些我们感觉更有控制力的事。
在我的生活中,还有什么比计算机更容易被控制的呢?自然,这也延伸到我的写作工具和工作流程。
### 通往 Vim 之路
有一个关于 [Vim][5] 的笑话完美地描述了我对它的第一次体验:人们对 Vim 难以割舍是因为他们不知道怎么关掉它。
我试图编辑一个配置文件,而 [新安装的 Ubuntu 服务器][6] 只预装了 Vim 文本编辑器。第一次是恐慌 —— 以至于我重新启动了机器,以为操作系统没有识别出我的键盘。然而当它再次发生时,不可避免地,我谷歌搜索:“[我该如何关闭 Vim][7]”
_哦。这真有趣_我想。
_但为什么呢_
要理解我为什么会对一个复杂到无法关闭的文本编辑器有点兴趣,你必须了解我是多么崇拜 Windows 记事本。
作为一个作家,我喜欢在它的没有废话、没有按钮、白纸一样的画布上写作。它没有拼写检查。它没有格式。但这些我并不关心。
对于我这个作家来说,记事本是有史以来最好的草稿写作板。不幸的是,它并不强大 —— 所以即使我会先用记事本写草稿,一旦超过 1000 字,我就会把它移到 MS Word 上 —— 记事本不是为散文而生的,当超过这个字数限制时,这些局限就会凸显出来。
因此,当我把我所有的计算机工作从 Windows 上迁移走时,我第一个要安装的就是一个好的文本编辑器。
[Kate][8] 是第一个让我感到比用 Windows 记事本更舒服的替代品 —— 它更强大(它有拼写检查功能!),而且,我可以在同一个环境中搞一些业余爱好式的编程。
当时它是我的爱。
但后来 Vim 出现了。
我对 Vim 了解得越多,看开发者在 Vim 上现场进行编码的次数越多,我就越发现自己在编辑文本时更想打开 Vim。我使用 Unix 传统意义上“文本编辑”这一短语:编辑配置文件中的文本块,或者有时编写基本的 Bash 脚本。
我仍然没有用 Vim 来满足我的散文写作需求。
在这方面我有 Libre Office。
算是吧。
虽然它是一个适当的 [MS Office 替代品][9],但我发现自己没有被它打动。它的用户界面可能比 MS Word 更让人分心,而且每个发行版都有不同的 Libre Office 软件包,我发现自己使用的是一个非常零散的工具包和工作流程,更不用说用户界面在不同的发行版和桌面环境中差异是多么大。
事情变得更加复杂了,因为我也开始读我的硕士学位了。这时,我要在 Kate 上做笔记,把它们转移到 Libre Office 上,然后保存到我的 Dropbox 上。
我每天都面临着情境转换。
生产力下降,因为我不得不打开和关闭一些不相关的应用程序。我需要一个写作工具来满足我所有的需求,无论是作为一个小说家,还是一个学生、亦或是一个业余的程序员。
这时我意识到,解决我场景切换噩梦的方法也同样摆在我的面前。
这时,我已经经常使用 Vim —— 甚至在我的安卓手机上利用 Termux 使用它。这使我对要把所有东西都搬到 Vim 上的想法感到相当舒服。由于它支持 Markdown 语法,记笔记也会变得更加容易。
这仅仅是大约两个月前的事。
现在怎么样了?
时间2021 年 4 月。
坐在出租车上,我通过 Termux借助蓝牙键盘[用 Vim][10] 在手机上开始写这个草稿。我把文件推送到 GitHub 上我的用于写作使用的私人仓库,我从那里把文件拉到我的电脑上,又写了几行,然后再次出门。我把新版本的文件从 GitHub 拉到我的手机上,修改、推送,如此往复,直到我把最后的草稿用电子邮件发给编辑。
现在,场景切换的情景已经不复存在。
在文字处理器中写作所带来的分心问题也没有了。
编辑工作变得无比简单,而且更快了。
我的手腕不再疼痛,因为我不再需要鼠标了。
现在是 2021 年 4 月。
我是一名小说家。
而我在 Vim 上写作。
怎么做的?我将在本专栏系列的第二部分讨论这个工作流程的具体内容,即非技术人员如何使用免费和开源技术。敬请关注。
--------------------------------------------------------------------------------
via: https://news.itsfoss.com/how-i-started-loving-vim/
作者:[Theena][a]
选题:[lujun9972][b]
译者:[piaoshi](https://github.com/piaoshi)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://news.itsfoss.com/author/theena/
[b]: https://github.com/lujun9972
[1]: https://i1.wp.com/news.itsfoss.com/wp-content/uploads/2021/04/Cellphones-different-generations-set.png?w=800&ssl=1
[2]: https://www.goodreads.com/book/show/29616237-first-utterance
[3]: https://itsfoss.com/open-source-tools-writers/
[4]: https://i2.wp.com/news.itsfoss.com/wp-content/uploads/2021/04/quarantine.jpg?w=800&ssl=1
[5]: https://www.vim.org/
[6]: https://itsfoss.com/install-ubuntu-server-raspberry-pi/
[7]: https://itsfoss.com/how-to-exit-vim/
[8]: https://kate-editor.org/
[9]: https://itsfoss.com/best-free-open-source-alternatives-microsoft-office/
[10]: https://linuxhandbook.com/basic-vim-commands/

View File

@ -3,18 +3,20 @@
[#]: author: (Sumantro Mukherjee https://opensource.com/users/sumantro)
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: reviewer: (wxy)
[#]: publisher: (wxy)
[#]: url: (https://linux.cn/article-13635-1.html)
在 Podman 中运行一个 Linux 虚拟机
======
使用 Podman Machine 创建一个基本的 Fedora CoreOS 虚拟机来使用容器和容器化工作负载。
![woman on laptop sitting at the window][1]
Fedora CoreOS 是一个自动更新、基于最小 [rpm-ostree][2]的 操作系统,用于安全地、大规模地运行容器化工作负载。
> 使用 Podman Machine 创建一个基本的 Fedora CoreOS 虚拟机来使用容器和容器化工作负载。
[Podman][3] “是一个用于管理容器和镜像、挂载到这些容器中的卷,以及由这些容器组组成的 pod 的工具。Podman 基于 libpod它是一个容器生命周期管理库”。
![](https://img.linux.net.cn/data/attachment/album/202107/31/114043y4d0kstx90zpx6o3.jpg)
Fedora CoreOS 是一个自动更新、最小化的基于 [rpm-ostree][2] 的操作系统,用于安全地、大规模地运行容器化工作负载。
[Podman][3] “是一个用于管理容器和镜像、挂载到这些容器中的卷以及由这些容器组组成的吊舱的工具。Podman 基于 libpod它是一个容器生命周期管理库”。
当你使用 [Podman Machine][4] 时,神奇的事情发生了,它可以帮助你创建一个基本的 Fedora CoreOS 虚拟机VM来使用容器和容器化工作负载。
@ -22,9 +24,8 @@ Fedora CoreOS 是一个自动更新、基于最小 [rpm-ostree][2]的 操作系
第一步是安装 Podman。如果你已经安装了最新版本的 Podman你可以跳过这个步骤。在我的 Fedora 34 机器上,我用以下方式安装 Podman
```
`$ sudo dnf install podman`
$ sudo dnf install podman
```
我使用的是 podman-3.2.2-1.fc34.x86_64。
@ -33,7 +34,6 @@ Fedora CoreOS 是一个自动更新、基于最小 [rpm-ostree][2]的 操作系
Podman 安装完成后,用以下方法初始化它:
```
podman machine init vm2
Downloading VM image: fedora-coreos-34.20210626.1.0-qemu.x86_64.qcow2.xz: done
@ -46,7 +46,6 @@ Extracting compressed file
了解你的虚拟机和它们的状态是很重要的,`list` 命令可以帮助你做到这一点。下面的例子显示了我所有的虚拟机的名称,它们被创建的日期,以及它们最后一次启动的时间:
```
podman machine list
NAME VM TYPE CREATED LAST UP
@ -58,24 +57,22 @@ vm2 qemu 11 minutes ago 11 minutes ago
要启动一个虚拟机,请运行:
```
podman machine start
Waiting for VM
Waiting for VM ...
```
### SSH 到虚拟机
你可以使用 SSH 来访问你的虚拟机,并使用它来运行工作负载,而没有任何麻烦的设置:
```
podman machine ssh
podman machine ssh
Connecting to vm podman-machine-default. To close connection, use `~.` or `exit`
Fedora CoreOS 34.20210611.1.0
Tracker: <https://github.com/coreos/fedora-coreos-tracker>
Discuss: <https://discussion.fedoraproject.org/c/server/coreos/>
Tracker: https://github.com/coreos/fedora-coreos-tracker
Discuss: https://discussion.fedoraproject.org/c/server/coreos/
Last login: Wed Jun 23 13:23:36 2021 from 10.0.2.2
[core@localhost ~]$ uname -a
Linux localhost 5.12.9-300.fc34.x86_64 #1 SMP Thu Jun 3 13:51:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
@ -88,7 +85,6 @@ Linux localhost 5.12.9-300.fc34.x86_64 #1 SMP Thu Jun 3 13:51:40 UTC 2021 x86_64
要停止运行中的虚拟机,请使用 `stop` 命令:
```
podman machine stop
@ -106,7 +102,7 @@ via: https://opensource.com/article/21/7/linux-podman
作者:[Sumantro Mukherjee][a]
选题:[lujun9972][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/) 荣誉推出

View File

@ -1,114 +0,0 @@
[#]: subject: (Windows 11 Makes Your Hardware Obsolete, Use Linux Instead!)
[#]: via: (https://news.itsfoss.com/windows-11-linux/)
[#]: author: (Ankush Das https://news.itsfoss.com/author/ankush/)
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
Windows 11 Makes Your Hardware Obsolete, Use Linux Instead!
======
Windows 11 is finally here. Were not entirely thrilled by it but it introduces problems for many computer users.
And Im not even talking the privacy aspect or its design choice. But it seems that Windows 11 is demanding newer hardware to work, which makes your old computer obsolete in a way and forces you to upgrade your hardware for no good reason.
What else is a problem with the arrival of Windows 11? Whats so bad about it?
### Only Eligible Devices Can Get the Windows 11 Upgrade
To start with, Windows 11 has interestingly added a minimum system requirement which looks good on paper:
* 1 GHz dual-core 64-bit processor
* 4 GB RAM
* 64 GB storage
* UEFI, Secure Boot support
* Trusted Platform Module version 2.0
* DirectX 12 compatible graphics
* 720p resolution display
![][1]
You can check if your system is eligible by downloading the **PC Health Check** app from [Microsofts official site][2].
Most of the computers from the last decade should meet these criteria but theres a catch.
The hardware should have a TPM chip, which may not be the case for some PC builds or laptops. Fortunately, it is not all bad, you may just need to enable it from your BIOS settings including the Secure Boot support, to make your PC eligible. Theres a guide on [PCGamer][3] to help you with that.
Technically, processors older than **Intel 8th gen and Ryzen 3000 series** are not officially supported as per Microsofts official documentations ([AMD][4] | [Intel][5]).
However, there are a sound number of systems that may not have the support for it. So, what do you do?
Easy, [**switch to Linux in 2021**][6] before Windows 10 no longer receives updates. This year, it makes more sense than ever for you to try Linux for your personal computer!
### Windows 11 Installation Requires Internet Connectivity
![][7]
While we do not have enough clarity about this but as per its system requirement specifications, it will require users to have an active Internet connection for Windows 11 installation.
But, with Linux, you do not need that.
Thats just one of the [benefits of using Linux over Windows][8] you get complete control of your operating system.
### No 32-Bit Support
![][7]
Windows 10 did support 32-bit systems, but Windows 11 ends that.
This is where Linux shines.
Even though the 32-bit support is dwindling everywhere, we still have a bunch of [**Linux distributions that support 32-bit systems**][9]. Your 32-bit system may still live for a decade with Linux.
### Windows 10 Support Ends in 2025
Well, this was unexpected considering Microsoft initially planned to never have an upgrade after Windows 10 but support it for the foreseeable future.
Now, Windows 10 will be killed in 2025…
So, what do you do then? Upgrade your hardware just because it does not support Windows 11?
Unless theres a necessity, Linux is your friend forever.
You can try several [**lightweight Linux distributions**][10] that will revive any of your computers that Microsoft considers obsolete!
### Wrapping Up
While Windows 11 plans to force users to upgrade their hardware in the next few years, Linux lets you keep your hardware for a long time along with several added benefits.
So, if you are not happy with Windows 11 release, you may want to start using Linux instead. Fret not, you can refer to our guides on our main web portal [Its FOSS][11] to learn everything you need to get started using Linux!
#### Big Tech Websites Get Millions in Revenue, It's FOSS Got You!
If you like what we do here at It's FOSS, please consider making a donation to support our independent publication. Your support will help us keep publishing content focusing on desktop Linux and open source software.
I'm not interested
--------------------------------------------------------------------------------
via: https://news.itsfoss.com/windows-11-linux/
作者:[Ankush Das][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://news.itsfoss.com/author/ankush/
[b]: https://github.com/lujun9972
[1]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjIyNSIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
[2]: https://www.microsoft.com/en-us/windows/windows-11
[3]: https://www.pcgamer.com/Windows-11-PC-Health-Check/
[4]: https://docs.microsoft.com/en-us/windows-hardware/design/minimum/supported/windows-11-supported-amd-processors
[5]: https://docs.microsoft.com/en-us/windows-hardware/design/minimum/supported/windows-11-supported-intel-processors
[6]: https://news.itsfoss.com/switch-to-linux-in-2021/
[7]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQzOSIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
[8]: https://itsfoss.com/linux-better-than-windows/
[9]: https://itsfoss.com/32-bit-linux-distributions/
[10]: https://itsfoss.com/lightweight-linux-beginners/
[11]: https://itsfoss.com

View File

@ -0,0 +1,76 @@
[#]: subject: (What do we call post-modern system administrators?)
[#]: via: (https://opensource.com/article/21/7/system-administrators)
[#]: author: (Joshua Allen Holm https://opensource.com/users/holmja)
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
What do we call post-modern system administrators?
======
Our community discusses the responsibilities, possible titles, and
potential skills of today's sysadmins.
![Multi-colored and directional network computer cables][1]
For today's sysadmin, many companies expect you to have cross-platform knowledge, network knowledge, _and_ application knowledge. Add to that a dash of programming ability, a pinch of sysadmin experience, a heaping portion of social skills, and a fanatical commitment to reliability and automation.
What do we call this new, post-modern sysadmin? Do we use the same term and simply stretch the responsibilities? Or do we give this evolved role a new name?
We chatted with friends at [Enable Sysadmin][2] and in the Opensource.com Correspondent program to get their thoughts. Here's what we heard:
### Possible titles
* How about Enterprise Architect or Solutions Architect? 
* Or are we talking more of a DevOps Engineer or Site Reliability Engineer?
* What level of experience and expertise are we looking at? Maybe an Applications Specialist or IT Helpdesk Administrator?
* Overheard: Platform Engineer or System Engineer
### Potential skills
* setting up a new user account in Google Workplace or similar
* configuring and ordering laptop, cell phone, service contracts
* software training (teaching a new user how to use kanban boards, shared storage solutions, or similar)
* preparing “procedures” manuals
* monitoring and checking security settings and storage usage
* keeping an eye on pooled storage
* deactivating a user leaving us
* arranging for pickup of equipment
* working with a user and provider having personal equipment difficulties
* keeping an eye on internet connection services, telephone services
### Lingering questions
Does today's sysadmin need to understand clustering, containers, FS sharding, unicast/multicast coms, and other similar topics?
Is there a dividing line between infrastructure and systems?
Could the title of systems administrator remain the same while the role changes?
Does the image of a sysadmin crawling under the desk to fix broken cupholders still apply?
Are most of today's sysadmins already using a PaaS approach in tandem with doing the basic administrative tasks of managing users, accounts, applications, and licenses?
Are they also a helpful resource for colleagues, acting as an interpersonal bridge between other departments and IT?
**Share your thoughts and experiences in the comments.**
--------------------------------------------------------------------------------
via: https://opensource.com/article/21/7/system-administrators
作者:[Joshua Allen Holm][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/holmja
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/connections_wires_sysadmin_cable.png?itok=d5WqHmnJ (Multi-colored and directional network computer cables)
[2]: https://www.redhat.com/sysadmin/

View File

@ -2,7 +2,7 @@
[#]: via: (https://www.debugpoint.com/2021/07/upgrade-debian-11-from-debian-10/)
[#]: author: (Arindam https://www.debugpoint.com/author/admin1/)
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )

View File

@ -1,116 +0,0 @@
[#]: subject: (How to use cron on Linux)
[#]: via: (https://opensource.com/article/21/7/cron-linux)
[#]: author: (Seth Kenlon https://opensource.com/users/seth)
[#]: collector: (lujun9972)
[#]: translator: (perfiffer)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
How to use cron on Linux
======
The cron system is a method to automatically run commands on a schedule.
![Cron expression][1]
The cron system is a method to automatically run commands on a schedule. A scheduled job is called a _cronjob_, and its created in a file called a _crontab_. Its the easiest and oldest way for a computer user to automate their computer.
### Writing a cronjob
To create a cronjob, you edit your `crontab` using the `-e` option:
```
`$ crontab -e`
```
This opens your crontab your default text editor. To set the text editor explicitly, use the `EDITOR` [environment variable][2]:
```
`$ EDITOR=nano crontab -e`
```
### Cron syntax
To schedule a cronjob, you provide the command you want your computer to execute, followed by a cron expression. The cron expression schedules when the command gets run:
* minute (0 to 59)
* hour (0 to 23, with 0 being midnight)
* day of month (1 to 31)
* month (1 to 12)
* day of week (0 to 6, with Sunday being 0)
An asterisk (`*`) in a field translates to "every." For example, this expression runs a backup script at the 0th minute of _every_ hour on _every_ day of _every_ month:
```
`/opt/backup.sh 0 * * * *`
```
This expression runs a backup script at 3:30 AM on Sunday:
```
`/opt/backup.sh 30 3 * * 0`
```
### Simplified syntax
Modern cron implementations accept simplified macros instead of a cron expression:
* `@hourly` runs at the 0th minute of every hour of every day
* `@daily` runs at the 0th minute of the 0th hour of every day
* `@weekly` runs at the 0th minute of the 0th hour on Sunday
* `@monthly` runs at the 0th minute of the 0th hour on the first day of the month
For example, this crontab line runs a backup script every day at midnight:
```
`/opt/backup.sh @daily`
```
### How to stop a cronjob
Once you've started a cronjob, it's designed to run on schedule forever. To stop a cronjob once you've started it, you must edit your crontab, remove the line that triggers the job, and then save the file.
```
`$ EDITOR=nano crontab -e`
```
To stop a job that's actively running, [use standard Linux process commands][3] to stop a running process.
### Its automated
Once youve written your crontab, save the file and exit your editor. Your cronjob has been scheduled, so cron does the rest.
--------------------------------------------------------------------------------
via: https://opensource.com/article/21/7/cron-linux
作者:[Seth Kenlon][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者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/cron-splash.png?itok=AoBigzts (Cron expression)
[2]: https://opensource.com/article/19/8/what-are-environment-variables
[3]: https://opensource.com/article/18/5/how-kill-process-stop-program-linux

View File

@ -0,0 +1,155 @@
[#]: subject: (4 cool new projects to try in Copr from July 2021)
[#]: via: (https://fedoramagazine.org/4-cool-new-projects-to-try-in-copr-for-july-2021/)
[#]: author: (Jakub Kadlčík https://fedoramagazine.org/author/frostyx/)
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
4 cool new projects to try in Copr from July 2021
======
![][1]
Copr is a [collection][2] of personal repositories for software that isnt carried in Fedora Linux. Some software doesnt conform to standards that allow easy packaging. Or it may not meet other Fedora Linux standards, despite being free and open-source. Copr can offer these projects outside the Fedora Linux set of packages. Software in Copr isnt supported by Fedora infrastructure or signed by the project. However, it can be a neat way to try new or experimental software.
This article presents a few new and interesting projects in Copr. If youre new to using Copr, see the [Copr User Documentation][3] for how to get started.
## [][4] Wike
[Wike][5] is a Wikipedia reader for the GNOME Desktop with search integration in the GNOME Shell. It provides distraction-free access to the [online encyclopedia][6]. The interface is minimalistic but it supports switching an article between multiple languages, bookmarks, article table of contents, dark mode, and more.
![][7]
### [][8] Installation instructions
The [repo][9] currently provides Wike for Fedora 33, 34, and Fedora Rawhide. To install it, use these commands:
```
sudo dnf copr enable xfgusta/wike
sudo dnf install wike
```
## [][10] DroidCam
We are living through confusing times, being isolated at our homes, and the majority of our interactions with friends and coworkers take place on some video conference platform. Dont waste your money on an overpriced webcam if you carry one in your pocket already. [DroidCam][11] lets you pair your phone with a computer and use it as a dedicated webcam. The connection made through a USB cable or over WiFi. DroidCam provides remote control of the camera and allows zooming, using autofocus, toggling the LED light, and other convenient features.
![][12]
### [][13] Installation instructions
The [repo][14] currently provides DroidCam for Fedora 33 and 34. Before installing it, please update your system and reboot, or make sure you are running the latest kernel version and have an appropriate version of _kernel-headers_ installed.
```
sudo dnf update
sudo reboot
```
Droidcam depends on _v4l2loopback_ which must be installed manually from the [RPM Fusion Free repository][15].
```
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install v4l2loopback
sudo modprobe v4l2loopback
```
Now install the _droidcam_ package:
```
sudo dnf copr enable meeuw/droidcam
sudo dnf install droidcam
```
## [][16] Nyxt
[Nyxt][17] is a keyboard-oriented, infinitely extensible web browser designed for power users. It was heavily inspired by Emacs and as such is implemented and configured in Common Lisp providing familiar key-bindings ([Emacs][18], [vi][19], [CUA][20]).
Other killer features that cannot be missed are a built-in REPL, [tree history][21], [buffers instead of tabs][22], and [so much more][17].
Nyxt is web engine agnostic so dont worry about pages rendering in unexpected ways.
![][23]
### [][24] Installation instructions
The [repo][25] currently provides Nyxt for Fedora 33, 34, and Fedora Rawhide. To install it, use these commands:
```
sudo dnf copr enable teervo/nyxt
sudo dnf install nyxt
```
## [][26] Bottom
[Bottom][27] is a system monitor with a customizable interface and multitude of features, It took inspiration from [gtop][28], [gotop][29], and [htop][30]. As such, it supports [processes][31] monitoring, [CPU][32], [RAM][33], and [network][34] usage monitoring. Besides those, it also provides more exotic widgets such as [disk capacity][35] usage, [temperature sensors][36], and [battery][37] usage.
Bottom utilizes the screen estate very efficiently thanks to the customizable layout of widgets as well as the [possibility to focus on just one widget and maximizing it][38].
![][39]
### [][40] Installation instructions
The [repo][41] currently provides Bottom for Fedora 33, 34, and Fedora Rawhide. It is also available for EPEL 7 and 8. To install it, use these commands:
```
sudo dnf copr enable opuk/bottom
sudo dnf install bottom
```
Use _btm_ command to run the program.
--------------------------------------------------------------------------------
via: https://fedoramagazine.org/4-cool-new-projects-to-try-in-copr-for-july-2021/
作者:[Jakub Kadlčík][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://fedoramagazine.org/author/frostyx/
[b]: https://github.com/lujun9972
[1]: https://fedoramagazine.org/wp-content/uploads/2017/08/4-copr-945x400.jpg
[2]: https://copr.fedorainfracloud.org/
[3]: https://docs.pagure.org/copr.copr/user_documentation.html
[4]: https://github.com/FrostyX/fedora-magazine/blob/main/2021-july.md#wike
[5]: https://github.com/hugolabe/Wike
[6]: https://en.wikipedia.org/wiki/Main_Page
[7]: https://fedoramagazine.org/wp-content/uploads/2021/07/wike.png
[8]: https://github.com/FrostyX/fedora-magazine/blob/main/2021-july.md#installation-instructions
[9]: https://copr.fedorainfracloud.org/coprs/xfgusta/wike/
[10]: https://github.com/FrostyX/fedora-magazine/blob/main/2021-july.md#droidcam
[11]: https://www.dev47apps.com/
[12]: https://fedoramagazine.org/wp-content/uploads/2021/07/droidcam.png
[13]: https://github.com/FrostyX/fedora-magazine/blob/main/2021-july.md#installation-instructions-1
[14]: https://copr.fedorainfracloud.org/coprs/meeuw/droidcam
[15]: https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/#proc_enabling-the-rpmfusion-repositories-using-command-line-utilities_enabling-the-rpmfusion-repositories
[16]: https://github.com/FrostyX/fedora-magazine/blob/main/2021-july.md#nyxt
[17]: https://nyxt.atlas.engineer/
[18]: https://en.wikipedia.org/wiki/Emacs
[19]: https://en.wikipedia.org/wiki/Vim_(text_editor)
[20]: https://en.wikipedia.org/wiki/IBM_Common_User_Access
[21]: https://nyxt.atlas.engineer/#tree
[22]: https://nyxt.atlas.engineer/#fuzzy
[23]: https://fedoramagazine.org/wp-content/uploads/2021/07/nyxt.png
[24]: https://github.com/FrostyX/fedora-magazine/blob/main/2021-july.md#installation-instructions-2
[25]: https://copr.fedorainfracloud.org/coprs/teervo/nyxt/
[26]: https://github.com/FrostyX/fedora-magazine/blob/main/2021-july.md#bottom
[27]: https://github.com/ClementTsang/bottom
[28]: https://github.com/aksakalli/gtop
[29]: https://github.com/xxxserxxx/gotop
[30]: https://github.com/htop-dev/htop/
[31]: https://clementtsang.github.io/bottom/nightly/usage/widgets/process/
[32]: https://clementtsang.github.io/bottom/nightly/usage/widgets/cpu/
[33]: https://clementtsang.github.io/bottom/nightly/usage/widgets/memory/
[34]: https://clementtsang.github.io/bottom/nightly/usage/widgets/network/
[35]: https://clementtsang.github.io/bottom/nightly/usage/widgets/disk/
[36]: https://clementtsang.github.io/bottom/nightly/usage/widgets/temperature/
[37]: https://clementtsang.github.io/bottom/nightly/usage/widgets/battery/
[38]: https://clementtsang.github.io/bottom/nightly/usage/general-usage/#expansion
[39]: https://fedoramagazine.org/wp-content/uploads/2021/07/bottom.png
[40]: https://github.com/FrostyX/fedora-magazine/blob/main/2021-july.md#installation-instructions-3
[41]: https://copr.fedorainfracloud.org/coprs/opuk/bottom/

View File

@ -0,0 +1,109 @@
[#]: subject: (Windows 11 Makes Your Hardware Obsolete, Use Linux Instead!)
[#]: via: (https://news.itsfoss.com/windows-11-linux/)
[#]: author: (Ankush Das https://news.itsfoss.com/author/ankush/)
[#]: collector: (lujun9972)
[#]: translator: (zd200572)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
Windows 11 让你的硬件过时使用Linux代替吧
======
Windows 11终于来了我们并不完全对此感到兴奋 -但它给许多电脑用户带来了问题。
我甚至不会讨论隐私方面或者它的设计选择。可是Windows 11要求更新的硬件这会让你的旧电脑在某种程度上过时没有好的理由却强迫你升级新的硬件。
Windows 11的到来还有什么问题有什么不好的
### 只有符合条件的设备才能获得Windows 11升级
首先Windows 11有趣在添加了一个看起来不错的最低系统需求:
* 1GHz双核64位处理器
* 4GB内存
* 64GB存储空间
* 支持 UEFI 安全启动
* 受信任的平台模块 (TPM) 版本 2.0
* DirectX 12兼容显卡
* 720P分辨率显示器
![][1]
你可以在[微软官方网站][2]下载电脑健康状况检查应用检查你的系统是否有升级的资格。
过去十年内的大多数电脑能达到这些标准--但有一个陷阱。
硬件需要有一个TPM芯片一些电脑和笔记本可能没有。幸运的是您可能只需要从BIOS设置(包括安全引导支持)中启用它就可以使你的PC符合条件。这里有一个[PCGamer][3]的向导可以帮你.
技术上说根据微软官方文档Windows 11不支持比**Intel第8代和Ryzen3000系列**更老的处理器([AMD][4] | [Intel][5]).
可是,有相当数量的电脑失去支持,你该怎么做?
简单, [**2021年啦换成Linux吧**][6]在Windows 10不再收到更新之前. 今年在你的个人电脑上尝试Linux变得比任何时候更有意义。
### Windows 11安装需要网络连接
![][7]
虽然我们不太清楚但根据其系统要求规范Windows 11安装过程中将要求用户有可连通的网络连接。
但是Linux不需要这样.
这只是其中一个[使用Linux而不是Windows][8]的好处 -你可以完全的掌控操作系统。
### 没有32位支持
![][7]
Windows 10确实是支持32位系统的但是Windows 11终结了相关支持.
这又是Linux的优势了。
尽管32位支持都在逐渐减少, 我们依然有一系列[**支持32位系统的Linux发行版**][9]. 或许你的32位电脑还能与Linux一起工作10年。
### Windows 10将在2025年结束支持
好吧这是意料之外的鉴于微软最初计划Windows 10是其最后一款独立发布的操作系统这是出乎意料的。
现在Windows 10将会在2025年被杀死…
那么我们该怎么做呢升级你的硬件只因为它不支持Windows 11?
除非有这个必要否则Linux是你永远的朋友。
你可以尝试几个[**轻量级Linux发行版**][10],它们将复活你的微软认为过时的电脑。
### 总结
尽管在未来几年Windows 11计划强迫用户升级他们的硬件Linux将让你长时间继续使用你的硬件并有额外的好处。
因此如果你对Windows 11不满你可能想开始使用Linux代替。不要烦恼你可以参考我们主站的教程[FOSS][11]来学习开始使用Linux的一切!
--------------------------------------------------------------------------------
via: https://news.itsfoss.com/windows-11-linux/
作者:[Ankush Das][a]
选题:[lujun9972][b]
译者:[zd200572](https://github.com/zd200572)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://news.itsfoss.com/author/ankush/
[b]: https://github.com/lujun9972
[1]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjIyNSIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
[2]: https://www.microsoft.com/en-us/windows/windows-11
[3]: https://www.pcgamer.com/Windows-11-PC-Health-Check/
[4]: https://docs.microsoft.com/en-us/windows-hardware/design/minimum/supported/windows-11-supported-amd-processors
[5]: https://docs.microsoft.com/en-us/windows-hardware/design/minimum/supported/windows-11-supported-intel-processors
[6]: https://news.itsfoss.com/switch-to-linux-in-2021/
[7]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQzOSIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
[8]: https://itsfoss.com/linux-better-than-windows/
[9]: https://itsfoss.com/32-bit-linux-distributions/
[10]: https://itsfoss.com/lightweight-linux-beginners/
[11]: https://itsfoss.com

View File

@ -1,151 +0,0 @@
[#]: subject: (F(r)iction: Or How I Learnt to Stop Worrying and Start Loving Vim)
[#]: via: (https://news.itsfoss.com/how-i-started-loving-vim/)
[#]: author: (Theena https://news.itsfoss.com/author/theena/)
[#]: collector: (lujun9972)
[#]: translator: (piaoshi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
虚构还是摩擦: 我如何学会克服焦虑并开始爱上 Vim
======
时间2009 年 12 月。我准备辞去工作。
我希望专心写我的第一本书;我在工作中的承诺和当是技术状况都阻止不了我。
写作是件苦差事。
在现代世界中,很少有工作像写作这样奇特或者说艰巨的追求 -- 面对一张白纸,坐下来,迫使你的大脑吐出文字,向读者传达一个想法。当然,我并不是说写作不能与他人合作完成,而只是想说明,对于作家来说,自己着手写一部新作品是多么令人生畏。虚构和非虚构写作都是如此。但由于我是一名小说家,我在这篇文章中主要想关注是虚构作品的写作。
![][1]
还记得2009年是什么样子吗
智能手机已经诞生 3 年了 -- 我还没有摆脱功能机。笔记本电脑又大又笨重。同时,用于生产的基于云的网络应用还处于起步阶段,并不那么好用。从技术上讲,像我这样的作家们正在以 Gmail 账户(和一个非常年轻的基于云的存储服务 Dropbox作为一个始终可用的选项来处理自己的草稿即使我的个人电脑不在身边。虽然这与作家们必须要使用打字机上帝保佑笔和纸工作时相比已经是一个很好的变化了但并没有好多少。
首先,对手稿的版本控制是一场噩梦。此外,我为简化工作流程而在工具包中添加的工具越多,我转换写作环境(无论是用户界面还是用户体验)的次数就越多。
我可能是在 Windows 记事本上开始写草稿,然后把它保存在家里电脑上的 MS Word 文档中,用电子邮件发给自己一份副本,同时在 Dropbox 上保留另一份副本(因为在上班时无法访问 Dropbox在公司时对该文件的副本进行处理在一天结束时用电子邮件发给自己在家里的电脑上下载它用一个新的名字和相应的日期保存它这样我就能认出该文件是在工司而不是家里进行修改的……好吧你知道这是怎样一个画面。如果你能感受到这种涉及 Windows 记事本、MS Word、Gmail 和 Dropbox 的工作流程有多么疯狂,那么现在你就知道我为什么辞职了。
让我更清醒的是,我仍然知道一些作家,其中竟然有些还是好作家,依然在使用我 2009 年遵循的工作流程的各种变体。
在接下来的三年里,我致力于我的手稿,在 2012 年完成了初稿。在这三年里,技术状况发生了很大变化。智能手机确实相当给力,我在 2009 年遇到的一些复杂情况已经消失了。我仍然可以用手机处理我在家里外理的文件(不一定是新鲜的写作,但由于手机上的 Dropbox编辑变得相当容易。我的主要写作工具仍然是微软的 Windows 记事本和 Word我就是这样完成初稿的。
小说 [**《第一声》**][2] 于 2016 年出版,获得了评论界和商业界的好评。
结束了。
或许我是这么想的。
刚完成手稿并发给我的编辑,我就已经开始着手第二部小说的写作。我不再离职从事写作,而是采取了一种更务实的方法:我会在每年年底请两个星期的假,这样我就可以到山上的一个小木屋里去写作。
花了半天时间我才意识到,那些让我讨厌的 [写作工具][3] 和工作流程并没有消失,而是演变成了一个更复杂的野兽。作为一个作家,我并不像我想像的那样高产或高效。
### 新冠期间的 Linux
![][4]
时间2020 年。世界正处于集体疯狂的边缘。
起初在中国分离出的一种新型病毒正在演变成 1911 年以来的第一次全球大流行疾病。3 月 20 日,斯里兰卡,跟随世界上大多数国家的脚步,关闭了。
四月是斯里兰卡旱季的高峰。在像科伦坡这样的混凝土丛林中,温度可以达到三十四五度,湿度高达九十八九度。在最好的情况下,它也可以使大多数人精神错乱,更别说在全球大流行病正在进行的时候,被困在没有一直开着空调的家里?真是一个让人疯狂的好温床。
让我的疯狂是 Linux或者说是"发行版跳跃",像我们在开源社区中所说的。
我在各种 *nix 发行版间跳的次数越多,我就对控制的想法越迷恋。当任何事情似乎都不在我们的控制之中时 -- 即使是与另一个人握手这样的简单行为 -- 我们自然会倾向于做那些我们感觉更有控制力的事。
在我的生活中,还有什么比计算机更容易被控制的呢?自然,这也延伸到我的写作工具和工作流程。
### 通往 Vim 之路
有一个关于 [Vim][5] 的笑话完美地描述了我对它的第一次体验:人们对 Vim 难以割舍是因为他们不知道怎么关掉它。
我试图编辑一个配置文件,而 [新安装的 Ubuntu 服务器][6] 只预装了 Vim 文本编辑器。第一次是恐慌 -- 以至于我重新启动了机器,以为操作系统没有识别出我的键盘。然而当它再次发生时,不可避免地,我谷歌搜索:“[我该如何关闭 Vim][7]”
_哦。这真有趣_我想。
_但为什么呢_
要理解我为什么会对一个复杂到无法关闭的文本编辑器有点兴趣,你必须了解我是多么崇拜 Windows 记事本。
作为一个作家,我喜欢在它的没有废话、没有按钮、白纸一样的画布上写作。它没有拼写检查。它没有格式。但这些我并不关心。
对于我这个作家来说,记事本是有史以来最好的草稿写作板。不幸的是,它并不强大 -- 所以即使我会先用记事本写草稿,一旦超过 1000 字,我就会把它移到 MS Word 上 -- 记事本不是为散文而生的,当超过这个字数限制时,这些局限就会凸显出来。
因此,当我把我所有的计算从 Windows 上迁移走时,我第一个要安装的就是一个好的文本编辑器。
[Kate][8] 是第一个让我感到比用 Windows 记事本更舒服的替代品 -- 它更强大(它有拼写检查功能!),而且,我可以在同一个环境中搞一些业余爱好式的编程。
当时它是我的爱。
但后来 Vim 出现了。
我对 Vim 了解得越多,看开发者在 Vim 上现场进行编码的次数越多,我就越发现自己在编辑文本时更想打开 Vim。我在传统的 Unix 意义上使用“文本编辑”这一短语:编辑配置文件中的文本块,或者有时编写基本的 Bash 脚本。
我仍然没有用 Vim 来满足我的散文写作需求。
在这方面我有 Libre Office。
算是吧。
虽然它是一个适当的 [MS Office 替代品][9],但我发现自己没有被它打动。它的用户界面可能比 MS Word 更让人分心,而且每个发行版都有不同的 Libre Office 软件包,我发现自己使用的是一个非常零散的工具包和工作流程,更不用说用户界面在不同的发行版和桌面环境中差异是多么大。
当我开始读我的硕士学位时,事情变得更加复杂了。这是,我要在 Kate 上做笔记,把它们转移到 Libre Office 上,然后保存到我的 Dropbox 上。
情境转换每天都在盯着我看。
生产力下降,因为我不得不打开和关闭一些不相关的应用程序。我需要一个写作工具来满足我所有的需求 -- 作为一个小说家,作为一个学生,作为一个业余的程序员。
这时我意识到,解决我场景切换噩梦的方法也同时在盯着我的脸。
这时,我已经经常使用 Vim -- 甚至在我的安卓手机上利用 Termux 使用它。这使我对要把所有东西都搬到 Vim 上的想法感到相当舒服。由于它支持 Markdown 语法,记笔记也会变得更加容易。
这仅仅是大约两个月前的事。
现在怎么样了?
时间2021 年 4 月。
坐在出租车上,我通过 Termux借助蓝牙键盘[用 Vim][10] 在手机上开始写这个草稿。我把文件推送到 GitHub 上我的用于写作使用的私人仓库,我从那里把文件拉到我的电脑上,又写了几行,然后再次出门。我把新版本的文件从 GitHub 拉到我的手机上,修改,推送,如此往复,直到我把最后的草稿用电子邮件发给编辑。
现在,场景切换的情况已经不复存在。
在文字处理器中写作所带来的分心问题也没有了。
编辑工作变得无比简单,而且更快了。
我的手腕不再疼痛,因为我不再需要鼠标了。
现在是 2021 年 4 月。
我是一名小说家。
而我在 Vim 上写作。
怎么做的?我将在本专栏系列的第二部分讨论这个工作流程的具体内容,即非技术人员如何使用免费和开源技术。敬请关注。
--------------------------------------------------------------------------------
via: https://news.itsfoss.com/how-i-started-loving-vim/
作者:[Theena][a]
选题:[lujun9972][b]
译者:[piaoshi](https://github.com/piaoshi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://news.itsfoss.com/author/theena/
[b]: https://github.com/lujun9972
[1]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzM5MCcgd2lkdGg9Jzc4MCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=
[2]: https://www.goodreads.com/book/show/29616237-first-utterance
[3]: https://itsfoss.com/open-source-tools-writers/
[4]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzM5NScgd2lkdGg9Jzc4MCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnLz4=
[5]: https://www.vim.org/
[6]: https://itsfoss.com/install-ubuntu-server-raspberry-pi/
[7]: https://itsfoss.com/how-to-exit-vim/
[8]: https://kate-editor.org/
[9]: https://itsfoss.com/best-free-open-source-alternatives-microsoft-office/
[10]: https://linuxhandbook.com/basic-vim-commands/

View File

@ -3,18 +3,18 @@
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: reviewer: (turbokernel)
[#]: publisher: ( )
[#]: url: ( )
认识 Clapper一款外观时尚的 Linux 视频播放器,适合极简主义者使
认识 Clapper一款外观时尚的 Linux 视频播放器,极简主义者适
======
喜欢极简主义吗?你会喜欢 Clapper 的。
Clapper 是一个新 [Linux 视频播放器][1]。实际上,它更多的是为 GNOME 而不是为 Linux。
Clapper 是一个新 [Linux 视频播放器][1]。实际上,它更多的是基于 GNOME 而不是 Linux。
构建在 GNOME 的 JavaScript 库和 GTK4 工具包之上,自然地融合在 GNOME 的桌面环境中。它使用 [GStreamer][2] 作为媒体后端,使用 [OpenGL][3] 进行渲染。
基于 GNOME 的 JavaScript 库和 GTK4 工具包构建,自然地融合在 GNOME 的桌面环境中。它使用 [GStreamer][2] 作为媒体后端,使用 [OpenGL][3] 进行渲染。
我喜欢极简主义的应用。虽然 VLC 是媒体播放器中的瑞士刀,但我更喜欢 [MPV 播放器][4],因为它的界面时尚、简约。现在我想要坚持使用 Clapper 一段时间了。
@ -22,27 +22,27 @@ Clapper 是一个新的 [Linux 视频播放器][1]。实际上,它更多的是
![A screenshot of Clapper video player][5]
[Clapper 默认使用硬件加速][6]。它支持英特尔和 AMD 的 GPU在 Xorg 和 Wayland 上都能工作。
[Clapper 默认开启硬件加速][6]。它支持英特尔和 AMD 的 GPU在 Xorg 和 Wayland 上都能工作。
[Clapper][7] 不使用传统的上部窗口栏。有自动隐藏的偏好菜单、模式切换器和窗口控制按钮供你访问一些功能。这给了它一个时尚、简约的外观。
[Clapper][7] 不使用传统的上部窗口栏。为你提供自动隐藏的偏好菜单、模式切换器和窗口控制按钮供等功能。这给了它一个时尚、简约的外观。
它有三种模式:
* 窗口模式:默认模式显示进度条和窗口控制。
* 浮动模式:进度条被隐藏,播放器漂浮在其他应用程序的顶部,就像“[总是在顶部][8]”或“画中画”模式。
* 浮动模式:隐藏进度条,播放器浮于其他应用程序的顶部,就像“[总是在顶部][8]”或“画中画”模式。
* 全屏模式:播放器进入全屏,进度条变大,但它们都会自动隐藏起来
![Interface of Clapper video player with preference control and window modes][9]
Clapper 也有一个自适应的用户界面,以在基于 Linux 的智能手机和平板电脑上使用。因此,如果你有自己的 Pine Phone 或 Librem5你可以在它上面使用 Clapper。
Clapper 也有一个自适应的用户界面,可基于 Linux 的智能手机和平板电脑上使用。因此,如果你有自己的 Pine Phone 或 Librem5你可以在它上面使用 Clapper。
它支持字幕,并可选择改变字体。然而,在我的测试中,字幕并不可用。也没有选项可以明确地在播放的视频中添加字幕。这一点必须改进。
它支持字幕,并可选择改变字体。然而,在我的测试中,字幕并不可用。也没有可以明确地在播放的视频中添加字幕的选项。这一点必须改进。
和 VLC 一样如果你再次打开同一个视频文件Clapper 也可以让你选择从最后一个点恢复播放。这是我喜欢的 VLC 中的一个[方便的功能][10]。
和 VLC 一样如果你再次打开同一个视频文件Clapper 也可以让你选择从最后一个时间点恢复播放。这是我喜欢的 VLC 中的一个[方便的功能][10]。
如果你提供 URLClapper 也支持从互联网上播放视频。
如果你 URLClapper 也支持从互联网上播放视频。
这里的截图中,我正在 Clapper 中播放一个 YouTube 视频。这是一首由一位美丽的歌手和演员唱的优美歌曲。你能猜到这是哪首歌或哪部电影吗?
@ -51,7 +51,7 @@ Clapper 也有一个自适应的用户界面,也可以在基于 Linux 的智
### 在 Linux 上安装 Clapper
对 Arch 和 Manjaro 用户而言Clapper 可在 AUR 中找到。这不是对所有人的惊喜。AUR 有这世上的一切
对 Arch 和 Manjaro 用户而言Clapper 可在 AUR 中找到。这很稀疏平常因为AUR 包罗万象
对于其他发行版Clapper 官方提供了 [Flatpak 包][12]。所以,请[为你的发行版启用 Flatpak 支持][13],然后使用下面的命令来安装它:
@ -61,7 +61,7 @@ flatpak install flathub com.github.rafostar.Clapper
安装后,只需在应用菜单中搜索它,或右击视频文件,选择用 Clapper 打开它。
Clapper 不是一个完美的视频播放器。然而,它有可能成为一个流行的 Linux 应用。
Clapper 不是一个完美的视频播放器。然而,它有可能成为一个流行的 Linux 应用。
如果你使用它,请分享你的经验。如果你发现问题,请[通知开发者][14]。
@ -72,7 +72,7 @@ via: https://itsfoss.com/clapper-video-player/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
校对:[turbokernel](https://github.com/turbokernel)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出

View File

@ -0,0 +1,108 @@
[#]: subject: (How to use cron on Linux)
[#]: via: (https://opensource.com/article/21/7/cron-linux)
[#]: author: (Seth Kenlon https://opensource.com/users/seth)
[#]: collector: (lujun9972)
[#]: translator: (perfiffer)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
在 Linux 上怎么使用 cron 定时器
======
cron 定时器是一个可以按照计划自动运行命令的工具。
![Cron 表达式][1]
cron定时器是一个可以按照计划自动运行命令的工具。这个定时器作业被叫做 cronjob它被创建在 crontab 文件中。这是用户自动操作电脑的最简单也是最古老的方法。
### 创建一个 cronjob
要创建一个 cronjob你可以使用 crontab 命令,并添加 `-e` 选项:
```
`$ crontab -e`
```
这会使用默认的文本编辑器打开 crontab。要显示设置文本编辑器请使用 `EDITOR` [环境变量][1]
```
`$ EDITOR=nano crontab -e`
```
### Cron 语法
要调度一个 cronjob你需要提供给计算机你想要执行的命令然后提供一个 cron 表达式。cron 表达式在命令调度时运行:
* minute (0 到 59)
* hour (0 到 23, 0 代表午夜执行)
* day of month (1 到 31)
* month (1 到 12)
* day of week (0 到 6, 星期天是 0)
星号 `*` 代表的是“每一个”。例如,下面的表达式在每月每日每小时的 0 分钟运行备份脚本:
```
`/opt/backup.sh 0 * * * *`
```
下面的表达式在周日的凌晨 3:30 运行备份脚本:
```
`/opt/backup.sh 30 3 * * 0`
```
### 简写语法
现代的 cron 实现接收简化的宏,而不是 cron 表达式:
* `@hourly` 在每天的每小时的 0 分运行
* `@daily` 在每天的 0 时 0 分运行
* `@weekly` 在周日的 0 时 0 分运行
* `@monthly` 在每月的第一天的 0 时 0 分运行
例如,下面的 crontab 命令在每天的 0 时运行备份脚本:
```
`/opt/backup.sh @daily`
```
### 如何停止一个 cronjob
一旦你开始了一个 cronjob它就会永远按照计划运行。想要在启动后停止 cronjob你必须编辑 crontab删除触发该作业的命令行然后保存文件。
```
`$ EDITOR=nano crontab -e`
```
要停止一个正在运行的作业,可以[使用标准的Linux进程命令][3]来停止一个正在运行的进程。
### 它是自动的
一旦你编写完 crontab保存了文件并且退出了编辑器。你的 cronjob 就已经被调度了,剩下的工作都由 cron 完成。
--------------------------------------------------------------------------------
via: https://opensource.com/article/21/7/cron-linux
作者:[Seth Kenlon][a]
选题:[lujun9972][b]
译者:[perfiffer](https://github.com/perfiffer)
校对:[校对者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/cron-splash.png?itok=AoBigzts (Cron expression)
[2]: https://opensource.com/article/19/8/what-are-environment-variables
[3]: https://opensource.com/article/18/5/how-kill-process-stop-program-linux