Home Blog Page 596

How to install Arch Linux on VirtualBox

Arch Linux is a Linux-based operating system that is designed for i689 and 86-64 computers. Its unique package manager is responsible for providing updates to the latest software applications using “pacman” with complete tracking. Pacman is the package manager that is used to install, update, and remove the software packages. It is designed entirely for free and open-source software, along with the support from the Linux community.

Arch Linux is also popular for having a comprehensive documentation in form of the community wiki known as ArchWiki. This Linux operating system is based on binary packages that are targeted for i832, 64-bit, and 32-bit systems and optimized for the best performance on the modern hardware systems.

Read more at HowtoForge

Open Source Hardware: From SBCs to Servers

When you mention open source hardware, people typically think about community-backed hacker boards. However, the open hardware movement is growing on many fronts, including medical devices, rocketry and satellites, 3D printers, cameras, VR gear, and even laptops and servers. At the Embedded Linux Conference Europe in October, John “Warthog” Hawley, Intel’s evangelist for the MinnowBoard SBC, surveyed the key open hardware trends he saw in 2016. The full video, “Survey of Open Hardware 2016,” can be seen below.

Hawley prefers the strict open hardware interpretation offered by the Open Source Hardware Association (OSHA). The key statement is: “Open source hardware is hardware whose design is made publicly available so that anyone can study, modify, distribute, make, and sell the design or hardware based on that design.”

Hawley reported that at the Open Hardware Summit held in Portland, Oregon, OSHA had revealed a certification program for open source hardware. Formally announced on November 7, the plan calls for OSHA to issue unique IDs for each piece of registered hardware, including a country code and an ID number.

By OSHA’s definition, some popular community-backed SBCs such as the Raspberry Pi do not qualify as open source, said Hawley. “You can get some schematics for the Raspberry Pi, but you can’t get the Gerber files or remix it for your own purposes,” he said.

Boards that do qualify, he said, include Linux-ready, open spec SBCs like the Intel Galileo and LittleBits CloudBit on the low end and the BeagleBone, Olimex’s OlinuXino, and ADI’s Intel backed MinnowBoard Turbot on the high end. Many other community-backed Linux hacker SBCs, but certainly not all, would also appear to fit the definition.

Arduino boards, many of which now include a Linux-driven component, also qualify. Hawley reported on the breaking news at the time that the two dueling Arduino camps had pledged to reunite. The reunited Arduino will be unveiled at the Arduino Day conference on April 1.

Leading the way in opening up Linux SBCs in 2016 was The Next Thing’s $9 Chip SBC, which raised over $2 million on Kickstarter. said Hawley. The growing use of Kickstarter to launch open-spec hardware was another key 2016 trend, he added.

Calling the Chip developers “the poster children for open source hardware,” Hawley said that The Next Thing releases everything you would need to build your own Chip variant. This includes source code, Gerbers, schematics, and BOM.

“With the Chip, they’ve pioneered new techniques to reduce the cost of hardware,” said Hawley. “For example, they’ve got eMMC, but no eMMC hardware controller. The controller functions are done by software in the CPU.”

While ELCE was in session, The Next Thing unveiled a $16, open-spec computer-on-module version of the Chip called the Chip Pro. It also launched a partially open source system-in-package (SiP) version of the Cortex-A8 Allwinner R8 SoC use on the Chip and Chip Pro called the GR8. For a fully open source SoC, many vendors are turning to the RISC-V project, which may well end up on Hawley’s list of open hardware trends for 2017.

Needed: Easier open source PCB design tools

If you attempt to build your own SBCs rather than do what most hobbyist hackers do — write apps and customize the boards with add-ons — you will discover the rewards of “solving your own itches,” said Hawley. He noted, however, that it’s easier to delete a feature from a design than to add one.

The process of building your own board is challenged by the lack of easy, open source PCB design and layout tools. With lower end, two-layer PCBs, you can turn to the open source KiCad, but higher end boards with PCI-Express and differential pair routing usually require expensive professional tools, said Hawley.

KiCad’s workflow and UI are still difficult, but improving, said Hawley, echoing the thoughts of Grant Likely in an ELC 2016 North America session on embedded Linux. “A lot of entities are working to improve KiCad, such as CERN, which is adding differential pair, push-pull routing,” said Hawley.

On the 10-layer MinnowBoard, the only way to get at files beyond Gerbers is to work with high-end tools like OrCAD, said Hawley. “Eagle probably couldn’t handle it well, and porting it to KiCad would be a bit of a nightmare because it doesn’t handle that kind of complexity very well,” he added.

Autodesk’s proprietary Eagle tools are friendlier and more affordable than many, such as the high-end Altium, said Hawley. The BeagleBone Black now supports Eagle for a 4- or 6-layer board, he added.

An audience member related that Olimex was beginning to add KiCad support to its OlinuXino SBCs. Olimex also recently announced an open source Teres I laptop.

Open source hardware beyond SBCs

