Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1

    WORKS - Turn SqueezeBox Radio off through ssh (no LMS!)

    ------------------------------------------------------------------------------------------------------------------------------------------------

    Conclusion: live-patching of "PlaybackMeta.lua"-File and restart of Squeezeplay! See here Gordon`s Solution

    Short Version
    Code:
    Radio-Firmware v7: ssh -c aes128-cbc -oKexAlgorithms=+diffie-hellman-group1-sha1 root@<IP-Address of SqueezeBox>
    Radio-Firmware v8: ssh root@<IP-Address of SqueezeBox>
    
    Then:
    
    sed -e 's/"on"/"off"/' -i /usr/share/jive/applets/Playback/PlaybackMeta.lua
    /etc/init.d/squeezeplay restart
    Remark: If You leave the state at "off", the Box now always boots to screensaver (Clock, ImageViewer, ... depending on Your settings)
    when it is completely (cold) rebooted.

    ------------------------------------------------------------------------------------------------------------------------------------------------



    Hello,

    how can I turn the SqueezeBox Radio Device off (no shutdown), when I am connected directly to the box via ssh?
    Which shell-command do I have to use?

    I do not want "/sbin/shutdown", "/sbin/reboot" or "/sbin/halt".

    I would like to get the same state as Power-Button or "<mac-Addresse> power 0" (LMS CLI command) does.


    P.S.: The Box is not connected to a LMS
    Last edited by Squeeza; 2022-01-29 at 16:34. Reason: remark

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,734

    Turn SueezeBox Radio off through ssh (noLMS!)

    What is the idea behind what you're trying to do? Would an alarm work?
    Or sleep mode?

    I'm not aware of a way to achieve what you want to achieve through SSH.
    But maybe there's an easier way if you can share what you really want to do.

  3. #3
    Quote Originally Posted by mherger View Post
    What is the idea behind what you're trying to do? Would an alarm work?
    Or sleep mode?

    I'm not aware of a way to achieve what you want to achieve through SSH.
    But maybe there's an easier way if you can share what you really want to do.
    Hello Michael

    That would be the easiest way for me.

    I simply want to turn the Box off.
    When a box is beeing rebooted via /sbin/reboot after some Modifications then the Box starts displaying the menu.
    I would like to get the box displaying the screensaver. Maybe that`s the sleep-Mode, yes.

    The only possibility for me to control this box is a ssh-connection.

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,734

    Turn SueezeBox Radio off through ssh (noLMS!)

    > The only possibility for me to control this box is a ssh-connection.

    No access to mysb? Why that limitation?

  5. #5
    Quote Originally Posted by mherger View Post
    > The only possibility for me to control this box is a ssh-connection.

    No access to mysb? Why that limitation?
    I am only the administrator of the box ;-)

    So there is no possibility to do this, am i right?

    I do not think it`s a limitation. Over ssh everything (expect of turning off, at the moment) can be done by cron jobs!
    Last edited by Squeeza; 2022-01-12 at 01:16.

  6. #6
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,734

    Turn SueezeBox Radio off through ssh (noLMS!)

    > So there is no possibility to do this, am i right?

    It's hard to give you a good response as you're only giving bits and
    pieces. I still don't understand your use case. When you go to the
    doctor, you don't ask him how to put a stent in place. You tell him what
    your problem is.

  7. #7
    Quote Originally Posted by mherger View Post
    > So there is no possibility to do this, am i right?

    It's hard to give you a good response as you're only giving bits and
    pieces. I still don't understand your use case. When you go to the
    doctor, you don't ask him how to put a stent in place. You tell him what
    your problem is.
    another example:

    I want to list all files in the /etc directory, do You know a shell command for that?
    My answer would be: "No, I do not know one" or "please try ls -lisa /etc" :-)


    So in this case I am only searching for the shell-command for turning the box off (or maybe sleep?) - please see Post #1.

  8. #8
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,734

    Turn SueezeBox Radio off through ssh (noLMS!)

    > So in this case I am only searching for the shell-command for turning
    > the box off (or maybe sleep?) - please see Post #1.


    Why don't you use the web UI?

  9. #9
    Quote Originally Posted by mherger View Post
    > So in this case I am only searching for the shell-command for turning
    > the box off (or maybe sleep?) - please see Post #1.


    Why don't you use the web UI?
    Because I can not enter shell commands there.

  10. #10
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,734

    Turn SueezeBox Radio off through ssh (noLMS!)

    >>> So in this case I am only searching for the shell-command for turning
    >>> the box off (or maybe sleep?) - please see Post #1.

    >>
    >> Why don't you use the web UI?

    >
    > Because I can not enter shell commands there.


    You really don't want to be helped... why are you limited to shell? And
    even if there was a good reason (which you still didn't give us): you
    could use curl from a shell, couldn't you?

    Maybe I should have just said "no way", rather than tried to offer my help?

Tags for this Thread

Posting Permissions

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