Serving up music with Sockso
Sock Box
The Sockso music server offers easy listening regardless of your system or location.
The Sockso personal music server [1] lets users distribute digital tracks over a network. Sockso comes with a server and a neat front end that gives users easy access to audio data. The Sockso server supports popular audio formats such as MP3, OGG Vorbis, and WMA.
Legal Issues
The technical ability to serve music does not give you the legal ability to infringe on copyrights. If you intend to stream music on the Internet, either obtain permission from the copyright owner, or else make sure you only use tracks that are under a free license.
Configuration
It makes sense to run the Sockso server on a separate machine and use a browser to access it. The front end is programmed in Java and will thus run on Linux, Mac, and Windows.
To run Sockso, you need the Sun Java Runtime Engine and a network connection. If you will be serving up tracks to friends on the Internet, your PC needs a fast connection.
Java is included with most Linux distributions today. If your distro doesn't have Java, launch a package manager to load the package. Users with Ubuntu must additionally set the Sun Java version as their preferred version by giving the sudo update-alternatives --config java command.
Compressed archives of Sockso are available on the web [2]. Just download and unpack the archive. To launch Sockso on Linux, run the linux.sh script. Typing chmod +x linux.sh at the console makes the script executable. You can then launch the server and the front end by typing ./linux.sh.
Getting Started
Sockso lets you configure and manage tracks through a graphical user interface known as the Collection Manager (Figure 1). The Collection Manager provides five tabs for managing your music: Music, Collection, Users, General, and Encoders. The first step is to select the music directories you want to share.
To do so, change to the Collection tab and click Add Folder to pop up the Open dialog. Then browse to the directory you want to share. Open changes to the desired folder, telling the software to read the tracks in the directory and any subdirectories below it. This process can take a couple of minutes for larger collections, even if you have fast hardware. To get started, you might prefer to select less densely populated directories and avoid loading too many tracks at the same time.
The tracks you load are shown below Tracks in the Music tab, and you can use the tracks in this list to compose playlists. To do so, hold down the left mouse button and drag the desired tracks, albums, or artists to the right-hand side of the Music tab.
After finishing your selections, press Save Playlist and assign an intuitive name to the new entry. Any playlists you save are listed under Playlists.
Web Interface
After setting up a playlist, it makes sense to test whether the program is working in your browser. To do so, click on Your address at the lower edge of the Collection Manager window, where you'll see a menu in which you can select My Computer. Sockso then launches the web front end in your browser (Figure 2). A menu bar lets you browse your collection for interesting tracks.
Browsing by album cover is a visually appealing function. The software automatically loads image files for your albums off the web and integrates the images with the search function. Unfortunately, the software tries to display large cover images despite the low resolution source material: this typically means blocky graphics.
The program sometimes fails to find album covers. The identification mechanism is not entirely reliable, even for more popular albums. In some cases, Sockso displays the same cover for different albums by the same artist.
Even without covers, you can still play or download tracks. On top of this, Sockso lets you compose and manage your own playlists via the web interface – once you have registered. After authenticating, you will find your playlists below Playlists.
Sockso provides two music players for the local machine. One player is integrated with the website, and the other with a Flash popup (Figure 3). As an alternative, you can use a standalone player assigned to the file suffix.
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
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.