Open-source News

The Many New Features On The Horizon For Linux 6.2

Phoronix - Fri, 12/09/2022 - 19:36
While Linux 6.1 is introducing many new features, for the Linux 6.2 merge window beginning next week there is a lot more on tap. Linux 6.2 has a lot of exciting additions expected from new low-level software features, continuing to lay more Rust code, new hardware support, stable Intel Arc Graphics support, and a ton more. Here is an early look at some of what is expected...

AMD Releases AOMP 16.0-3 Compiler

Phoronix - Fri, 12/09/2022 - 19:05
AMD engineers on Thursday released AOMP 16.0-3 as the newest version of their LLVM/Clang downstream focused on providing the latest patches for enjoying AMD Instinct / Radeon OpenMP offloading as part of their ROCm compute stack...

Microsoft's CBL-Mariner Linux Distro Enables HTTP2, TCP Congestion Algorithms

Phoronix - Fri, 12/09/2022 - 18:50
Microsoft has released CBL-Mariner 2.0.20221203, a new version of its in-house Linux distribution fulfilling a variety of internal needs...

Install open source solar power at home

opensource.com - Fri, 12/09/2022 - 16:00
Install open source solar power at home Joshua Pearce Fri, 12/09/2022 - 03:00

You might have already given some thought to powering your home with solar. Solar photovoltaic panels, which convert sunlight directly into electricity, have fallen so far down in cost that it makes economic sense everywhere. That is why large companies have put in a lot of solar, and even the electric utilities have started installing massive solar farms—it simply costs less than antiquated fossil fuels. Like most homeowners, you would like to save money and eviscerate your electric bill, but you are probably cringing a bit at the upfront cost. To get a rough idea of the cost, a 5kW system that would power an average home installed at $3/W would cost about $15,000, while a larger home might need 10kW to offset all of their electricity purchases and cost $30,000. If you want batteries, double the cost (you don’t need batteries as most solar arrays connect to the grid, but if the grid goes down, so does your solar array until it is turned back on.) Paying for all your electricity for the next several decades is an investment, even if you save a lot of money.

There is some good financial news. First, both the US and Canada have enacted a 30% tax credit for solar. This credit drops the price down to about $2/W. Second, Opensource.com previously discussed how you could get a free book, To Catch the Sun, that walks you through how to design your own system (you will still need a certified electrician and inspections to attach it to the grid). If you are a little handy, you can cut the remaining cost by about 50%. These costs are primarily for materials, including solar panels, wiring, electronics, and racking. Amazingly, solar panel costs have dropped so low for small solar systems (like the ones for your house) the racking (mechanical structures that hold the solar panels up) can cost more than the panels!

Open source to the rescue again

Applying the open source development paradigm to software results in faster innovation, better products, and lower costs. The same is true of open source hardware—and even in the relatively obscure area of photovoltaic racking. Nearly all commercial photovoltaic racking is made from proprietary odd aluminum extrusions. They cost a lot of money. If you have a bit of unshaded backyard, you have a few open source racking solutions to choose from.

Open source solar rack designs

The first DIY solar rack design meets the following criteria: (1) made from locally-accessible renewable materials, (2) 25-year lifetime to match solar warranties, (3) able to be fabricated by average consumers, (4) able to meet Canadian structural building codes (if you live where there is no snow this is a bit overkill, but, hey, you might have other weather extremes like hurricanes to deal with), (5) low cost and (6) that it is shared using an open source license. The open source wood-based fixed-tilt ground-mounted bifacial photovoltaic rack design works throughout North America. The racking system saves from 49% to 77% compared to commercial proprietary racking. The racking design, however, is highly dependent on the cost of lumber, which varies worldwide.

Check your local cost of wood before you dive into this open source design.

Image by:

(Joshua Pearce, CC BY-SA 4.0)

If you are even more adventurous, you might consider this second design that allows you to change the tilt angle. The results of the second study show the racking systems with an optimal variable seasonal tilt angle have the best lifetime energy production, with 5.2% more energy generated compared to the fixed-tilt system (or 4.8% more energy, if limited to a maximum tilt angle of 60°). Both fixed and variable wooden racking systems show similar electricity costs, which are only 29% of that of proprietary commercial metal racking. The variable tilt rack provides the lowest cost option even when modest labor costs are included and also may provide specific advantages for applications such as agrivoltaics (i.e., you can garden underneath the panels and amazingly get increases in yields for shade-tolerant crops like lettuce). This design has been certified by OSHWA with CERN-OHL-S-2.0 licenses.

IMAGE

Image by:

(Joshua Pearce, CC BY-SA 4.0)

There is about 1kW for each of the 2 PV module racks shown. So a house would need about five of them. Both papers provide full calculations and step-by-step build instructions.

As anyone with a solar system will tell you, getting a negative electricity bill is pretty rewarding. This happens if you size your system to meet all of your load and live in a net-metered part of the country. Please note that the electric utilities don’t pay you; the credit carries over until you use it in the winter.

