<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>An “expert”’s opinion on the universe and everything.</description><title>professional blarg</title><generator>Tumblr (3.0; @blargasm)</generator><link>http://blargasm.com/</link><item><title>Starting a VPN if it is not connected via AppleScript</title><description>&lt;p&gt;Launching a VPN if it is not connected on OS X:&lt;/p&gt;
&lt;pre class="prettyprint"&gt;tell application "System Events"
  tell current location of network preferences
    set VPNservice to service "My VPN" -- name of your VPN
    set isConnected to connected of current configuration of VPNservice
    if not isConnected then connect VPNservice
  end tell
end tell&lt;/pre&gt;
&lt;p&gt;…prefect for automating “things” in &lt;a target="_blank" href="http://www.griffintechnology.com/support/proxi"&gt;Proxi&lt;/a&gt;.&lt;/p&gt;</description><link>http://blargasm.com/post/9742262570</link><guid>http://blargasm.com/post/9742262570</guid><pubDate>Sat, 03 Sep 2011 12:46:00 +0200</pubDate><category>osx</category><category>applescript</category><category>automation</category><category>vpn</category></item><item><title>I have moved some top posts from my old blog to this one; The old blog also is now redirecting most...</title><description>&lt;p&gt;I have moved some top posts from my old blog to this one; The old blog also is now redirecting most requests to this one. If you are missing any other post, please let me know in the comments.&lt;/p&gt;</description><link>http://blargasm.com/post/7998791796</link><guid>http://blargasm.com/post/7998791796</guid><pubDate>Sun, 24 Jul 2011 13:58:00 +0200</pubDate></item><item><title>"In the beginning the Universe was created. This has made a lot of people very angry and has been..."</title><description>“In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Douglas Adams&lt;/em&gt;</description><link>http://blargasm.com/post/7943150630</link><guid>http://blargasm.com/post/7943150630</guid><pubDate>Thu, 09 Jun 2011 21:09:00 +0200</pubDate><category>42</category></item><item><title>Fake your geolocation in Firefox 3.5</title><description>&lt;p&gt;There are many reasons why you would want to fake your location in firefox. One good reason would be “un-faking” your location on computers with no wlan cards, e.g. at work, or where there’s no data available for the WLANs around you. All you need for faking is a text file (eg. &lt;code&gt;/home/username/.mynewlocation.txt&lt;/code&gt;) somewhere on your computer with the following content: &lt;/p&gt;
&lt;p&gt;&lt;small&gt;&lt;code&gt;{"location":{"latitude":50.941863,"longitude":6.958374, "accuracy":20.0}}&lt;/code&gt;&lt;/small&gt; &lt;/p&gt;
&lt;p&gt;The path in Firefox to this file is: &lt;code&gt;file://home/username/.mynewlocation.txt&lt;/code&gt; Type &lt;code&gt;about:config&lt;/code&gt; in your location bar, confirm the warning, search for &lt;code&gt;geo.wifi.url&lt;/code&gt;, and replace the old url (&lt;code&gt;&lt;a href="https://www.google.com/loc/json"&gt;https://www.google.com/loc/json&lt;/a&gt;&lt;/code&gt;) with your new one from above. Restart firefox, enjoy your new location :-)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Explanation:&lt;br/&gt;&lt;/strong&gt;&lt;code&gt;latitude/longitude&lt;/code&gt; =&gt; the location you want to have, go to google maps, select location, click on “Link” and use the values from the ll= parameter&lt;br/&gt;&lt;code&gt;accuracy&lt;/code&gt; =&gt; the accuracy you want to announce, in meters.&lt;/p&gt;</description><link>http://blargasm.com/post/7979697232</link><guid>http://blargasm.com/post/7979697232</guid><pubDate>Mon, 27 Jul 2009 00:00:00 +0200</pubDate><category>geolocation</category></item><item><title>New mail notifier for Evolution</title><description>&lt;p&gt;Evolution is a great email client, it’s just missing a good new mail notifier - actually, it has none. I am running Fedora Core with Gnome and there’s the new-mail applet, but it’s huge and an overkill for most cases. To make a long story short, i was looking for a new mail notifier for Evolution and found none which were usable - so i made one. The following code should work on most Gnome desktops including Ubuntu and you can use with any other mail client which can pipe new emails to an external application:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Notifier" src="http://pugio.net/wp-content/uploads/2006/12/notifier.jpg" id="image26"/&gt;&lt;br/&gt;&lt;small&gt;Getting a new spam notification&lt;br/&gt;&lt;!-- more --&gt;&lt;/small&gt;&lt;/p&gt;
&lt;p&gt;It’s using the libnotify library with python bindings (&lt;code&gt;yum install notify-python&lt;/code&gt;), this is the source:&lt;br/&gt;&lt;iframe width="100%" height="300" src="http://pugio.net/dl/notify.py.txt"&gt;&amp;amp;amp;amp;amp;amp;amp;lt;a href=”/dl/notify.py.txt”&amp;amp;amp;amp;amp;amp;amp;gt;notify.py source&amp;amp;amp;amp;amp;amp;amp;lt;/a&amp;amp;amp;amp;amp;amp;amp;gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://pugio.net/dl/notify.py.txt"&gt;Save the code&lt;/a&gt; to a new file, give it the .py ending and make it executable (&lt;code&gt;chmod +x notifier.py&lt;/code&gt;). Go to Evolution and create a new message filter for incoming mail and pipe all new mails to the script.&lt;/p&gt;
&lt;p&gt;&lt;img alt="filter" src="http://pugio.net/wp-content/uploads/2006/12/screenshot-1.png" id="image27"/&gt;&lt;/p&gt;
&lt;p&gt;You can also use the script if you are running procmail locally, just add the following script to your &lt;code&gt;~/.procmailrc&lt;/code&gt; file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# popup new mail alert&lt;br/&gt; :0 c&lt;br/&gt; | ~/notify.py&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I release the notifier code in the public domain, do whatever you like with it. If you do some changes to it, please send me a copy, i may be interested in seeing it. Also it would be nice if you could link back to this post.&lt;/p&gt;</description><link>http://blargasm.com/post/7980037487</link><guid>http://blargasm.com/post/7980037487</guid><pubDate>Wed, 27 May 2009 00:00:00 +0200</pubDate><category>evolution</category><category>mail</category></item><item><title>Switching tabs in Safari 4 with shortcuts, just like in Firefox</title><description>&lt;p&gt;As a heavy-user of Firefox, the biggest annoyance in Safari for me was the missing shortcuts for directly accessing tabs. In Firefox you can access the tabs by pressing Cmd+&lt;number of tab&gt;. For example, if you want to jump to your third tab you would press Cmd + 3 (⌘ + 3), however in Safari this loads the third bookmark from the bookmark toolbar - very annoying if you are used to a different behavior.&lt;/p&gt;
&lt;p&gt;Luckily there is a way to change this behavior and make Safari (4, not sure about 3) behave like Firefox with the help of this innocent looking piece of AppleScript:&lt;!-- more --&gt;&lt;/p&gt;
&lt;pre&gt;tell front window of application "Safari" to set current tab to tab 3&lt;/pre&gt;
&lt;p&gt;Simple, isn’t it? Now, all we need to do is to figure out how to combine this script with the shortcuts. Thankfully there’s a small and free application called &lt;a target="_blank" href="http://www.red-sweater.com/fastscripts/"&gt;FastScripts Lite&lt;/a&gt; (hidden on the bottom of that page), it’s limited to ten shortcuts, but all we want are nine (since Cmd + 0 is assigned to a somewhat useful “Actual Size” function), so it’s perfect. If you need more shortcuts, you can purchase the full version.&lt;/p&gt;
&lt;p&gt;Let’s review that AppleScript above to ignore any errors caused by non-existing tabs:&lt;/p&gt;
&lt;pre&gt;try
	tell front window of application "Safari" to set current tab to tab 3
on error
	tell front window of application "Safari" to set current tab to last tab
end try&lt;/pre&gt;
&lt;p&gt;Open Script Editor and create nine files from 1-9 in &lt;code&gt;~/Library/Scripts/Applications/Safari&lt;/code&gt;, let’s call them &lt;code&gt;Tab1.scpt to Tab9.scpt&lt;/code&gt; and paste in each file the script from above, changing the 3 at the end of the long line to the current number. I have prepared a Zip with all nine files (&lt;a href="http://pugio.net/SafariTabs.zip"&gt;SafariTabs.zip&lt;/a&gt;), so you don’t need to do this by yourself. Simply extract this file in &lt;code&gt;~/Library/Scripts/Applications/&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Next, launch FastScripts, click on the icon in the toolbar at the top of the screen and go to FastScripts-&gt;Preferences:&lt;/p&gt;
&lt;p&gt;1. We want FastScripts to start when we log in.&lt;br/&gt;&lt;img alt="FastScripts1.jpg" src="http://pugio.net/FastScripts1.jpg" width="460" height="69" class="mt-image-none"/&gt;&lt;/p&gt;
&lt;p&gt;2. Assign Cmd+1 - Cmd+9 (or any other combinations) to the proper Tab-scripts&lt;br/&gt;&lt;img alt="FastScripts2.jpg" src="http://pugio.net/FastScripts2.jpg" width="460" height="376" class="mt-image-none"/&gt;&lt;/p&gt;
&lt;p&gt;Go back to Safari, and see the magic at work!&lt;/p&gt;</description><link>http://blargasm.com/post/7979819153</link><guid>http://blargasm.com/post/7979819153</guid><pubDate>Tue, 26 May 2009 00:00:00 +0200</pubDate><category>safari</category><category>mac</category><category>osx</category></item><item><title>Enable IPv6 on Mac OS X, the tunnelbroker.net way</title><description>&lt;p&gt;As a follow up to &lt;a href="http://pugio.net/2007/07/howto-enable-ipv6-the-teredo-w.html"&gt;my earlier teredo howto&lt;/a&gt;, here i want to show you how to use the &lt;a href="http://tunnelbroker.net/"&gt;Tunnelbroker provided by Hurricane Electric&lt;/a&gt; on OS X 10.5, Leopard, behind a NAT Router that passes protocol41 (e.g. Fritz!box Fon WLAN 7170).&lt;/p&gt;
&lt;p&gt;I did not want to make rocket-science out of this, so i did the easiest and simpliest possible way to achieve my goal, which means that it might not be the 100% correct way to do things. Also, it’s not going in to details about IPv6, so if you are new to this topic, the tutorial may be a bit difficult for you.&lt;br/&gt;&lt;!-- more --&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How all this will work&lt;/strong&gt;: Once you have finished this tutorial, you will have a Launchd script checking every 30 mins for IP changes, if your IP has changed, it will reset your IPv6 configuration. That means, in worst case, your IPv6 will be down for 30 minutes, but in best case you won’t notice the script at all.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1, Register with Hurricane Electric’s tunnelbroker.net&lt;/strong&gt;&lt;br/&gt;Just go to &lt;a href="http://tunnelbroker.net/"&gt;&lt;a href="http://tunnelbroker.net"&gt;http://tunnelbroker.net&lt;/a&gt;&lt;/a&gt; and get your free account.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 2, Create a new tunnel&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Click on &lt;a href="http://tunnelbroker.net/ipv6_normal.php"&gt;Create Regular Tunnel&lt;/a&gt;, and enter your current public IPv4 there (see &lt;em&gt;You are viewing from IP&lt;/em&gt;: &lt;em&gt;&lt;that’s your ip&gt;&lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;Next, pick the closest location to you. You can also ping each of the IPs shown there and pick the fastest one, since - at least in Germany - the closest geographical location not always is the fastest one.&lt;/p&gt;
&lt;p&gt;When you are finished, you will get your tunnel details displayed, which should be similar to the screenshot below. You will need some values from this screen and the account overview screen in the script in the next step.&lt;/p&gt;
&lt;p&gt;&lt;span class="mt-enclosure mt-enclosure-image"&gt;&lt;img alt="Tunnel Details.jpg" src="http://pugio.net/images/Tunnel%20Details.jpg" class="mt-image-center" height="260" width="377"/&gt;&lt;/span&gt;&lt;strong&gt;Step 3, The IPv6 Script&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the IPv6 script, it is documented inside, so follow the steps there and then come back here :-)&lt;/p&gt;
&lt;pre&gt;#!/bin/bash
#######################################################################
# Update the HE (Hurricane Electric) ipv6-tunnel
#######################################################################
# Interfaces to try, in order: en1 = Airport, en0 = Ethernet
MYIFS="en0 en1"

