Home Blog Page 970

Why NUT

Expectation doesn’t always match actuality; which is a shame. But sometimes we can do something about it. This is a tiny tale of my attempt to do just that.

ups-examples

Earlier this year I was on the lookout for a Linux based NAS that had the more enterprise goodness I had encountered with my ventures into ZFS via FreeNAS ie CoW and data checksums, snapshots etc. and happened across Rockstor, but at the time it had no graphical UPS configuration. This for me was a show stopper (details below), my expectation was to adopt my dream NAS setup that ran on my favourite OS and to become a 100% Linux user again.

Sure I was impressed with FreeNAS but I’m a Linux guy and having been an all Linux setup for 15 years at least, it grated to be using nanobsd for my NAS. Nothing against FreeNAS but my mainstay OS of choice was set and I had grown very familiar with it; the BSD’s for all their splendour were just not my cup of tea and it sat uneasy that my darling OS was just not serving me in every way I wanted. So I began looking around again; it had been years since looking at NAS distros so surely something had happened. It was at this point when I first came across Rockstor. This thing was neat, focused, to the point, and most encouragingly developed completely in the open. Sure it was still quite young at < 2.5 years but the pace of development was fast. That’s great I thought, if it has what I need then marvellous but alas it was short of one key feature. It had no GUI way to configure NUT, a UPS tools system, and for me this was just not the ticket. Given that it is essentially a full CentOS with a WebUI bolted on to deal with the btrfs / NAS / sharing stuff I knew I could simply do a text based NUT config but that wasn’t what I was looking for. That wasn’t an appliance. I had already spent many years doing everything with my teeth even down to the early days of modelines in X and reserving ram just to get 3D going, and regular kernel recompilations or cups recompilations just to be able to print. My Linux should be better than that, it should by now be for the people; all the people. With all the goodness of a modern file system.

So I wondered on by. However the whole Rockstor dabble had left a lasting impression and I just couldn’t shake the fact that I was just not happy running a nanoBSD based system when my passions and interests were Linux based. It also greatly excited me that I might once again become an all Linux setup. I enjoy the Linux ethos and I believe the nature of the licence to be key: i.e. Apple’s advancements in BSD that no one else has. Alas; sometimes expectation just doesn’t match actuality.

But hold on I thought, I can’t let a little thing like a missing feature stand in my way. I began making tentative inroads into Rockstor’s community and code to see what I might do to make a difference. There were some unusual elements to this NAS distro, they had obviously made significant efforts towards usability, you know where things make sense due to design; an all too sparse quality in many a distro / OS. I slowly and surely became convinced that this was an OS NAS OS of the future in the making. And I wanted to be part of that future.

Oh and what Brett said.

Sometimes one just has to adapt to a situation and sometimes one can adapt the situation.

serial-adaptation

Adaptation by adapter. Not all FT232R’s are equal; a null modem wired usb to serial adapter adapted for UPS testing. Sorted.

Part of the Future

At that time the forum was run on something decidedly inferior to discourse and wouldn’t even render in my browser of choice, this wasn’t good. So I dove into the git repo and browsed the issues and pull requests to try and gain a deeper understanding of the project. In my meandering I saw one or two tiny fixes I could make and on a whim started submitting the tiniest of pull requests. Whilst exploring the feature set further I received a friendly error message that something had gone wrong. Nicely caught and no horrible crashes just a neat dialog encouraging me to send a pre-prepared zip of logs to the developers. Elegant I though. Not just a long wait in the nothingness of an unresponsive system but true assistance and guidance. I was further impressed. So I got the log zip and out of not wanting to bother the developers with my silly problem took a peak. What I saw gave me the impression of something that had been crafted, full on Python with exceptions caught everywhere, not just another PHP monster but a proper structured entity with objects and fancy ways and means. Anyway the log zip pretty much pinpointed the problem but I just wasn’t familiar enough with the code to tackle this myself so in the interests of living up to my ideals I posted an issue.

The response was surprisingly fast and entirely jovial; I had (in internet terms) met Suman, the project lead. A fix was committed and in no time at all this silly little issue of mine was sorted and this was good. The joys of a rapid development cycle.

I had at about the same time ventured an email to
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
declaring my interest in NUT and was pleasantly surprised by the encouraging return. They had no plans to implement this feature just yet but they were all to happy to try in whatever way they could to help.

Soon I became more involved and the forum, that was thankfully switched to the most excellent open source discourse, was becoming alive with the growing interest in this new fangled btrfs NAS solution. I was, perhaps unwisely, awarded the privilege of forum maintainer. It’s a pretty friendly place so no worries there.

I went on to submit some doc tweaks and additions. To my surprise the docs are programmatically generated from base .rst files (a markup language) that through the magic of Sphinx end up as html for the rockstor.com home page docs section. This was just getting better and better, and I had started to make a difference.

