<?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>ButteWifi</title>
	<atom:link href="http://blog.buttewifi.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.buttewifi.com</link>
	<description>ButteWifi</description>
	<lastBuildDate>Thu, 28 Jan 2010 08:43:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dynamic ssh tunneling with putty to secure web traffic</title>
		<link>http://blog.buttewifi.com/?p=64</link>
		<comments>http://blog.buttewifi.com/?p=64#comments</comments>
		<pubDate>Thu, 28 Jan 2010 08:43:16 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[google chrome]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh tunnels]]></category>
		<category><![CDATA[tunnels]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=64</guid>
		<description><![CDATA[Sometimes you might want to tunnel traffic over ssh to protect it from prying eyes on wireless/untrusted networks.
You can use an ssh tunnel to a Linux server to encrypt all of your browsing traffic. However, after it leaves the ssh server, it will no longer be encrypted.
Launch putty and head to Connection &#62; SSH &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you might want to tunnel traffic over ssh to protect it from prying eyes on wireless/untrusted networks.</p>
<p>You can use an ssh tunnel to a Linux server to encrypt all of your browsing traffic. However, after it leaves the ssh server, it will no longer be encrypted.</p>
<p>Launch putty and head to <strong>Connection</strong> &gt; <strong>SSH </strong>&gt; <strong>Tunnels</strong></p>
<p>In the <strong>Source port </strong> field, enter a port number that your computer will listen for traffic on. Be sure to pick one that isn&#8217;t being used by another program. (<strong>8910</strong> should be a safe bet)</p>
<p>Then select <strong>Dynamic </strong>and <strong>Auto</strong> as the port type and then click <strong>Add</strong>.</p>
<p>The window should look like this.</p>
<p><img class="alignnone" title="Dynamic Port in Putty" src="http://i46.tinypic.com/rvdk3n.png" alt="Dynamic Port in Putty" width="467" height="448" /></p>
<p>Then scroll back up and click on <strong>Session</strong>.</p>
<p>Enter the IP address of the machine running the SSH server in the <strong>Host Name (or IP address) </strong>field.</p>
<p>Then type a name in the <strong>Saved Sessions</strong> box and click <strong>Save</strong> for future usage.</p>
<p>Now you can double click on the name of the saved session to start up the tunnel.</p>
<p>You will have to enter your username and password before the tunnel will work correctly, unless the server is configured for anonymous logins.</p>
<p>You may also use key based authentication to bypass the need to enter a username and password for each login. See <a href="http://blog.buttewifi.com/?p=30" target="_blank">this article</a> for details.</p>
<p>Once the SSH session is open and the tunnel is up. Your browser needs to be configured to use the tunnel.</p>
<p><strong><span style="text-decoration: underline;">Firefox</span></strong></p>
<p>Click <strong>Tools</strong> &gt; <strong>Options&#8230; </strong></p>
<p>Head to the <strong>Advanced </strong>tab and then the <strong>Network </strong>sub-tab and click <strong>Settings&#8230;</strong></p>
<p>Change the setting to <strong>Manual proxy configuration:</strong></p>
<p>In the <strong>SOCKS Host</strong>: field, type <strong>127.0.0.1 </strong>and enter the port number you chose earlier (<strong>8910</strong> for the example)</p>
<p>All of the other fields should be blank other than the <strong>No Proxy for:</strong> field. This tells firefox to skip the proxy server when visiting these addresses.</p>
<p><img class="alignnone" title="Mozilla Proxy Config" src="http://i46.tinypic.com/n33qsk.png" alt="Mozilla Proxy Config" width="461" height="466" /></p>
<p>Click <strong>OK </strong> and then <strong>OK</strong> to return to the browser. Your web traffic through Firefox will now be tunneled.</p>
<p>When you are don&#8217;t want to use the proxy any more, head back to this configuration window and set it back to <strong>No proxy</strong></p>
<p><span style="text-decoration: underline;"><strong>Google Chrome &amp; Internet Explorer</strong></span></p>
<p>Google Chrome uses Internet Explorer&#8217;s proxy settings, so changing the configuration for Internet Explorer will apply to Chrome as well.</p>
<p>Go to <strong>Start &gt; Run </strong>and type <strong>inetcpl.cpl </strong>and then hit enter. (In Vista/7, just type that command in the <strong>Search programs and files</strong> box in the start menu and hit enter.)</p>
<p>Click on the <strong>Connections</strong> tab and then click <strong>LAN settings</strong>.</p>
<p>Check the <strong>Use a proxy server for your LAN</strong> option and then click <strong>Advanced.</strong></p>
<p>In the <strong>Socks:</strong> field, enter <strong>127.0.0.1</strong> and then enter the port you chose earlier in the <strong>P</strong><strong>ort</strong> field. (<strong>8910</strong> in the example)</p>
<p><img class="alignnone" title="IE/Chrome Proxy Settings" src="http://i48.tinypic.com/4vkzmw.png" alt="IE/Chrome Proxy Settings" width="814" height="538" /></p>
<p>Click <strong>OK, </strong>then <strong>OK</strong>, and then <strong>OK.</strong></p>
<p>Your traffic for IE and Chrome will now be tunneled through the SSH server.</p>
<p>To disable it, just clear the <strong>Use a proxy server for your LAN</strong> option. The <strong>Advanced </strong>settings don&#8217;t have to be cleared out.</p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn off monitor in Linux</title>
		<link>http://blog.buttewifi.com/?p=61</link>
		<comments>http://blog.buttewifi.com/?p=61#comments</comments>
		<pubDate>Tue, 20 Oct 2009 21:05:10 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[power-save]]></category>
		<category><![CDATA[xset]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=61</guid>
		<description><![CDATA[Here is a quick command to disable your monitor in Linux.
 xset dpms force off
You can bind this to a keyboard shortcut or throw it in a script to quickly send your monitors to power-save mode without waiting a timeout period.
]]></description>
			<content:encoded><![CDATA[<p>Here is a quick command to disable your monitor in Linux.<br />
<strong> xset dpms force off</strong><br />
You can bind this to a keyboard shortcut or throw it in a script to quickly send your monitors to power-save mode without waiting a timeout period.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=61</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dynamic ARP Protection in an HP Procurve Network</title>
		<link>http://blog.buttewifi.com/?p=56</link>
		<comments>http://blog.buttewifi.com/?p=56#comments</comments>
		<pubDate>Mon, 24 Aug 2009 02:49:06 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[arp poisoning]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[dhcp snooping]]></category>
		<category><![CDATA[dynamic arp protection]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[mac address]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[procurve]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=56</guid>
		<description><![CDATA[ARP Poisoning is a problem on Ethernet based networks.
If you have HP Procurve switches and a DHCP enabled network, you have the option of enabling ARP Protection.
In order for ARP Protection to work, DHCP Snooping also has to be enabled. This is because the switch builds a table of MAC to IP pairs based on [...]]]></description>
			<content:encoded><![CDATA[<p>ARP Poisoning is a problem on Ethernet based networks.</p>
<p>If you have HP Procurve switches and a DHCP enabled network, you have the option of enabling ARP Protection.</p>
<p>In order for ARP Protection to work, DHCP Snooping also has to be enabled. This is because the switch builds a table of MAC to IP pairs based on the address that the DHCP server allocates to clients. Once the switch has this table, it knows which MAC addresses should be allowed to communicate using certain IP addresses.</p>
<p>Configuring ARP Protection is simple, just trust your uplink ports and protect a VLAN. Protection can also be enabled on a port-by-port basis.</p>
<p>First enable DHCP snooping if it already hasn&#8217;t been enabled.</p>
<p><strong>switch#</strong> <strong>config t</strong></p>
<p>Enable it globally</p>
<p><strong>switch(config)# dchp-snooping</strong></p>
<p>Trust inter-switch links</p>
<p><strong>switch(config)# interface 51</strong></p>
<p><strong>switch(eth-51)# dhcp-snooping trust</strong></p>
<p><strong>switch(eth-51)# exit</strong></p>
<p><strong>switch(config)# interface 52</strong></p>
<p><strong>switch(eth-52)# dhcp-snooping trust</strong></p>
<p><strong>switch(eth-52)# exit</strong></p>
<p>Then protect the specific VLAN that needs to be protected.</p>
<p><strong>switch(config)# dchp-snooping <strong>vlan 2222</strong></strong></p>
<p>Once DHCP-snooping has been configured, arp protection can be enabled.</p>
<p>Enable it globally</p>
<p><strong>switch(config)# arp-protect</strong></p>
<p>Trust inter-switch links<strong><br />
</strong></p>
<p><strong>switch(config)# arp-protect trust 51-52</strong></p>
<p>Then protect the specific VLAN that needs to be protected.</p>
<p><strong>switch(config)# arp-protect vlan 2222.</strong></p>
<p><strong><em>This is a very basic overview of dynamic ARP protection. Here are some diagrams to help explain what arp poisoning is, and what arp protection does to protect against it. <img class="aligncenter size-full wp-image-57" title="arp poisoning" src="http://blog.buttewifi.com/wp-content/uploads/2009/08/arp-poisoning.jpg" alt="arp poisoning" width="756" height="985" /></em></strong></p>
<p><strong><em><br />
</em></strong></p>
<p><strong><em><img class="aligncenter size-full wp-image-58" title="arp protection" src="http://blog.buttewifi.com/wp-content/uploads/2009/08/arp-protection.jpg" alt="arp protection" width="690" height="643" /><br />
</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=56</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Get to Network Connections faster in Windows 7</title>
		<link>http://blog.buttewifi.com/?p=54</link>
		<comments>http://blog.buttewifi.com/?p=54#comments</comments>
		<pubDate>Mon, 10 Aug 2009 06:59:11 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[network connections]]></category>
		<category><![CDATA[run]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=54</guid>
		<description><![CDATA[Getting to the network connections can be a pain in Windows Vista/7 by navigating through the Network and Sharing center.
Click the start button, type ncpa.cpl, and hit enter to take you straight there.
]]></description>
			<content:encoded><![CDATA[<p>Getting to the network connections can be a pain in Windows Vista/7 by navigating through the Network and Sharing center.<br />
Click the start button, type <strong>ncpa.cpl</strong>, and hit enter to take you straight there.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=54</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Determine the groups you are a member of in active directory</title>
		<link>http://blog.buttewifi.com/?p=48</link>
		<comments>http://blog.buttewifi.com/?p=48#comments</comments>
		<pubDate>Fri, 07 Aug 2009 23:28:30 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[dsget]]></category>
		<category><![CDATA[dsquery]]></category>
		<category><![CDATA[groups]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=48</guid>
		<description><![CDATA[Issue these commands to determine what groups you are a member of in an active directory environment. These will only be groups in active directory.
First determine your FQDN.
dsquery user -name username
Then use that to get group membership info.
dsget user outputfromabove -memberof -expand
You must have the adminpak from Microsoft installed on your computer, but you don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Issue these commands to determine what groups you are a member of in an active directory environment. These will only be groups in active directory.<br />
First determine your FQDN.<br />
<strong>dsquery user -name <em>username</em></strong><br />
Then use that to get group membership info.<br />
<strong>dsget user <em>outputfromabove</em> -memberof -expand</strong></p>
<p>You must have the adminpak from Microsoft installed on your computer, but you don&#8217;t need to be a Domain Administrator to do this.</p>
<p>If you have the adminpak, you can also use the Active Directory Users and Computers snap-in to locate your user and check it that way.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=48</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Scripts to Mount and search windows machines</title>
		<link>http://blog.buttewifi.com/?p=46</link>
		<comments>http://blog.buttewifi.com/?p=46#comments</comments>
		<pubDate>Thu, 06 Aug 2009 00:35:15 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=46</guid>
		<description><![CDATA[Here are some scripts that I wrote to mount and search bulk windows machines.
mountmachines.sh
#!/bin/bash
cd /searchmachines
echo &#8220;Username please&#8221;
read username
echo &#8220;Password please&#8221;
read -s password
for machine in `cat machinelist.txt`
do
mkdir remote$machine
echo &#8220;Attempting to mount $machine&#8230;&#8221;
mount.cifs //$machine/c$ ./remote$machine -o username=$username,password=$password
done
exit
This next script searches the machines for NTUSER.DAT files to find users that were logged in during a specific time frame.
search.sh
#!/bin/bash
cd [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some scripts that I wrote to mount and search bulk windows machines.</p>
<p>mountmachines.sh</p>
<p><strong>#!/bin/bash<br />
cd /searchmachines<br />
echo &#8220;Username please&#8221;<br />
read username<br />
echo &#8220;Password please&#8221;<br />
read -s password<br />
for machine in `cat machinelist.txt`<br />
do<br />
mkdir remote$machine<br />
echo &#8220;Attempting to mount $machine&#8230;&#8221;<br />
mount.cifs //$machine/c$ ./remote$machine -o username=$username,password=$password<br />
done<br />
exit</strong></p>
<p>This next script searches the machines for NTUSER.DAT files to find users that were logged in during a specific time frame.</p>
<p>search.sh</p>
<p><strong>#!/bin/bash<br />
cd /searchmachines<br />
echo &#8220;Enter number of days for oldest file. (4 for no older than 4 days)&#8221;<br />
read old<br />
echo &#8220;Enter number of days for newest file. (2 for at least 2 days old)&#8221;<br />
read new<br />
echo &#8220;Searching&#8230;&#8221;<br />
find ./ -name NTUSER.DAT -mtime $new -mtime -$old -daystart</strong></p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=46</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Script for a DHCP address renewal</title>
		<link>http://blog.buttewifi.com/?p=42</link>
		<comments>http://blog.buttewifi.com/?p=42#comments</comments>
		<pubDate>Sun, 02 Aug 2009 07:44:23 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pfsense]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=42</guid>
		<description><![CDATA[Normally my Internet connection is pretty good; but, once every couple of months, the provider changes something and my current IP address no longer works. The lease doesn&#8217;t actually expire, which is set to last 48 hours. So, I lose internet connectivity until a new renewal. It&#8217;s easy to do this by hand, but that [...]]]></description>
			<content:encoded><![CDATA[<p>Normally my Internet connection is pretty good; but, once every couple of months, the provider changes something and my current IP address no longer works. The lease doesn&#8217;t actually expire, which is set to last 48 hours. So, I lose internet connectivity until a new renewal. It&#8217;s easy to do this by hand, but that doesn&#8217;t work when I&#8217;m not at home.</p>
<p>This is a script that checks to see if I&#8217;m connected to the Internet, and if it fails three times in a row, it connects to the router (pfSense in this case) and performs a DHCP release and renew.</p>
<p><strong>#!/bin/bash</strong><br />
#change to some writeable directory<br />
<strong>cd /home/user</strong></p>
<p>#check various sites<br />
<strong>curl http://www.msn.com &gt; internetchecksites<br />
curl http://www.yahoo.com &gt;&gt; internetchecksites<br />
curl http://www.google.com &gt;&gt; internetchecksites<br />
curl http://www.cnn.com &gt;&gt; internetchecksites<br />
curl http://www.cisco.com &gt;&gt; internetchecksites<br />
curl http://www.hp.com &gt;&gt; internetchecksites</strong></p>
<p>#count the number of lines received over http<br />
#should be tons of crap from one of these alone<br />
<strong>sizeofsites=`cat internetchecksites | wc -l`</strong></p>
<p>#check to see if there are less than ten lines of HTML<br />
<strong>if [ $sizeofsites -lt 10 ]; then</strong><br />
#mark a failure to the failure file<br />
<strong> echo &#8220;strike&#8221; &gt;&gt; failedchecks<br />
else</strong><br />
#reset the failure count<br />
<strong> rm failedchecks<br />
touch failedchecks<br />
fi</strong></p>
<p>#if check has failed 3 times run the dhcp renewal process<br />
<strong>if [ `cat failedchecks | wc -l` -ge 3 ]; then<br />
curl -su admin:somepassword http://192.168.x.x/status_interfaces.php -d interface=&#8221;wan&#8221; -d submit=&#8221;Release&#8221; &gt;&gt; pf<br />
curl -su admin:somepassword http://192.168.x.x/status_interfaces.php -d interface=&#8221;wan&#8221; -d submit=&#8221;Renew&#8221; &gt;&gt; pf<br />
rm pf<br />
fi</strong></p>
<p><strong>exit</strong></p>
<p>Now just stick this script in your crontab for every 5 minutes or so.</p>
<p><strong>~$ crontab -e</strong></p>
<p>Add this line</p>
<p><strong>*/5 * * * * /home/user/checkinternetscript.sh</strong></p>
<p>The */5 is for every five minutes.</p>
<p>Make sure the script is executable with a nice <strong>chmod +x</strong></p>
<p>The hardest part is determining what commands need to be sent to the HTTP interface on your router for a renewal.</p>
<p>This can be done by viewing the source code on the web page. It can also be done using a packet capture as well.</p>
<p>Make sure other users aren&#8217;t adding to your <strong>failedchecks</strong> file or they can cause a DHCP release/renew.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=42</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Better way to get private key to authorized key file on remote system.</title>
		<link>http://blog.buttewifi.com/?p=40</link>
		<comments>http://blog.buttewifi.com/?p=40#comments</comments>
		<pubDate>Sat, 01 Aug 2009 08:53:01 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[authorization]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[pki]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=40</guid>
		<description><![CDATA[Here is a much easier command to get your key added to an authorized keys file on a remote server.
~$ ssh-copy-id username@remotehost.local
]]></description>
			<content:encoded><![CDATA[<p>Here is a much easier command to get your key added to an authorized keys file on a remote server.</p>
<p>~$ <strong>ssh-copy-id username@remotehost.local</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=40</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nice way to kill your unresponsive linux system</title>
		<link>http://blog.buttewifi.com/?p=36</link>
		<comments>http://blog.buttewifi.com/?p=36#comments</comments>
		<pubDate>Mon, 20 Jul 2009 06:38:40 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[unresponsive]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=36</guid>
		<description><![CDATA[Sometimes when a Linux system is unresponsive it seems like your only option is to hold down the power button.
Follow these key combos for a less risky reboot.
Hold Down Alt + SysRq and press R (raw keyboard mode) S (syncs disks) E (terminates all processes) I (kills the stragglers) U (read-only remount file-systems) B (reboots)
Give [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when a Linux system is unresponsive it seems like your only option is to hold down the power button.</p>
<p>Follow these key combos for a less risky reboot.</p>
<p>Hold Down <strong>Alt + SysRq</strong> and press <strong>R </strong>(raw keyboard mode)<strong> S</strong> (syncs disks)<strong> E </strong>(terminates all processes)<strong> I </strong>(kills the stragglers)<strong> U</strong> (read-only remount file-systems)<strong> B </strong>(reboots)</p>
<p>Give it lots of time to Sync the Disks and do it one more time after killing the processes to play it safe.</p>
<p>There she be. Careful, it&#8217;s a lot of fun.</p>
<p><strong>R</strong>eboot <strong>S</strong>ystem <strong>E</strong>ven<strong> I</strong>f <strong>U</strong>tterly <strong>B</strong>roken</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=36</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Living wild and free</title>
		<link>http://blog.buttewifi.com/?p=34</link>
		<comments>http://blog.buttewifi.com/?p=34#comments</comments>
		<pubDate>Tue, 14 Jul 2009 08:22:48 +0000</pubDate>
		<dc:creator>blak111</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[pki]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[visudo]]></category>

		<guid isPermaLink="false">http://blog.buttewifi.com/?p=34</guid>
		<description><![CDATA[So now you have key-based authentication setup for remote administration of your servers and you really want to crank up the laziness factor.
Remembering a password sucks, especially if you&#8217;ve eliminated them for logons. Now you only need it for sudo commands, right? NOT AFTER THIS DANDY!!
Every time you need to run something that requires root [...]]]></description>
			<content:encoded><![CDATA[<p>So now you have key-based authentication setup for remote administration of your servers and you really want to crank up the laziness factor.</p>
<p>Remembering a password sucks, especially if you&#8217;ve eliminated them for logons. Now you only need it for sudo commands, right? NOT AFTER THIS DANDY!!</p>
<p>Every time you need to run something that requires root privileges, you have to type sudo and then your password if you haven&#8217;t used the command recently.</p>
<p>Lets quit beating around the bush and get some work done.</p>
<p>~$ <strong>sudo visudo</strong></p>
<p>If your user name isn&#8217;t already in the config, scroll down and add this line at the bottom. If it is, just modify it to fit this format (specifically the NOPASSWD: )</p>
<p><strong>username ALL=NOPASSWD: ALL</strong></p>
<p>Then save it and quit. Now your good to go! No more pesky password.</p>
<p>This makes your private key very important to protect, especially if you didn&#8217;t put a passphrase on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.buttewifi.com/?feed=rss2&amp;p=34</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