# leave as is
IPCACHE="/Library/Caches/ipv6scriptIP"

# Your Tunnel settings start here
# 1. get HEUSER hash from the website, "UserID"
# 2. get HEPASS hash: echo -n YourPass|md5
# 3. get HETUNNEL from the website, "Global Tunnel ID"
# 4. get other settings from the website

HEUSER=fb3f06c821388858cafe95cea24895d3
HEPASS=420cc447758fe38e9df69a3a17c77c33
HETUNNEL=123456

HETUNEND=216.66.00.00
HEYOUR6END=2001:0123:123a:1234::2
HETHEIR6END=2001:0123:123a:1234::1
HEPREFIX=64

# This is some IP from the "Routed /64" pool, used for outgoing connections from your Mac.
# Should it get blocked by anyone, you can simply change it to any other IP from the pool
# without having to apply for a new tunnel. e.g. if your Routed /64 pool is 
# 2001:0123:123b:1234::/64, you can use this for your IP:

HEMY64IP=2001:0123:123b:1234::0bad:cafe

#######################################################################
# Config end
#######################################################################
# sometimes this script will get executed twice at the same time, not good, so:
if [ -f $IPCACHE.lock ] ; then
  echo A copy already running!
  exit 0
else
 touch $IPCACHE.lock
fi
# This is faster if your router sets a dyndns entry:
#NEW_IP=`dig mycomp.myvnc.com|grep "^mycomp"| grep -Eo "\&lt;[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\&gt;"`
NEW_IP=`curl -s "http://www.networksecuritytoolkit.org/nst/cgi-bin/ip.cgi"`

