FOSSPicks
Spotitube
What this little tool does may be legally ambitious, depending on where you're located, but it's such a clever idea that it's worth covering. Spotitube can be asked to parse a Spotify playlist and look for each and every track from that playlist on YouTube. It then uses the awesome youtube-dl script to grab a copy of that track before then transcoding it into an audio format that you can use locally on your Linux machine. Of course, this process could well involve copyright infringement if the music isn't licensed to allow this format shifting, but it also takes into account the reality of how many people use YouTube, especially for old, rare, or unavailable material.
What's most interesting, however, is that this script can be used to legitimately bypass the lock-in you often experience with services like Spotify. If, for example, you've used Spotify for a number of years, it's likely you'll have built complex and infinitely edited playlists and collections to access from within the application itself. This is one of Spotify's best features, as is the ability to subscribe to and follow playlists created and curated by other people, often skilled musicians themselves. This script helps you extract these playlists and use them however you see fit, hopefully rebuilding the playlist with the specific tracks you buy from a DRM-free service. The script also offers lots of control over how the conversion takes place, including optional normalization, embedded lyrics, and the generation of an M3U playlist file. Perhaps its cleverest trick is being able to select the correct song on YouTube, using nothing more than the keywords it has learned from Spotify and its own algorithm (and your own Spotify account).
Project Website
https://github.com/streambinder/spotitube
Environment switcher
Environment Modules 4
With many of us now working from the same terminal in lots of different environments, one local configuration no longer fits all use cases. You might want a local build environment, for example, using environment variables, configuration files, and paths tailored for a specific version of GCC targeting a specific architecture, or you might work with lots of virtual machines locally before taking your scripts and applications to a high-performance computing platform. If you want to use your local configuration on these systems, you need some way to change the environment quickly. One option is to create different users for each of these, to copy all your configuration files back and forth before relogging into the same account, or to source each file before every switch. Environment Modules is a better way.
As implied by its name, Environment Modules enable you to create blocks of environmental variables and aliases and make them easily applicable and changeable. You could create one for the GCC example mentioned earlier, or for paths pointing to your local set of scripts. Because each would be a separate module, Environment Modules lets you pick and choose which parts to activate when you need to use them. You could start the session with GCC and a local bin
in the path, for instance, before switching the latter module to point at a bin
on a remote machine or network. Also worth noting is the excellent man page that tells you everything you need to know to get started, which could be confusing after installation, because the module
command won't be in your path until you've configured your system. All it takes is a few commands and a little time to split up your current configuration, and you'll be able to add and remove environment configuration options dynamically and atomically, as and when you need to.
Project Website
http://modules.sourceforge.net/
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome OS Adopting systemd-sysupdate
Gnome OS is about to undergo a major under-the-hood change that promises enhanced security.
-
Endless OS 6 has Arrived
After more than a year since the last update, the latest release of Endless OS is now available for general usage.
-
Fedora Asahi 40 Remix Available for Macs with Apple Silicon
If you've been anticipating KDE's Plasma 6 for your Apple Silicon-powered Mac, then you're in luck.
-
Red Hat Adds New Deployment Option for Enterprise Linux Platforms
Red Hat has re-imagined enterprise Linux for an AI future with Image Mode.
-
OSJH and LPI Release 2024 Open Source Pros Job Survey Results
See what open source professionals look for in a new role.
-
Proton 9.0-1 Released to Improve Gaming with Steam
The latest release of Proton 9 adds several improvements and fixes an issue that has been problematic for Linux users.
-
So Long Neofetch and Thanks for the Info
Today is a day that every Linux user who enjoys bragging about their system(s) will mourn, as Neofetch has come to an end.
-
Ubuntu 24.04 Comes with a “Flaw"
If you're thinking you might want to upgrade from your current Ubuntu release to the latest, there's something you might want to consider before doing so.
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.