Home Blog Page 290

7 Things Desktop Linux Needs in 2019

The new year is upon us, which means yet another year has gone by in which Linux has not found itself dominating the desktop. Linux does many things very well, and in the coming weeks, we’ll be looking at the some of the very best distributions to suit your various needs, but for now, let’s take a step back and revisit this old issue.

For some, the idea of Linux dominance on the desktop has fallen to the wayside; instead, users simply want what works. The Linux operating system, however, does “just work.” And when you stop to realize that the typical user spends the vast majority of their time working (or playing) within a browser, it stands to reason that Linux (with its heightened security and reliability) is primed to become the dominant platform on the desktop market.

And yet it hasn’t. Why?

That’s the question that has confounded so many people for so many years. And, the possible answer five years ago would have been completely different from the answer today. To that end, I’ve come up with seven things that could help Linux gain traction on the desktop space. My suggestions are not necessarily easy or popular. No. What you’ll find here are seven ideas that could seriously help Linux stake its claim as a dominant player on the desktop market.

One Distro to Rule them All

I’ve been saying this for some time, but it’s not quite what you think it is. The distribution fragmentation within the Linux community is doing more harm than good. Consider this: Company X has a piece of software that already runs on Windows and Mac OS, and it’s incredibly popular. When asked to make their software available for Linux, the company says, “We’d love to do that, but it’s just too complicated.” When pressed further, it becomes clear that Company X refuses because there are so many permutations of Linux to consider. Which distribution? Which package manager? Which desktop? Which toolkit? The list goes on.

Because of this, I believe Linux needs to come up with a single “official” distribution — one that all Company X’s can focus their efforts on. Say that official distribution is Debian with the GNOME desktop. All Company X needs to then do is make their software run on that combination. If you, as a user, want to run the software from Company X on Linux, you know you’d have to do so on the official distribution. That doesn’t mean all other distributions go away. Nay, nay. It just means there’s an official distribution that companies can focus their efforts on.

I realize this is not a popular idea, but it’s one that should seriously be considered. Otherwise, Linux will continue to miss out on the likes of Photoshop, Adobe Premier, MS Office, etc.

A Viable X.org Replacement

X.org has served its purpose, but the replacement is long overdue. Canonical tried — and failed — with Mir. Wayland has been under development for quite some time, but it’s not ready for prime time yet. Because X.org has been around for so long, it carries with it a lot of baggage, some of which could be considered a security risk. Think about this: Linux is growing and evolving quite rapidly. How fast can the desktop evolve if it relies on antiquated technology? Instead of continuing to stand on that aging GUI foundation, Linux needs something that can bring much more agility to desktop improvement. Is that solution Wayland, or is there another option available? Who knows. But, Linux software continues to evolve (from the kernel to the user-space apps) at a rapid pace, and the X Window system can no longer keep up. The feasibility of something new coming to fruition and being ready for deployment this year is a pipe dream, but we need to see some solid progress in 2019.

Culling the App Herd

I cannot tell you how many times I’ve opened up a Linux app store and searched for a tool, only to find apps that are no longer being developed, haven’t been updated in a very long time, or have broken or deprecated dependencies. This will not do. Those responsible for the curation of apps in the various app stores need to get rid of the cruft. The last thing Linux needs is out of date, non-functioning, insecure apps for users to install. I realize that one reason many of these apps remain is to keep the numbers high. But saying there are tens of thousands of titles, when a good percentage shouldn’t be there is misleading. Those outdated, deprecated, abandoned apps need to go.

Real-Time Antivirus and Anti-Malware

This is where I might lose some people … but stay with me. I cannot tell you how many times I get asked, “Does Linux need antivirus or antimalware software?” My answer is always, “No, at least not yet.” Why the “not yet”? Because when Linux starts pulling in the numbers that Windows and Mac OS currently enjoy, you can bet the Linux desktop will become a target. But beyond that, what about users who receive email with malicious payloads, who then (unwittingly) send those payloads on to others? Or what about web browser phishing attacks? Linux has tools like ClamAV (and ClamTK), but they don’t do real-time scanning. The Linux community needs to start planning for the future, which means developing a real-time, open source antivirus/anti-malware solution.

