Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

foobar2000 snap

Help for Current Versions of MX
User avatar
dphn
Forum Regular
Forum Regular
Posts: 165
Joined: Sun Nov 25, 2018 7:26 am

foobar2000 snap

#1

Post by dphn » Fri Jan 18, 2019 2:54 am

have anyone tried this snap on MX?

https://snapcraft.io/foobar2000

I'm not familar with snap-packages so far but I like this famous audio player and the convert options. You can create flac-images from an audio-cd with an embedded cue-sheet. Linux players like deadbeef or qmmp can read this, but you can't create such files with a native linux app.

This snap is built with wine but only for this you don't need to install the wine-staging.
for those with an eye for the finer details...

User avatar
KoO
Forum Regular
Forum Regular
Posts: 534
Joined: Fri Feb 10, 2017 1:21 am

Re: foobar2000 snap

#2

Post by KoO » Fri Jan 18, 2019 3:47 am

This is good news FooBar for linux. If I can setup my columns UI skin with this I will be one happy Penguin. This will depend if marc2k3/foo_jscript_panel works and they have added a emulated IE9 or something so the Chakra script engine works.
But it is version 1.4.1 so it should be sorted..

Will try this sometime in the near future..

dphn Thanks for the heads up on this..
Main : Debian10 (i3) , Liquorix , Intel Xeon E3-1241 v3 , 16gb , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Debian10 antiX17 (i3) , 4.19.170 , i5 , 8gb . BiosMod 1.46

User avatar
dphn
Forum Regular
Forum Regular
Posts: 165
Joined: Sun Nov 25, 2018 7:26 am

Re: foobar2000 snap

#3

Post by dphn » Sat Jan 19, 2019 5:46 am

foobar2000 snap runs fine even with 'fake-systemd'

First, thx to the forum for this article

viewtopic.php?p=435179#p435179

create the /usr/bin/systemctl file with the code in the thread above with execute, chmod 755

Then create the following directory

Code: Select all

sudo mkdir -p /sys/fs/cgroup/freezer/snap.foobar2000
and put an empty file tasks in it.

Code: Select all

sudo touch /sys/fs/cgroup/freezer/snap.foobar2000/tasks
Install snapd package and start the server in the background.

Code: Select all

sudo apt-get install snapd && cd /usr/lib/snapd && sudo ./snapd&
Install foobar2000

Code: Select all

sudo snap install foobar2000 --classic
Classic for access to all media-files on your system.

Install wine-platform, maybe you must restart the server with

Code: Select all

cd /usr/lib/snapd && sudo ./snapd&

Code: Select all

sudo snap install wine-platform
and finally set the connections

Code: Select all

sudo snap connect foobar2000:hardware-observe core:hardware-observe
sudo snap connect foobar2000:process-control core:process-control
sudo snap connect foobar2000:cups-control core:cups-control
sudo snap connect foobar2000:wine-platform-plug wine-platform:wine-base-stable 
After a new login you can start foobar2000 for Linux.
for those with an eye for the finer details...

User avatar
dphn
Forum Regular
Forum Regular
Posts: 165
Joined: Sun Nov 25, 2018 7:26 am

Re: foobar2000 snap

#4

Post by dphn » Sat Jan 19, 2019 11:08 am

hmmh.

When you reboot the snap doesn't work. The packages are broken.

So I'm added a small script snap.sh to /usr/local/bin with the following content.

Code: Select all

#!/bin/bash

mkdir -p /sys/fs/cgroup/freezer/snap.foobar2000
touch /sys/fs/cgroup/freezer/snap.foobar2000/tasks
cd /usr/lib/snapd
./snapd&
and start this at boot via /etc/rc.local

So the snaps are listed and the server runs, but the snaps are broken. It's triggy. I think some more content of the virtual filesystems are lost at reboot. The cgroup freezer is not the only one. But it runs when you never do a reboot and do the install-steps in the terminal and make only logoff logon. :confused:
for those with an eye for the finer details...

User avatar
KoO
Forum Regular
Forum Regular
Posts: 534
Joined: Fri Feb 10, 2017 1:21 am

Re: foobar2000 snap

#5

Post by KoO » Thu Jan 31, 2019 3:28 am

