swalke66;440290 Wrote: > Hi all, > > I have squeezecenter installed and running well on a Linux box (Shuttle > SG33G5) running Mythbuntu 9.04. The Linux box is in the basement and > the squeezebox is in the living room upstairs. We have a laptop running > WinXP upstairs that we use to change playlists etc. The system works > well and my wife and I love it. > > ...but what would be nice is a way to wake up the server in the > basement without having to go downstairs and press the start button. > Lazy, I know, but it must be possible! > > as far as I know the SG33G5 is supposed to support wake on lan. I've > tried the Wake On Lan utilities from gammadyne.com which have worked for > me with waking windows PC's but haven't had any success with this so far > with the above configuration. > > Is there anyone out there who's tried the same thing and got it to > work? > > thanks, > S
Assuming that you get WOL working with your linux server, this is the script I use for waking up my linux server from a windows client. It uses the free wolcmd.exe utility from http://www.depicus.com/wake-on-lan/wake-on-lan-cmd.aspx. It also makes use of the free sleep.exe utility included in the Windows Server RTK: http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en This batch file tests to see if the server is awake. If it's not, it attempts to WOL it. Once the server is awake, it launches google chrome in application mode, pointed at the server. scwol.cmd: Code: -------------------- @echo off set BROADCASTIP=192.168.1.255 set SCSERVERIP=192.168.1.222 set SCSERVERMAC=AABBCCDDEEFF :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.. "%~dp0wolcmd.exe" %SCSERVERMAC% %BROADCASTIP% 255.255.255.0 7 >NUL 2>&1 "%~dp0sleep.exe" 17 goto checkwake :awake echo SCServer is awake! start "SC" %USERPROFILE%\AppData\Local\Google\Chrome\Application\chrome.exe --app=http://%SCSERVERIP%:9000/ -------------------- You'll need to change the SCSERVERIP variable to the ip of your server, the BROADCASTIP var to the broadcast address on your subnet and the SCSERVERMAC ver to match the mac address of eth0 on your server. Finally, since you're using XP, you'll need to tweak the last line, which is configured for Vista. I usually create a shortcut to this batch file, set the shortcut's icon to a squeezebox icon and then place the shortcut on my quick-launch tool bar on the taskbar. When I click it, if the server is already awake, it simply opens chrome with SqueezeCenter loaded. If it's not awake, it WOLs the server first. This, WOLing the server doesn't take an extra step. -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=65564 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
