Caption This!

5 days 15 hours ago
by LJ Staff

It's another cartoon in need of a caption! You submit your caption, we choose three finalists, and readers vote for their favorite. The winning caption for this cartoon will appear in the August issue of Linux Journal.

To enter, simply type in your caption in the comments below or email us,

Go to Full Article
LJ Staff

Fedora vs Ubuntu

6 days 5 hours ago

Ubuntu and Fedora are both among the top desktop Linux distributions, but they are very different.

CentOS vs Ubuntu

6 days 8 hours ago

LinuxConfig: Ubuntu and CentOS are both major players in enterprise environments and in the datacenter.

Easy SSH Automation

6 days 14 hours ago
by Adam McPartlan

A script a day will allow you some freedom to play and build other useful and more complicated scripts. Every day, I attempt to make my life easier—by this I mean, trying to stop doing the repetitive tasks. If a process is repeatable; it can be scripted and automated. The idea to automate everything is not new, but try automating a command on a remote host.

SSH is very flexible, and it comes with many options. My absolute favorite is its ability to let you run a command on a remote server by passing the -t flag. An example:

ssh -t 'cat /etc/hosts'

This will ssh to, then run cat /etc/hosts in your shell and return the output.

For efficiency, you could create an ssh-key pair. It's a simple process of creating a passwordless public and a private keypair. To set this up, use ssh-keygen, and accept the defaults ensuring you leave the password blank:

ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/adam/.ssh/id_rsa): y Enter passphrase (empty for no passphrase): LEAVE BLANK Enter same passphrase again: Your identification has been saved in /home/nynet/.ssh/id_rsa. Your public key has been saved in /home/nynet/.ssh/ The key fingerprint is: SHA256:jUxrQRObADE8ardXMT9UaoAcOcQPBEKGU622646P8ho ↪ The key's randomart image is: +---[RSA 2048]----+ |B*++*Bo.=o | |.+. | |=*= | +----[SHA256]-----+

Once completed, copy the public key to the target server. To do this, use ssh-copy-id:

ssh-copy-id /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/adam/.ssh/" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), ↪to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if ↪you are prompted now it is to install the new keys's password: ******** Number of key(s) added: 1

You will be asked for the password of the target server.

If you have set this up correctly, you won't be asked for your password next time you ssh to your target.

Execute the original example. It should be quicker now that you don't need to enter your password.

If you have a handful of servers and want to report the running kernel versions, you can run uname -r from the command line, but to do this on multiple devices, you'll need a script.

Start with a file with a list of your servers, called server.txt, and then run your script to iterate over each server and return the required information:

Go to Full Article
Adam McPartlan

Purism's Future Plans for PureOS, Malicious Docker Images, Samsung's New Chromebook Plus 2-in-1 Convertible Laptop and More

6 days 14 hours ago

News briefs for June 15, 2018.

Purism detailed some of its future plans for PureOS in a blog post this morning. The team is looking into Librem 5 specific-image builds, and besides the ARM64 architecture, they also are "researching usage of OSTree, Flatpak, and a couple of other new technologies to use by default in PureOS on the desktop and/or the phone". In addition, "PureOS is planning to host its own Flathub instance (dedicated to Freedom, of course) so upstream developers can just package their app and submit it to PureOS's flathub if they don't want to trouble themselves with system-wide dependencies." Also, part of Purism's plans for handling apps includes developing "an ethical app store that will provide users with an option to donate, 'pay what you want', or 'subscribe' (support as a patron) the apps you use".

Ars Technica reported this week that "a single person or group may have made as much as $90,000 over 10 months by spreading 17 malicious images that were downloaded more than 5 million times from Docker Hub." A user first complained of the backdoor in September, but nothing was done, and 14 more malicious images were submitted. See Kromtech's report for more details on the cryptojacking. And note that "despite the images being pulled from Docker Hub, many servers that installed the images may still be infected."

Samsung yesterday announced its new Chromebook Plus 2-in-1 convertible laptop, running the Linux-based ChromeOS. The Chromebook Plus "is equipped with a built-in pen and offers a light, thin and stylish design that delivers versatility, portability and a premium experience at a competitive price point". It will be available starting June 24 from Best Buy for $499.99.

Fedora 29 will fully support the Boot Loader Specification, Phoronix reports. With this change Fedora hopes to "simplify the kernel installation process significantly and make it more consistent across the different architectures. This will also make it easier for automation tools to manage the bootloader menu options since it will just be a matter of adding, removing or editing individual BLS entry files in a directory."

Google released its Annual Diversity Report yesterday. See also The Verge's rundown of the numbers.

News Purism Docker Security Chromebook ChromeOS Fedora Google
Jill Franklin

Modicia: Ultimate Linux with a Twist

6 days 15 hours ago
Every once and a great while I stumble on a Linux distro that makes me sit up and smile. Modicia O.S. is one of them. It is not that Modicia steps over the bleeding edge of innovation. It is a seemingly standard desktop Linux distribution based on Xubuntu. It comes in one desktop flavor, Xfce -- but with a twist. Yet nothing is standard about Modicia O.S. That is what generates the happiness.
Jack M. Germain