Prosumer-Grade Apps

Linux has plenty of apps for the average user. It also has plenty of apps for IT pros. What it doesn’t have is apps for prosumers. For those that don’t know, a prosumer is an amateur who purchases tools that are of professional-grade quality. That’s where the likes of Adobe Premier, Final Cut Pro, Photoshop, Avid Pro Tools, and others come in. Linux doesn’t have the equivalent of any of these. Sure, Linux has an abundance of consumer-grade software (such as Audacity and OpenShot), but those tools are nowhere near prosumer-level. You’re simply not going to be editing a full-length film with OpenShot, or mastering an album with Audacity. Until Linux lands a few serious prosumer-grade tools, it’ll be ignored on that level of usage.

Better Font Rendering

Linux font rendering has come a long way, but it’s still light years behind that of Mac OS. If you use a MacBook Pro or iMac for a while and then come back to Linux, you’ll see the difference. A big part of this has to do with the fact that Linux is still relying upon X.org (see above). And, although this may seem like an afterthought to many, the beauty of a desktop is one of the first things that grabs a user’s attention. If a user looks at a desktop and sees an inferior result, that love affair won’t last long. And, to add injury to that insult, when you stare at a Linux desktop all day, as I do, you may find that poor font rendering can overwork your eyes. Linux needs some serious effort to provide superior font rendering.

More Companies Shipping Quality Products

After visiting System76 (to see the new Thelio factory), I have become convinced the future of the Linux desktop depends on companies like that. System76 is creating a holistic approach to Linux, such that the hardware they ship works seamlessly and beautifully. That’s exactly the experience we need for Linux. Someone who wants to use Linux should be able to purchase a laptop or desktop, connect it to their peripherals, and everything work out of the box… with zero effort. That’s what System76 delivers. Linux needs more companies doing that same thing, with the same level of proficiency. Period.

A Place to Start

Linux doesn’t have to have all seven of these ideas fall into place at once. But if we want to dominate the desktop, this list would be a good place to start. Are there more areas in which Linux can improve? Of course. But let’s begin with the obvious and go from there.

Linux timeout Command Explained for Beginners (with Examples)

Sometimes, when you execute a command in Linux, you might want to run it for a set amount of time. There exists a command line utility – timeout – that’s specifically developed for this purpose. In this article, we will discuss the basics of this command using some easy to understand examples.

But before we do that, it’s worth mentioning that all examples in this tutorial have been tested on an Ubuntu 18.04 LTS machine.

Linux timeout command

As the name suggests, the timeout command in Linux allows you to execute a command with a time limit. Following is its syntax:

timeout [OPTION] DURATION COMMAND [ARG]...

And here’s how the tool’s man page explains it:

timeout - run a command with a time limit
Start COMMAND, and kill it if still running after DURATION

Following are some Q&A styled examples that should give you a better idea on how this tool works.

Read more at HowToForge

MIPS Joins RISC-V as Second Open Source Alternative to Arm

The open source silicon space has suddenly become more crowded. Shortly before Christmas, Silicon Valley AI startup Wave Computing, which is developing hardware for running deep learning applications in data centers and offices, announced plans to open source its MIPS instruction set architecture, or ISA, under what it’s calling the “MIPS Open” program. When the process is completed in the first quarter, participants will have full access, with no licensing fees or royalties, to the most recent versions of the 32-bit and 64-bit MIPS ISA, along with licensing for MIPS’s “hundreds of existing worldwide patents.”

According to Wave, open sourcing the design will open the door for semiconductor companies, developers, and universities to adopt and innovate using MIPS for next-generation system-on-chip (SoC) designs.

Read more at Data Center Knowledge

Troubleshooting Hardware Problems in Linux

It can take some time to troubleshoot and solve hardware-related issues on Linux. Even highly experienced sysadmins sometimes spend hours working to solve mysterious hardware and software discrepancies.

The following tips should make it quicker and easier to troubleshoot hardware in Linux. Many different things can cause problems with Linux hardware; before you start trying to diagnose them, it’s smart to learn about the most common issues and where you’re most likely to find them.

Quick-diagnosing devices, modules, and drivers

The first step in troubleshooting usually is to display a list of the hardware installed on your Linux server. You can obtain detailed information on the hardware using ls commands such as lspcilsblklscpu, and lsscsi.

Read more at OpenSource.com

Firejail – Securely Run Untrusted Applications in Linux

Sometimes you may want to use applications that have not been well tested in different environments, yet you must use them. In such cases, it is normal to be concerned about the security of your system. One thing that can be done in Linux is to use applications in a sandbox. “Sandboxing” is the ability to run application in a limited environment. That way the application is provided a tighten amount of resources, needed to run.

Thanks to an application called Firejail, you can safely run untrusted applications in Linux.

Firejail is a SUID (Set Owner User ID) application that decrease the exposure of security breaches by limiting the running environment of untrusted programs using Linux namespaces and seccomp-bpf.

It makes a process and all its descendants to have their own secret view of the globally shared kernel resources, such as the network stack, process table, mount table.

Read more at Tecmint

The Linux Foundation in 2019: Can’t-Miss Educational Programs, Events, and Training Opportunities Offer Something for Everyone

TL; DR: The Linux Foundation helps open-source communities accelerate technological development through a support system where they can share, learn, and collaborate. The nonprofit works to train the next generation of open-source developers while uniting their interests with those of corporate executives. With a comprehensive slate of events and a forward-thinking focus on the 5G revolution and emerging tech regions, the Linux Foundation is prepared to support open-source communities into 2019 and beyond. 

There’s a pervasive myth surrounding open-source software, and squashing it will unlock incredible opportunity, said Clyde Seepersad, General Manager, Training & Certification at the Linux Foundation.

“We have to let go of this strange, almost macho, idea that you’re a weakling in open-source if you have to be trained on it — that you’re supposed to figure it out yourself,” he said. “Open-source software is just like any other software: You learn it best if you’re actually taught it. If we expect our employees to magically figure it out on nights and weekends, we’re fooling ourselves.”

Clyde said Linux Foundation is maniacally focused on hands-on skills development. “We focus hard on activities and labs, and our courses don’t feature a lot of videos,” he said. “I get flack for that sometimes, but we’re here to teach you how to use software, not entertain you. It’s about rolling up your sleeves because the only way to learn is to do.”

Read more at HostingAdvice

10 React Native Libraries Every React Native Developer Should Know About

If you are starting out a new app development project, chances are pretty high that you have already decided writing it with React Native. React Native gives you benefit of leveraging a single codebase to produce two different kind of apps.

In order to make React Native app development simpler for you and spare you the time you would spend composing certain parts for your application, you can take the assistance of some magnificent React Native libraries that do the hard work for you, making it simple to integrate the basis or some newest features in your app.

However, choosing the best React Native library for your project can be of much hassle for you since there are thousands of libraries out there. Henceforth, here I am mentioning 10 best React Native libraries that you may find useful while developing an app with React Native.

1) Create-react-native-app

Establishing the Initial setup for your React Native app can be much of time consuming especially if you are just starting out to develop your first app. Create-react-native-app is a library that comes handy if you want to develop a React Native app without any build configuration. Create React Native App enables you to work with a majority of Components and APIs in React Native, and in addition the greater part of the JavaScript APIs that the Expo App gives.

2) React-native-config

If you are a developer than you might already be familiar about an XML file which basically represents your app’s configuration file. The file stores any setting that you might want to change between deploys such as staging, environment variables, production or others. By default, some apps store this config as constants in the code which is a serious violation of 12 factors. Henceforth, it is very important to separate the config from the code. It is important to note that your app’s config may vary substantially across various deploys.