Open source hardware adoption and creation is accelerating, and not only in the SBC market, said Hawley. He reported on several presentations at the Open Hardware Summit, especially in the field of medical devices. Open spec medical gear is finally taking off, despite the challenge of extensive regulation and certification that can add years to product development, said Hawley.

One Open Hardware Summit presentation demonstrated an under-$100 open hardware device that surgeons can use to practice suturing techniques. You stick your finger into the device to learn how to apply just the right amount of pressure to sutures.

There was also a presentation about HACKberry’s dual-licensed, 3D printable prosthetic hand. This relatively affordable solution is particularly helpful for kids who typically go through several expensive prosthetic models as they grow. “It’s a modular system so you can replace the hookup with a slightly bigger one, and you can more easily customize it,” said Hawley.

Also at the Summit, the Portland State Aerospace Society talked about open source rocketry and satellites, and the U.S. National Park Service discussed its rapid adoption of open source hardware. “The Park Service is choosing open source hardware because it lowers the cost of putting together demos and interactive exhibits, and lets them more easily share designs with other parks and museums,” said Hawley.

Perhaps the biggest open hardware announcement of 2016 came from the server world, said Hawley. In March, Google joined Facebook’s Open Compute Project (OCP), a consortium of companies including Microsoft, that is developing standardized, open source equipment such as switches and servers.

“OCP is designing open hardware to cut down on costs, power usage, and thermal usage in data centers,” said Hawley. “They cut out the unnecessary parts of servers — I once saw a server with a sound card on it — so when they sit idle they won’t vampire power. Idling systems also generate heat, so you have to spend more on cooling.” Facebook and Google have each released other open source hardware devices, including Google’s Cardboard VR and Facebook’s Surround360 3D-360 video capture system.

Hawley said he tries to convince manufacturers to open source their hardware designs, or at the very least, open up the designs once end of life is at hand. “Instead of abandoning products, they should chuck them over the fence into open source,” he said. Not only is this friendlier to users and developers, but it enables the open source community to update the products for security. “Otherwise they make a great platform for DDOS attacks.”

Watch the complete presentation below:

Embedded Linux Conference + OpenIoT Summit North America will be held on February 21 – 23, 2017 in Portland, Oregon. Check out over 130 sessions on the Linux kernel, embedded development & systems, and the latest on the open Internet of Things.

Linux.com readers can register now with the discount code, LINUXRD5, for 5% off the attendee registration price. Register now>>

The Logical Happens: Open-O Merges with ECOMP

We’ve noted in the past that two Linux Foundation open source projects seemed to be working on similar things: The Open-O project and open source ECOMP. Today, the Linux Foundation announced that the two groups are merging.

The new name for the combined group is the Open Network Automation Platform (ONAP). The goal of ONAP is to enable end users to design, orchestrate, manage, and automate network services and virtual functions. It was only logical for these two groups to merge. They were doing many of the same things, and they were both hosted by the Linux Foundation. What’s fascinating is that the new group brings AT&T together with two major Chinese mobile operators.

Read more at SDxCentral

Survey of Open Hardware 2016

John “Warthog” Hawley, Intel’s evangelist for the MinnowBoard SBC, surveyed key open hardware trends at the Embedded Linux Conference Europe.
 
 

10 Most Common Reasons Kubernetes Deployments Fail (Part 1)

I’ve catalogued the most common reasons Kubernetes Deployments fail, and I’m sharing my troubleshooting playbook with you! Without further ado, here are the 10 most common reasons Kubernetes Deployments fail:

1. Wrong Container Image / Invalid Registry Permissions

Two of the most common problems are (a) having the wrong container image specified and (b) trying to use private images without providing registry credentials. These are especially tricky when starting to work with Kubernetes or wiring up CI/CD for the first time.

Read more at Kukulinski.com

Today’s Leading Causes of DDoS Attacks

Last fall, we saw the biggest distibuted denial of service (DDoS) attack ever. This year we’ll see even bigger ones. According to Akamai‘s latest State of the Internet Security report, here’s what’s behind them.

First, you should know that while the total DDoS attacks only increased by 4 percent from Q4 2015 to Q4 2016, there was a 140 percent increase in attacks greater than 100 gigabits per second (Gbps). In short, we’re not seeing that many more DDoS assaults, but they are getting much worse.

Read more at ZDNet

How to Contribute to Open Source

Want to contribute to open source? Here’s a guide to making open source contributions, for first-timers and for veterans, including:

Why contribute to open source?

What it means to contribute

How to orient yourself to a new project

Finding a project to contribute to

And more…

Read more at GitHub

Valve Launches SteamVR Support for Linux

Valve has been giving Steam users Linux love since 2012, and it’s not stopping with VR. The company just launched SteamVR for Linux, letting developers create Linux content for the HTC Vive VR headset, trackers and other hardware. The program is in beta, meaning developers must use an NVIDIA developer beta driver that’s built on “Vulkan,” the successor to OpenGL.

Read more at Engadget

How to Perform Pattern Search in Files using Grep

In our first article on the grep command, we covered quite a few features the tool offers, including how you can use it to search only for words, search for two words, count lines containing matched word, and more. Aside from these, the tool provides some more easy-to-understand and useful features. 