Why not NUT

So why not NUT, why bother, well indeed; in the context of no doubt well meaning mice this is a question that answers itself. But stories are nice so here goes.

Over time where I live and work the electric had been a little iffy, the occasional trip out but nothing too serious. I had as a matter of course implemented a number of UPS’s and hand configured NUT to deal with these little outages but more was to come.

One morning I awoke to a calmness, this can’t be bad I though, but there was a down side. The entire electric had failed and this time there was no just flipping it back on and going about my business no no. This time it was serious. It turned out that we could no longer make any sockets in the house live; the RCD refusing to enact our expectation. An investigation was in order:-

The Investigation

Most people who have dealings with computers have had mouse problems at one time or another, these days the problems tend not to be physical but electrical; given the prevalence of optical mice. And this was what my mouse problem turned out to be:-

electrical-mouse-problem

The mouse problem diagnosed; definitely electrical and behind a drywall at the back of a cupboard. Inconvenience in carnate.

So without ripping apart my whole (rented) Soho I can only assume that other as yet undiscovered gems such as the above are lying in wait. What’s behind your walls?

After many hours of diagnostics and much frustration I had found at least one reason for our previously flaky and now critical electric situation. Needless to say my NUT interest grew and I began as a matter of course to make all systems aware of their pending doom; or at least when it might be a good idea to shut down. NUT, due to it’s network nature, is a perfect fit.

To cut a long story short I ended up submitting (on my 47th Birthday) my first non trivial pull request to rockstor-core. A fortnight of advice reviews and tweaks later and Rockstor now has graphical NUT configuration (in beta). I for one am chuffed. And yes wouldn’t it be great to have a shiny UPS data page or a fancy additional widget on Rockstor’s dashboard but until that time, successive approximation and development in the open and all, I offer up some “desktop” shiny.

Some Shiny

Given no fancy technology is complete without fancy telemetry; I present walNUT:-

walNUT gnome extension

walNUT the Gnome Shell Extension to monitor one’s UPS, thanks Daniele.

And for those of a KDE persuasion there is KNutClient, thanks Daniel. Note the similarity in the names; funny that. Graphical NUT clients are also available for other popular platforms.

 

What are these things but what we make them.

openSUSE Leap 42.1 Review: The Most Mature Linux Distribution

opensuse-1

The release last week of openSUSE Leap 42.1 is indeed a giant leap for the openSUSE project, SUSE and Linux users. This release is not only making a huge leap in terms of version numbers; the open source enterprise distribution is making giant leaps in every regard. I have been a longtime openSUSE user and this is the release I have been waiting for all this time. I played with it for a while and here are my thoughts.

When I visited the download page of openSUSE Leap, I was surprised to find that there is no live CD of 42.1. As a result you can’t really use it to test whether it will work on your system or not; the chances are it will work. All you have is the DVD, which you can use to install openSUSE.

When I inquired if there will be an official live CD of Leap, Richard Brown, the chairperson of the openSUSE board told me, “As far as I can be aware, there are no plans for an official LiveCD for Leap, especially not one which includes an installer – previous experience with live CD installers taught us it’s limited compared to what we can do with YaST on either the full DVD media or our tiny network ISO.”

If you do need a live CD of openSUSE Leap, let’s say for demo on a friend’s PC without installing it you can still create one using SUSE Studio, which allows you to create your own distribution by picking and choosing packages and desktop environments. 

Brown said, “Support for Leap 42.1 is -already- in SUSE studio and even without Studio people can use KIWI and OBS to build live media, or any other kind of media based on Leap.”

suse-studio

The Installation

openSUSE has one of the tidiest installation processes.openSUSE has one of the tidiest installation processes. While being easy to use, it also gives you much more control over the installation process compared to other distributions; well, excluding the likes of the uber customizable Arch and Gentoo.

During the installation process you can choose either Gnome, KDE or others and it will install that particular desktop environment (DE). KDE’s Plasma 5 is the default DE of openSUSE. Once installed you will see both KDE ‘4’ and Plasma 5 in the login screen and you can choose whichever one you prefer.

As a longtime Plasma user I heavily suggest moving up the ladder and using Plasma 5. If you find bugs report them; if you find missing features let the developers know.

opensuse-kde

What made openSUSE my preferred distribution back in 2011, when I was looking for an alternative to Ubuntu, was its tight integration with the desktop environment of choice. Whether you use Gnome or Plasma, everything feels in place. openSUSE teams do extra work to better integrate different applications with the desktop. I realized it when I used Arch Linux and ended up using the openSUSE packages for Firefox to get a better experience on Plasma desktop.

