Announcement

Collapse
No announcement yet.

My Alpine Linux Repo for LMS and Squeezelite

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    My Alpine Linux Repo for LMS and Squeezelite

    > sudo rc-service lms start

    rc-service is unknown. There are serious limitations in that image...

    > I've see similiar issues when I attempted to run slimserver.pl directly.


    Permissions issues or the networking errors?

    #2
    My Alpine Linux Repo for LMS and Squeezelite

    In case anyone wants to try LMS or Squeezelite on Alpine Linux, here are some directions for adding my repo and installing the packages. I'm leaving the armel repo online but I'm not really updating it anymore (see downthread, Ralphy provided lms and updated squeezelite packages for the armel repo) since my experience with the circa 2011 Dell M300 wasn't that great. I had fun working on it with Ralphy's help but ultimately I decided to move on and picked up an x86_64 Dell/Wyse 5070 which has been awesome so far as my new home server (with LMS). I hope to add some arm packages also, for rpi4 and pi zero w, not sure when I'll get to it though.

    Add the repo to the repositories file:
    Code:
    $ cat /etc/apk/repositories 
    http://dl-cdn.alpinelinux.org/alpine/v3.17/main
    http://dl-cdn.alpinelinux.org/alpine/v3.17/community
    http://www.sodface.com/repo
    My public key is available here:


    Extract to /etc/apk/keys/
    Code:
    $ sudo tar xzvf sodface-pub-key.tar.gz -C /etc/apk/keys/
    [email protected]
    Run apk update:
    Code:
    $ sudo apk update
    Install squeezelite:
    Code:
    $ sudo apk add squeezelite
    Install LMS:
    Code:
    $ sudo apk add lms
    LMS consists of 5 packages, my plan is to only update the lms-nocpan package and leave the other four relatively static:

    Code:
    lms-8.0-r2.apk
    lms-modules-8.0-r0.apk
    lms-nocpan-8.0.0.1590233071-r0.apk
    lms-openrc-8.0-r2.apk
    lms-utils-8.0-r0.apk
    squeezelite-1.9.7.1246-r0.apk
    squeezelite-doc-1.9.7.1246-r0.apk
    squeezelite-openrc-1.9.7.1246-r0.apk
    Let me know if you try it out or have any suggestions, thanks!
    Last edited by sodface; 2022-11-23, 12:01.

    Comment


      #3
      I've got a cron job running on my x86_64 build machine that checks for LMS updates at the nightly downloads page then rebuilds the nocpan package and updates the repo accordingly. Picked up the change to build 1590299558 and the updated package was available in the repo as of this morning.

      //edit, only going to run this once a week at 0300 EST on Saturday.

      Here's the script I'm using, improvements welcome!

      Code:
      #!/bin/sh
      
      cd "/home/sodface/aports/main/lms-nocpan"
      
      newfrag=$(wget -q http://downloads.slimdevices.com/nightly/?ver=8.0 -O - | grep noCPAN.tgz | cut -d'/' -f4,5 | cut -d'"' -f1)
      commit=$(printf "${newfrag}" | cut -d'/' -f1)
      build=$(printf "${newfrag}" | cut -d'-' -f3)
      
      if ! grep -q ${build} APKBUILD
      then 
        sed -i "s/_build=\".*\"/_build=\"${build}\"/" APKBUILD
        sed -i "s/_commit=\".*\"/_commit=\"${commit}\"/" APKBUILD
        abuild -q checksum
        abuild -qr
        abuild -q cleanoldpkg
      else
        echo "No update on $(date)"
      fi
      Code:
      Logitech Media Server Version: 8.0.0 - 1590299558 @ Sun May 24 08:24:36 CEST 2020
      Hostname: server
      Server IP Address: 10.0.0.10
      Server HTTP Port Number: 9000
      Operating system: Alpine Linux - EN - utf8
      Platform Architecture: unknown
      Perl Version: 5.30.2 - x86_64-linux-thread-multi
      Audio::Scan: 1.02
      IO::Socket::SSL: 2.068
      Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
      Total Players Recognized: 3
      Last edited by sodface; 2020-05-25, 16:21.

      Comment


        #4
        Thanks to Ralphy, the lms and squeezelite packages are added to the armel repo. I'm not able to test them however so feedback is welcome! The lms-nocpan package for armel should be updated once a week (or more often if I run it manually) along with the x86_64 and any other architectures I add since it doesn't need to be compiled, just packaged.

        Comment


          #5
          FYI, I don't think anyone is using my alpine packages, but just a head's up that I moved the repo (and sodface.com) to a different instance out there in the cloud somewhere. It was originally running on a canned CentOS image available from the hosting provider and it was bugging me on a number of levels that I wasn't running Alpine, one of which was that it just didn't seem right to have an Alpine package repo hosted on a CentOS VM.

          The move was a geographic region change and IP address change. DNS is updated and everything seems to be resolving and working ok for me. Let me know if you have any issues.

          Comment


            #6
            Exactly what I was looking for, I have a number of Wyse thin clients which will run Daphile but what I want is LMS and Squeezelite instead.
            A link to anything updated would be appreciated.
            Thanks
            diode84

            Comment


              #7
              Originally posted by diode84 View Post
              Exactly what I was looking for, I have a number of Wyse thin clients which will run Daphile but what I want is LMS and Squeezelite instead.
              A link to anything updated would be appreciated.
              Thanks
              diode84
              Hi diode84, the info in the first post is still accurate. Install Alpine then:
              - download and add my public key (link in #1) to /etc/apk/keys
              - add http://www.sodface.com/repo to /etc/apk/repositories
              - sudo apk update
              - sudo apk add lms squeezelite
              - edit /etc/conf.d/squeezelite config file to add any startup options you need
              - sudo rc-update add lms
              - sudo rc-update add squeezelite
              - reboot

              LMS is updated every Saturday morning. Versions currently in the repo:
              Code:
              squeezelite-1.9.7.1264-r0
              squeezelite-doc-1.9.7.1264-r0
              squeezelite-openrc-1.9.7.1264-r0
              
              lms-openrc-8.0-r2
              lms-8.0-r2
              lms-modules-8.0-r0
              lms-utils-8.0-r0
              lms-nocpan-8.0.0.1594451286-r0
              Last edited by sodface; 2021-02-22, 12:31.

              Comment


                #8
                Originally posted by sodface View Post
                Hi diode84, the info in the first post is still accurate. Install Alpine then:
                - download and add my public key (link in #1) to /etc/apk/keys
                - add http://www.sodface.com to /etc/apk/repositories
                - sudo apk update
                - sudo apk add lms squeezelite
                - edit /etc/conf.d/squeezelite config file to add any startup options you need
                - sudo rc-update add lms
                - sudo rc-update add squeezelite
                - reboot


                [/code]
                I am struggling a bit with Alpine linux. I can set it up to a terminal but get no gui. Is there a gui and is there a forum that helps with Alpine install that is a regular forum.

                Comment


                  #9
                  Originally posted by diode84 View Post
                  I am struggling a bit with Alpine linux. I can set it up to a terminal but get no gui. Is there a gui and is there a forum that helps with Alpine install that is a regular forum.
                  Unfortunately there is no forum, just a wiki, a couple mailing lists, and their GitLab issue tracker. There is no gui by default but you can add one fairly easily with a meta-package I believe but I think that changed a bit recently. I'm running xfce on the laptop I'm typing this on and on another thin client (samsung cloud monitor) but not on any of the Wyse's - I'm cli only on those.

                  This should get you close:

                  Comment


                    #10
                    Originally posted by sodface View Post
                    Unfortunately there is no forum, just a wiki, a couple mailing lists, and their GitLab issue tracker. There is no gui by default but you can add one fairly easily with a meta-package I believe but I think that changed a bit recently. I'm running xfce on the laptop I'm typing this on and on another thin client (samsung cloud monitor) but not on any of the Wyse's - I'm cli only on those.

                    This should get you close:
                    https://wiki.alpinelinux.org/wiki/Xfce_Setup
                    Thanks again, will give a try.

                    Comment


                      #11
                      Added aarch64 packages to the repo, built on my RPi4:

                      Code:
                      althttpd-202005092232-r1.apk
                      althttpd-openrc-202005092232-r1.apk
                      fossil-2.11.1-r0.apk
                      lms-8.0-r2.apk
                      lms-modules-8.0-r0.apk
                      lms-nocpan-8.0.0.1596358186-r0.apk
                      lms-openrc-8.0-r2.apk
                      lms-utils-8.0-r0.apk
                      squeezelite-1.9.7.1269-r0.apk
                      squeezelite-doc-1.9.7.1269-r0.apk
                      squeezelite-openrc-1.9.7.1269-r0.apk

                      Comment


                        #12
                        I'm working on getting LMS functioning again on Alpine 3.13.2. I'd say "Don't Panic!" except I don't think anybody except me is using my packages. I upgraded my server earlier to Alpine 3.13.2 and didn't realize until 8 hours or so later that LMS isn't starting. Perl version changed to:

                        This is perl 5, version 32, subversion 0 (v5.32.0) built for x86_64-linux-thread-multi

                        which I think is the culprit. I'm currently rebuilding the modules. We'll see how good my notes were.
                        Last edited by sodface; 2021-02-21, 14:52.

                        Comment


                          #13
                          New modules package uploaded to repo:
                          lms-modules-8.2-r0.apk

                          for x86_64 only. Let me know if anyone needs any other architecture built.

                          LMS is back up and running for me.

                          [21-02-20 20:40:31.8953] main::init (389) Starting Logitech Media Server (v8.2.0, 1613803910, Sat Feb 20 08:18:40 CET 2021) perl 5.032000 - x86_64-linux-thread-multi
                          Last edited by sodface; 2021-02-21, 02:51.

                          Comment


                            #14
                            My Alpine Linux Repo for LMS and Squeezelite

                            > New modules package uploaded to repo:
                            > lms-modules-8.2-r0.apk
                            >
                            > for x86_64 only. Let me know if anyone needs any other architecture
                            > built.


                            Haha... for a short moment I was wondering whether this would allow me
                            to run LMS on the iPhone using iSH . But that seems to be 686, rather
                            than x86_64.
                            Michael

                            "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
                            (LMS: Settings/Information)

                            Comment


                              #15
                              I decided I wanted to rename the lms packages slightly to make them less version specific except for the lms-nocpan package. Probably a bad idea as I borked up my own server install and ended up having to walk through the setup again like it was an initial install. Oops.

                              Here's the new package names with most of them just being "8" and lms-nocpan being more specific:

                              lms-openrc-8-r0 x86_64 {lms} (GPL-2.0) [installed]
                              lms-8-r0 x86_64 {lms} (GPL-2.0) [installed]
                              lms-modules-8-r0 x86_64 {lms-modules} (GPL-2.0) [installed]
                              lms-utils-8-r0 x86_64 {lms-utils} (GPL-2.9) [installed]
                              lms-nocpan-8.2.0.1614180387-r0 x86_64 {lms-nocpan} (GPL-2.0) [installed]
                              Last edited by sodface; 2021-02-24, 23:54.

                              Comment

                              Working...
                              X