Have fun with a little open source solar!

Check out these two open source designs for solar power wood racks you can build for your home.

Image by:

Photo by Jason Hibbets

Sustainability Hardware What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

A Linux file manager for Emacs fans

opensource.com - Fri, 12/09/2022 - 16:00
A Linux file manager for Emacs fans Seth Kenlon Fri, 12/09/2022 - 03:00

In 2009, I was working hard at a startup in Pittsburgh, and in the late evenings of coding, I developed a GNU Emacs habit. The thing about Emacs is that it's just too versatile to close. Whether you're writing code, writing articles about open source, jotting down a task list, or even playing music, you can do it all from within Emacs. And every time you think you've found a task outside of Emacs, you discover an Emacs mode to prove you wrong. One of my favorite reasons to not close Emacs is its file manager, called directory editor or just Dired.

Install GNU Emacs

Dired is included with Emacs, so there's no install process aside from installing Emacs itself.

On Linux, you can find GNU Emacs in your distribution's software repository. On Fedora, CentOS, Mageia, and similar:

$ sudo dnf install emacs

On Debian, Linux Mint, Elementary, and similar:

$ sudo apt install emacs

On macOS, use Homebrew or MacPort.

For Windows, use Chocolatey.

Image by:

(Seth Kenlon, CC BY-SA 4.0)

File management with Dired

Dired mode is a text-based file management system. It can run in the graphical version of Emacs or in the terminal version of Emacs, making it a flexible, lightweight, and approved for use during a zombie apocalypse.

To launch it, press Ctrl+X and then d. You're prompted in the mini buffer (the field at the bottom of the Emacs window) for the directory you want to open. It defaults to your home directory (~).

/home/tux:
total used in directory 40 available 88.1 GiB
drwx------. 17 tux  tux  4096 Sep 20 15:15 .
drwxr-xr-x.  5 root root   42 Sep 14 05:29 ..
-rw-------.  1 tux  tux   938 Sep 20 15:28 .bash_history
-rw-r--r--.  1 tux  tux    18 Nov  6  2021 .bash_logout
-rw-r--r--.  1 tux  tux   141 Nov  6  2021 .bash_profile
-rw-r--r--.  1 tux  tux   492 Nov  6  2021 .bashrc
drwxr-xr-x. 16 tux  tux  4096 Sep 20 14:23 .cache
drwx------. 16 tux  tux  4096 Sep 20 14:51 .config
drwxr-xr-x.  2 tux  tux    59 Sep 20 15:01 Desktop
drwxr-xr-x.  2 tux  tux     6 Sep 15 15:54 Documents
drwxr-xr-x.  3 tux  tux   166 Sep 20 15:12 Downloads
-rw-r--r--.  1 tux  tux   334 Oct  5  2021 .emacs
drwx------.  2 tux  tux     6 Sep 20 14:25 .emacs.d
-rw-------.  1 tux  tux    33 Sep 20 15:15 .lesshst
drwx------.  4 tux  tux    32 Sep 15 15:54 .local
drwxr-xr-x.  6 tux  tux    81 Sep 15 16:03 .mozilla
drwxr-xr-x.  2 tux  tux     6 Sep 15 15:54 Music
drwxr-xr-x.  2 tux  tux    59 Sep 20 14:52 Pictures
[...]

The file listing provided looks familiar to anyone accustomed to ls -l in a terminal. From left to right:

  • Identifies the entry as a directory, if applicable, and then lists the file permissions

  • The number of hard links to the entry (for example, the Desktop entry has 1 hard link representing itself, and 1 file in it)

  • User

  • Group

  • Disk space used, in bytes

  • Time last modified

  • File name

More Linux resources Linux commands cheat sheet Advanced Linux commands cheat sheet Free online course: RHEL technical overview Linux networking cheat sheet SELinux cheat sheet Linux common commands cheat sheet What are Linux containers? Our latest Linux articles Navigation

To navigate Dired, you can use either the arrow keys or standard Emacs key bindings. For this article, I use Emacs notation: C- for Ctrl and M- for Alt or Meta.

  • C-p or Up arrow: Previous entry in list

  • C-n or Down arrow: Next entry in list

  • Enter or v: Descend into the selected directory

  • ^: Move "up" the directory tree to the current directory's parent

Refreshing the view

Dired doesn't redraw the screen for every action, so sometimes you may need to prompt it to refresh. Press g to redraw a Dired listing.

Open a file

One of the reasons you use a file manager is to find a file and then open it. Emacs can't open every file type, but you might be surprised at just how much it can handle. Then again, not everything it can handle is necessarily useful to you. For instance, it's nice that Emacs can open a JPEG but I rarely view a JPEG in Emacs, and I certainly don't use it to edit a JPEG.

Assuming you're considering the types of files you find Emacs useful for, you can open them directly from Dired. That includes text files (Asciidoc, Markdown, HTML, CSS, Lua, Python, and so on) as well as compressed TAR archives.

To close a file that you've opened, use the C-x C-k Emacs binding to invoke the kill-buffer function.

Copy a file

To copy a file from one directory to another, press C (that's the capital letter C, not the Ctrl key). You're prompted to provide a destination directory and file name in the mini buffer at the bottom of the Emacs window.

Move a file

Moving a file is, confusingly, renaming a file (the exact opposite terminology used in Linux, where renaming a file is actually moving a file.) I've used Dired for years and I still fail to remember this linguistic quirk.

To rename a file, whether you're renaming it back into its current directory or renaming it to some other directory, press R (capital R.) You're prompted to provide a destination directory and a new file name in the mini buffer at the bottom of the Emacs window.

Selecting files

There are a few ways to mark selections in Dired. The first is to have your cursor on the same line as a file or directory entry. If your cursor is on the same line as an entry, then that entry is considered the implicit selection. Any action you take in Dired that targets a file targets that one. This includes, incidentally, "marking" a file as selected.

To mark a file as selected, press m while your cursor is on its line. You can mark as many files as you want, and each one is considered selected. To deselect (unmark) a file, press the u key.

Yet another way to select multiple lines at once is to use a specialized selection function. Dired has several, including dired-mark-directories to mark all directories in a list, dired-mark-executables to select all binary executables in a list, dired-mark-files-regexp to mark files containing a regex pattern, and more. If you're not a regular Emacs user, this is a considered advanced because it requires you to invoke Emacs functions, but here's how to do it and what to look for.

Suppose you want to select all directories in a list:

  1. Press M-x to activate the mini buffer prompt.

  2. Type dired-mark-directories and press Return on your keyboard.

  3. Look at the mini buffer. It tells you how many directories have been marked, and then it tells you that you can invoke this function again in the future with * / key combination.

Any function in GNU Emacs that has a key binding associated with it reveals the keys to you after you've invoked it in its long form.

Creating an archive

To create an archive of a file or a selection of files, press c (that's a lower-case c, not Ctrl). If you have nothing selected (or "marked" in Emacs terminology), then the current line is compressed. If you have files marked, then they're compressed into a single archive. In the mini buffer at the bottom of the Emacs window, you're prompted for a file name and path. Luckily, Emacs is a smart application and derives the target file type from the name you provide. If you name your archive example.tar.xz, then Emacs creates a TAR archive with lzma compression, but if you name it example.zip then it creates a ZIP file.

Cancel an action

Should you accidentally invoke a function you don't want to finish, press C-g (that's Emacs notation for Ctrl+G.) Depending on where you are in the course of the function, you may have to press C-g in the mini buffer specifically to stop it from prompting you to continue. This is true for Emacs as a whole, so learn this valuable trick for Dired and carry it over to every mode you use.

Emacs is always open

To quit Dired, you press C-x C-k to kill the Dired buffer, just as you kill any Emacs buffer.

To quit Emacs altogether, press C-x C-c.

Dired is a very capable file manager, and I've only covered the basics here. For a full list of what Dired can do, press they h key.

I think Dired is probably most useful to those using or intending to use Emacs. I probably wouldn't choose it as a general-purpose file manager on a graphical system, because there are so many great alternatives already configured to work with the rest of the system when opening files. Of course, Emacs is infinitely configurable, so if you really enjoy Dired you can set it to do whatever you want it to do.

For a headless system, though, I find that Dired makes a great file manager. Emacs is such a robust operating environment as it is, and Dired only adds to its versatility. With Emacs open, you have a built-in file manager, shell, multiplexer, text editor, and file previewer. You could very nearly use Emacs essentially as your login shell.

Dired is a good text-based file manager, and well worth a look.

Dired is included with Emacs and is a useful text-based file manager on Linux.

Linux Emacs What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

How to Use Bash For Loop in Linux

Tecmint - Fri, 12/09/2022 - 14:44
The post How to Use Bash For Loop in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

In programming languages, Loops are essential components and are used when you want to repeat code over and over again until a specified condition is met. In Bash scripting, loops play much the same

The post How to Use Bash For Loop in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Linux 6.1 Demotes Logitech Bluetooth HID++ Over Lingering Problems

Phoronix - Fri, 12/09/2022 - 06:00
One of the new Linux 6.1 features was set to be enabling HID++ support for all Logitech Bluetooth devices by default rather than the current enabling it on a per-device basis. But this change turned out to be too opportunistic and now days ahead of the Linux 6.1 stable debut has been reverted...

Intel VPU Driver Adapted To Linux's New Accelerator Framework

Phoronix - Fri, 12/09/2022 - 04:22
Going back to the summer Intel posted their initial open-source Linux driver for their Versatile Processing Unit "VPU" debuting with Meteor Lake. Since then they have continued refining this open-source VPU Linux driver and with the latest patch series have adapted it to make use of the new accelerator framework/subsystem premiering in Linux 6.2...

Pages