Merge remote-tracking branch 'LCTT/master'

This commit is contained in:
Xingyu Wang 2020-02-28 09:42:12 +08:00
commit 466b60ef57
8 changed files with 554 additions and 244 deletions

View File

@ -0,0 +1,95 @@
[#]: collector: (lujun9972)
[#]: translator: (wxy)
[#]: reviewer: (wxy)
[#]: publisher: (wxy)
[#]: url: (https://linux.cn/article-11939-1.html)
[#]: subject: (elementary OS is Building an App Center Where You Can Buy Open Source Apps for Your Linux Distribution)
[#]: via: (https://itsfoss.com/appcenter-for-everyone/)
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
elementary OS 正在构建一个可以买应用的开源应用商店
======
> elementary OS 正在构建一个应用中心生态系统,你可以在其中购买用于 Linux 发行版的开源应用程序。
### 众筹构建一个开源应用中心
![][1]
[elementary OS][2] 最近宣布,它正在[众筹举办一个构建应用中心的活动][3],你可以从这个应用中心购买开源应用程序。应用中心中的应用程序将为 Flatpak 格式。
尽管这是 elementary OS 发起的活动,但这个新的应用中心也将适用于其他发行版。
该活动旨在资助在美国科罗拉多州丹佛市进行的一项一周个人开发冲刺活动,其中包括来自 elementary OS、[Endless][4]、[Flathub][5] 和 [GNOME][6] 的开发人员。
众筹活动已经超过了筹集 1 万美元的目标LCTT 译注:截止至本译文发布,已近 15000 美金)。但你仍然可以为其提供资金,因为其他资金将用于开发 elementary OS。
### 这个应用中心将带来什么功能
其重点是提供“安全”应用程序,因此使用 [Flatpak][7] 应用来提供受限的应用程序。在这种格式下,默认情况下将会限制应用程序访问系统或个人文件,并在技术层面上将它们与其他应用程序隔离。
仅当你明确表示同意时,应用程序才能访问操作系统和个人文件。
除了安全性,[Flatpak][8] 还捆绑了所有依赖项。这样,即使当前 Linux 发行版中不提供这些依赖项,应用程序开发人员也可以利用这种最先进的技术使用它。
AppCenter 还具有钱包功能,可以保存你的信用卡详细信息。这样,你无需每次输入卡的详细信息即可快速为应用付费。
![][9]
这个新的开源“应用中心”也将适用于其他 Linux 发行版。
### 受到了 elementary OS 自己的“按需付费”应用中心模型成功的启发
几年前elementary OS 推出了自己的应用中心。应用中心的“按需付费”方法很受欢迎。开发人员可以为其开源应用设置最低金额,而用户可以选择支付等于或高于最低金额的金额。
![][10]
这帮助了几位独立开发人员可以对其开源应用程序接受付款。该应用中心现在拥有约 160 个原生应用程序elementary OS 表示已通过应用中心向开发人员支付了数千美元。
受到此应用中心实验在 elementary OS 中的成功的启发,他们现在也希望将此应用中心的方法也引入其他发行版。
### 如果应用程序是开源的,你怎么为此付费?
某些人仍然对 FOSS自由而开源的概念感到困惑。在这里该软件的“源代码”是“开源的”任何人都可以“自由”进行修改和重新分发。
但这并不意味着开源软件必须免费。一些开发者依靠捐赠,而另一些则收取支持费用。
获得开源应用程序的报酬可能会鼓励开发人员创建 [Linux 应用程序][11]。
### 让我们拭目以待
![][12]
就个人而言,我不是 Flatpak 或 Snap 包格式的忠实拥护者。它们确实有其优点,但是它们花费了相对更多的时间来启动,并且它们的包大小很大。如果安装了多个此类 Snap 或 Flatpak 软件包,磁盘空间就会慢慢耗尽。
也需要对这个新的应用程序生态系统中的假冒和欺诈开发者保持警惕。想象一下,如果某些骗子开始创建冷门的开源应用程序的 Flatpak 程序包,并将其放在应用中心上?我希望开发人员采用某种机制来淘汰此类应用程序。
我确实希望这个新的应用中心能够复制在 elementary OS 中已经看到的成功。对于桌面 Linux 的开源应用程序,我们绝对需要更好的生态系统。
你对此有何看法?这是正确的方法吗?你对改进应用中心有什么建议?
--------------------------------------------------------------------------------
via: https://itsfoss.com/appcenter-for-everyone/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[wxy](https://github.com/wxy)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/02/appcenter.png?ssl=1
[2]: https://elementary.io/
[3]: https://www.indiegogo.com/projects/appcenter-for-everyone/
[4]: https://itsfoss.com/endless-linux-computers/
[5]: https://flathub.org/
[6]: https://www.gnome.org/
[7]: https://flatpak.org/
[8]: https://itsfoss.com/flatpak-guide/
[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/02/appcenter-wallet.png?ssl=1
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/02/appcenter-payment.png?ssl=1
[11]: https://itsfoss.com/essential-linux-applications/
[12]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/02/open_source_app_center.png?ssl=1

View File

@ -0,0 +1,86 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Mirantis: Balancing Open Source with Guardrails)
[#]: via: (https://www.linux.com/articles/mirantis-balancing-open-source-with-guardrails/)
[#]: author: (Swapnil Bhartiya https://www.linux.com/author/swapnil/)
Mirantis: Balancing Open Source with Guardrails
======
[![][1]][2]
[![][1]][2]
Mirantis, an open infrastructure company that rose to popularity with its OpenStack offering, is now moving into the Kubernetes space very aggressively. [Last year, the company acquired the Docker Enterprise business from Docker.][3] [This week, it announced that they were hiring the Kubernetes experts from the Finnish company Kontena a][4]nd established a Mirantis office in Finland, expanding the companys footprint in Europe. Mirantis already has a significant presence in Europe due to large customers such as Bosch and [Volkswagen][5].
The Kontena team primarily focused on two technologies. One was a Kubernetes distro called [Pharos][6], which differentiated itself from other distributions by specializing in addressing life cycle management challenges. They had developed some unique capabilities for deployment and for updating Kubernetes itself.
The second product by Kontena is [Lens][6]. “Its like a Kubernetes dashboard on steroids. In addition to offering the standard dashboard functions, it went multiple steps further by providing a terminal for command line interfacing to nodes and containers, and additional real-time insights, role-based access controls and a number of other capabilities that are currently absent from the Kubernetes dashboard,” said [Dave Van Everen][7], SVP of Marketing at Mirantis.
Everything that Kontena does is open source. These open source projects are already used by hundreds of organizations around the world. “They have a proven track record of contributing valuable technology pieces to the Kubernetes ecosystem, and we saw an opportunity to bring the team on board and capitalized on that opportunity as quickly as we could,” said Van Everen.
Mirantis will integrate many of the technology concepts and benefits from Pharos into its Docker Enterprise offering. With Kontena engineers on board, Mirantis expects to incorporate the best of what Kontena offered into its commercially supported Docker Enterprise and [Kubernetes][8] technology.
With this acquisition, Mirantis has hinted at a very aggressive 2020. The company is weeks away from launching the first Docker Enterprise release since the acquisition. The release brings many new capabilities on top of Docker Enterprise 3.0. The company is working on merging the [Mirantis KaaS][9] capabilities with Docker Enterprise. “We will add new capabilities, including multi-cluster management and continuous automated updates to the Kubernetes thats already within Docker Enterprise,” said Van Everen.
**What is Mirantis today?**
Mirantis started out as a pure-play OpenStack company, but as the market dynamics changed, the company adjusted its own positioning and bet on CD platforms like Spinnaker and container orchestration technologies like Kubernetes. So, what are they focusing on today?
Van Everen said that Mirantis is definitely embracing Kubernetes as the open standard used by enterprises for modern applications. Kubernetes itself has a massive ecosystem of technologies that a customer needs to leverage. “When we speak about Kubernetes, we speak about full-stack Kubernetes, which includes that ecosystem consisting of a couple dozen components in a typical cluster deployment. Our job as a trusted partner in helping our customers accelerate their path to modern applications is to streamline and automate all of the infrastructure and DevOps tooling supporting their app development lifecycle,” san Van Everen.
In a nutshell, Mirantis is making it easier for customers to use Kubernetes.
Over the years, [Mirantis][10] has gained expertise in IaaS with the work they did on OpenStack. “All of that plays a role in helping companies move faster and become more agile as theyre modernizing their applications. We apply many of those same strengths to the Kubernetes ecosystem,” he said.
Mirantis is also building expertise in continuous delivery platforms like [Argo CD][11] and is offering customers a spectrum of professional services around application modernization, from writing code that is based in microservices architecture, to integrating CI/CD pipelines and modernizing the tooling for CI/CD to better support cloud-native patterns. By supporting Kubernetes technology with app modernization services, Mirantis is helping customers wherever they are in their digital transformation and cloud-native journey.
“All of those things that our services team provides are complementary to the technology. Thats a unique value that only Mirantis can provide to the market, where we can couple open source technologies with strong services to ensure that companies really get the most out of that open source technology and fulfill their ultimate goal, which is to accelerate their pace of innovation,” Van Everen said.
Container networking is a critical piece of the cloud-native world and Mirantis already has expertise in the area, thanks to their work on OpenStack. The company recently joined the Linux Foundations [LF Networking project][12] which is home to [Tungsten Fabric][13] (formerly known as OpenContrail), a technology that Mirantis uses for its [OpenStack][14] offerings.
He explains, “While we use Calico for the container networking, Tungsten Fabric would be an important part of the underlying networking supporting Kubernetes deployments. Staying true to our heritage, we want to be involved in the open community and have both a voice and a stake in the direction the communities are moving in.”
[As for the ongoing debate or controversy around two competing service mesh technologies Istio and Linkerd,][15] the company has made its bet on Istio. A few months ago, Mirantis announced a training program for Istio, which was bundled with Mirantis KaaS offerings.
“We include Istio as a service mesh by default in child clusters under Mirantis KaaS management. Itll be used as an ingress with Docker Enterprise initially. Moving forward, were still looking at how to best deploy it in a service mesh configuration by default and provide a configurable but still functional default deployment for Istio as a service mesh,” said Van Everen.
It might seem like Mirantis is latching on to the latest hot technologies like OpenStack, [Spinnaker][16], Docker Enterprise, Kubernetes, and Istio to see what sticks. In reality, there is a method to it: the company is going where its customers are going, with the technologies that customers are using. Its a fine balancing act.
“Thats the type of technology challenge that Mirantis embraces. We are open source experts and continue to provide the greatest flexibility and choice in our industry, but we do it in such a way that there are guardrails in place so that companies dont end up having something thats overly complex and unmanageable, or configured incorrectly,” he concluded.
Note: Cross posted to [TFIR][17]
--------------------------------------------------------------------------------
via: https://www.linux.com/articles/mirantis-balancing-open-source-with-guardrails/
作者:[Swapnil Bhartiya][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://www.linux.com/author/swapnil/
[b]: https://github.com/lujun9972
[1]: https://www.linux.com/wp-content/uploads/2019/09/world-network-1068x713.jpg (world-network)
[2]: https://www.linux.com/wp-content/uploads/2019/09/world-network.jpg
[3]: https://www.youtube.com/watch?v=cBOrVKuomcU&feature=emb_title
[4]: https://containerjournal.com/topics/container-ecosystems/mirantis-acquires-kubernetes-assets-from-kontena/
[5]: https://www.mirantis.com/company/press-center/company-news/volkswagen-group-selects-mirantis-openstack-software-next-generation-cloud/
[6]: https://github.com/kontena
[7]: https://twitter.com/davidvaneveren?lang=en
[8]: https://kubernetes.io/
[9]: https://www.tfir.io/mirantis-launches-kaas-across-bare-metal-public-and-private-clouds/
[10]: https://www.mirantis.com/
[11]: https://argoproj.github.io/argo-cd/
[12]: https://www.linuxfoundation.org/projects/networking/
[13]: https://tungsten.io/
[14]: https://www.openstack.org/
[15]: https://twitter.com/hashtag/istio?lang=en
[16]: https://www.tfir.io/?s=spinnaker
[17]: https://www.tfir.io/mirantis-balancing-open-source-with-guardrails/

View File

@ -0,0 +1,70 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (No More WhatsApp! The EU Commission Switches To Signal For Internal Communication)
[#]: via: (https://itsfoss.com/eu-commission-switches-to-signal/)
[#]: author: (Ankush Das https://itsfoss.com/author/ankush/)
No More WhatsApp! The EU Commission Switches To Signal For Internal Communication
======
_**In a move to improve the cyber-security, EU has recommended its staff to use open source secure messaging app Signal instead of the popular apps like WhatsApp.**_
[Signal is an open source secure messaging application][1] with end to end encryption. It is praised by the likes of [Edward Snowden][2] and other privacy activists, journalists and researchers. Weve recently covered it in our [open source app of the week][3] series.
[Signal][4] is in news for good reasons. The European Union Commissions have instructed its staff to use Signal for public instant messaging.
This is part of EU”s new cybersecurity strategy. There has been cases of data leaks and hacking against EU diplomats and thus policy is being put in place to encourage better security practices.
### Governments recommending open source technology is a good sign
![][5]
No matter what the reason is, Government bodies recommending open-source services for better security is definitely a good thing for the open-source community in general.
[Politico][6] originally reported this by mentioning that the EU instructed its staff to use Signal as the recommended public instant messaging app:
> The instruction appeared on internal messaging boards in early February, notifying employees that “Signal has been selected as the recommended application for public instant messaging.”
The report also mentioned the potential advantage of Signal (which is why the EU is considering using it):
> “Its like Facebooks WhatsApp and Apples iMessage but its based on an encryption protocol thats very innovative,” said Bart Preneel, cryptography expert at the University of Leuven. “Because its open-source, you can check whats happening under the hood,” he added.
Even though they just want to secure their communication or want to prevent high-profile leaks, switching to an open-source solution instead of [WhatsApp][7] sounds good to me.
### Signal gets a deserving promotion
Even though Signal is a centralized solution that requires a phone number as of now, it is still a no-nonsense open-source messaging app that you may trust.
Privacy enthusiasts already know a lot of services (or alternatives) to keep up with the latest security and privacy threats. However, with the EU Commission recommending it to its staff, Signal will get an indirect promotion for common mobile and desktop users.
### Wrapping Up
It is still an irony that some Government bodies hate encrypted solutions while opting to use them for their own requirement.
Nevertheless, it is good progress for open-source services and tech, in general, is recommended as a secure alternative.
What do you think about the EUs decision on switching to the Signal app for its internal communication? Feel free to let me know your thoughts in the comments below.
--------------------------------------------------------------------------------
via: https://itsfoss.com/eu-commission-switches-to-signal/
作者:[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://itsfoss.com/signal-messaging-app/
[2]: https://en.wikipedia.org/wiki/Edward_Snowden
[3]: https://itsfoss.com/tag/app-of-the-week/
[4]: https://www.signal.org/
[5]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/02/Signal-eu.jpg?ssl=1
[6]: https://www.politico.eu/pro/eu-commission-to-staff-switch-to-signal-messaging-app/
[7]: https://www.whatsapp.com/

View File

@ -1,146 +0,0 @@
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Syncthing: Open Source P2P File Syncing Tool)
[#]: via: (https://itsfoss.com/syncthing/)
[#]: author: (Ankush Das https://itsfoss.com/author/ankush/)
Syncthing: Open Source P2P File Syncing Tool
======
_**Brief: Syncthing is an open-source peer-to-peer file synchronization tool that you can use for syncing files between multiple devices (including an Android phone).**_
Usually, we have a cloud sync solution like [MEGA][1] or Dropbox to have a backup of our files on the cloud while making it easier to share it.
But, what do you do if you want to sync your files across multiple devices without storing them on the cloud?
That is where [Syncthing][2] comes to the rescue.
### Syncthing: An open source tool to synchronize files across devices
![][3]
Syncthing lets you sync your files across multiple devices (including the support for Android smartphones). It primarily works through a web UI on Linux but also offers a GUI (to separately install).
However, Syncthing does not utilize the cloud at all it is a [peer-to-peer][4] file synchronization tool. Your data doesnt go to a central server. Instead, the data is synced with all the devices between them. So, it does not really replace the [typical cloud storage services on Linux][5].
To add remote devices, you just need the device ID (or simply scan the QR code), no IP addresses involved.
If you want a remote backup of your files you should probably rely on the cloud.
![Syncthing GUI][6]
All things considered, Syncthing can come in handy for a lot of things. Technically, you can have your important files accessible on multiple systems securely and privately without worrying about anyone spying on your data.
For instance, you may not want to store some of the sensitive files on the cloud so you can add other trusted devices to sync and keep a copy of those files.
Even though I described it briefly, theres more to it and than meets the eye. Id also recommend reading the [official FAQ][7] to clear some confusion on how it works if youre interested.
### Features of Syncthing
You probably do not want a lot of options in a synchronization tool it should be dead simple to work reliably to sync your files.
Syncthing is indeed quite simple and easy to understand even though it is recommended that you should go through the [documentation][8] if you want to use every bit of its functionality.
Here, Ill highlight a few useful features of Syncthing:
#### Cross-Platform Support
![Syncthing on Android][9]
Being an open-source solution, it does support Windows, Linux, and macOS.
In addition to that, it also supports Android smartphones. Youll be disappointed if you have an iOS device so far, no plans for iOS support.
#### File Versioning
![Syncthing File Versioning][10]
Syncthing utilizes a variety of [File Versioning methods][11] to archive the old files if they are replaced or deleted.
By default, you wont find it enabled. But, when you create a folder to sync, thats when you will find the option to toggle the file versioning to your preferred method.
#### Easy To Use
While being a peer-to-peer file synchronization tool, it just works out of the box with no advanced tweaks.
However, it does let you configure advanced settings when needed.
#### Security & Privacy
Even though you do not share your data with any cloud service providers, there are still some connections made that might gain the attention of an eavesdropper. So, Syncthing makes sure the communication is secured using TLS.
In addition to that, there are solid authentication methods to ensure that only the devices/connections you allow explicitly will be granted access to sync/read data.
For Android smartphones, you can also force the traffic through Tor if youre using the [Orbot app][12]. Youll find several other options for Android as well.
#### Other Functionalities
![][13]
When exploring the tool yourself, you will notice that there are no limits to how many folders you can sync and the number of devices that you can sync.
So, being a free and open-source solution with lots of useful features makes it an impressive choice for Linux users looking to have a peer-to-peer sync client.
### Installing Syncthing on Linux
You may not observe a .deb file or an .AppImage file for it on its official download webpage. But, you do get a snap package on the [Snap store][14] if youre curious you can read about [using snap apps][15] on Linux to get started.
You may not find it in the software center (if you do it may not be the latest version).
**Note:** _Theres also a [Syncthing-GTK][16] available if you want a GUI to manage that instead of a browser._
[Syncthing][2]
You can also utilize the terminal to get it installed if you have a Debian-based distro the instructions are on the [official download page][17].
### My experience with Syncthing
Personally, I got it installed on Pop!_OS 19.10 and used it for a while before writing this up.
I tried syncing folders, removing them, adding duplicate files to see how the file versioning works, and so on. It worked just fine.
However, when I tried syncing it to a phone (Android) the sync started a bit late, it wasnt very quick. So, if we could have an option to explicitly force sync, that could help. Or, did I miss the option? Let me know in the comments if I did.
Technically, it uses the resources of your system to work so if you have a number of devices connected to sync, it should potentially improve the sync speed (upload/download).
Overall, it works quite well but I must say that you shouldnt rely on it as the only backup solution to your data.
**Wrapping Up**
Have you tried Syncthing yet? If yes, how was your experience with it? Feel free to share it in the comments below.
Also, if you know about some awesome alternatives to this let me know about it as well.
--------------------------------------------------------------------------------
via: https://itsfoss.com/syncthing/
作者:[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://itsfoss.com/install-mega-cloud-storage-linux/
[2]: https://syncthing.net/
[3]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-screenshot.jpg?ssl=1
[4]: https://en.wikipedia.org/wiki/Peer-to-peer
[5]: https://itsfoss.com/cloud-services-linux/
[6]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-gtk.png?ssl=1
[7]: https://docs.syncthing.net/users/faq.html
[8]: https://docs.syncthing.net/users/index.html
[9]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-android.jpg?ssl=1
[10]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-file-versioning.jpg?ssl=1
[11]: https://docs.syncthing.net/users/versioning.html
[12]: https://play.google.com/store/apps/details?id=org.torproject.android&hl=en_IN
[13]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-screenshot1.jpg?ssl=1
[14]: https://snapcraft.io/syncthing
[15]: https://itsfoss.com/install-snap-linux/
[16]: https://github.com/syncthing/syncthing-gtk/releases/latest
[17]: https://syncthing.net/downloads/

View File

@ -1,97 +0,0 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (elementary OS is Building an App Center Where You Can Buy Open Source Apps for Your Linux Distribution)
[#]: via: (https://itsfoss.com/appcenter-for-everyone/)
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
elementary OS is Building an App Center Where You Can Buy Open Source Apps for Your Linux Distribution
======
_**Brief: elementary OS is building an app center ecosystem where you can buy open source applications for your Linux distribution.**_
### Crowdfunding to build an open source AppCenter for everyone
![][1]
[elementary OS][2] recently announced that it is [crowdfunding a campaign to build an app center][3] from where you can buy open source applications. The applications in the app center will be in Flatpak format.
Though its an initiative taken by elementary OS, this new app center will be available for other distributions as well.
The campaign aims to fund a week of in-person development sprint in Denver, Colorado (USA) featuring developers from elementary OS, [Endless][4], [Flathub][5] and [GNOME][6].
The crowdfunding campaign has already crossed its goal of raising $10,000. You can still fund it as additional funds will be used for the development of elementary OS.
[Crowdfunding Campaign][3]
### What features this AppCenter brings
The focus is on providing secure applications and hence [Flatpak][7] apps are used to provide confined applications. In this format, apps will be restricted from accessing system or personal files and will be isolated from other apps on a technical level by default.
Apps will have access to operating system and personal files only if you explicitly provide your consent for it.
Apart from security, [Flatpak][8] also bundles all the dependencies. This way, app developers can utilize the cutting edge technologies even if it is not available on the current Linux distribution.
AppCenter will also have the wallet feature to save your card details. This enables you to quickly pay for apps without entering the card details each time.
![][9]
This new open source app center will be available for other Linux distributions as well.
### Inspired by the success of elementary OSs own Pay What You Want app center model
A couple of years ago, elementary OS launched its own app center. The pay what you want approach for the app center was quite a hit. The developers can put a minimum amount for their open source apps and the users can choose to pay an amount equal to or more than the minimum amount.
![][10]
This helped several indie developers get paid for their open source applications. The app store now has around 160 native applications and elementary OS says that thousands of dollars have been paid to the developers through the app center.
Inspired by the success of this app center experiment in elementary OS, they now want to bring this app center approach to other distributions as well.
### If the applications are open source, how can you charge money for it?
Some people still get confused with the idea of FOSS (free and open source). Here, the **source** code of the software is **open** and anyone is **free** to modify it and redistribute it.
It doesnt mean that open source software has to be free of cost. Some developers rely on donations while some charge a fee for support.
Getting paid for the open source apps may encourage developers to create [applications for Linux][11].
### Lets see if it could work
![][12]
Personally, I am not a huge fan of Flatpak or Snap packaging format. They do have their benefits but they take relatively more time to start and they are huge in size. If you install several such Snaps or Flatpaks, your disk space may start running out of free space.
There is also a need to be vigilant about the fake and scam developers in this new app ecosystem. Imagine if some scammers starts creating Flatpak package of obscure open source applications and put it on the app center? I hope the developers put some sort of mechanism to weed out such apps.
I do hope that this new AppCenter replicates the success it has seen in elementary OS. We definitely need a better ecosystem for open source apps for desktop Linux.
What are your views on it? Is it the right approach? What suggestions do you have for the improvement of the AppCenter?
--------------------------------------------------------------------------------
via: https://itsfoss.com/appcenter-for-everyone/
作者:[Abhishek Prakash][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/abhishek/
[b]: https://github.com/lujun9972
[1]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/02/appcenter.png?ssl=1
[2]: https://elementary.io/
[3]: https://www.indiegogo.com/projects/appcenter-for-everyone/
[4]: https://itsfoss.com/endless-linux-computers/
[5]: https://flathub.org/
[6]: https://www.gnome.org/
[7]: https://flatpak.org/
[8]: https://itsfoss.com/flatpak-guide/
[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/02/appcenter-wallet.png?ssl=1
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/02/appcenter-payment.png?ssl=1
[11]: https://itsfoss.com/essential-linux-applications/
[12]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/02/open_source_app_center.png?ssl=1

View File

@ -1,5 +1,5 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )

View File

@ -0,0 +1,156 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Use logzero for simple logging in Python)
[#]: via: (https://opensource.com/article/20/2/logzero-python)
[#]: author: (Ben Nuttall https://opensource.com/users/bennuttall)
Use logzero for simple logging in Python
======
A quick primer on the handy log library that can help you master this
important programming concept.
![Snake charmer cartoon with a yellow snake and a blue snake][1]
The logzero library makes logging as easy as a print statement, which is quite a feat of simplicity. I'm not sure whether logzero took its name to fit in with the series of "zero boilerplate" libraries like pygame-zero, GPIO Zero, and guizero, but it's certainly in that category. It's a Python library that makes logging straightforward.
You can just use its basic logging to stdout the same way you might use print for information and debugging purposes, and it has a smooth learning curve towards more advanced logging, like logging to a file.
To start, install logzero with pip:
```
`$ sudo pip3 install logzero`
```
Now in a Python file, import logger and try one or all of these logging examples:
```
from logzero import logger
logger.debug("hello")
logger.info("info")
logger.warning("warning")
logger.error("error")
```
The output is automatically colored in an easy-to-read way:
![Python, Raspberry Pi: import logger][2]
So now, instead of using **print** to figure out what's going on, use logger instead, with the relevant log level.
### Writing logs to a file in Python
If you only read this far and make that one change in the way you write code, that's good enough for me. If you want to go further, read on!
Writing to **stdout** is fun for testing a new program, but it is only useful if you are logged into the computer where the script is running. Many times when using an application you'll want to execute the code remotely and review errors after the fact. That's when it's helpful to log to a file instead. Let's try it:
```
from logzero import logger, logfile
logfile('/home/pi/test.log')
```
Now your log entries will be logged into the file **test.log**. Remember to make sure that the [script has permission][3] to write to that file and its directory structure.
You can specify some more options too:
```
`logfile(/home/pi/test.log, maxBytes=1e6, backupCount=3)`
```
Now when the file provided to **logfile** reaches 1MB (1×106 bytes), it will rotate entries through **test.log.1**, **test.log.2**, and so on. This behavior is nice to avoid generating a massive log file that is I/O intensive for the system to open and close. You might also want to log to **/var/log** like a pro. Assuming you're on Linux, you a directory and make your user the owner so they can write to it:
```
$ sudo mkdir /var/log/test
$ sudo chown pi /var/log/test
```
Then in your Python code, change the **logfile** path:
```
`logfile(/var/log/test/test.log, maxBytes=1e6, backupCount=3)`
```
When it comes to catching exceptions in your **logfile**, you can either use **logging.exception:**
```
try:
    c = a / b
except Exception as e:
    logger.exception(e)
```
This will produce the following (in the case that b is zero):
```
[E 190422 23:41:59 test:9] division by zero
     Traceback (most recent call last):
       File "test.py", line 7, in
         c = a / b
     ZeroDivisionError: division by zero
```
You get the log entry, followed by the full traceback. Alternatively, you could use **logging.error** and hide the traceback:
```
try:
    c = a / b
except Exception as e:
    logger.error(f"{e.__class__.__name__}: {e}")
```
Now this will produce the more succinct:
```
`[E 190423 00:04:16 test:9] ZeroDivisionError: division by zero`
```
* * *
* * *
* * *
**![Logging output][4]**
There are plenty more options which you can read in the docs at [logzero.readthedocs.io][5].
### logzero shines for education
Logging can be a challenging concept for a new programmer. Most frameworks depend on flow control and lots of variable manipulation to make a meaningful log, but logzero is different. With its syntax being similar to a print statement, it is a big win for education as it saves from explaining another concept. Give it a try on your next project.
\--
_This article was originally written on [my blog][6] and is republished with permission._
--------------------------------------------------------------------------------
via: https://opensource.com/article/20/2/logzero-python
作者:[Ben Nuttall][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/bennuttall
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/getting_started_with_python.png?itok=MFEKm3gl (Snake charmer cartoon with a yellow snake and a blue snake)
[2]: https://opensource.com/sites/default/files/uploads/rpi_ben_1.png (Python, Raspberry Pi: import logger)
[3]: https://opensource.com/article/19/6/understanding-linux-permissions
[4]: https://opensource.com/sites/default/files/uploads/rpi_ben_2.png (Logging output)
[5]: https://logzero.readthedocs.io/en/latest/
[6]: https://tooling.bennuttall.com/logzero/

View File

@ -0,0 +1,146 @@
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Syncthing: Open Source P2P File Syncing Tool)
[#]: via: (https://itsfoss.com/syncthing/)
[#]: author: (Ankush Das https://itsfoss.com/author/ankush/)
Syncthing开源 P2P 文件同步工具
======
_ **简介Syncthing 是一个开源的 P2P 文件同步工具,可用于在多个设备(包括 Android 手机)之间同步文件。** _
通常,我们有 [MEGA][1] 或 Dropbox 之类的云同步解决方案,以便在云上备份我们的文件,同时更易于共享。
但是,如果要跨多个设备同步文件而不将其存储在云中怎么办?
这就是 [Syncthing][2] 派上用场的地方了。
### Syncthing一个跨设备同步文件的开源工具
![][3]
Syncthing 可让你跨多个设备同步文件(包括对 Android 智能手机的支持)。它主要通过 Linux上 的 Web UI 进行工作,但也提供了 GUI需要单独安装
然而Syncthing 完全没有利用云,它是 [P2P][4] 文件同步工具。你的数据不会被发送到中央服务器。而是会在所有设备之间同步。因此,它并不能真正取代 [Linux 上的典型云存储服务][5]。
要添加远程设备,你只需要设备 ID或直接扫描二维码而无需 IP 地址。
如果你想要远程备份文件,那么你可能应该依靠云。
![Syncthing GUI][6]
考虑到所有因素Syncthing 可以在很多方面派上用场。从技术上讲,你可以安全、私密地在多个系统上访问重要文件,而不必担心有人监视你的数据。
例如,你可能不想在云上存储一些敏感文件,因此你可以添加其他受信任的设备来同步并保留这些文件的副本。
即使我简单描述了它,但它并不像看到的那么简单。如果你感兴趣的话,我建议你阅读[官方 FAQ][7] 来了解它如何工作的。
### Syncthing 的特性
你可能不希望同步工具中有很多选项。它要可靠地同步文件,应该非常简单。
Syncthing 确实非常简单且易于理解。即使这样,如果你想使用它的所有功能,那么也建议你阅读它的[文档][8]。
在这里,我将重点介绍 Syncthing 的一些有用特性:
#### 跨平台支持
![Syncthing on Android][9]
作为开源解决方案,它支持 Windows、Linux 和 macOS。
除此之外,它还支持 Android 智能手机。如果你使用的是 iOS 设备,那么你会感到失望。到目前为止,它还没有支持 iOS 的计划。
#### 文件版本控制
![Syncthing File Versioning][10]
如果替换或删除了旧文件,那么 Syncthing 会利用各种[文件版本控制方法][11]来存档旧文件。
默认情况下,你不会发现它启用。但是,当你创建一个要同步的文件夹时,你将找到将文件版本控制切换为首选方法的选项。
#### 易于使用
作为 P2P 文件同步工具,它无需高级调整即可使用。
但是,它允许你在需要时配置高级设置。
#### 安全和隐私
即使你不与任何云服务提供商共享数据仍会有一些连接可能会引起窃听者的注意。因此Syncthing 使用 TLS 保护通信。
此外,它还有可靠的身份验证方法,以确保仅授予只有你允许的设备/连接能够取得同步/读取数据的权限。
对于 Android 智能手机,如果你使用 [Orbot 应用][12],你还可以强制将流量通过 Tor。在 Android 中你还有几个不同选择。
#### 其他功能
![][13]
当你探索这个工具时,你会注意到可以同步的文件夹数和可同步的设备数没有限制。
因此,作为一个有着丰富有用特性的自由开源解决方案,对于在寻找 P2P 同步客户端的 Linux 用户而言是一个令人印象深刻的选择。
### 在 Linux 上安装 Syncthing
你可能无法在官网上找到 .deb 或者 .AppImage 文件。但是,你可在 [Snap 商店][14]中找到 snap 包。如果你好奇,你可以阅读在 Linux 上[使用 snap 应用][15]的文章来开始使用。
你可能无法在软件中心找到它(如果你找到了,那它可能不是最新版本)。
**注意:**_如果你需要一个 GUI 而不是浏览器来管理它,它还有一个 [Syncthing-GTK][16]。_
[Syncthing][2]
如果你有基于 Debian 的发行版,你也可以利用终端来安装它,这些说明位于[官方下载页面][17] 上。
### 我在 Syncthing 方面的体验
就个人而言,我把它安装在 Pop!\_OS 19.10 上,并在写这篇文章之前用了一会儿。
我尝试同步文件夹、删除它们、添加重复文件以查看文件版本控制是否工作,等等。它工作良好。
然而,当我尝试同步它到手机(安卓),同步启动有点晚,它不是很快。因此,如果我们可以选择显式强制同步,那会有所帮助。或者,我错过了什么选项吗?如果是的话,请在评论中让我知道。
从技术上讲,它使用系统资源来工作,因此,如果你连接了多个设备进行同步,这可能会提高同步速度(上传/下载)。
总体而言,它工作良好,但我必须说,你不应该依赖它作为唯一的数据备份方案。
**总结**
你试过 Syncthing 了吗?如果有的话,你的体验如何?欢迎在下面的评论中分享。
此外,如果你知道一些不错的替代品,也请让我知道。
--------------------------------------------------------------------------------
via: https://itsfoss.com/syncthing/
作者:[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://itsfoss.com/install-mega-cloud-storage-linux/
[2]: https://syncthing.net/
[3]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-screenshot.jpg?ssl=1
[4]: https://en.wikipedia.org/wiki/Peer-to-peer
[5]: https://itsfoss.com/cloud-services-linux/
[6]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-gtk.png?ssl=1
[7]: https://docs.syncthing.net/users/faq.html
[8]: https://docs.syncthing.net/users/index.html
[9]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-android.jpg?ssl=1
[10]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-file-versioning.jpg?ssl=1
[11]: https://docs.syncthing.net/users/versioning.html
[12]: https://play.google.com/store/apps/details?id=org.torproject.android&hl=en_IN
[13]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/01/syncthing-screenshot1.jpg?ssl=1
[14]: https://snapcraft.io/syncthing
[15]: https://itsfoss.com/install-snap-linux/
[16]: https://github.com/syncthing/syncthing-gtk/releases/latest
[17]: https://syncthing.net/downloads/