Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    135

    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://www.sodface.com/repo
    My public key is available here:
    http://www.sodface.com/repo/sodface-pub-key.tar.gz

    Extract to /etc/apk/keys/
    Code:
    $ sudo tar xzvf sodface-pub-key.tar.gz -C /etc/apk/keys/
    sod@sodface.com-5e51d361.rsa.pub
    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; 2020-05-31 at 06:38.

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    135
    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 at 07:21.

  3. #3
    Senior Member
    Join Date
    Jul 2008
    Posts
    135
    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.

  4. #4
    Senior Member
    Join Date
    Jul 2008
    Posts
    135
    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.

  5. #5
    Senior Member
    Join Date
    Feb 2019
    Posts
    115
    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

  6. #6
    Senior Member
    Join Date
    Jul 2008
    Posts
    135
    Quote 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 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

  7. #7
    Senior Member
    Join Date
    Feb 2019
    Posts
    115
    Quote 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.

  8. #8
    Senior Member
    Join Date
    Jul 2008
    Posts
    135
    Quote 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:
    https://wiki.alpinelinux.org/wiki/Xfce_Setup

  9. #9
    Senior Member
    Join Date
    Feb 2019
    Posts
    115
    Quote 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.

  10. #10
    Senior Member
    Join Date
    Jul 2008
    Posts
    135
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •