<?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>dopefish.de &#187; Internet Stuff</title>
	<atom:link href="http://www.dopefish.de/archives/category/internet-stuff/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dopefish.de</link>
	<description>Headquaters of the evil genius</description>
	<lastBuildDate>Mon, 23 Jan 2012 13:34:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to build an efficient GeoIP SQL table</title>
		<link>http://www.dopefish.de/archives/1037</link>
		<comments>http://www.dopefish.de/archives/1037#comments</comments>
		<pubDate>Mon, 22 Aug 2011 19:17:48 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[GeoIP]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=1037</guid>
		<description><![CDATA[This here is a very handy little script I threw together to generate a geoip.sql table for quickly determining which country a IP is from. I already hear you saying &#8220;Just convert the IP to an INT and use BETWEEN, how hard can it be&#8221;. And you are right, that works. And it may even [...]]]></description>
			<content:encoded><![CDATA[<p>This here is a very handy little script I threw together to generate a geoip.sql table for quickly determining which country a IP is from. I already hear you saying &#8220;Just convert the IP to an INT and use BETWEEN, how hard can it be&#8221;. And you are right, that works. And it may even be your easiest solution, but it just isn&#8217;t fast. And if you are planning on hammering the table with thousands of queries you are going to end up looking for something fast.</p>
<p>A while back I found a very interesting posting at www.<a href="http://jcole.us/blog/archives/2007/11/24/on-efficiently-geo-referencing-ips-with-maxmind-geoip-and-mysql-gis/" target="_blank">jcole.us</a>&nbsp;that described how to use <a href="http://dev.mysql.com/doc/refman/5.0/en/creating-spatial-indexes.html" target="_blank">Spacial Indexes</a>&nbsp;together with <a href="http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions.html" target="_blank">MySQL&#8217;s GIS</a> to speed up the queries. The posting has been online for a while and both it and the replies are worth reading.</p>
<p>All I did was make a small bash script to download the current &#8220;lite&#8221; version of GeoIP CSV file from maxmind.com, use the information from the posting to throw/transform it into a local database table and dump out a .sql file that can be easily imported into any other database. The script isn&#8217;t failproof though, it expects your user to be able to use mysql and have permission to create databases/tables and &#8220;load data local infile&#8221;.</p>
<p><strong><a href="http://dopefish.de/bash/generate_geoip_sql.sh" target="_blank">generate_geoip_sql.sh</a></strong></p>

<div class="my_syntax_box"><span class="my_syntax_selecall"><a href="javascript:;" onclick="selectCode(this); return false;">Select All</a> </span><span class="my_syntax_Bar">Code:</span><div class="my_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#===============================================================================</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#          FILE: generate_geoip_sql.sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#         USAGE: ./generate_geoip_sql.sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#   DESCRIPTION: Generates a optimized sql dump with geoipdata from maxmind.com</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#         USAGE: import sql into a database</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#  REQUIREMENTS: mysql database rights to create databases and LOAD DATA LOCAL INFILE</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#       EXAMPLE:</span>
<span style="color: #666666; font-style: italic;">#                 SELECT country_code,country_name</span>
<span style="color: #666666; font-style: italic;">#                 FROM   geo_ip</span>
<span style="color: #666666; font-style: italic;">#                 WHERE  MBRCONTAINS(ip_poly, POINTFROMWKB(POINT(INET_ATON('1.2.3.4'), 0)))</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#                 SELECT country_code,country_name</span>
<span style="color: #666666; font-style: italic;">#                 FROM   geo_ip</span>
<span style="color: #666666; font-style: italic;">#                 WHERE  INET_ATON('1.2.3.4') </span>
<span style="color: #666666; font-style: italic;">#                 BETWEEN ip_from AND ip_to;</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#        AUTHOR:  Ryan Schulze (rs), ryan@dopefish.de</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#===============================================================================</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-o</span> nounset                              <span style="color: #666666; font-style: italic;"># Treat unset variables as an error</span>
&nbsp;
<span style="color: #007800;">CSVFile</span>=<span style="color: #ff0000;">&quot;GeoIPCountryWhois.csv&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #800000;">${CSVFile}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
  <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-en</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #007800;">${CSVFile}</span> already exists, download a newer version? [Y/n]: &quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">read</span> answer
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(echo $answer|tr &quot;N&quot; &quot;n&quot;)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;n&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
  <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #800000;">${CSVFile}</span>
  <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-e</span> <span style="color: #800000;">${CSVFile}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #007800;">tmpfile</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">mktemp</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
  <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-O</span> <span style="color: #800000;">${tmpfile}</span> http:<span style="color: #000000; font-weight: bold;">//</span>geolite.maxmind.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>geoip<span style="color: #000000; font-weight: bold;">/</span>database<span style="color: #000000; font-weight: bold;">/</span>GeoIPCountryCSV.zip
  <span style="color: #c20cb9; font-weight: bold;">unzip</span> <span style="color: #800000;">${tmpfile}</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #800000;">${tmpfile}</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>generating geoip.sql&quot;</span>
&nbsp;
mysql <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;create database if not exists temp&quot;</span>
mysql <span style="color: #660033;">-D</span> temp <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;drop table if exists geo_ip&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'
CREATE TABLE geo_ip
(
  id           INT UNSIGNED  NOT NULL auto_increment,
  ip_poly      POLYGON       NOT NULL,
  ip_from      INT UNSIGNED  NOT NULL,
  ip_to        INT UNSIGNED  NOT NULL,
  country_code CHAR(2)       NOT NULL,
  country_name CHAR(50)      NOT NULL,
  PRIMARY KEY (id),
  SPATIAL INDEX (ip_poly)
);
LOAD DATA LOCAL INFILE &quot;GeoIPCountryWhois.csv&quot;
INTO TABLE geo_ip
FIELDS
  TERMINATED BY &quot;,&quot;
  ENCLOSED BY &quot;\&quot;&quot;
LINES
  TERMINATED BY &quot;\n&quot;
(
  @ip_from_string, @ip_to_string,
  @ip_from, @ip_to,
  @country_code, @country_string
)
SET
  id      := NULL,
  ip_from := @ip_from,
  ip_to   := @ip_to,
  ip_poly := GEOMFROMWKB(POLYGON(LINESTRING(
    /* clockwise, 4 points and back to 0 */
    POINT(@ip_from, -1), /* 0, top left */
    POINT(@ip_to,   -1), /* 1, top right */
    POINT(@ip_to,    1), /* 2, bottom right */
    POINT(@ip_from,  1), /* 3, bottom left */
    POINT(@ip_from, -1)  /* 0, back to start */
  ))),
  country_code := @country_code,
  country_name := @country_string
;
'</span> <span style="color: #000000; font-weight: bold;">|</span> mysql <span style="color: #660033;">-D</span> temp
&nbsp;
mysqldump <span style="color: #660033;">--opt</span> temp geo_ip <span style="color: #000000; font-weight: bold;">&gt;</span> geoip.sql
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>done generating geoip.sql&quot;</span></pre></td></tr></table></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/1037/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtualbox update</title>
		<link>http://www.dopefish.de/archives/860</link>
		<comments>http://www.dopefish.de/archives/860#comments</comments>
		<pubDate>Wed, 27 Apr 2011 23:01:11 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=860</guid>
		<description><![CDATA[Anyone running Ubuntu as a Virtualbox guest is advised to update to Virtualbox 4.0.6 (+ the extensions) that was released today.  Don&#8217;t forget to recompile the guest additions after upgrading to 4.0.6. Besides the usual stuff in the changelog, the update fixes a problem with screen resolution in Ubuntu 11.04. Since the Ubuntu update is [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone running Ubuntu as a Virtualbox guest is advised to update to Virtualbox 4.0.6 (+ the extensions) that was released today.  Don&#8217;t forget to recompile the guest additions after upgrading to 4.0.6. Besides the usual stuff in the changelog, the update fixes a problem with screen resolution in Ubuntu 11.04. Since the Ubuntu update is just around the corner updating Virtualbox beforehand will prevent a bit of hassle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/860/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wireless bridge &amp; dd-wrt</title>
		<link>http://www.dopefish.de/archives/814</link>
		<comments>http://www.dopefish.de/archives/814#comments</comments>
		<pubDate>Fri, 18 Mar 2011 04:57:20 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[bridge]]></category>
		<category><![CDATA[dd-wrt]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tftp]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[wlan]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=814</guid>
		<description><![CDATA[I recently bought the  WL-330gE_M from Asus. It is a pair of access points pre-configured to bridge 2 LAN networks via wireless, all you have to do is take them out of the box and plug them in, straightforward and simple, no configuration needed. They are intended to enable hooking up devices to the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently bought the  WL-330gE_M from Asus. It is a pair of access points pre-configured to bridge 2 LAN networks via wireless, all you have to do is take them out of the box and plug them in, straightforward and simple, no configuration needed. They are intended to enable hooking up devices to the internet that don&#8217;t have wireless and without pulling cables through the house (e.g. dvd player, TV, cable box, &#8230;).</p>
<p>The package arrived last week and it was a matter of minutes plugging the devices in and having everything working.  Everything worked without any setup, took me longer to get them out of the box than to hook them up.</p>
<p style="text-align: center;"><img class="size-full wp-image-821 aligncenter" style="background: #f3f5df;" title="Network" src="http://www.dopefish.de/wp-content/uploads/2011/03/20110318_network.png" alt="" width="550" height="342" /></p>
<p>&nbsp;</p>
<p>Unfortunately our network storage (NAS) is also on the other end of this wireless bridge, and I noticed that when I move large files around (&gt;2GB) or while streaming video/audio off the NAS the connection was dropping out. I don&#8217;t mean &#8220;ups and downs in the speeed&#8221; that is to be expected over wireless, I mean &#8220;connections resetting, copy actions aborting with error messages&#8221;. Not fun. Unfortunately since the devices are geared toward the &#8220;no configuration necessary, just unpack and hook up&#8221; crowd, there is no webinterface to see a syslog of what is happening or changing settings. Nada.</p>
<p>After this happening a few times it got really frustrating. I can live with slow, but connections dropping is out of the question. My original plan was to just reset the devices, flash them with a WL-330gE firmware and reconfigure the bridging (the only difference I could find was that the WL-330gE_M is black and not white, and comes preconfigured, and probably has a slightly different firmware without management capabilities).  While I was looking at different options and possibilities I went over to <a href="http://www.dd-wrt.com/site/index" target="_blank">dd-wrt</a> and happily saw that the WL-330gE was supported in the <a href="http://www.dd-wrt.com/site/support/router-database">router database</a>. So I decided if I was going to mess around with firmware, I could just as well throw dd-wrt on it.</p>
<p>Even though I am a system administrator, I don&#8217;t have the urge to have every device in the house running on Linux with a shell I can ssh in to. I&#8217;m perfectly fine with a simple interface that does what I want it to. But the <a href="http://www.dd-wrt.com/wiki/index.php/Advanced_wireless_settings" target="_blank">wireless settings I can fine tune</a> in dd-wrt are priceless (especially since I wanted to debug and fix the connection dropouts), normally you only get these options with cisco grade hardware.</p>
<p>The firmware upgrade process of the devices is simple and straightforward. Pull and reapply power with the reset button pressed until the power LED starts flashing, then shove the new firmware onto the device via tftp. Either with the &#8220;Firmware Restoration&#8221; tool from asus, or with a normal tftp client. I used later. Since this is so straightforward I guess I could also switch over to the official firmware if I wanted to, making two WL-330gE out of the WL-330gE_M pair (saves money since the pair is cheaper that buying two separately).</p>
<p>When in recovery mode (waiting for someone to tftp a new firmware onto it), the device has the IP 192.168.1.220 by default. This is just a rough summary of the steps, anyone wanting to do this should really read through the whole process of <a href="http://dd-wrt.com/wiki/index.php/Asus_TFTP_Flash#Commandline_-_Asus_WL-500_series_example" target="_blank">deploying dd-wrt with asus</a>, there is important information there (even if the example is a WL500, the WL330 is similar). Just because it worked for my hardware,firmware,setup doesn&#8217;t mean you have the same hardware or are deploying the same version I did. Read the <a href="http://dd-wrt.com/wiki/index.php/Installation" target="_blank">dd-wrt documentation</a> before you brick your device.</p>
<p>Clear current settings from the nvram:</p>

<div class="my_syntax_box"><span class="my_syntax_selecall"><a href="javascript:;" onclick="selectCode(this); return false;">Select All</a> </span><span class="my_syntax_Bar">Code:</span><div class="my_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tftp 192.168.1.220</span>
tftp<span style="color: #000000; font-weight: bold;">&gt;</span> mode binary
tftp<span style="color: #000000; font-weight: bold;">&gt;</span> put wl500g-clear-nvram.trx</pre></div></div></div>

<p>Wait 5 min, reboot into recovery, throw a dd-wrt firmware on the device ( I used DD-WRT v24-sp2 (08/12/10) mini &#8211; build 14929, standard works fine too).</p>

<div class="my_syntax_box"><span class="my_syntax_selecall"><a href="javascript:;" onclick="selectCode(this); return false;">Select All</a> </span><span class="my_syntax_Bar">Code:</span><div class="my_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tftp 192.168.1.220</span>
tftp<span style="color: #000000; font-weight: bold;">&gt;</span> mode binary
tftp<span style="color: #000000; font-weight: bold;">&gt;</span> put dd-wrt.v24_mini_generic.bin</pre></div></div></div>

<p>Wait 5 mins, reboot and open http://192.168.1.1 To be on the safe side feel free to navigate to Administration -&gt; Factory Defaults to make sure no junk was left behind.  To get bridging configured there are <a title="DD WRT Repeating mode comparisions" href="http://www.dd-wrt.com/wiki/index.php/Repeating_Mode_Comparisons" target="_blank">multiple possibilites</a> depending on your needs. For plain LAN bridging you will probably want WDS or one device setup as a AP and the second as a Client Bridge (I used the latter option). One thing you will want to do is go to Setup -&gt; Networking and set the WAN port to &#8220;disabled&#8221; since the device only has LAN and Wireless.</p>
<p>The rest is fairly ease, set up one device as an AP, chose WPA2 with a good long strong PSK. After testing if the AP works with e.g. a laptop, you can set up the 2nd device as a Client Bridge, just make sure you are on the same channel, same SSID, same security settings.  After everything is up and running now would be a good time to pull backups from the configuration. Might as well tweak around in the wireless advanced settings. If you mess up anything badly enough that it won&#8217;t connect again &#8230; well that is why you made the configuration backups <img src='http://www.dopefish.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>As you probably guessed by now, the connection drops are gone, connection is smooth and stable. Peak speed is not quite as fast as before because I throttled some things and tweaked settings for stability, but still good. Turning the TX antenna output power from 71 down to 65 helped a lot and got the maximum out of the connection (probably less crap pulling my SNR down). And now I can see what the access point is doing and where problems are when they arise <img src='http://www.dopefish.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/814/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows reinstall and Adobe fun</title>
		<link>http://www.dopefish.de/archives/723</link>
		<comments>http://www.dopefish.de/archives/723#comments</comments>
		<pubDate>Sun, 24 Oct 2010 11:11:09 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[Photomatix]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Sony Vegas]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=723</guid>
		<description><![CDATA[I never got around to posting it, but a few weeks back the hard drive of my PC with Windows on it died &#8230; a little bit. Technically a large chunk of the harddrive is simply unaccessable. after poking and pushing I at least got windows to boot up again, but a large part of [...]]]></description>
			<content:encoded><![CDATA[<p>I never got around to posting it, but a few weeks back the hard drive of my PC with Windows on it died &#8230; a little bit. Technically a large chunk of the harddrive is simply unaccessable. after poking and pushing I at least got windows to boot up again, but a large part of the software was dead. I bough a new drive and went through the fun process of installing a fresh windows, patching it, and then installing all the software again.</p>
<p>I didn&#8217;t get around to installing my video and picture software on the new windows until this morning, and it turned out to be lots of fun. Due to pure luck I found the license key for sony vegas (it is shown in the splash screen when starting up, shortly before it crashes due to my harddisk malfunction). Any Photomatix was where I keep most licenses stored. But my Photoshop license was more of a challenge. Adobe only allows 2 activated copies of the software per license, activated copies are bound to hardware &#8230; you probably see where this is going. I couldn&#8217;t deactivate the old installation since the harddrive was kinda dead, and the new installation says &#8220;different hardware (new harddrives), must be a different computer&#8221;. Yay, fun. The bright side was that the support was easily contacted and they could reset the activation counter (after lecturing me about using it on &#8220;2 computers&#8221; and deactivating, bla bla bla). I learned one thing: the more expensive the software, the more problems you have with licenses. A shame I never liked Gimp for photo editing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/723/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XEN and Kernel update</title>
		<link>http://www.dopefish.de/archives/630</link>
		<comments>http://www.dopefish.de/archives/630#comments</comments>
		<pubDate>Fri, 30 Apr 2010 08:39:05 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[backport]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=630</guid>
		<description><![CDATA[Server is up and running again. This morning I finished the xen (3.4) and kernel (2.6.32) updates I prepared yesterday evening. The only pitfall I stumbled across, was that the kernel in the debian repository (2.6.26-xen) seemingly wasn't compatible with the latest xen in the debian repository (system would hang while booting, I guess that's what I get for using "testing"). Here are a few tips to make the transition a breeze ....]]></description>
			<content:encoded><![CDATA[<p>Server is up and running again. This morning I finished the xen (3.4) and kernel (2.6.32) updates I prepared yesterday evening. The only pitfall I stumbled across, was that the kernel in the debian repository (2.6.26-xen) seemingly wasn&#8217;t compatible with the latest xen in the debian repository (system would hang while booting, I guess that&#8217;s what I get for using &#8220;testing&#8221;).</p>
<p>Anyway, anyone using &#8220;lenny&#8221; or &#8220;testing&#8221; and wanting to update xen; here are a few tips to make the transition a breeze:</p>
<ul>
<li>The <a href="http://wiki.debian.org/Xen">debian wiki</a> is full of useful information regarding xen</li>
<li><a href="http://www.backports.org/dokuwiki/doku.php?id=instructions">backports.org</a> has a current xen kernel (linux-image-2.6.32-bpo.4-xen-amd64) that works fine with xen 3.4, just follow the instructions on backports.org on how to add it to apt.</li>
<li>I had to deactivate the &#8220;vfb&#8221; (VNC console) setting in the domU config files to get my guests to boot, browsing the Internet I saw people having the same problem with the &#8220;dhcp&#8221; setting.</li>
<li>If you are planning on updating the guests kernels too (advised), remember to change the &#8220;kernel&#8221; and &#8220;ramdisk&#8221; settings in the domU config files accordingly</li>
</ul>
<p>With these few points in mind, the update is a breeze.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/630/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>United-Domains offers world map for &#8220;bloggers&#8221;</title>
		<link>http://www.dopefish.de/archives/282</link>
		<comments>http://www.dopefish.de/archives/282#comments</comments>
		<pubDate>Mon, 23 Mar 2009 06:50:42 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Map]]></category>
		<category><![CDATA[TLD]]></category>
		<category><![CDATA[United-Domains]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=282</guid>
		<description><![CDATA[
http://www.united-domains.de is currently (till march 31st) offering free world maps with TLDs printed in the countries to bloggers who fullfill a few criteria. nothing wild, basicaly you just have to spread the word about the event, make sure the links appear in the posting and send them a mail. easy  
The offer is good [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-277" title="United Domains Karte" src="http://www.dopefish.de/wp-content/imagescaler/baff40a50ee110755784ccdf3f73d32a.jpg" alt="United Domains Karte" width="500" height="256" imagescaler="http://www.dopefish.de/wp-content/imagescaler/baff40a50ee110755784ccdf3f73d32a.jpg" /><br />
<a href="http://www.united-domains.de ">http://www.united-domains.de</a> is currently (till march 31st) offering free world maps with TLDs printed in the countries to bloggers who fullfill a few criteria. nothing wild, basicaly you just have to spread the word about the event, make sure the links appear in the posting and send them a mail. easy <img src='http://www.dopefish.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The offer is good as long as supplies last, so with some luck I may still get one. Cool. Have a look for yourself <a href="http://www.domain-karte.de ">http://www.domain-karte.de</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/282/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free vServer during beta phase</title>
		<link>http://www.dopefish.de/archives/271</link>
		<comments>http://www.dopefish.de/archives/271#comments</comments>
		<pubDate>Sat, 07 Mar 2009 14:58:24 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[euserv]]></category>
		<category><![CDATA[i7g5$fEm]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[vServer]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=271</guid>
		<description><![CDATA[I just stumbled accross this website: https://ssl.euserv.de/produkte/vserver/betatest.php where you can order a vServer for free during the beta phase. The beta phase is planned to last till the end of 2009. For more details, have a look at the link (there are a few thing not allowed to use the server for, mainly high traffic [...]]]></description>
			<content:encoded><![CDATA[<p>I just stumbled accross this website: <a href="https://ssl.euserv.de/produkte/vserver/betatest.php">https://ssl.euserv.de/produkte/vserver/betatest.php</a> where you can order a vServer for free during the beta phase. The beta phase is planned to last till the end of 2009. For more details, have a look at the link (there are a few thing not allowed to use the server for, mainly high traffic and illegal stuff).</p>
<p>An order key is required, just have a look at the tags of this posting &#8230;. one of them is a bit &#8220;strange&#8221; <img src='http://www.dopefish.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/271/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>website IP, Deviant Art</title>
		<link>http://www.dopefish.de/archives/265</link>
		<comments>http://www.dopefish.de/archives/265#comments</comments>
		<pubDate>Tue, 24 Feb 2009 19:51:34 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[deviant art]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[Foto]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=265</guid>
		<description><![CDATA[Sorry for the problem with the website. Seems my DNS Provider decided to do a rollback and the old IP was active for dopefish.de (www.dopefish.de still worked). Both DNS entries now point to the new IP again.
In my last posting I forgot to mention I set up an account over at Deviant Art where I [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry for the problem with the website. Seems my DNS Provider decided to do a rollback and the old IP was active for dopefish.de (www.dopefish.de still worked). Both DNS entries now point to the new IP again.</p>
<p>In my last posting I forgot to mention I set up an account over at <a href="http://d0py.deviantart.com/gallery/#_browse">Deviant Art</a> where I am posting pictures of mine I actually find worthwhile looking at. Not that I find the rest of my pictures outright bad, but they are more average and sorted by events/vacations. The ones I post at Deviant Art are pictures I find are above (my) average and worth the time to have a look. Currently not too many, but the collection will hopefully grow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/265/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mythtv Update &amp; New online games</title>
		<link>http://www.dopefish.de/archives/260</link>
		<comments>http://www.dopefish.de/archives/260#comments</comments>
		<pubDate>Thu, 05 Feb 2009 10:27:09 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Kingsage]]></category>
		<category><![CDATA[Myth]]></category>
		<category><![CDATA[MythTV]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=260</guid>
		<description><![CDATA[Last weekend my htpc didn&#8217;t record a show it should have, turned out it couldn&#8217;t fetch EPG data anymore (and therefore didn&#8217;t know the show was running, I should have it email me if it completely runs out of EPG data). Anyway, I thought updating the system would be a good idea &#8230; fixing EPG [...]]]></description>
			<content:encoded><![CDATA[<p>Last weekend my htpc didn&#8217;t record a show it should have, turned out it couldn&#8217;t fetch EPG data anymore (and therefore didn&#8217;t know the show was running, I should have it email me if it completely runs out of EPG data). Anyway, I thought updating the system would be a good idea &#8230; fixing EPG was easy, fixing the stuff the update broke took me 2 days. The solution was easy, restore the original /etc/X11/xorg.conf since the one the update generated kinda broke GLX on my Nvidia 6200 which resulted in the wierdest problems. The Myth GUI worked partially, live TV etc. was no problem, but the menus didn&#8217;t show (or only parts showed).  The first step was to chmod -x the script myth uses to shutdown the pc, you have aboud 15 second to do so after the pc has started because of  &#8220;ok, I&#8217;m running &#8230; ok, the frontend stopped(crashed), I&#8217;ll shutdown in 15 seconds&#8221;.  After finding out, that the new xorg.conf from ubuntu 8.10 sucks for me, the solution was an easy &#8220;<span style="color: #0000ff;">cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup &amp;&amp; cp /etc/X11/xorg.conf.old /etc/X11/xorg.conf</span>&#8221;</p>
<p>I started plaing a new browsergame this week, <a href="http://kingsage.de/">Kings Age</a>. It&#8217;s a simple&#8221;build cities, expand, fight&#8221; thing. But the graphics are ok, and it&#8217;s easy to play (log in once a day and put some actions in the queue).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/260/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving Exim/Spamassassin/Cyrus -&gt; Debian config</title>
		<link>http://www.dopefish.de/archives/231</link>
		<comments>http://www.dopefish.de/archives/231#comments</comments>
		<pubDate>Sun, 28 Dec 2008 12:03:33 +0000</pubDate>
		<dc:creator>dopefish</dc:creator>
				<category><![CDATA[Internet Stuff]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[cyrus]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://www.dopefish.de/?p=231</guid>
		<description><![CDATA[I&#8217;ve been putting off moving my mail system to the new server for a few weeks now since the old system was configured from scratch using the original config files and not the debian style config files. The differences in the Exim config are extreme. Debian splits the one large config file into lots of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been putting off moving my mail system to the new server for a few weeks now since the old system was configured from scratch using the original config files and not the debian style config files. The differences in the Exim config are extreme. Debian splits the one large config file into lots of smaller files. This is great if: you never worked with exim before, you aren&#8217;t trying to migrate an existing configuration that is in one large file, and you don&#8217;t have all kinds of custom stuff like imap, spamassassin, greylisting mixed in. Yeah, not me. Even though I find the &#8220;one large file&#8221; a whole lot faster and easier to read, the Debian way has one big advantage: it is way easier for external scripts and packages to drop their custom config into exim. They just add a file to the right directory and thats it.</p>
<p>So I decided to go for it and merge my custom stuff into the Debain config. Greylisting worked out-of-the-box, spamassassin needed some minor tweaks, exim was (more or less) easy. The p.i.t.a. with exim is when you know exactly what is missing and where it would be configured, but because of &#8220;smart debian scripts&#8221; you have to find some config in an unrelated script and put the value there so it gets put in the right placeholder.</p>
<p>Here is a little summary in case I ever do this again and need to see if I forgot something:<br />
- cyrus: copy /var/spool/cyrus/mail/ , /var/lib/cyrus/user/ , use cyradm to add the user.blargh account and /usr/sbin/cyrreconstruct -rf user (don&#8217;t forget the sieve filters)<br />
- getmail: nothing special here, just copy config and add cronjob<br />
- spamassassin: alter exim acl to set noscan for auth&#8217;d connections and have spamassassin scan everything not &#8220;noscan&#8221; (because per default local mail isn&#8217;t scanned, that includes everything we pick up via getmail)<br />
- exim: check update-exim4.conf.conf for stupid entries, remember to turn on TLS (imap can use the same certificates), since we are using sasl for imap, have smtp auth use the same database (plain_saslauthd_server), turn on TLS by creating a file conf.d/main/00_exim4-config_localmacros with &#8220;MAIN_TLS_ENABLE = true&#8221; in it</p>
<p>Now that I&#8217;m done I found a pretty detailed German website with steps to set up such a system <a href="http://www.fendt.net/drupal/node/44">E-Mail-Server mit Debian, Exim und Cyrus</a>. I did the exim router/transports a bit differently to have a bit more control over what goes where when. Still, defiantly worth reading if you are thinking about building such a system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dopefish.de/archives/231/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.dopefish.de @ 2012-02-08 11:02:29 by W3 Total Cache -->
