<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Review &#187; remote</title>
	<atom:link href="http://www.raneri.it/blog/eng/index.php/tag/remote/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raneri.it/blog/eng</link>
	<description>A blog by Riccardo Raneri</description>
	<lastBuildDate>Wed, 14 Jul 2010 10:59:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enable Wake-On-LAN (WOL) on an Ubuntu PC</title>
		<link>http://www.raneri.it/blog/eng/index.php/2008/12/14/enable-wake-on-lan-wol-on-an-ubuntu-pc/</link>
		<comments>http://www.raneri.it/blog/eng/index.php/2008/12/14/enable-wake-on-lan-wol-on-an-ubuntu-pc/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 01:39:24 +0000</pubDate>
		<dc:creator>riccardo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[wake on lan]]></category>
		<category><![CDATA[wol]]></category>

		<guid isPermaLink="false">http://riccardo.raneri.it/blog/eng/?p=227</guid>
		<description><![CDATA[
Notice: This little tutorial assumes that you have some basic Linux knowledge, and that you know what SSH is.
Christmas is coming, and I&#8217;ll be out of office for a while.
I was a little worried because I could need some data from my main desktop PC&#8230; I&#8217;ll copy the most important documents on the laptop, but [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-thumbnail wp-image-230 alignleft" style="margin-right: 10px;" title="A LAN connector" src="http://riccardo.raneri.it/blog/eng/wp-content/uploads/2008/12/01ether_rj45-box-l-150x150.jpg" alt="A LAN connector" width="150" height="150" /></p>
<p><strong>Notice: This little tutorial assumes that you have some basic Linux knowledge, and that you know what SSH is</strong>.</p>
<p>Christmas is coming, and I&#8217;ll be out of office for a while.</p>
<p>I was a little worried because I could need some data from my main desktop PC&#8230; I&#8217;ll copy the most important documents on the laptop, but if I&#8217;ll forget something? I don&#8217;t want to leave my desktop turned on, nor to be obliged to pass the evening of 24th of December in my car to come back to the office.</p>
<p>So it&#8217;s time to activate <strong>Wake On LAN</strong> <img src='http://www.raneri.it/blog/eng/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Wake On LAN (aka WOL) is a feature of many PCs. It leaves the network port in standby mode, without turning off it completely. It requires very little power, and it allows you to activate a PC from your LAN.<span id="more-227"></span></p>
<p><!--adsense#VideoBox--></p>
<p>In my office network I have a Linux server that is always on: with WOL I can login into this, launch a very simple command to activate my desktop and then login into it to do what I need. When I finish I can also turn it off again: it will remain available to be re-activated later!<br />
I&#8217;ll do this from my office server, anyway the same feature (the ability to send a special command to the local network to turn a PC on) is embedded in some good home and office routers, so check yours <img src='http://www.raneri.it/blog/eng/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<ul>
<li>The first action I had to accomplish was to <strong>activate WOL</strong> from the BIOS of my desktop motherboard (an ASUS M2A-MX). Usually, this option is easy to be found&#8230; even it wasn&#8217;t so in mine (here the option is called &#8220;Resume from S5 by PME#&#8221;);</li>
<li>The second thing is to discover and write somewhere the desktop <strong>MAC address</strong>. I found it from my router web interface, listing the connected devices&#8230; anyway you can read it directly from the PC to be turned on remotely, with <strong>ifconfig</strong> command. It will list a lot of information about the computer&#8217;s network interfaces&#8230; usually the LAN card is identified by <strong>eth0 </strong>code, and the MAC address is in this form: <strong>HWaddr xx:yy:zz:01:02:03</strong></li>
<li>Then I installed a little utility called <strong>wakeonlan</strong> in my office server (that was already configured to accept remote users login via SSH), with a single terminal command:<br />
<strong>sudo apt-get install wakeonlan</strong></li>
<li>At this point, WOL was already working if I turn my desktop on, then I turn it off with its power button. I login into the server via SSH, then I send this simple command:<br />
<strong>wakeonlan </strong><strong>xx:yy:zz:01:02:03<br />
</strong>(just change the MAC address with the one of your target PC)</li>
<li>Unfortunately, it didn&#8217;t work turning the desktop off from Ubuntu (with Gnome&#8217;s shutdown command),  so I needed to create a boot script to activate the feature everytime the PC starts:</li>
</ul>
<ol>
<li>create a new script:<strong><br />
gksudo gedit /etc/init.d/wol.sh</strong></li>
<li>paste this and save the file:<br />
<strong>#!/bin/bash<br />
ethtool -s eth0 wol g<br />
exit</strong></li>
<li>give execute permission to this new file and add it to startup scripts:<br />
<strong>sudo chmod a+x /etc/init.d/WOL.sh<br />
sudo update-rc.d WOL.sh defaults</strong></li>
</ol>
<p>It&#8217;s ok! Now you&#8217;ve only to reboot and shutdown the PC normally, the network interface will remain in standby mode, allowing you to wake the system from any another PC (or router, see above) in the LAN!<strong><br />
</strong></p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raneri.it/blog/eng/index.php/2008/12/14/enable-wake-on-lan-wol-on-an-ubuntu-pc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