# Wait for the network...
while [ ! -n "$NEW_IP" ]
do
	sleep 10
  #NEW_IP=`dig mycomp.myvnc.com|grep "^mycomp"| grep -Eo "\&lt;[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\&gt;"`
  NEW_IP=`curl -s "http://www.networksecuritytoolkit.org/nst/cgi-bin/ip.cgi"`
done


OLD_IP=`cat $IPCACHE`
if [ "$NEW_IP" = "$OLD_IP" ] ; then
	CURCONF=`ifconfig |grep $HETUNEND`
   if [ -n "$CURCONF" ] ; then
		echo Nothing to do
		rm $IPCACHE.lock
		exit 0
	fi
fi

echo -n $NEW_IP &gt; $IPCACHE

# if you need to use your public ip address, use LOCAL_IP=$NEW_IP instead
for myif in $MYIFS; do
	LOCAL_IP=`ifconfig $myif |grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}'`
	if [ -n "$LOCAL_IP" ]; then break; fi
done


# let's delete a pre-existing gif0, ignore any errors
ifconfig gif0 deletetunnel
ifconfig gif0 down
ifconfig gif0 inet6 $HEYOUR6END delete
ifconfig gif0 inet6 $HEMY64IP delete
route delete -inet6 default -interface gif0

# update the tunnel
curl -k -s "https://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b=$NEW_IP&amp;pass=$HEPASS&amp;user_id=$HEUSER&amp;tunnel_id=$HETUNNEL"
echo " "

