Posts

Showing posts with the label Raspbery Pi

How to use Raspberrypi VPN server to wake up other computer

Image
Problem I need to be able to power-on my Theatre PC remotely and securely over my VPN at home. Solution I have already an OpenVPN server installed on Raspberrypi so I just need to install wakeonlan command on Raspbian via the following command: sudo apt install wakeonlan and use the following command to wake up any computer: wakeonlan TheMacAddressOfTheComputerToWakeUp However I'd also like to create a command-shortcut for wakeonlan-theater-pc  so I can edit the hidden   .bashrc file using the nano editor via the following command: nano .bashrc and scroll to the bottom of the file then type the following alias followed by Ctrl-X to exit and save the changes. alias wakeonlan-theatre-pc='wakeonlan  TheMacAddressOfTheComputerToWakeUp ' Finish... all good and it should wake up my computer when I type on the terminal: wakeonlan-theatre-pc

How to install NoIP DDNS client on Rasberry Pi

This article is for anyone who needs to install https://www.noip.com Dynamic DNS Update Client on Raspberry Pi. 1. Connect to Raspbian using PuTTY or other SSH client (i.e. ConnectBot on Android) 2. Download and install the client as follows: cd /usr/local/src sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz sudo tar xzf noip-duc-linux.tar.gz cd noip-2.1.9-1 sudo make (if you encounter error make not found, try installing it with  sudo apt-get install build-essential  then retry sudo make ) sudo make install 3. Configure the client as follows: sudo /usr/local/bin/ noip2 -C 4. Start the client manually as follows: sudo /usr/local/bin/ noip2 5. If all successful, the IP address shown on https://www.google.com/search?q= myipaddress should match the IP address updated on https://www.noip.com 6. To automatically start the client on Raspbian reboot: 6.1. Edit rc.local file: sudo nano /etc/rc.local 6.2. Type the followings bef...