React-native-config is a cool library which makes it easier for you to stick and adhere to the 12 factor code while effectively managing your app config settings.

3) React-native-permissions

React-native-permissions allows you to implement check and request users permission anywhere in a React Native app. Currently, it offers you an easy access to the following permissions:

  • Location
  • Camera
  • Microphone
  • Photos
  • Contacts
  • Events
  • Reminders (iOS only)
  • Bluetooth (iOS only)
  • Push Notifications (iOS only)
  • Background Refresh (iOS only)
  • Speech Recognition (iOS only)
  • Call Phone (Android Only)
  • Read/Receive SMS (Android only)

4) React Navigation

Widely known as one of the most widely used navigational library in the React Native ecosystem, React Navigation is an enhanced version of Navigator, NavigatiorExperimental and Ex-Navigation.

It’s written completely in JavaScript which has a gigantic upside in its own sense since you can transport updates to it OTA and you can submit patches without having to know Objective C/Java and the stage’s individual route APIs.

5) React-native-Animatable

Looking for a kickass library for implementing Animations in React Native? React Native Animatable is here to help you with just that.

React-native-animatable can be used in two ways to add Animations and transitions in a React Native app development: Declarative and Imperative.

When it comes to Declarative usage then its as simple as it sounds. Whatever name of pre-built animation will be declared in your code, animation will only be applied on the element for which it has been declared. Pretty straightforward! Right?

6) React Native Push Notifications

This library is very useful to implement push notifications in a React Native app. With some additional features such as schedule notification, repeat notification based on the day, week, time etc., the library stands out from all other libraries for push notifications in React Native.

7) React Native Material Kit

React Native Native Material Kit is a magnificent help for Material Design themed applications. The library gives you customizable yet ready made UI components such as buttons, cards, loading indicators, and floating label text fields etc.  Furthermore, there are numerous approaches to build every segment: pick either the constructor or JSX procedure to best fit the structure of your venture. This library is certain to spare a huge amount of time and styling exertion for any engineer with application plans established in Material rules.

8) React Native Code Push

Codepush let you deploy your React Native code over-the-air without much of hassle. Moreover, you will find codepush as a great deal for pushing bug fixes to your app without having to wait for your user to update their existing app’s version.

9) React-Native-Map

React Native Map is an awesome component which helps you to avoid necessary complications in case of apple and google maps. You will have a flexible and customizable map that can be zoomed or panned with markers by just using one simple <MapView> tag in your code. Moreover, the map which is rendered will feel smooth, native and high performant.

10) React Native Vector Icons

You might be well aware of the fact that how Icons contribute to improve user experience of an application. React Native Vector Icons may come last but it is definitely not the least in my list of Top 10 React Native libraries.  It boasts over a myriad number of well crafted icons which are contributed by renowned publishers. You can seamlessly integrate them to your app through the elegantly designed API provided by the library.

Conclusion

Aforementioned are some popular React Native libraries that deserves your utmost attention in React Native app development. 

Rakshit Soral is Technical consultant at Simform, a React Native app development company. he helps Fintech startups, agencies, and SMBs in adopting complete life-cycle management of apps from inception to design and development. Bitten by the Startup Bug, Rakshit is extremely passionate about authentic, innovation-based startup ideas including Growth hacking and Digital Marketing.

Linux Hacker Board Trends in 2018 and Beyond

When I read Brian Benchoff’s recent claim in Hackaday that the maker board market was stalling, I had a sense that there might be some truth to it. The novelty of community-backed, open-spec SBCs has worn off, and there were few new boards in 2018 that seem destined to become Raspberry Pi killers. Yet, the more I researched open-spec Linux/Android maker SBCs for LinuxGizmos’ New Year’s edition SBC catalog, the more I realized that the sector was very much alive — just a bit quieter than before.