As soon as I seen snapd all that came to mind was systemd. They can keep their foobar.
Under windows I have fully update foobar to the latest version,their have been quite a few changers even from 1.4 to 1.4.2
I have been using the same portable version for almost 8 years just updating as they are released..
Many users have ask for a linux version but Peter is not interested a shame but he builds it.. FooBar walks all over anything I have seen build for Linux in GUI..

I am very very happy with the minimalist side of Linux and mpd ncmpcpp just awesome. I'm glad to see DistroTube has found the power of minimalist side of Linux Too.
I very rarely ever use windows these days.
Main : Debian10 (i3) , Liquorix , Intel Xeon E3-1241 v3 , 16gb , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Debian10 antiX17 (i3) , 4.19.170 , i5 , 8gb . BiosMod 1.46

sunrat
Forum Regular
Forum Regular
Posts: 499
Joined: Mon Mar 28, 2016 9:54 pm

Re: foobar2000 snap

#6

Post by sunrat » Thu Jan 31, 2019 9:00 pm

DeadBeef is as close to Foobar2000 you can get in Linux, but I think Foobar2000 has a few more features.
I've used DeadBeef happily for years. It hasn't had much development for a while but then it hasn't had any problems for me either.
Snaps are a definite no-no for security and bloat reasons.

User avatar
dphn
Forum Regular
Forum Regular
Posts: 165
Joined: Sun Nov 25, 2018 7:26 am

Re: foobar2000 snap

#7

Post by dphn » Fri Feb 01, 2019 4:18 am

sunrat wrote:
Thu Jan 31, 2019 9:00 pm
DeadBeef is as close to Foobar2000 you can get in Linux, but I think Foobar2000 has a few more features.
I've used DeadBeef happily for years. It hasn't had much development for a while but then it hasn't had any problems for me either.
Snaps are a definite no-no for security and bloat reasons.
Can confirm this. Another good one is qmmp. I like the winamp interface and there are also good plugins available.
for those with an eye for the finer details...

sunrat
Forum Regular
Forum Regular
Posts: 499
Joined: Mon Mar 28, 2016 9:54 pm

Re: foobar2000 snap

#8

Post by sunrat » Fri Feb 01, 2019 8:57 am

sunrat wrote:
Thu Jan 31, 2019 9:00 pm
DeadBeef is as close to Foobar2000 you can get in Linux, but I think Foobar2000 has a few more features.
I've used DeadBeef happily for years. It hasn't had much development for a while but then it hasn't had any problems for me either.
I was mistaken about DeadBeef lack of development. I'm just setting up a fresh NeptuneOS install for testing so went to DeadBeef site and found the dev version is now 1.8 (stable is 0.7.2) updated only 3 days ago, and has some nice new features. Especially good is the ReplayGain scanner now can scan a whole playlist and "Scan Selections As Albums (By Tags)" which is the only thing I really missed from Foobar2000. No need for FB2000 at all now! ;)

https://sourceforge.net/projects/deadbe ... linux/1.8/ I'm using the static_devel version simply extracted and run from ~/bin/

Sorry for hijacking this thread but I have a pet peeve about trying to run Windows software when there's a perfectly good native Linux alternative. And I feel it's a duty to tell others about it.

User avatar
dphn
Forum Regular
Forum Regular
Posts: 165
Joined: Sun Nov 25, 2018 7:26 am

Re: foobar2000 snap

#9

Post by dphn » Fri Feb 01, 2019 9:14 am

@sunrat
Thx for this. I will take a look at deadbeef 1.8. Installing the 0.7.2 and replace the binary. Pretty cool.
for those with an eye for the finer details...

sunrat
Forum Regular
Forum Regular
Posts: 499
Joined: Mon Mar 28, 2016 9:54 pm

Re: foobar2000 snap

#10

Post by sunrat » Fri Feb 01, 2019 9:22 am

dphn wrote:
Fri Feb 01, 2019 9:14 am
Installing the 0.7.2 and replace the binary.
Wow I didn't think of doing that. It might work.
I just created a /bin directory in my HOME and extracted it there. It's running fine as a standalone application. It comes with an icon in the tarball too so it's easy to create a pretty entry in the applications menu. ;)

Post Reply

Return to “MX Help”