Announcement

Collapse
No announcement yet.

How to Install LMS via Terminal on Mac OS X

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

  • Man in a van
    replied
    Originally posted by mherger View Post
    I tried that:



    And it worked - in a regular session. But the installer tries to launch the preference pane after the installation. That might cause the failure in your case.

    And you should obviously make sure the target path exists.
    Thanks for the "extra mile" Michael

    Still not working for me though

    I had already updated yesterday when I saw your reply, so I download a fresh package and put it in the updates folder (this might give it a different ownership, I don't know). I also download and installed v 8.4.0 over the top of 8.3 1 so that there would be a different version to install.

    I tried again this morning; here is the printout:- Please note the blue highlights

    login as: ronnie
    Keyboard-interactive authentication prompts from server:
    | Password:
    End of keyboard-interactive prompts from server
    Last login: Thu Jan 26 08:49:13 2023
    Mac-mini:~ ronnie$ ls -l ~/Library/Caches/Squeezebox/updates/
    total 185760
    -rw-r--r-- 1 ronnie staff 46039475 Jan 26 08:51 LogitechMediaServer-8.3.1-1674060640.pkg

    -rw-r--r-- 1 ronnie staff 139 Jan 25 07:32 baby.version
    -rw-r--r-- 1 ronnie staff 14771422 Jan 15 13:24 baby_7.7.3_r16676.bin
    -rw-r--r-- 1 ronnie staff 139 Jan 15 14:22 fab4.version
    -rw-r--r-- 1 ronnie staff 34280333 Jan 15 13:56 fab4_7.8.0_r16754.bin
    Mac-mini:~ ronnie$ ls -l /Library/PreferencePanes/
    total 0
    [email protected] 3 root admin 102 Jan 24 08:21 Squeezebox.prefPane

    Mac-mini:~ ronnie$ installer -pkg ~/Library/Caches/Squeezebox/updates/LogitechMediaServer-8.3.1-1674060640.pkg -target /Library/PreferencePanes/
    installer: Error trying to locate volume at /Library/PreferencePanes/
    Mac-mini:~ ronnie$ -help
    -bash: -help: command not found
    Mac-mini:~ ronnie$ installer -help
    Usage: installer [options...] -pkg <pathToPackage> -target <device>

    Options:
    [-dominfo] # Display domains that can be installed into.
    [-volinfo] # Display volumes that can be installed onto.
    [-pkginfo] # Display package that will be installed
    (for metapackages, shows contents).
    [-query] <flag> # Display information about package metadata.
    [-allowUntrusted] # Allow installing a package signed by an
    untrusted (or expired) certificate.
    [-dumplog] # Write log information to standard error
    (in addition to the usual syslog).
    [-help] # Display this help information.
    [-verbose] # Display detailed information.
    [-verboseR] # Display detailed information with
    simplified progress output.
    [-vers] # Display this tool version.
    [-config] # Display command line parameters in XML
    plist format.
    [-plist] # Display -dominfo, -volinfo, or -pkginfo in
    XML plist format (ignored when performing
    installation).
    [-file <pathToFile>] # Configuration file supplying parameters in
    XML plist format.
    [-lang <ISOLanguageCode>] # Sets the default language Mac OS X will use
    after installation.
    [-listiso] # Lists the ISO language codes that are
    recognized.
    [-showChoicesXML] # Output XML data describing the choices and
    their properties and state.
    [-showChoicesAfterApplyingChangesXML <pathToFile>]
    # Apply changes specified in the file to the
    choices in the package and output the
    resulting XML data. See below for the
    file format description.
    [-applyChoiceChangesXML <pathToFile>]
    # Apply changes specified in the file to the
    package and proceeds with installation.
    See below for the file format
    description.

    Device:
    The -target <device> parameter is any one of the following:

    (1) One of the domains returned by -dominfo.
    (2) Volume mount point. Any entry of the form of /Volumes/Mountpoint.
    ex: /Volumes/Untitled


    Flags:
    RestartAction # Can optionally return one of the following:
    None
    RecommendRestart
    RequireLogout
    RequireRestart
    RequireShutdown

    Choices file-format:
    An XML file that is an array of choiceIdentifiers (as strings) to
    toggle. Each choiceIdentifier specified will be toggled in order --
    exactly as if a user had clicked on its checkbox in Installer.app's
    customization pane.

    Examples:
    installer -pkg InstallMe.pkg -target CurrentUserHomeDirectory
    installer -pkg InstallMe.pkg -target '/Volumes/Macintosh HD2' -lang ja
    installer -volinfo -pkg InstallMe.pkg
    installer -pkginfo -pkg InstallMe.pkg
    installer -query RestartAction -pkg InstallMe.pkg
    installer -pkg InstallMe.pkg -target / -showChoicesXML
    Mac-mini:~ ronnie$
    It seems to be / have been a common error, see this link from 2017, 200 "me toos" and no reply It's a different -target but the same problem, there are a lot more on stackexchange. Most say that the file gets sent to the root folder.

    The update install works from the Desktop when usinf screen sharing, so I guess that will have to do ( at least for now )

    ronnie


    Leave a comment:


  • mherger
    replied
    I tried that:

    installer -pkg ~/Library/Caches/Squeezebox/updates/LogitechMediaServer-8.3.1-1674060640.pkg -target /Library/PreferencePanes/
    And it worked - in a regular session. But the installer tries to launch the preference pane after the installation. That might cause the failure in your case.

    And you should obviously make sure the target path exists.

    Leave a comment:


  • Man in a van
    replied
    Originally posted by mherger View Post
    I have no experience with the command whatsoever. I'd recommend you read its man page and google around for the error message?

    Or you ask chatGPT. That's what everybody's doing nowadays
    Ah well..sigh

    Thanks anyway.

    I'll pass on the AI thng, and as for man pages, I struggle with them; they presume a level of competence in the subject that I simply don't have

    I'll keep looking, maybe someone else will drop by

    Keep safe

    ronnie

    Leave a comment:


  • mherger
    replied
    I have no experience with the command whatsoever. I'd recommend you read its man page and google around for the error message?

    Or you ask chatGPT. That's what everybody's doing nowadays

    Leave a comment:


  • Man in a van
    replied
    Thanks for your reply Michael

    I'm actually trying this in reverse as I have an LMS installed with an update available. Following your reply, if I can install the update, then bingo!

    I checked for the new package and also where the current LMS is installed

    login as: ronnie
    Keyboard-interactive authentication prompts from server:
    | Password:
    End of keyboard-interactive prompts from server
    Last login: Wed Jan 25 11:40:50 2023 from 192.168.1.3
    Mac-mini:~ ronnie$ ls -l ~/Library/Caches/Squeezebox/updates/
    total 185768
    -rw-r--r-- 1 ronnie staff 46039475 Jan 25 05:49 LogitechMediaServer-8.3.1-1674060640.pkg

    -rw-r--r-- 1 ronnie staff 139 Jan 25 07:32 baby.version
    -rw-r--r-- 1 ronnie staff 14771422 Jan 15 13:24 baby_7.7.3_r16676.bin
    -rw-r--r-- 1 ronnie staff 139 Jan 15 14:22 fab4.version
    -rw-r--r-- 1 ronnie staff 34280333 Jan 15 13:56 fab4_7.8.0_r16754.bin
    -rw-r--r-- 1 ronnie staff 88 Jan 25 07:34 server.version
    Mac-mini:~ ronnie$ ls -l /Library/PreferencePanes
    total 0
    [email protected] 3 root admin 102 Jan 4 08:01 Squeezebox.prefPane

    Mac-mini:~ ronnie$

    Following the link you provided I entered this command

    Code:
    installer -pkg ~/Library/Caches/Squeezebox/updates/LogitechMediaServer-8.3.1-1674060640.pkg -target /Library/PreferencePanes/
    However I got the following error (I tried with sudo as well)


    Mac-mini:~ ronnie$ installer -pkg ~/Library/Caches/Squeezebox/updates/LogitechMediaServer-8.3.1-1674060640.pkg -target /Library/PreferencePanes/
    installer: Error trying to locate volume at /Library/PreferencePanes/
    Mac-mini:~ ronnie$ sudo installer -pkg ~/Library/Caches/Squeezebox/updates/LogitechMediaServer-8.3.1-1674060640.pkg -target /Library/PreferencePanes/
    Password:
    installer: Error trying to locate volume at /Library/PreferencePanes/
    Mac-mini:~ ronnie$
    It would seem a "volume" is expected, does the downloaded package have to be mounted ?

    If so, how would I do that, please.


    ronnie








    Leave a comment:


  • mherger
    replied
    I've never done that myself... I'd just use screen sharing instead.

    But it seems to be possible, see eg. https://www.techrepublic.com/article...acos-and-os-x/. LMS comes as an installer package. But as I said: I've never done that. I'm pretty sure that you'd have to play with the params to get it in the right place (it should be installed in /Library/PreferencePanes).

    If configured correctly LMS will download the updates automatically in the background. You'd then repeat whatever you figured out above with the file you'll find in ~/Library/Caches/Squeezebox/updates/.

    Leave a comment:


  • How to Install LMS via Terminal on Mac OS X

    I know that High Sierra is out of date and that one should really use a more up to date OS, but, please be kind

    I have a Late 2012 Mac-mini running High Sierra headless.

    I have a Windows 10 Pro Desktop running PuTTY for SSH into the Mac-mini

    Which commands are required to;

    a) Download and install LMS on the Mac-mini. I would like to download the latest and greatest version of 8.3.1

    b) Is there a command to install any subsequent LMS downloaded update ?

    I know how to start / stop LMS via a Terminal
    I know how to update openssl

    I just realised that I don't know how to use the commandline for installation and updating LMS

    Any help is appreciated

    ronnie
Working...
X