mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
Merge remote-tracking branch 'LCTT/master'
This commit is contained in:
commit
42a2ef6b37
@ -1,20 +1,22 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: reviewer: (wxy)
|
||||
[#]: publisher: (wxy)
|
||||
[#]: url: (https://linux.cn/article-12530-1.html)
|
||||
[#]: subject: (Set up Vim as your Rust IDE)
|
||||
[#]: via: (https://opensource.com/article/20/7/vim-rust-ide)
|
||||
[#]: author: (Daniel Oh https://opensource.com/users/daniel-oh)
|
||||
|
||||
将 Vim 设置为 Rust IDE
|
||||
======
|
||||
Vim 编辑器是很好的 Rust 应用开发环境。
|
||||
|
||||
> Vim 编辑器是很好的 Rust 应用开发环境。
|
||||
|
||||
![Ferris the crab under the sea, unofficial logo for Rust programming language][1]
|
||||
|
||||
[Rust][2] 语言旨在以 C++ 开发人员熟悉的方式实现具有安全并发性和高内存性能的系统编程。它也是 [Stack Overflow 的 2019 年开发人员调查][3]中最受欢迎的编程语言之一。
|
||||
|
||||
文本编辑器和[集成开发环境(IDE)工具][4]使编写 Rust 代码更加轻松快捷。有很多编辑器可供选择,但是我相信 [Vim 编辑器][5]非常适合 Rust IDE。在本文中,我将说明如何为 Rust 应用开发设置 Vim。
|
||||
文本编辑器和[集成开发环境(IDE)工具][4]使编写 Rust 代码更加轻松快捷。有很多编辑器可供选择,但是我相信 [Vim 编辑器][5]非常适合作为 Rust IDE。在本文中,我将说明如何为 Rust 应用开发设置 Vim。
|
||||
|
||||
### 安装 Vim
|
||||
|
||||
@ -24,14 +26,12 @@ Vim 是 Linux 和 Unix 中最常用的命令行文本编辑器之一。最新版
|
||||
|
||||
要设置 Rust 进行开发,请下载 [Rustup][10],这是一个方便的 Rust 安装器工具,并在你的终端上运行以下命令(如果你使用 macOS、Linux 或任何其他类 Unix 系统):
|
||||
|
||||
|
||||
```
|
||||
`$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`
|
||||
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
```
|
||||
|
||||
在提示中选择安装选项。然后,你将看到如下输出:
|
||||
|
||||
|
||||
```
|
||||
stable installed - rustc 1.43.1 (8d69840ab 2020-05-04)
|
||||
|
||||
@ -46,16 +46,14 @@ To configure your current shell run source $HOME/.cargo/env
|
||||
|
||||
### 语法高亮
|
||||
|
||||
Vim 能让你通过 `.vimrc` 文件配置你的运行时。要启用语法高亮,请打开 `.vimrc` 文件(如果不存在就创建一个):
|
||||
|
||||
Vim 能让你通过 `.vimrc` 文件配置你的运行时环境。要启用语法高亮,请打开 `.vimrc` 文件(如果不存在就创建一个):
|
||||
|
||||
```
|
||||
`$ vim ~/.vimrc`
|
||||
$ vim ~/.vimrc
|
||||
```
|
||||
|
||||
在 `.vimrc` 中添加以下内容并保存:
|
||||
|
||||
|
||||
```
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
@ -67,32 +65,26 @@ syntax on
|
||||
|
||||
要使用 Vim 创建一个新的 Rust HelloWorld 应用(`hello.rs`),请输入:
|
||||
|
||||
|
||||
```
|
||||
`$ vim hello.rs`
|
||||
$ vim hello.rs
|
||||
```
|
||||
|
||||
输入以下 Rust 代码在控制台中打印 **Hello World!**:
|
||||
|
||||
输入以下 Rust 代码在控制台中打印 `Hello World!`:
|
||||
|
||||
```
|
||||
fn main() {
|
||||
println!("Hello World");
|
||||
}
|
||||
fn main() {
|
||||
println!("Hello World");
|
||||
}
|
||||
```
|
||||
|
||||
它看起来应该像这样:
|
||||
|
||||
![Rust code with syntax highlighting][12]
|
||||
|
||||
(Daniel Oh, [CC BY-SA 4.0][13])
|
||||
|
||||
没有语法高亮的样子如下:
|
||||
|
||||
![Rust code without syntax highlighting][14]
|
||||
|
||||
(Daniel Oh, [CC BY-SA 4.0][13])
|
||||
|
||||
你是否注意到 Vim 自动缩进和组织代码?那是因为你在 `.vimrc` 文件中输入了第一行。
|
||||
|
||||
很好!接下来,你将使用 Rust 的包管理器 [Cargo][15] 构建此应用。
|
||||
@ -101,21 +93,18 @@ syntax on
|
||||
|
||||
Cargo 使创建应用更加容易。要查看操作方法,请创建一个基于 Cargo 的 HelloWorld 应用。如果你尚未在 Linux 或 macOS 系统上安装 Cargo,请输入:
|
||||
|
||||
|
||||
```
|
||||
`$ curl https://sh.rustup.rs -sSf | sh`
|
||||
$ curl https://sh.rustup.rs -sSf | sh
|
||||
```
|
||||
|
||||
然后使用 Cargo 创建包:
|
||||
|
||||
|
||||
```
|
||||
`$ cargo new my_hello_world`
|
||||
$ cargo new my_hello_world
|
||||
```
|
||||
|
||||
如果查看目录结构,你会看到 Cargo 自动生成一些源码和目录。如果你安装了 `tree`,请运行它查看目录结构:
|
||||
|
||||
|
||||
```
|
||||
$ tree my_hello_world
|
||||
my_hello_world
|
||||
@ -128,14 +117,12 @@ my_hello_world
|
||||
|
||||
在 Vim 中打开 `main.rs` 源码文件:
|
||||
|
||||
|
||||
```
|
||||
`$ vim my_hello_world/src/main.rs`
|
||||
$ vim my_hello_world/src/main.rs
|
||||
```
|
||||
|
||||
它与你在上面手动创建的 HelloWorld 示例中的代码相同。用 `Rust with Vim` 代替 `World`:
|
||||
|
||||
|
||||
```
|
||||
fn main() {
|
||||
println!("Hello, Rust with Vim");
|
||||
@ -156,7 +143,6 @@ $ cargo build
|
||||
|
||||
你的终端输出将类似于以下内容:
|
||||
|
||||
|
||||
```
|
||||
Compiling my_hello_world v0.1.0 (/Users/danieloh/cloud-native-app-dev/rust/my_hello_world)
|
||||
|
||||
@ -167,7 +153,6 @@ $ cargo build
|
||||
|
||||
运行应用:
|
||||
|
||||
|
||||
```
|
||||
$ target/debug/my_hello_world
|
||||
Hello, Rust with Vim!
|
||||
@ -175,7 +160,6 @@ Hello, Rust with Vim!
|
||||
|
||||
你也可以使用 `cargo run` 一次构建和运行应用:
|
||||
|
||||
|
||||
```
|
||||
$ cargo run
|
||||
|
||||
@ -184,7 +168,7 @@ $ cargo run
|
||||
Hello, Rust with Vim!!
|
||||
```
|
||||
|
||||
恭喜!你在本地的 VIm 编辑器中设置了 Rust IDE,开发了第一个 Rust 应用,并使用 Cargo 包管理器工具构建、测试和运行了它。如果你想学习其他 Cargo 命令,请运行 `cargo help`。
|
||||
恭喜!你在本地的 Vim 编辑器中设置了 Rust IDE,开发了第一个 Rust 应用,并使用 Cargo 包管理器工具构建、测试和运行了它。如果你想学习其他 Cargo 命令,请运行 `cargo help`。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@ -193,7 +177,7 @@ via: https://opensource.com/article/20/7/vim-rust-ide
|
||||
作者:[Daniel Oh][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/) 荣誉推出
|
||||
|
@ -1,22 +1,22 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (wxy)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: reviewer: (wxy)
|
||||
[#]: publisher: (wxy)
|
||||
[#]: url: (https://linux.cn/article-12533-1.html)
|
||||
[#]: subject: (Debug Linux using ProcDump)
|
||||
[#]: via: (https://opensource.com/article/20/7/procdump-linux)
|
||||
[#]: author: (Gaurav Kamathe https://opensource.com/users/gkamathe)
|
||||
|
||||
使用 ProcDump 调试 Linux
|
||||
使用微软的 ProcDump 调试 Linux 进程
|
||||
======
|
||||
|
||||
> 用这个微软的开源工具,获取进程信息。
|
||||
|
||||
![渣土车在路上转弯][1] 。
|
||||
![](https://img.linux.net.cn/data/attachment/album/202008/20/095646k5wz7cd11vyc7lhr.jpg)
|
||||
|
||||
微软越来越心仪 Linux 和开放源码,这并不是什么秘密。在过去几年中,该公司稳步增加对开源的贡献,包括将其部分软件和工具移植到 Linux。2018 年底,微软[宣布][2]将其部分 [Sysinternals][3] 工具以开源的方式移植到 Linux,[Linux 版的 ProcDump][4]是第一个这样的版本。
|
||||
微软越来越心仪 Linux 和开源,这并不是什么秘密。在过去几年中,该公司稳步地增加了对开源的贡献,包括将其部分软件和工具移植到 Linux。2018 年底,微软[宣布][2]将其 [Sysinternals][3] 的部分工具以开源的方式移植到 Linux,[Linux 版的 ProcDump][4]是其中的第一个。
|
||||
|
||||
如果你在 Windows 上从事过调试或故障排除工作,你可能听说过 Sysinternals。它是一个“瑞士军刀”工具集,可以帮助系统管理员、开发人员和 IT 安全专家监控和排除 Windows 环境的故障。
|
||||
如果你在 Windows 上从事过调试或故障排除工作,你可能听说过 Sysinternals,它是一个“瑞士军刀”工具集,可以帮助系统管理员、开发人员和 IT 安全专家监控和排除 Windows 环境的故障。
|
||||
|
||||
Sysinternals 最受欢迎的工具之一是 [ProcDump][5]。顾名思义,它用于将正在运行的进程的内存转储到磁盘上的一个核心文件中。然后可以用调试器对这个核心文件进行分析,了解转储时进程的状态。因为之前用过 Sysinternals,所以我很想试试 ProcDump 的 Linux 移植版。
|
||||
|
||||
@ -93,7 +93,7 @@ bin/ProcDumpTestApplication: ELF 64-bit LSB executable, x86-64, version 1 (SYSV)
|
||||
$
|
||||
```
|
||||
|
||||
在此情况下,每次运行 `procdump` 实用程序时,你都必须移动到 `bin/` 文件夹中。要使它在系统中的任何地方都可以使用,运行 `make install`。这将二进制文件复制到通常的 `bin/` 目录中,它是你的 shell `$PATH` 的一部分:
|
||||
在此情况下,每次运行 `procdump` 实用程序时,你都必须移动到 `bin/` 文件夹中。要使它在系统中的任何地方都可以使用,运行 `make install`。这将这个二进制文件复制到通常的 `bin/` 目录中,它是你的 shell `$PATH` 的一部分:
|
||||
|
||||
```
|
||||
$ which procdump
|
||||
@ -153,7 +153,7 @@ root 350508 347350 0 03:29 pts/0 00:00:00 grep --color=auto pro
|
||||
$
|
||||
```
|
||||
|
||||
当测试进程正在运行时,调用 `procdump` 并提供 PID。输出表明了该进程的名称和 PID,并报告它生成了一个核心转储文件,并显示其文件名:
|
||||
当测试进程正在运行时,调用 `procdump` 并提供 PID。下面的输出表明了该进程的名称和 PID,并报告它生成了一个核心转储文件,并显示其文件名:
|
||||
|
||||
```
|
||||
$ procdump -p 350498
|
||||
@ -262,7 +262,7 @@ $
|
||||
|
||||
### 你应该使用 ProcDump 还是 gcore?
|
||||
|
||||
有几种情况下,你可能更喜欢使用 ProcDump 而不是 gcore,ProcDump 有一些内置的功能,在一般情况下可能很有用。
|
||||
有几种情况下,你可能更喜欢使用 ProcDump 而不是 gcore,ProcDump 有一些内置的功能,在一些情况下可能很有用。
|
||||
|
||||
#### 等待测试二进制文件的执行
|
||||
|
||||
@ -306,7 +306,7 @@ $ ./progxyz &
|
||||
$
|
||||
```
|
||||
|
||||
ProcDump 立即检测到二进制正在运行,并转储这个二进制的核心文件:
|
||||
ProcDump 立即检测到该二进制正在运行,并转储这个二进制的核心文件:
|
||||
|
||||
```
|
||||
[03:39:23 - INFO]: Waiting for process 'progxyz' to launch...
|
||||
@ -391,7 +391,7 @@ via: https://opensource.com/article/20/7/procdump-linux
|
||||
作者:[Gaurav Kamathe][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[wxy](https://github.com/wxy)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
校对:[wxy](https://github.com/wxy)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
@ -0,0 +1,91 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: ( )
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (Rejoice KDE Lovers! MX Linux Joins the KDE Bandwagon and Now You Can Download MX Linux KDE Edition)
|
||||
[#]: via: (https://itsfoss.com/mx-linux-kde-edition/)
|
||||
[#]: author: (Ankush Das https://itsfoss.com/author/ankush/)
|
||||
|
||||
Rejoice KDE Lovers! MX Linux Joins the KDE Bandwagon and Now You Can Download MX Linux KDE Edition
|
||||
======
|
||||
|
||||
Debian-based [MX Linux][1] is already an impressive Linux distribution with [Xfce desktop environment][2] as the default. Even though it works good and is suitable to run with minimal hardware configuration, it still isn’t the best Linux distribution in terms of eye candy.
|
||||
|
||||
That’s where KDE comes to the rescue. Of late, KDE Plasma has reduced a lot of weight and it uses fewer system resources without compromising on the modern looks. No wonder KDE Plasma is one of [the best desktop environments][3] out there.
|
||||
|
||||
![][4]
|
||||
|
||||
With [MX Linux 19.2][5], they began testing a KDE edition and have finally released their first KDE version.
|
||||
|
||||
Also, the KDE edition comes with Advanced Hardware Support (AHS) enabled. Here’s what they have mentioned in their release notes:
|
||||
|
||||
> MX-19.2 KDE is an **Advanced Hardware Support (AHS) **enabled **64-bit only** version of MX featuring the KDE/plasma desktop. Applications utilizing Qt library frameworks are given a preference for inclusion on the iso.
|
||||
|
||||
As I mentioned it earlier, this is MX Linux’s first KDE edition ever, and they’ve also shed some light on it with the announcement as well:
|
||||
|
||||
> This will be first officially supported MX/antiX family iso utilizing the KDE/plasma desktop since the halting of the predecessor MEPIS project in 2013.
|
||||
|
||||
Personally, I enjoyed the experience of using MX Linux until I started using [Pop OS 20.04][6]. So, I’ll give you some key highlights of MX Linux 19.2 KDE edition along with my impressions of testing it.
|
||||
|
||||
### MX Linux 19.2 KDE: Overview
|
||||
|
||||
![][7]
|
||||
|
||||
Out of the box, MX Linux looks cleaner and more attractive with KDE desktop on board. Unlike KDE Neon, it doesn’t feature the latest and greatest KDE stuff, but it looks to be doing the job intended.
|
||||
|
||||
Of course, you will get the same options that you expect from a KDE-powered distro to customize the look and feel of your desktop. In addition to the obvious KDE perks, you will also get the usual MX tools, antiX-live-usb-system, and snapshot feature that comes baked in the Xfce edition.
|
||||
|
||||
It’s a great thing to have the best of both worlds here, as stated in their announcement:
|
||||
|
||||
> MX-19.2 KDE includes the usual MX tools, antiX-live-usb-system, and snapshot technology that our users have come to expect from our standard flagship Xfce releases. Adding KDE/plasma to the existing Xfce/MX-fluxbox desktops will provide for a wider range user needs and wants.
|
||||
|
||||
I haven’t performed a great deal of tests but I did have some issues with extracting archives (it didn’t work the first try) and copy-pasting a file to a new location. Not sure if those are some known bugs — but I thought I should let you know here.
|
||||
|
||||
![][8]
|
||||
|
||||
Other than that, it features every useful tool you’d want to have and works great. With KDE on board, it actually feels more polished and smooth in my case.
|
||||
|
||||
Along with KDE Plasma 5.14.5 on top of Debian 10 “buster”, it also comes with GIMP 2.10.12, MESA, Debian (AHS) 5.6 Kernel, Firefox browser, and few other goodies like VLC, Thunderbird, LibreOffice, and Clementine music player.
|
||||
|
||||
You can also look for more stuff in the MX repositories.
|
||||
|
||||
![][9]
|
||||
|
||||
There are some known issues with the release like the System clock settings not being able adjustable via KDE settings. You can check their [announcement post][10] for more information or their [bug list][11] to make sure everything’s fine before trying it out on your production system.
|
||||
|
||||
### Wrapping Up
|
||||
|
||||
MX Linux 19.2 KDE edition is definitely more impressive than its Xfce offering in my opinion. It would take a while to iron out the bugs for this first KDE release — but it’s not a bad start.
|
||||
|
||||
Speaking of KDE, I recently tested out KDE Neon, the official KDE distribution. I shared my experience in this video. I’ll try to do a video on MX Linux KDE flavor as well.
|
||||
|
||||
[Subscribe to our YouTube channel for more Linux videos][12]
|
||||
|
||||
Have you tried it yet? Let me know your thoughts in the comments below!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/mx-linux-kde-edition/
|
||||
|
||||
作者:[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://itsfoss.com/author/ankush/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://mxlinux.org/
|
||||
[2]: https://www.xfce.org/
|
||||
[3]: https://itsfoss.com/best-linux-desktop-environments/
|
||||
[4]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/08/mx-linux-kde-edition.jpg?resize=800%2C450&ssl=1
|
||||
[5]: https://mxlinux.org/blog/mx-19-2-now-available/
|
||||
[6]: https://itsfoss.com/pop-os-20-04-review/
|
||||
[7]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/08/mx-linux-19-2-kde.jpg?resize=800%2C452&ssl=1
|
||||
[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/08/mx-linux-19-2-kde-filemanager.jpg?resize=800%2C452&ssl=1
|
||||
[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/08/mx-linux-19-2-kde-info.jpg?resize=800%2C452&ssl=1
|
||||
[10]: https://mxlinux.org/blog/mx-19-2-kde-now-available/
|
||||
[11]: https://bugs.mxlinux.org/
|
||||
[12]: https://www.youtube.com/c/itsfoss?sub_confirmation=1
|
@ -1,5 +1,5 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: ( )
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
|
@ -1,140 +0,0 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (FreeFileSync: Open Source File Synchronization Tool)
|
||||
[#]: via: (https://itsfoss.com/freefilesync/)
|
||||
[#]: author: (Ankush Das https://itsfoss.com/author/ankush/)
|
||||
|
||||
FreeFileSync: Open Source File Synchronization Tool
|
||||
======
|
||||
|
||||
_**Brief: FreeFileSync is an open-source folder comparison and sync tool with which you can back up your data to an external disk, a cloud service like Google Drive or any other storage path.**_
|
||||
|
||||
### FreeFileSync: A Free & Open-Source Tool To Sync Files
|
||||
|
||||
![][1]
|
||||
|
||||
[FreeFileSync][2] is an impressive open-source tool that can help you back up your data to a different location.
|
||||
|
||||
This different location can be an external USB disk, Google Drive or to any of your cloud storage locations using **SFTP or FTP** connections.
|
||||
|
||||
You might have read our tutorial on [how to use Google Drive on Linux][3] before. Unfortunately, there’s no proper FOSS solution to use Google Drive natively on Linux. There is [Insync][4] but it is a premium, non open source software.
|
||||
|
||||
FreeFileSync can be used to sync files with your Google Drive account. In fact, I’m using it to sync my files to Google Drive and to a separate hard drive.
|
||||
|
||||
### Features of FreeFileSync
|
||||
|
||||
![][5]
|
||||
|
||||
Even though the UI of FreeFileSync might look old school — it offers a ton of useful features for average users and advanced users as well.
|
||||
|
||||
I’ll highlight all the features I can here:
|
||||
|
||||
* Cross-platform support (Windows, macOS & Linux)
|
||||
* Compare folders before synchronizing
|
||||
* Supports Google Drive, [SFTP][6], and FTP connections
|
||||
* Offers the ability to sync your files on a different storage path (or an external storage device)
|
||||
* Multiple synchronization options available (Update files to the target from source or Mirror the files between target and source)
|
||||
* Two-way synchronization supported (changes will be synced if there’s any modification on the target folder or the source folder)
|
||||
* Version control available for advanced users
|
||||
* Real-Time Sync option available
|
||||
* Ability to schedule batch jobs
|
||||
* Get notified via email when sync completes (paid)
|
||||
* Portable edition (paid)
|
||||
* Parallel file copy (paid)
|
||||
|
||||
|
||||
|
||||
So, if you take a look at the features it offers, it’s not just any ordinary sync tool but offers so much more for free.
|
||||
|
||||
Also, to give you an idea, you can also tweak how to compare the files before syncing them. For instance, you can compare the file content / file time or simply compare the file size of both source and target folder.
|
||||
|
||||
![][7]
|
||||
|
||||
You also get numerous synchronization options to mirror or update your data. Here’s how it looks like:
|
||||
|
||||
![][8]
|
||||
|
||||
However, it does give you the option to opt for a donation key which unlocks some special features like the ability to notify you via email when the sync completes and so on.
|
||||
|
||||
Here’s what different between the free and paid version:
|
||||
|
||||
![][9]
|
||||
|
||||
So, most of the essential features is available for free. The premium features are mostly for advanced users and of course, if you want to support them (please do if you find it useful).
|
||||
|
||||
Also, do note that the donation edition can be used by a single user on up to 3 devices. So, that is definitely not bad!
|
||||
|
||||
### Installing FreeFileSync on Linux
|
||||
|
||||
You can simply head on to its [official download page][10] and grab the **tar.gz** file for Linux. If you like you can download the source as well.
|
||||
|
||||
![][11]
|
||||
|
||||
Next, you just need to extract the archive and run the executable file to get started (as shown in the image above)
|
||||
|
||||
[Download FreeFileSync][2]
|
||||
|
||||
### How To Get Started With FreeFileSync?
|
||||
|
||||
While I haven’t tried successfully creating an automatic sync job, it is pretty easy to use.
|
||||
|
||||
The [official documentation][12] should be more than enough to get what you want using the software.
|
||||
|
||||
But, just to give you a head start, here are a few things that you should keep in mind.
|
||||
|
||||
![][13]
|
||||
|
||||
As you can see in the screenshot above, you just have to select a source folder and the target folder to sync. You can choose a local folder or a cloud storage location.
|
||||
|
||||
Once you do that, you need to tweak the type of folder comparison you want to do (usually the file time & size) for the synchronization process and on the right-side, you get to tweak the type of sync that you want to perform.
|
||||
|
||||
#### Types of synchronization in FreeFileSync
|
||||
|
||||
When you select **“Update” method for sync**, it simply copies your new data from the source folder to the target folder. So, even if you delete something from your source folder, it won’t get deleted on your target folder.
|
||||
|
||||
In case you want the target folder to have the same file copies of your same folder, you can choose the **“Mirror”** **synchronization method**. So, here, if you delete something from your source, it gets deleted from your target folder as well.
|
||||
|
||||
There’s also a **“Two-way” sync method** which detects changes on both source and target folder (instead of monitoring just the source folder). So, if you make any changes on the source/target folder, the modification will be synchronized.
|
||||
|
||||
For more advanced usage, I suggest you to refer the [documentation][12] available.
|
||||
|
||||
### Wrapping Up
|
||||
|
||||
Another [open source file synchronization tool is Syncthing][14] that you might want to look at.
|
||||
|
||||
FreeFileSync is a pretty underrated folder comparison and sync tool available for Linux users who utilize Google Drive, SFTP, or FTP connections along with separate storage locations for backup.
|
||||
|
||||
And, all of that — with cross-platform support for Windows, macOS, and Linux available for free.
|
||||
|
||||
Isn’t that exciting? Let me know your thoughts on FreeFileSync in the comments down below.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/freefilesync/
|
||||
|
||||
作者:[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://itsfoss.com/author/ankush/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/05/free-file-sync.jpg?ssl=1
|
||||
[2]: https://freefilesync.org/
|
||||
[3]: https://itsfoss.com/use-google-drive-linux/
|
||||
[4]: https://itsfoss.com/recommends/insync/
|
||||
[5]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/05/FreeFileSync.jpg?ssl=1
|
||||
[6]: https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol
|
||||
[7]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/05/freefilesync-comparison.png?ssl=1
|
||||
[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/freefilesync-synchronization.png?ssl=1
|
||||
[9]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/free-file-sync-donation-edition.jpg?ssl=1
|
||||
[10]: https://freefilesync.org/download.php
|
||||
[11]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/freefilesync-run.jpg?ssl=1
|
||||
[12]: https://freefilesync.org/manual.php
|
||||
[13]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/05/freefilesync-tips.jpg?ssl=1
|
||||
[14]: https://itsfoss.com/syncthing/
|
@ -1,5 +1,5 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: ( )
|
||||
[#]: translator: (FSSlc)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
@ -299,7 +299,7 @@ via: https://opensource.com/article/20/7/nmcli
|
||||
|
||||
作者:[Dave McKay][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
译者:[FSSlc](https://github.com/FSSlc)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
@ -1,109 +0,0 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (Come test a new release of pipenv, the Python development tool)
|
||||
[#]: via: (https://fedoramagazine.org/come-test-a-new-release-of-pipenv-the-python-development-tool/)
|
||||
[#]: author: (torsava https://fedoramagazine.org/author/torsava/)
|
||||
|
||||
Come test a new release of pipenv, the Python development tool
|
||||
======
|
||||
|
||||
![][1]
|
||||
|
||||
**[Pipenv][2]** is a tool that helps Python developers maintain isolated virtual environments with specifacally defined set of dependencies to achieve reproducible development and deployment environments. It is similar to tools for different programming languages, such as bundler, composer, npm, cargo, yarn, etc.
|
||||
|
||||
A new version of pipenv, 2020.6.2, has been recently released. It is now available in Fedora 33 and rawhide. For older Fedoras, the maintainers decided to package it in [COPR][3] to be tested first. So come try it out, before they push it into stable Fedora versions. The new version doesn’t bring any fancy new features, but after two years of development it fixes a lot of problems and does many things differently under the hood. What worked for you previously should continue to work, but might behave slightly differently.
|
||||
|
||||
### How to get it
|
||||
|
||||
If you are already running Fedora 33 or rawhide, run _$ sudo dnf upgrade pipenv_ or _$ sudo dnf install pipenv_ and you’ll get the new version.
|
||||
|
||||
On Fedora 31 or Fedora 32, you’ll need to use a [copr repository][3] until such time comes that the tested package will be updated in the official place. To enable the repository, run:
|
||||
|
||||
```
|
||||
$ sudo dnf copr enable @python/pipenv
|
||||
```
|
||||
|
||||
Then to upgrade pipenv to the new version, run:
|
||||
|
||||
```
|
||||
$ sudo dnf upgrade pipenv
|
||||
```
|
||||
|
||||
Or, if you haven’t installed it yet, install it via:
|
||||
|
||||
```
|
||||
$ sudo dnf install pipenv
|
||||
```
|
||||
|
||||
In case you ever need to roll back to the officially maintained version, you can run:
|
||||
|
||||
```
|
||||
$ sudo dnf copr disable @python/pipenv
|
||||
$ sudo dnf distro-sync pipenv
|
||||
```
|
||||
|
||||
_COPR is not officially supported by Fedora infrastructure. Use packages at your own risk._
|
||||
|
||||
### How to use it
|
||||
|
||||
If you already have projects managed by the older version of pipenv, you should be able to use the new version in its place without issues. Let us know if something breaks.
|
||||
|
||||
If you are not yet familiar with pipenv or want to start a new project, here is a quick guide:
|
||||
|
||||
Create a working directory:
|
||||
|
||||
```
|
||||
$ mkdir new-project && cd new-project
|
||||
```
|
||||
|
||||
Initialize pipenv with Python 3:
|
||||
|
||||
```
|
||||
$ pipenv --three
|
||||
```
|
||||
|
||||
Install the packages you want, e.g.:
|
||||
|
||||
```
|
||||
$ pipenv install six
|
||||
```
|
||||
|
||||
Generate a Pipfile.lock file:
|
||||
|
||||
```
|
||||
$ pipenv lock
|
||||
```
|
||||
|
||||
Now you can commit the created Pipfile and Pipfile.lock files into your version control system (e.g. git) and others can use this command in the cloned repository to get the same environment:
|
||||
|
||||
```
|
||||
$ pipenv install
|
||||
```
|
||||
|
||||
See [pipenv’s documentation][4] for more examples.
|
||||
|
||||
### How to report problems
|
||||
|
||||
If you encounter any problems with the new pipenv version, please [report any issues in Fedora’s Bugzilla][5]. The maintainers of the pipenv package in official Fedora repositories and in the copr repository are the same. Please indicate in the text that the report is regarding this new version.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://fedoramagazine.org/come-test-a-new-release-of-pipenv-the-python-development-tool/
|
||||
|
||||
作者:[torsava][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/torsava/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://fedoramagazine.org/wp-content/uploads/2018/06/pipenv-install-816x345.jpg
|
||||
[2]: https://github.com/pypa/pipenv
|
||||
[3]: https://copr.fedorainfracloud.org/coprs/g/python/pipenv/
|
||||
[4]: https://pipenv.pypa.io/en/latest/install/
|
||||
[5]: https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=pipenv
|
@ -1,5 +1,5 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: ( )
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
|
@ -0,0 +1,141 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (FreeFileSync: Open Source File Synchronization Tool)
|
||||
[#]: via: (https://itsfoss.com/freefilesync/)
|
||||
[#]: author: (Ankush Das https://itsfoss.com/author/ankush/)
|
||||
|
||||
FreeFileSync:开源文件同步工具
|
||||
======
|
||||
|
||||
_**简介:FreeFileSync 是一个开源文件夹比较和同步工具,你可以使用它将数据备份到外部磁盘、云服务(如 Google Drive)或任何其他存储路径。**_
|
||||
|
||||
### FreeFileSync:一个免费和开源的同步工具
|
||||
|
||||
![][1]
|
||||
|
||||
[FreeFileSync][2] 是一个令人印象深刻的开源工具,可以帮助你将数据备份到其他位置。
|
||||
|
||||
它们可以是外部 USB 磁盘、Google Drive 或使用 **SFTP 或 FTP** 连接到任何云存储。
|
||||
|
||||
你可能之前读过我们的[如何在 Linux 上使用 Google Drive][3] 的教程。不幸的是, 没有合适的在 Linux 上原生使用 Google Drive 的 FOSS 方案。还有 [Insync][4],但它是收费软件而非开源软件。
|
||||
|
||||
FreeFileSync 可使用 Google Drive 帐户同步文件。事实上,我用它把我的文件同步到 Google Drive 和一个单独的硬盘上。
|
||||
|
||||
### FreeFileSync 的功能
|
||||
|
||||
![][5]
|
||||
|
||||
尽管 FreeFileSync 的 UI 看起来可能很老,但它为普通用户和高级用户提供了许多有用的功能。
|
||||
|
||||
我将在此处重点介绍所有功能:
|
||||
|
||||
* Parallel file copy (paid)
|
||||
* 跨平台支持(Windows、macOS 和 Linux)
|
||||
* 同步前比较文件夹
|
||||
* 支持 Google Drive、[SFTP][6] 和 FTP 连接
|
||||
* 提供在不同的存储路径(或外部存储设备)上同步文件的能力
|
||||
* 多个可用的同步选项(从源更新文件到目标或镜像目标和源之间的文件)
|
||||
* 支持双向同步(如果目标文件夹或源文件夹有任何修改,将同步更改)
|
||||
* 适用于高级用户的版本控制
|
||||
* 可进行实时同步
|
||||
* 能安排批处理作业
|
||||
* 同步完成时通过电子邮件收到通知(付费)
|
||||
* 便携式版(付费)
|
||||
* 并行文件复制(付费)
|
||||
|
||||
|
||||
|
||||
如果你看一下它提供的功能,它不仅是普通的同步工具,而且还免费提供了更多功能。
|
||||
|
||||
此外,为了让你了解,你还可以在同步文件之前先比较它们。例如,你可以比较文件内容/文件时间,或者简单地比较源文件夹和目标文件夹的文件大小。
|
||||
|
||||
![][7]
|
||||
|
||||
你还有许多同步选项来镜像或更新数据。如下所示:
|
||||
|
||||
![][8]
|
||||
|
||||
但是,它也为你提供了捐赠密钥的选项,它可解锁一些特殊功能,如在同步完成时通过电子邮件通知你等。
|
||||
|
||||
以下是免费版本和付费版本的不同:
|
||||
|
||||
![][9]
|
||||
|
||||
因此,大多数基本功能是免费的。高级功能主要是针对高级用户,当然,如果你想支持他们也可以。(如果你觉得它有用,请这么做)。
|
||||
|
||||
此外,请注意,捐赠版单用户最多可在 3 台设备上使用。所以,这绝对不坏!
|
||||
|
||||
### 在 Linux 上安装 FreeFileSync
|
||||
|
||||
你可以前往它的[官方下载页面][10],并下载 Linux 的 **tar.gz**文件。如果你喜欢,你还可以下载源码。
|
||||
|
||||
![][11]
|
||||
|
||||
接下来,你只需解压并运行可执行文件就可以了(如上图所示)
|
||||
|
||||
[Download FreeFileSync][2]
|
||||
|
||||
### 如何开始使用 FreeFileSync?
|
||||
|
||||
虽然我还没有尝试成功创建自动同步作业,但它很容易使用。
|
||||
|
||||
[官方文档][12]应该足以让你获得想要的。
|
||||
|
||||
但是,为了让你初步了解,这里有一些事情,你应该记住。
|
||||
|
||||
![][13]
|
||||
|
||||
如上面的截图所示,你只需选择源文件夹和要同步的目标文件夹。你可以选择本地文件夹或云存储位置。
|
||||
|
||||
完成后,你需要选择在同步中文件夹比较的类型(通常是文件时间和大小),在右侧,你可以调整要执行的同步类型。
|
||||
|
||||
#### FreeFileSync 的同步类型
|
||||
|
||||
当你选择**“更新”方式进行同步**时,它只需将新数据从源文件夹复制到目标文件夹。因此,即使你从源文件夹中删除了某些东西,它也不会在目标文件夹中被删除。
|
||||
|
||||
如果你希望目标文件夹有相同的文件副本,可以选择**“镜像”同步方式**。这样,如果你从源文件夹中删除内容,它就会从目标文件夹中删除。
|
||||
|
||||
还有一个**“双向”同步方式**,它检测源文件夹和目标文件夹的更改(而不是只监视源文件夹)。因此,如果对源/目标文件夹进行了任何更改,都将同步修改。
|
||||
|
||||
有关更高级的用法,我建议你参考[文档][12]。
|
||||
|
||||
### 总结
|
||||
|
||||
还有一个[开源文件同步工具是 Syncthing][14],你可能想要看看。
|
||||
|
||||
FreeFileSync 是一个相当被低估的文件夹比较和同步工具,适用于使用 Google Drive、SFTP 或 FTP 连接以及单独的存储位置进行备份的 Linux 用户。
|
||||
|
||||
而且,所有这些功能都免费提供对 Windows、macOS 和 Linux 的跨平台支持。
|
||||
|
||||
这难道不令人兴奋吗?请在下面的评论,让我知道你对 Freefilesync 的看法。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/freefilesync/
|
||||
|
||||
作者:[Ankush Das][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/ankush/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/05/free-file-sync.jpg?ssl=1
|
||||
[2]: https://freefilesync.org/
|
||||
[3]: https://itsfoss.com/use-google-drive-linux/
|
||||
[4]: https://itsfoss.com/recommends/insync/
|
||||
[5]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/05/FreeFileSync.jpg?ssl=1
|
||||
[6]: https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol
|
||||
[7]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/05/freefilesync-comparison.png?ssl=1
|
||||
[8]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/freefilesync-synchronization.png?ssl=1
|
||||
[9]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/free-file-sync-donation-edition.jpg?ssl=1
|
||||
[10]: https://freefilesync.org/download.php
|
||||
[11]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/05/freefilesync-run.jpg?ssl=1
|
||||
[12]: https://freefilesync.org/manual.php
|
||||
[13]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/05/freefilesync-tips.jpg?ssl=1
|
||||
[14]: https://itsfoss.com/syncthing/
|
@ -0,0 +1,110 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (geekpi)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (Come test a new release of pipenv, the Python development tool)
|
||||
[#]: via: (https://fedoramagazine.org/come-test-a-new-release-of-pipenv-the-python-development-tool/)
|
||||
[#]: author: (torsava https://fedoramagazine.org/author/torsava/)
|
||||
|
||||
快来测试 Python 开发工具 pipenv 的新版本
|
||||
======
|
||||
|
||||
![][1]
|
||||
|
||||
**[Pipenv][2]** 是一个可帮助 Python 开发人员维护具有特定一组依赖关系的隔离虚拟环境,以实现可重复的开发和部署环境的工具。它类似于其他编程语言中的工具如 bundler、composer、npm、cargo、yarn 等。
|
||||
|
||||
|
||||
最近发布了新版本的 pipenv 2020.6.2。现在可以在 Fedora 33 和 Rawhide 中使用它。对于较旧的 Fedora,维护人员决定在 [COPR][3] 中打包,然后进行测试。因此,在稳定版 Fedora 中安装之前请先尝试一下。新版本没有带来任何新颖的功能,但是经过两年的开发,它解决了许多问题,并且在底层做了很多不同的事情。之前可以正常工作的应该可以继续工作,但是可能会略有不同。
|
||||
|
||||
### 如何获取
|
||||
|
||||
如果你已经在运行 Fedora 33 或 Rawhide,请运行 _$ sudo dnf upgrade pipenv_ 或者 _$ sudo dnf install pipenv_,你将获得新版本。
|
||||
|
||||
在 Fedora 31 或 Fedora 32 上,你需要使用 [copr 仓库][3],直到经过测试的包出现在官方仓库中为止。要启用仓库,请运行:
|
||||
|
||||
```
|
||||
$ sudo dnf copr enable @python/pipenv
|
||||
```
|
||||
|
||||
然后将 pipenv 升级到新版本,运行:
|
||||
|
||||
```
|
||||
$ sudo dnf upgrade pipenv
|
||||
```
|
||||
|
||||
或者,如果尚未安装,请通过以下方式安装:
|
||||
|
||||
```
|
||||
$ sudo dnf install pipenv
|
||||
```
|
||||
|
||||
如果你需要回滚到官方维护的版本,可以运行:
|
||||
|
||||
```
|
||||
$ sudo dnf copr disable @python/pipenv
|
||||
$ sudo dnf distro-sync pipenv
|
||||
```
|
||||
|
||||
_COPR 不受 Fedora 基础架构的官方支持。使用软件包需要你自担风险。_
|
||||
|
||||
### 如何使用
|
||||
|
||||
如果你有用旧版本 pipenv 管理的项目,你应该可以毫无问题地使用新版本。让我们知道是否有问题。
|
||||
|
||||
如果你还不熟悉 pipenv 或想开始一个新项目,请参考以下快速指南:
|
||||
|
||||
创建一个工作目录:
|
||||
|
||||
```
|
||||
$ mkdir new-project && cd new-project
|
||||
```
|
||||
|
||||
使用 Python 3 初始化 pipenv:
|
||||
|
||||
```
|
||||
$ pipenv --three
|
||||
```
|
||||
|
||||
安装所需的软件包,例如:
|
||||
|
||||
```
|
||||
$ pipenv install six
|
||||
```
|
||||
|
||||
生成 Pipfile.lock 文件:
|
||||
|
||||
```
|
||||
$ pipenv lock
|
||||
```
|
||||
|
||||
现在,你可以将创建的 Pipfile 和 Pipfile.lock 文件提交到版本控制系统(例如 git)中,其他人可以在克隆的仓库中使用此命令来获得相同的环境:
|
||||
|
||||
```
|
||||
$ pipenv install
|
||||
```
|
||||
|
||||
有关更多示例,请参见 [pipenv 的文档][4]。
|
||||
|
||||
### 如何报告问题
|
||||
|
||||
如果你使用新版本的 pipenv 遇到任何问题,请[在 Fedora 的 Bugzilla中 报告问题][5]。Fedora 官方仓库和 copr 仓库中 pipenv 软件包的维护者是相同的。请在报告中指出是新版本。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://fedoramagazine.org/come-test-a-new-release-of-pipenv-the-python-development-tool/
|
||||
|
||||
作者:[torsava][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://fedoramagazine.org/author/torsava/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://fedoramagazine.org/wp-content/uploads/2018/06/pipenv-install-816x345.jpg
|
||||
[2]: https://github.com/pypa/pipenv
|
||||
[3]: https://copr.fedorainfracloud.org/coprs/g/python/pipenv/
|
||||
[4]: https://pipenv.pypa.io/en/latest/install/
|
||||
[5]: https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=pipenv
|
Loading…
Reference in New Issue
Block a user