Home of the Squeezebox™ & Transporter® network music players.
Page 91 of 206 FirstFirst ... 41818990919293101141191 ... LastLast
Results 901 to 910 of 2059
  1. #901
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299
    Quote Originally Posted by chris.mason View Post
    Sorry, I was being a bit dense, should have provided those details.

    OS : Ubuntu 9.04
    SQ : 7.3.4 - 28180
    (latest version of SPC)

    Thanks for your help,
    Chris.
    Also, Epoch1970's question is relevant: is the ftp command being initiated on the server...i.e. is the sever "pulling" the data as part of the backup routine? Or are the clients initiating the ftp session and "pushing" the data to the server? If so, what's the OS on the client machines?

  2. #902
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299
    Quote Originally Posted by moonsorrox View Post
    On the server running Linux Ubuntu 9.04
    Can not install SrvrPowerCtrl

    Always get this error
    Wrong Repository http://srvrpowerctrl.googlecode.com/svn/repo.xml - Couldn't resolve IP address for: srvrpowerctrl.googlecode.com

    sorry my english is not so good
    No, your English is excellent, especially in comparison to my Deutsch, which ist sehr schlecht.

    I'm just trying to verify that SrvrPowerCtrl still installs via the repo with SC 7.3.4. Give me a little more time to test that and then I'll have a recommendation for you.

    Thanks for your patience.

  3. #903
    Senior Member
    Join Date
    Jan 2006
    Location
    Reading, England
    Posts
    377
    Quote Originally Posted by gharris999 View Post
    Also, Epoch1970's question is relevant: is the ftp command being initiated on the server...i.e. is the sever "pulling" the data as part of the backup routine? Or are the clients initiating the ftp session and "pushing" the data to the server? If so, what's the OS on the client machines?
    Yes good points...

    FTP is being initiated on the client machine, which is running Windows XP Pro (hence why your script would work for me).

    Chris.

  4. #904
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299
    Quote Originally Posted by moonsorrox View Post
    On the server running Linux Ubuntu 9.04
    Can not install SrvrPowerCtrl

    Always get this error
    Wrong Repository http://srvrpowerctrl.googlecode.com/svn/repo.xml - Couldn't resolve IP address for: srvrpowerctrl.googlecode.com

    sorry my english is not so good
    I just verified that SrvrPowerCtrl, at least on my Fedora box, installs just fine via the 7.3.4 Extension downloader and the repo. I really don't know what could be going wrong in your case.

    But, assuming that this problem doesn't magically fix itself, here are instructions to "manually" install SrvrPowerCtrl in Ubuntu:


    From a terminal prompt, perform these commands (you may want to copy them from here, one at a time, and paste them into the terminal window):
    Code:
    cd /var/lib/squeezecenter/Plugins
    sudo /etc/init.d/squeezecenter stop
    wget http://srvrpowerctrl.googlecode.com/files/SrvrPowerCtrl_latest.zip -O SrvrPowerCtrl.zip
    unzip ./SrvrPowerCtrl.zip
    sudo /var/lib/squeezecenter/Plugins/SrvrPowerCtrl/scripts/Debian/srvrpowerctrl-setup.sh
    sudo /etc/init.d/squeezecenter start
    I hope this gets you up and running.

  5. #905
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299
    Quote Originally Posted by chris.mason View Post
    Yes good points...

    FTP is being initiated on the client machine, which is running Windows XP Pro (hence why your script would work for me).

    Chris.
    Then please have a look at the "play_media_monkey.cmd" script I posted above. You ought to be able to modify that script pretty easily for your purposes.

    Just curious: have you tried any of the windows rsync ports, rather than using ftp to push your backup data? Rsync might give you more control over your backup. DeltaCopy contains a windows port of rsync: http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp

  6. #906
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299

    Using SrvrPowerCtrl with Squeezebox Server 7.4

    FYI, when using SrvrPowerCtrl with the 7.4 beta nightlies on linux, you'll need to "fix up" the entries in /etc/sudoers: replace all instances of the "squeezecenter" user name with "squeezeboxserver". To do this, execute these commands from a terminal:

    Code:
    export VISUAL=nano
    sudo visudo
    This will open /etc/sudoers in the nano editor. Then just change 'squeezecenter' entries to 'squeezeboxserver'.

    I'll have to figure out how I'm going to make my setup scripts version aware.
    Last edited by gharris999; 2009-08-27 at 08:01.

  7. #907
    Senior Member
    Join Date
    Apr 2008
    Location
    Paris, France
    Posts
    1,466
    Quote Originally Posted by gharris999 View Post
    I'll have to figure out how I'm going to make my setup scripts version aware.
    Sheesh. There is no way to get a user alias under Unix ? (I don't know any.) Adding to a secondary group, I know, but user (login) alias, I don't.

    Anyway, you could test for what "/usr/bin/id squeezebox" returns ? And if there is an id, shove extra lines in sudoers.
    Just an idea.

  8. #908
    Senior Member gharris999's Avatar
    Join Date
    Apr 2005
    Location
    Santa Fe, NM
    Posts
    3,299
    Quote Originally Posted by epoch1970 View Post
    Sheesh. There is no way to get a user alias under Unix ? (I don't know any.) Adding to a secondary group, I know, but user (login) alias, I don't.

    Anyway, you could test for what "/usr/bin/id squeezebox" returns ? And if there is an id, shove extra lines in sudoers.
    Just an idea.
    Yes, I think you're right. That's the way to do it. Thanks for that!

  9. #909
    Senior Member
    Join Date
    Jun 2005
    Posts
    414
    Quote Originally Posted by gharris999 View Post
    You can use my SCCLITool.exe utility that's available in the SCPowerTool.zip download: http://srvrpowerctrl.googlecode.com/...ool_latest.zip

    Your batch file might look something like this:

    play_media_monkey.cmd
    Code:
    @echo off
    set BROADCASTIP=192.168.1.255
    set SCSERVERIP=192.168.1.200
    set SCPORT=9090
    set SCSERVERMAC=AABBCCDDEE
    
    :checkwake
    echo Checking scserver status..
    ping %SCSERVERIP% -n 1 -w 10 >NUL 2>&1
    
    if errorlevel 1 goto wakeup
    goto awake
    
    :wakeup
    echo SCServer is asleep...attempting to wake it up..
    rem Wakeup the server..
    %windir%\util\wolcmd.exe %SCSERVERMAC% %BROADCASTIP% 255.255.255.0 7 >NUL 2>&1
    sleep 18
    goto checkwake
    
    :awake
    sleep 5
    
    :setblock
    %windir%\util\SCCliTool.exe srvrpowerctrl setblock Media_Monkey_Playing viacli -h scserver -p %SCPORT%
    
    :play_media_monkey
    rem insert media_monkey command line here..e.g.:
    start "Media Monkey" /WAIT "C:\Program Files\MediaMonkey\mediamonkey.exe" 
    
    :clearblock
    %windir%\util\SCCliTool.exe srvrpowerctrl clearblock Media_Monkey_Done viacli -h %SCSERVERIP% -p %SCPORT%
    You'll need to fix up the "set XXX=XXX" values to match your own setup. And I'm totally guessing as to what the command line for Media Monkey might be. You'll need to fix that up too.

    You can get the wake-on-lan cmd line tool from http://www.depicus.com/wake-on-lan/wake-on-lan-cmd.aspx. You can get the sleep and other utilities as part of the Windows Server 2003 Resource Tool Kit from here: http://www.microsoft.com/downloads/d...displaylang=en
    Thanks a lot, your tool and the script are great!

    (Only one short comment for others who want to use it: The "scserver" in the setblock line must be changed to "%SCSERVERIP%)

  10. #910
    Senior Member
    Join Date
    Jan 2006
    Location
    Reading, England
    Posts
    377
    Quote Originally Posted by gharris999 View Post
    Then please have a look at the "play_media_monkey.cmd" script I posted above. You ought to be able to modify that script pretty easily for your purposes.

    Just curious: have you tried any of the windows rsync ports, rather than using ftp to push your backup data? Rsync might give you more control over your backup. DeltaCopy contains a windows port of rsync: http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp
    Yep, I'm intending to use the script you posted earlier.

    On my (very long) list of things to do is try rsync. I've actually used a simple rsync config before, but didn't have the time to get everything as I wanted (I've got cygwin running on the Windows machine, principally to provide SSH access, but I also get rsync out of it too).

    Cobian does pretty much all I want at the moment. I will take a look at deltacopy however.

    Thanks
    Chris.

Posting Permissions

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