There were 19 new SBC entries since our June roundup of 116 SBCs (compared to 13 new products that appeared in that reader survey catalog since the January 2018 New Year’s hacker catalog roundup of 103 boards). Despite the removal from market of several older products in Q2 2018 and the dissolution of The Next Thing and its Chip board — and even after we eliminated several older boards with fading communities, such as the 86Duino and PCDuino8 — we ended up with 122 boards, six more than in June.

Benchoff’s speculation that fewer maker boards were sold in 2018 may well be correct, but I have seen no proof of it. If there has been a slowdown, Benchoff nailed the reason: poor documentation. Other drawbacks to the hacker board scene include buggy software and less frequently, hardware. In many cases, the documentation and images are fine, but by the time they arrive, your shiny new SBC is already halfway to obsolescence.

Many of the casual, Raspberry Pi home automation hobbyists who experimented with faster, but not always reliable Banana, Orange, and NanoPi’s and other more obscure bargain-basement SBCs in recent years have returned to the fold. And why not return to the very capable Raspberry Pi 3 Model B+ — the SBC of the year and the winner of our June reader survey — or the smaller new RPi 3 Model A+? The RPi 3B+ is only a modest improvement over the 3B, but it is close enough to the competition in price, features, and performance to shift the comparison to software and support issues. If the Raspberry Pi Foundation had been faster to transition from ARM11 to Cortex-A SoCs, the hacker board market might be considerably smaller than it is today.

Despite the atypically buggy PoE board for the RPi 3B+, which was quickly resolved with a refund and a reboot, things tend to work more smoothly in Raspberry land. Most buyers are more interested in solid community support and no-doubt software and HAT compatibility than they are in having full schematics.

Yet, there’s a second trend that is leading us toward more diversity: The maker board movement continues to merge with the commercial SBC industry. There appears to be significant growth in small manufacturing customers using open-spec boards with a variety of special features ranging from AI to voice control to Time Sensitive Networking. These technically knowledgeable buyers need solid documentation and schematics for prototyping new products but are usually less interested in other community resources. More to the point, they are tired of the high prices charged by commercial vendors, which only make sense with huge volumes.

New maker SBCs and trends in late 2018

Many of the new boards we’ve seen since June are aimed at relatively niche applications rather than trying to beat the Pi at world domination. There are new router boards such as the Banana Pi BPI-R2, as well as an increasing number of extended temperature SBCs such as the Firefly-PX3-SE. We’ve seen industrial focused newcomers such as the HummingBoard CBi (CAN bus interface) and novel sandwich-style module/carrier board combos like the Khadas Edge. Seeed has introduced a ReSpeaker v2.0 model aimed at far-field voice control applications.

The trend toward Power-over-Ethernet (PoE) continues with products like the Renegade Elite. (The RPi 3B+ may now have a PoE option, but it’s hobbled by a Gigabit Ethernet port that is limited to 300Mbps.)

We’re seeing more SBCs with built-in cellular modems or mini-PCIe and M.2 slots capable of supporting them. FriendlyElec has jumped on this trend this year with 2G, 3G, and 4G themed NanoPi IOT models.

The still fledgling x86 hacker board arena continues to grow with the Intel Gemini Lake based Odroid-H2 board, which appears to be the most powerful hacker SBC in history. The Odroid-H2 is the first hacker board to feature an Atom processor from a recently released Atom/Celeron product family.

Another new Intel-based board — Aaeon’s Apollo Lake based Up Core Plus — is one of several new entries since June designed for machine learning and neural network processing. These AI contenders include the Allwinner V5 based Lindenis V5 and Bitmain Sophon BM1880, which uses a novel TPU-enhanced Arm SoC of Bitmain’s own design. Khadas is selling a version of the Khadas Edge with the AI-enhanced Rockchip RK3399Pro SoC.

Among more mainstream boards, we saw a continuing shift from Allwinner SoCs to the high-end, hexa-core Rockchip RK3399. In early 2018 we saw a lot of RK3399 entries in the $110 to $150 range, but newer models are more affordable.

