Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 23 Oct 2017, 19:04
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How I got Wake On LAN (WOL) working between two Puppies
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
MrToad


Joined: 13 Dec 2007
Posts: 59
Location: East Devon, GB

PostPosted: Mon 27 Feb 2012, 16:41    Post subject:  How I got Wake On LAN (WOL) working between two Puppies  

A number of folk have asked recently about this. There is already material on this forum about WOL and I reference some of it in this post, but at the risk of a bit of repetition I thought that my experience of what I did to get WOL going on a couple of Puppies might also be of interest. It was actually very straightforward.

First things first: I came across a puppy package that does the job nicely. It's the puppy wolandarp.tar.gz package and it may be found at
http://www.murga-linux.com/puppy/viewtopic.php?p=28856

The readme file that is part of that package contains some useful info and I found it very helpful.

Before I discovered that package I found some other useful info at http://cameacross.wordpress.com/2009/04/28/how-to-set-up-wake-on-lan-on-ubuntu-home-server/ - it's well worth a look.

Also see: http://www.murga-linux.com/puppy/viewtopic.php?t=53507&sid=42340da4376b3455dfc521a261527110 for a little bit more info.

Here is what I did:

For my Celeron machine with Puppy 4 (Dingo), I "installed" wol and arp (ethtool was already installed) from the Puppy wolandarp.tar.gz package as per the instructions in the readme: I simply copied them to /root/my-applications/bin.

Then in a terminal I ran

ethtool eth0

The two "wake-on" lines told me which wake-on-LAN modes the network interface eth0 supports, and if/which mode is enabled. In my case it wasn't enabled - it was "d", not "g" - so I changed it. It wasn't hard: in a terminal I ran

ethtool -s eth0 wol g

and that enabled WOL - ie it set the "g" option, that sets it to wake up that computer on receiving the Magic Packet.

Next (in a terminal) I ran

ifconfig eth0

which identified its MAC number as 00:06:4F:02:04:64

then I shut the system down and left it turned off.

Next I "installed" wol and arp on a second machine (Sony Vaio/Fluppy 8 ).

Both machines were on my LAN.

On the Sony Vaio I opened a terminal and ran

wol 00:06:4F:02:04:64

which started up the Celeron box!

(Note: I am quite happy for this machine's MAC number to be visible here because I recently scrapped it. But before that the above WOL arrangement worked on it without any problems for six months.)

Just for fun I then set everything up to work the other way round (Celeron/Puppy 4 starting the Sony Vaio.Fluppy 8 ), which it did without any problem.

Finally I wrote a simple script that I could run from an icon on the desktop:

------------------

#!/bin/sh

# This sends the "Magic Packet" to my desktop machine.

exec wol 00:06:4F:02:04:64

------------------

And that was it.


I hope some of this is useful.

MrToad
Back to top
View user's profile Send private message 
James186282


Joined: 08 Sep 2009
Posts: 254
Location: Minnesota

PostPosted: Sun 27 Aug 2017, 11:08    Post subject:  

great except my machine came stock with this crap turned on and every morning the machine I turned off is back on. Puppy doesn't have the classic shutdown scripts (I think?) where I suspect someone has used a script to turn wol on.

Any ideas on how to turn this feature off and keep it from being turned back on everytime I shut down? I think security wise this is an awful idea.

I wonder if there is an easy way to track which machine is issuing magic packets so I can take an Axe to it?

_________________
Science is what we understand well enough to explain to a computer.
Art is everything else we do.
Donald Knuth
Back to top
View user's profile Send private message 
belham2

Joined: 15 Aug 2016
Posts: 1190

PostPosted: Mon 28 Aug 2017, 11:56    Post subject:  

James186282 wrote:
great except my machine came stock with this crap turned on and every morning the machine I turned off is back on. Puppy doesn't have the classic shutdown scripts (I think?) where I suspect someone has used a script to turn wol on.

Any ideas on how to turn this feature off and keep it from being turned back on everytime I shut down? I think security wise this is an awful idea.

I wonder if there is an easy way to track which machine is issuing magic packets so I can take an Axe to it?



James,

Every BIOS in existence (since about a decade ago) comes with the ability to disable WOL. Go into your BIOS, set it this way (it'll be a toggle of "enable" or "disable") and it'll never bother you again.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0732s ][ Queries: 11 (0.0065s) ][ GZIP on ]