It’s upstream: one for all…

openSUSE earned respect in my eyes and became my recommended distro because they work upstream. SUSE/openSUSE developers are also among the top contributors to many open source projects, including the Linux kernel, Gnome, KDE, LibreOffice and many more.

Unlike many other distros which tend to be indifferent towards other distributions, openSUSE’s team has designed tools which support other distros. It’s a rare and quite refreshing experience. Whenever I ask some other distro: Why is your software not available for other distros? Their answer is often  “It’s open source, anyone can take it.”

That’s not the case with openSUSE. They have created some very powerful tools such as OpenSUSE Build ServiceOpenQASUSE Studio, etc. And these tools can be, and are being, used by other projects, including other distros. I have heard (though I couldn’t get any confirmation from Valve) that OBS (Open Build Service) is being used by Valve to build their .deb packages for Steam OS. And Fedora is using OpenQA.

Some words about software

Software management is extremely easy in openSUSE, as usual. You have the powerful YaST, if you like GUI, and zipper, if you prefer the trusted command line. Thousands of third-party packages are available through unmatched ‘software.opensuse.org‘, thanks to OBS. It’s extremely easy to install such packages on openSUSE: you search for the application, choose the version of openSUSE you are running and with one click the application will be installed on your system, no fuss no muss. Clean.

openSUSE Leap is meant to be a mature and stable release, something similar to Debian. It’s based on SUSE Linux Enterprise (SLE) so there is no ‘scope’ for instability; it runs in mission critical environments. As a result, Leap may not always have the ‘latest’ packages.

However unlike Debian Stable it’s not frozen in time. It uses the latest ‘stable’ packages. In most cases you will find the latest packages for Leap. If you are looking at DEs you will get Gnome 3.16.2, Plasma 5.4.2, Mate 1.10, XFCE 4.12.1 with Leap 42.1. If you are looking at applications then you will be running the latest versions of applications. I am running VLC 2.2.1, GIMP 2.8.14, etc. on my Leap machine, which are the latest stable versions.

If you are using Leap for your server or for development work, then there is no dearth of tools for openSUSE, thanks to SLE.

opensuse-software

YaST is one of the most precious gems SUSE/openSUSE ever created. This is one tool that every single distro must have. With 42.1 openSUSE offers the exact same version of YaST, AutoYaST and Linuxrc which will come with SLE12-SP1. YaST has changed its code-base and moved to Ruby, and it is gradually being polished.

You can also access extremely powerful system management tools like Machinery

Conclusion: Take the leap of faith

What makes this release even more important is that with Leap, SUSE and openSUSE have finally come together. With this release openSUSE will start using the same code which is being used in SLE. So technically you are running the ‘community’ version of SLE.

Leap 42.1 is based on the Service Pack 1 (SP1) of SLE 12, which will be released soon. Leap will follow SLE’s release cycle so there won’t be the regular 9-month release, instead a new version of openSUSE Leap will be released when the new version of SLE is due.

openSUSE Leap will get minor release updates which will align with the service packs. Since the openSUSE and SUSE teams are extensively using OpenQA, this is also one of the ‘most’ stable openSUSE releases ever. SUSE has a very strong enterprise presence in Europe and many other markets, now Leap allows potential customers, web hosting providers, and public cloud players to have another option in addition to CentOS and Ubuntu. They can run openSUSE Leap and run an infrastructure closer to SLE. I never ran openSUSE on my servers before and I am going to try it on my home server, replacing Ubuntu.

While I heavily recommend running openSUSE Leap on your servers, it’s now an even better distro to run on your desktop: It offers one of the most ‘mature’ Linux distros. It has a vast repository of software and it offers a great desktop experience due to finer integration with DEs. However, if you are not happy with its conservative approach then you can always try its sibling Tumbleweed, which is a ‘tested’ rolling release distribution.

In any case whether you want a mature and stable OS or a rolling release OS, openSUSE has you covered.

Go ahead take a leap of faith.

How to Install Ghost Blog Software with Apache and SSL on Ubuntu 15.10

Ghost is a powerful Open Source publishing and blog platform that is beautifully designed and easy to use. Ghost is written in javascript and uses node.js as runtime environment. This tutorial shows the installation of the Ghost Blog software with Apache and SSL on Ubuntu 15.10.

Read more at HowtoForge

Linux Foundation Scholarship Recipient: Eva Tanaskoska

eva-2 copy

The Linux Foundation regularly awards scholarships as part of its Linux Training Scholarship Program. In the five years that the Linux Foundation has hosted this program, it has awarded a total of 34 scholarships totalling more than $100,000 in free training to students and professionals who may not otherwise have access to these opportunities. In conjunction with this scholarship program, we are featuring recent recipients in the hope that their stories will inspire others.

This installment of our series features Eva Tanaskoska from Macedonia, who received a scholarship in the Women in Linux category. Eva has been working with and researching information security for a few years now. She is currently forming a CERT team at her university, where she mentors students on using Linux to perform penetration tests, forensic investigations, and incident response. We asked Eva to answer a few questions about her background and plans for the future.

How did you become interested in Linux and open source?

When I was 15, I started getting interested in cybersecurity, thanks to a friend of mine who sparked my interest. My first Linux experience was with BackTrack 2, which was considered a somewhat advanced Linux distribution that required certain knowledge. As a beginner, I had to find my way around it if I was to pursue my goals, and therefore I was motivated to learn as much as I could to utilize BackTrack properly. The challenges and effort kept stimulating me to learn more, and the open source development seemed fascinating and appealing, inspiring me to become a part of it.

What Linux Foundation course are you planning to take with your new scholarship?

I’m planning to take the Linux Security course (LFS416), because I want to learn as much as I can about Linux’s security mechanisms.

How do you expect to use the knowledge you gain from the course?

It will help me in understanding Linux’s security better. I’m planning on researching the subject thoroughly because it has always been of interest to me. My graduation thesis will also be Linux security oriented. Therefore, I’m certain the course will help me greatly with it and possibly with my postgraduate studies, too.

What are your career goals? How do you see a Linux Foundation course helping you achieve those goals?

My aim in life is to do information security research, and I’m certain that the Linux Security course will help me to better understand and contribute to Linux in the area I’m most interested in. Considering Linux is very flexible and used in various environments, as well as the fact that security is becoming an even greater concern, I’m assuming that Linux Linux Foundation logosecurity professionals will soon be very welcome and needed around the world.

What other hobbies or projects are you involved in? Do you participate in any open source projects at this time?

I like to express my artistic self through my art, and I’ve been a gamer since age 7. I’m also very fond of mentoring, which is why I work as a mentor and coordinator at the Computer Networking and Cyber-Security Academy at Newman’s Business Accelerator in Macedonia. I do not participate in any open source projects at this time, but since I find the open source philosophy very altruistic, I’m definitely planning on taking up some open source projects in my free time.

Read more:

Linux Foundation Scholarship Recipient: Enrique Sevillano, SysAdmin Superstar

Linux Foundation Scholarship Recipient: Anthony Hooper, Whiz Kid

Linux Foundation Scholarship Recipient: Yashdeep Saini, Developer Do-Gooder

Linux Foundation Scholarship Recipient: Kiran Padwal, Kernel Guru

File-Encrypting Ransomware Starts Targeting Linux Web Servers

Ransomware authors continue their hunt for new sources of income. After targeting consumer and then business computers, they’ve now expanded their attacks to Web servers.

Malware researchers from Russian antivirus vendor Doctor Web have recently discovered a new malware program for Linux-based systems that they’ve dubbed Linux.Encoder.1.

Read more at PCWorld.

​Linus Torvalds vs. the Internet Security Pros

The Washington Post feature story, Net of Insecurity: The kernel of the argument, opens “Fast, flexible and free, Linux is taking over the online world. But there is growing unease about security weaknesses.”

Features Published So Far In The Linux 4.4 Kernel

We’re half-way through the Linux 4.4 kernel merge window so here’s a recap of the features that have made it thus far for this next open-source kernel cycle…

Read more at Phoronix

Google is Giving Away a Big Part of Its Machine Learning Software

Google has just announced that it’s open sourcing TensorFlow under the Apache 2 license. That awfully nerdy sentence means that part of the software that Google uses to power its machine learning systems — the stuff that can translate words on a sign with your camera or learn what a cat looks like just by looking at a ton of photos — will now be free for anybody to use or alter.

Google says that TensorFlow can be used both by research institutions or by companies, and that it can work on a big, powerful computer or a tiny mobile phone. But as Wired notes, it looks like Google isn’t releasing the version that works on vast arrays of computers. Google says it’s releasing TensorFlow to “accelerate research on machine learning,” but also…

Continue reading…

Read more at The Verge

All The Systemd 2015 Conference Slides/Videos Now Available

Systemd.conf, the inaugural systemd conference for developers, has successfully concluded in Berlin…

Read more at Phoronix

Curiosity Rover Controlled by NASA with a Linux Computer

The Curiosity rover has been on Mars since 2012, and it’s been responsible for a lot of the cool and interesting information we got from the Red Planet since then. As it turns out, it’s remotely controlled with a help of a Linux machine from Earth.

It is hard not to get excited when you talk about the NASA’s Curiosity rover, but it gets even more interesting when you see how the missions are planned and how the engineers at the Mars Science Laboratory pre-program the rover…. (read more)