tutorials:it:soundsystem

This is an old revision of the document!


LAN audio broadcast system

Getting netinst Raspbian sound working:

If you have no access to the router controls and need to find out a new machine,

a) Scan LAN and save machines to a temporary file

  printf "%s\0" 192.168.1.{1..255} |\
  xargs -0 -I% -P 255 bash -c '&>/dev/null ping % -c1 -W1 && echo %' |\
  sort -n >~/ips_before

b) Connect the new machine and after some time, say 1 minute, when it connects to the network, run this:

  cat <(printf "%s\0" 192.168.1.{1..255} |\
  xargs -0 -I% -P 255 bash -c '&>/dev/null ping % -c1 -W1 && echo %' |\
  sort -n) ~/ips_before | sort | uniq -u

c) Remove the temporary file ~/ips_before once you don't need it anymore.

If you're not sure about the third byte of the new ip, use a wider range like

  192.168.{1..255}.{1..255}
  • tutorials/it/soundsystem.1488221011.txt.gz
  • Last modified: 2017/02/27 19:43
  • by 66.249.76.37