This article focuses on some advanced features of the grep command like case insensitive search, displaying certain non-matched lines with line containing matched string, print matched strings in grep, and to display the position of a match in grep.

Read more at HowToForge

How China Mobile Is Using Linux and Open Source

China Mobile is one of the biggest telecom companies in the world, with more than 800 million users in China — all of whom are served with open source technologies. During the 2016 Mobile World Congress, China Mobile declared that the operational support system running their massive network would be based on open source software. China Mobile is not alone; many major networking vendors are moving to open source technologies. For example, AT&T is building their future network on top of OpenStack, and they have invested in software-defined technology so significantly that they now call themselves a software company.

I sat down with Zhang Zhihong, Deputy General Manager of Cloud Computing Products, China Mobile Suzhou R&D Center to discuss how the company is embracing open source and Linux, and how they are giving back.

China Mobile is not the only player embracing Linux in this industry. Zhihong said that companies like Alibaba and Baidu also have internal groups whose job is to just build optimized Linux distributions for their own consumption. Not only does Linux cut costs heavily (you don’t have to pay millions of dollars to acquire subscriptions or licenses for thousands of machines), but the company can also fine tune it to get the most out of their network and infrastructure.

“We thought, when they can do it, why can’t we? We built an internal team at China Mobile and created our own Linux distribution,” said Zhihong.

China Mobile buys around 4000-5000 servers every year, and most of these servers deploy Linux. Previously, they used commercial versions of Linux — mainly SUSE Linux Enterprise Server and RHEL — but in 2015 their team created a custom version of Linux that gave them more control over their infrastructure while also cutting costs.

The new operating system is based on CentOS, and in 2016, China Mobile deployed more than 10,000 physical servers running this customized version of Linux in a production environment.

Cost and Control

When asked about the advantages of using their own custom Linux, Zhihong pointed out two deciding factors: cost and control. Cost has been the most important factor, Zhihong said. The purchasing department makes all decisions and controls all deals for the company, and they think it’s too expensive to pay for a commercial operating system as the cost can run into hundreds of millions of dollars. That’s a lot of money.

The second reason was better control over their infrastructure. “With custom Linux distribution, we can push our limits as we have a lot of low-level software. We use KVM for virtualization and Ceph for storage, with a lot of fine tuning and optimization at the kernel level. If there are bugs, or if we need a new feature it can take a lot of time to talk to the vendor and get those changes into the OS. By using our own distribution we gain this capability.”

However, running their own distribution doesn’t mean that they don’t contribute to the Linux community. Zhihong said that contribution is the core part of using Linux or another open source software. He said more than 100 contributors from the company contribute to the kernel. Whenever there is a bug, they fix it and submit the patch.

Zhihong gave an example of working with upstream when they hit a KVM bug in the public cloud production environment, they were running several virtual machines with several CPUs and when they attached more than two disks it would crash. Their kernel teams traced the problem, which had something to do with buffer overflow, fixed the bug, and submitted the patch upstream.

He also added that Linux is very strong in China, with many local Linux groups, and he said many employees from the company are part of those local Linux communities. “Linux is very much welcomed in China, there are lot of Linux programmers,” Zhihong said.

OpenStack Superuser

In addition to Linux, China Mobile is a heavy user of other open source technologies. “We use a lot of open source technologies: OpenStack, Hadoop, Zookeeper, Tomcat, Ceph, and so many that I can’t list them all,” said Zhihong.

China Mobile is more than just a mobile carrier; they offer many more services. They have many IT applications so they have been running their own private cloud for many years. Their private cloud is spread across three pools in three regions of China. There are thousands of servers running in these pools, but the cloud is proprietary and not open source.

By 2015, OpenStack had stabilized and matured enough to be considered seriously by the likes of China Mobile. So, China Mobile began building a new OpenStack private cloud spanning across two pools, with each pool running more than 3,000 servers. Once the project is complete, they will connect it to the existing proprietary cloud and little by little replace it with OpenStack.

Their commitment to open source and OpenStack led them to win the OpenStack Superuser award last year. OpenStack is mostly seen as a private cloud answer to AWS and Microsoft Azure, but China Mobile uses OpenStack both in its private and public clouds. Their public cloud has more than 3000 servers. It’s similar to AWS where it provides virtual machines, object based storage, and other such services to customers. It has more than 20,000 registered users and around 2,000 enterprise users.

China is a huge market for companies like China Mobile with more than a billion potential customers, and it’s also the manufacturing hub of the world. As more and more big companies embrace Linux and open source, China may evolve from a consumer of Linux to one of its leading contributors.

The program for Open Networking Summit is now available!

Look forward to over 75 sessions led by networking visionaries including Martin Casado, General Partner, Andreessen Horowitz; Amin Vahdat, Google Fellow and technical lead for networking, Google; Justin Dustzadeh, VP, Head of Global Infrastructure Network Services; Dr. Hossein Eslambolchi, Technical advisor to Facebook, Chairman & CEO, 2020 Venture Partners; and many more. Register now >>