The new Khadas Edge, Renegade Elite, and 96Boards form-factor Rock960 all start at about $100, and others have been cheaper. FriendlyElec introduced a $65 (2GB) and up NanoPi-M4 and followed up with a compact, $45 NanoPi Neo4. The Neo4 is an impressive feat despite the limitation of only 1GB of RAM, which isn’t enough for the RK3399. Also in this range is Pine64’s $60 (2GB) and up RockPro64, which shipped earlier this year.

No single Raspberry Pi killer emerged in 2018. Yet, the collective group of RK3399 vendors appear to be acting as a counterpoint in the Pi. The RK3399 is fast and offers x86 like technologies such as PCIe, SATA, and HDMI 2.0, and it has better Linux mainline support than the still-improving Allwinner SoCs.

2019 SBC trends

So what can we expect in 2019’s board market? The Raspberry Pi Foundation has already said that it is done with the Raspberry Pi 3 line and that it will upgrade from the current 40nm process for the next model. In March 2017, a year after the launch of the original Raspberry Pi 3, Raspberry Pi Trading CEO Eben Upton told ITPro that the RPi 3 successor would be at least three years away, pegging it at March 2019 at the earliest. It would not be surprising if the Raspberry Pi 4 didn’t arrive until late 2019, or even 2020. If there’s a major recession, we will likely see fewer SBC introductions. Otherwise, however, the growth in niche applications will probably block consolidation for the time being.

With TI’s new quad-core Cortex-A53 Sitara AM65x, it might be time for a BeagleBone reboot, and we should see more NXP i.MX8M boards such as TechNexion’s new sandwich-style PICO-PI-IMX8M spin on the Wand-Pi-8M. In the x86 world, meanwhile, a community-backed SBC based on the AMD Ryzen Embedded V1000 chip may arrive, although it may not clear our $200 limit.

So far, no RISC-V based SBCs have slid under our $200 limit, but one is likely to arrive in 2019. We could even see a low-cost Google Fuchsia hacker board. Meanwhile, you can check out the new Linux supported C-SKY ISA for as little as $6 with the new C-SKY board.

Overall, we’ll see a growing focus on 5G and edge analytics. In 2019 we are likely to see at least one 5G-ready board, and many more high-end edge IoT boards with NPUs, VPUs, and smartened up GPUs. So get ready to start talking TOPS and deep learning frameworks.

Sounds like fun. Let’s go.

Linux Technology for the New Year: eBPF

eBPF is “Linux’s newest superpower,” said SAP Labs’ developer Gaurav Gupta, during a talk that he gave about using the technology for low-overhead tracing at KubeCon in Copenhagen earlier this year.

A virtual machine for the Linux kernel, eBPF could set the stage for advanced, low-overhead tracing inside the kernel itself, offering insight into I/O and file system latency, CPU usage by process, stack tracing and other metrics useful for debugging. It could also play a role in system security, potentially offering a way to thwart DDOS attacks, to monitor for intrusion detection, and even replace IPtables. It also offers a cleaner alternative to installing drivers.

“In the future, you will see a lot more eBPF programs instead of kernel modules,” said Netflix Kernel and Performance Engineer Brendan Gregg, at the All Things Open conference held in Raleigh, North Carolina in October.

Read more at The New Stack

The Top 5 Linux and Open-Source Stories of 2018

Last year was among the best of times for Linux and open-source. It was also the worst of years. The top five Linux and open-source stories tell it all.

SPECTRE/MELTDOWN

First, last January there were a lot of exhausted and angry Linux kernel developers. That’s because a fundamental chip design mistake led to Linux and all Intel-based operating systems having to deal with the Spectre and Meltdown major security problems.

Linus Torvalds, Linux’s master developer, added, that with the “security issues kept under wraps, we couldn’t do our usual open methods. This made fixing the bugs much more painful than it should be.”

IBM BUYS RED HAT

I didn’t see this coming. IBM made the biggest software company acquisition of all time when it paid $34 billion for Red Hat. This deal wasn’t about Linux. It was about IBM wanting Red Hat’s cloud, container, and Kubernetes expertise.

Read more at ZDNet