Skip to content

Instantly share code, notes, and snippets.

@romanlarionov
Last active March 29, 2016 01:02
Show Gist options
  • Save romanlarionov/e016842365199dee555b to your computer and use it in GitHub Desktop.
Save romanlarionov/e016842365199dee555b to your computer and use it in GitHub Desktop.
Setting up Raspberry Pi VPN for local network access

Setting Up static ip for the pi

This gist explains the proper way to set up a static ip by altering the correct network file located on the pi. https://gist.github.com/superjamie/ac55b6d2c080582a3e64

Setting Up Wake on LAN

Download wakeonlan program. sudo apt-get install wakeonlan

This will allow for trivial booting of local devices from within the local network. Exactly what we want from a raspberry pi home server. It requires the MAC address of the computer that we want to be turned on.

How to verify that the client of your magic packet supports wake on lan

ethtool -s eth0 wol g

How to send magic packet

wakeonlan <mac address>

How to login after client is booted

If the operating system you are booting into is ubuntu, this is a great thread describing how to create a script to auto login after a wakeonlan request.

How to set up Remote Desktop Protocol to log into Windows from Linux

http://www.digitalcitizen.life/connecting-windows-remote-desktop-ubuntu

Switching between Windows and Linux at boot time with grub

http://askubuntu.com/questions/514513/how-to-switch-remotely-from-ubuntu-and-windows-7-and-vice-versa

basically: grub-reboot Windows

How to set up Windows to allow wake on lan

http://www.howtogeek.com/70374/how-to-geek-explains-what-is-wake-on-lan-and-how-do-i-enable-it/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment