views:

22

answers:

0

I've got home server used to store files.

PC 1 (Windows) gets internet directly from HS(Home server - Ubuntu Server)

PC 2 (Windows) and PC 3 (Windows and Linux) need access to HS files.

I'd like to create software or scripts which would allow to:

  1. When PC 1 turns off turn off HS but only when PC 2 and PC 3 are turned off.
  2. When PC 2 turns off turn off HS but only when PC 1 and PC 3 are turned off.
  3. When PC 3 turns off turn off HS but only when PC 1 and PC 2 are turned off.
  4. When PC 2 or 3 turns on turn on HS via Wake On Lan,

Everything should run automatically without user interaction (entering passwords etc)

What is the best way to do this? Software on home server which communicates with other machines via Linux sockets and pings other machines?

In next version I'd like to check also if someone is connected to samba share or ssh to HS via VPN.

What is more I'd like to create software running in tray (for windows and for linux) which displays green icon when server is on, red when off and allows to Wake On Lan home server.