[GUIDE] Install wakelan (WOL) on MBL

Wake-on-LAN ( WOL ) is an ethernet computer networking standard that allows a computer to be turned on or awakened by a network message.

 

Make sure you HARDEN your SSH password before opening your MBL SSH port to the internet

MyBookLive:~# passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Connect to the MBL with PuTTY or Terminal and install optware

wget http://mybookworld.wikidot.com/local--files/optware/setup-mybooklive.sh
sh setup-mybooklive.sh

Issue the following commands to ensure that we can use the command “ipkg” from any directory

echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /root/.bashrc
echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /etc/profile

Close PuTTY or Terminal (Very Important)

Open PuTTY or Terminal and connect to the MBL again

Install wakelan

ipkg update
ipkg install wakelan

 Create a script that will turn on or wake up your machine

nano /usr/local/sbin/wake

Example script (Make YOUR needed changes and save…See below)

wakelan -b 192.168.1.255 -m 00E018AAFDE4

If your network is using a different private ip address such as 10.0.0. then use 10.0.0.255 instead

Replace 00E018AAFDE4 with the MAC address from YOUR computers NIC

Hit control and o

Hit enter

Hit control and x

This will save your edited file

Change the scripts permissions

chmod 755 /usr/local/sbin/wake

Shut your desktop down and use a free program such as vSSH Lite for IOS and SSH into your MBL

Login and issue

/usr/local/sbin/wake

Your computer should boot up!

To be able to SSH in from outside your home network you will need  to login to your router and forward port 22 to your MBL’s IP address

DONE!

3 Likes

Great as usual nfo, keep these great guides coming! :slight_smile:

Would installing this enable me to wake my computer (within the same wired-wireless network) from my iPad ?

Yep, you would just need to download a SSH app for IOS

I use the FREE vSSH Lite

I created a macro in the app so I can execute the script to bootup my Desktop PC as soon as I login to the MBL