sleep 1
ifconfig gif0 tunnel $LOCAL_IP $HETUNEND
ifconfig gif0 inet6 $HEMY64IP/64 alias
ifconfig gif0 inet6 $HEYOUR6END $HETHEIR6END prefixlen /$HEPREFIX
route -n add -inet6 default $HETHEIR6END

rm $IPCACHE.lock
exit 0&lt;/pre&gt;
&lt;p&gt;[&lt;a href="http://oz4projects.googlecode.com/svn/trunk/ipv6scripts/ipv6script"&gt;download&lt;/a&gt;]&lt;/p&gt;
&lt;p&gt;After adapting the values to your needs, you need to save it in the right place:&lt;br/&gt;&lt;code&gt;sudo vi /usr/local/bin/ipv6script&lt;/code&gt;&lt;br/&gt; Paste your script, and save it with &lt;code&gt;:wq&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Make it executable by typing&lt;br/&gt;&lt;code&gt;sudo chmod +x /usr/local/bin/ipv6script&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 4, Launchd&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now we need to create a LaunchDaemon in Launchd, to do so:&lt;br/&gt;&lt;code&gt;sudo vi /Library/LaunchDaemons/net.pugio.myipv6script.plist&lt;/code&gt;&lt;br/&gt; Paste:&lt;/p&gt;
&lt;pre&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
	&lt;key&gt;Label&lt;/key&gt;
	&lt;string&gt;net.pugio.myipv6script&lt;/string&gt;
	&lt;key&gt;ProgramArguments&lt;/key&gt;
	&lt;array&gt;
		&lt;string&gt;/usr/local/bin/ipv6script&lt;/string&gt;
	&lt;/array&gt;
	&lt;key&gt;RunAtLoad&lt;/key&gt;
	&lt;true/&gt;
	&lt;key&gt;StartInterval&lt;/key&gt;
	&lt;integer&gt;1800&lt;/integer&gt;
	&lt;key&gt;WatchPaths&lt;/key&gt;
	&lt;array&gt;
		&lt;string&gt;/Library/Preferences/SystemConfiguration&lt;/string&gt;
	&lt;/array&gt;
&lt;/dict&gt;
&lt;/plist&gt;&lt;/pre&gt;
&lt;p&gt;[&lt;a href="http://oz4projects.googlecode.com/svn/trunk/ipv6scripts/net.pugio.myipv6script.plist"&gt;download&lt;/a&gt;]&lt;/p&gt;
&lt;p&gt;This will tell Launchd to execute the script on Login, all network changes and every 30 minutes, in case your router gets a new IP. If you are on static IPs, you can remove that timer, just delete these two lines from the file:&lt;br/&gt;&lt;code&gt; &lt;key&gt;StartInterval&lt;/key&gt;&lt;br/&gt; &lt;integer&gt;1800&lt;/integer&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;Finally you have to activate your Lauchd Agent by executing following:&lt;br/&gt;&lt;code&gt;sudo launchctl load /Library/LaunchDaemons/net.pugio.myipv6script.plist&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You should now be able to &lt;code&gt;ping6 pugio.net&lt;/code&gt; - congratulations.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Bug hunting&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Should something go wrong, execute the script by hand:&lt;br/&gt;&lt;code&gt;sudo /usr/local/bin/ipv6script&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This should hopefully show you the error.&lt;br/&gt;&lt;br/&gt;If you find this howto useful, or have anything to contribute to it, please leave a comment or link to this tutorial, thank you :-)&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Updated&lt;/strong&gt; in May 2011 to include fixes from Jason.&lt;/p&gt;</description><link>http://blargasm.com/post/7979365936</link><guid>http://blargasm.com/post/7979365936</guid><pubDate>Wed, 28 Jan 2009 00:00:00 +0100</pubDate><category>ipv6</category><category>tunnelbroker</category><category>osx</category><category>mac</category></item><item><title>Howto enable IPv6, the Teredo way</title><description>&lt;p&gt;Enabling IPv6 on your PC is not as difficult as you think. This is a quick Teredo/Miredo Howto for the most popular operating systems allowing you to penetrate most NATs and Firewalls and most likely allowing you to bypass any blocking or censorship happening at your place. As a free bonus, i will will show you where to access tons of Usenet posts, including binaries over ipv6 for free.&lt;br/&gt; Nota bene: Since Teredo also works from China, you can use it together with the *.sixxs.org proxy to read any of your favourite, blocked sites.&lt;/p&gt;
&lt;p&gt;I also have a &lt;a href="http://pugio.net/2009/01/enable-ipv6-on-mac-os-x-the-tu.html"&gt;tutorial for IPv6 with tunnelbroker.net from HE&lt;/a&gt; for Mac OS X.&lt;br/&gt;&lt;!-- more --&gt;&lt;strong&gt;Windows XP&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WARNING:&lt;/strong&gt; Whatever you do, make sure you have all the latest security patches for remote exploits and your Windows firewall is up, if you use 3rd party, ensure it supports IPv6. &lt;em&gt;Enabling IPv6 will put you on the net&lt;/em&gt;, losing any protection you may have had behind your router’s NAT. At the moment there are not many attacks over ipv6, but this may change any time.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Install&lt;/em&gt;&lt;br/&gt; Open the Terminal with Start -&gt; Run -&gt; cmd&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;netsh interface ipv6 install&lt;/code&gt;&lt;br/&gt;&lt;code&gt; netsh interface ipv6 set teredo client&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;Wait for few moments.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;br/&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Uninstall&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;netsh interface ipv6 uninstall&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;&lt;strong&gt;Windows Vista&lt;/strong&gt;&lt;br/&gt;&lt;em&gt;Install&lt;/em&gt;&lt;br/&gt; IPV6 and Teredo is enabled per default. You can get into the settings by going into the preferences for an network interface. “Obtain an IPv6 address automatically” should do the trick. However, Teredo will disable itself if you have “edge traversal” or outgoing udp packets blocked in your firewall or if your router is a symmetric-nat router (e.g. Speedtouch 780). In that case you have to use a tunnel broker, see comments below.&lt;br/&gt;If you can go to &lt;a href="http://www.ipv6.sixxs.net/"&gt;&lt;a href="http://www.ipv6.sixxs.net/"&gt;http://www.ipv6.sixxs.net/&lt;/a&gt;&lt;/a&gt;, everything works well, if not… well, good luck. I never really got Teredo to work on Vista Business reliably, sometimes it works, most of the time it does not.&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Uninstall&lt;/em&gt;&lt;br/&gt; Add this registry value (“DWORD”) set to 0xFF (long line, double-click, and copy):&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;Or save the two lines in a .reg file and double-click it:&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]&lt;/code&gt;&lt;br/&gt;&lt;code&gt; "DisabledComponents"=dword:000000ff&lt;br/&gt;&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;You can also go to the interface properties of an network interface and deselect the IPv6 protocol for that interface.  To enable IPv6 again, replace dword:&lt;code&gt;000000ff above with dword:&lt;/code&gt;&lt;code&gt;00000000.&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Debian, Ubuntu&lt;br/&gt;&lt;/strong&gt;&lt;em&gt;Install&lt;/em&gt;&lt;br/&gt; On Ubuntu IPv6 is enabled per default, but not configured.&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;sudo apt-get install miredo&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt; Because the default server did not work for me, I had to change it to another one:&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;sudo vi /etc/miredo.conf&lt;/code&gt;&lt;br/&gt;&lt;code&gt;ServerAddress   teredo.ipv6.microsoft.com&lt;/code&gt;&lt;br/&gt;&lt;code&gt; sudo /etc/init.d/miredo restart&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;&lt;em&gt;Uninstall&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;sudo apt-get remove miredo&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;&lt;strong&gt;Fedora, Redhat&lt;/strong&gt;&lt;br/&gt;&lt;em&gt;Install&lt;/em&gt;&lt;br/&gt; About the same as on Ubuntu. On Fedora Core 6 &amp; 7 IPv6 is enabled per default, but not configured. You need to get miredo rpm from the &lt;a href="http://dries.studentenweb.org/rpm/packages/miredo/info.html"&gt;Dries RPM repository&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;sudo rpm -Uvh miredo-*.rpm&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;em&gt;Uninstall&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;sudo rpm -e miredo&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br/&gt;&lt;strong&gt;Mac OS X&lt;/strong&gt;&lt;br/&gt;&lt;em&gt;Install&lt;/em&gt;&lt;br/&gt; Get the Miredo installer from &lt;a href="http://www.deepdarc.com/miredo-osx/"&gt;Miredo-Osx&lt;/a&gt;, and install it. If you are lucky, that’s it. if not, try changing the server, see Debian howto above.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Uninstall&lt;/em&gt;&lt;br/&gt; If you want to uninstall, execute the &lt;code&gt;uninstall-miredo.command&lt;/code&gt; script, located in the &lt;code&gt;/Applications/Utilities&lt;/code&gt; folder.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Checking if everything is working&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;On the terminal type:&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;ping6 pugio.net&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;In browser come back to this page, there should be a pin-up girl in lower right corner telling you that you have IPv6 and give you some more info if you click her… If you can ping6 but can’t visit ipv6 websites, check your Firefox &lt;code&gt;network.dns.disableIPv6&lt;/code&gt; setting, did you set it to true previously?&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;&lt;strong&gt;Cool stuff&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.sixxs.net/tools/ipv6calc/"&gt;Getting details about your IPv6 connection&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Accessing blocked, censored Websites or just for fun:
&lt;blockquote&gt;&lt;a href="http://en.wikipedia.org.sixxs.org/"&gt;&lt;a href="http://en.wikipedia.org.sixxs.org/"&gt;http://en.wikipedia.org.sixxs.org/&lt;/a&gt;&lt;/a&gt;&lt;a href="http://slashdot.org.sixxs.org/"&gt;&lt;br/&gt; &lt;a href="http://slashdot.org.sixxs.org/"&gt;http://slashdot.org.sixxs.org/&lt;/a&gt;&lt;/a&gt;&lt;/blockquote&gt;
(You can access any Website over ipv6 by appending &lt;code&gt;.sixxs.org&lt;/code&gt; to the domain)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.sixxs.net/misc/coolstuff/"&gt;“Cool stuff” to do with IPv6&lt;/a&gt; I like the part about Usenet over IPv6&lt;/li&gt;
&lt;/ul&gt;</description><link>http://blargasm.com/post/7979540039</link><guid>http://blargasm.com/post/7979540039</guid><pubDate>Fri, 06 Jul 2007 00:00:00 +0200</pubDate></item><item><title>PHP snipplet for detecting users with IPv6</title><description>&lt;p&gt;Should I ever need to detect with PHP if a user has IPv6, this code snipplet should do the job:&lt;/p&gt;
&lt;pre class="prettyprint"&gt;&lt;?php
$ip = getenv ("REMOTE_ADDR");
if (substr_count($ip,":") &gt; 0
    &amp;&amp; substr_count($ip,".") == 0) {
 echo 'You are using &lt;a '
  .'href="http://www.dnsstuff.com/tools/whois.ch?ip='
  . $ip . '"&gt; IPv6 &lt;/a&gt;';
} else {
  echo "You are using IPv4";
}
?&gt;&lt;/pre&gt;</description><link>http://blargasm.com/post/7979598910</link><guid>http://blargasm.com/post/7979598910</guid><pubDate>Wed, 04 Apr 2007 00:00:00 +0200</pubDate></item></channel></rss>

