<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>.::ich-wars-nicht.ch::. &#187; Serveradministration</title>
	<atom:link href="http://blog.ich-wars-nicht.ch/category/serveradministration/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ich-wars-nicht.ch</link>
	<description>yet another blog about technology, linux, and everyday life...</description>
	<lastBuildDate>Sun, 22 Jan 2012 22:59:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
		<item>
		<title>Show MySQL Storage Engines</title>
		<link>http://blog.ich-wars-nicht.ch/2011/04/show-mysql-storage-engines/</link>
		<comments>http://blog.ich-wars-nicht.ch/2011/04/show-mysql-storage-engines/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 13:09:00 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=3127</guid>
		<description><![CDATA[If you have ever wanted to know the storage engine type of every table in one of your MySQL databases, you know how tedious that can be. I have written a Python script that will simplify that task. You can get it on Github. Usage: $ ./show-engines.py or $ python show-engines.py Download: https://github.com/gwrtheyrn/MySQL-Show-Storage-Engines]]></description>
			<content:encoded><![CDATA[<p>If you have ever wanted to know the storage engine type of every table in one of your MySQL databases, you know how tedious that can be.</p>
<p>I have written a Python script that will simplify that task. You can get it on <a href="https://github.com/gwrtheyrn/MySQL-Show-Storage-Engines">Github</a>.</p>
<h3>Usage:</h3>
<p>
<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">$ ./show-engines.py</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">$ python show-engines.py</pre></div></div>

</p>
<h3>Download:</h3>
<p><a href="https://github.com/gwrtheyrn/MySQL-Show-Storage-Engines">https://github.com/gwrtheyrn/MySQL-Show-Storage-Engines</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2011/04/show-mysql-storage-engines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Change MySQL Database Encoding</title>
		<link>http://blog.ich-wars-nicht.ch/2010/06/change-mysql-database-encoding/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/06/change-mysql-database-encoding/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 11:10:32 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2421</guid>
		<description><![CDATA[After getting the MySQL Database encoding, you might want to change it. To change table column encoding: ALTER TABLE artists CHANGE &#91;fieldname&#93; &#91;fieldname&#93; &#91;fieldtype&#93; CHARACTER SET &#91;encoding&#93; COLLATE &#91;collation&#93;; To change table encoding: ALTER TABLE &#91;tablename&#93; CONVERT TO CHARACTER SET &#91;encoding&#93; COLLATE &#91;collation&#93;; To change database encoding: ALTER DATABASE &#91;dbname&#93; CHARACTER SET &#91;encoding&#93; COLLATE &#91;collation&#93;;]]></description>
			<content:encoded><![CDATA[<p>After <a href="http://blog.ich-wars-nicht.ch/2009/08/show-mysql-database-encoding/">getting the MySQL Database encoding</a>, you might want to change it.</p>
<p>To change table column encoding:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">ALTER</span> <span style="color: #990099; font-weight: bold;">TABLE</span> artists
CHANGE <span style="color: #FF00FF;">&#91;</span>fieldname<span style="color: #FF00FF;">&#93;</span> <span style="color: #FF00FF;">&#91;</span>fieldname<span style="color: #FF00FF;">&#93;</span> <span style="color: #FF00FF;">&#91;</span>fieldtype<span style="color: #FF00FF;">&#93;</span>
CHARACTER <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #FF00FF;">&#91;</span>encoding<span style="color: #FF00FF;">&#93;</span>
<span style="color: #CC0099; font-weight: bold;">COLLATE</span> <span style="color: #FF00FF;">&#91;</span><span style="color: #000099;">collation</span><span style="color: #FF00FF;">&#93;</span><span style="color: #000033;">;</span></pre></div></div>

<p>To change table encoding:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">ALTER</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #FF00FF;">&#91;</span>tablename<span style="color: #FF00FF;">&#93;</span>
<span style="color: #990099; font-weight: bold;">CONVERT</span> <span style="color: #990099; font-weight: bold;">TO</span> CHARACTER <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #FF00FF;">&#91;</span>encoding<span style="color: #FF00FF;">&#93;</span>
<span style="color: #CC0099; font-weight: bold;">COLLATE</span> <span style="color: #FF00FF;">&#91;</span><span style="color: #000099;">collation</span><span style="color: #FF00FF;">&#93;</span><span style="color: #000033;">;</span></pre></div></div>

<p>To change database encoding:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">ALTER</span> <span style="color: #990099; font-weight: bold;">DATABASE</span> <span style="color: #FF00FF;">&#91;</span>dbname<span style="color: #FF00FF;">&#93;</span>
CHARACTER <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #FF00FF;">&#91;</span>encoding<span style="color: #FF00FF;">&#93;</span>
<span style="color: #CC0099; font-weight: bold;">COLLATE</span> <span style="color: #FF00FF;">&#91;</span><span style="color: #000099;">collation</span><span style="color: #FF00FF;">&#93;</span><span style="color: #000033;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/06/change-mysql-database-encoding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Mediawiki 404 Page Not Found Error</title>
		<link>http://blog.ich-wars-nicht.ch/2010/06/mediawiki-404-page-not-found-error/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/06/mediawiki-404-page-not-found-error/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 09:29:56 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[page not found]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2406</guid>
		<description><![CDATA[I recently installed a MediaWiki installation on my IIS. Most of it worked, but every time i wanted to create a new page or click on a red link, instead of the &#8220;edit this article&#8221; page, a &#8220;404 page not found&#8221; error was shown. This is a problem with IIS misconfiguration, see Bug 18270 in [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed a MediaWiki installation on my IIS. Most of it worked, but every time i wanted to create a new page or click on a red link, instead of the &#8220;edit this article&#8221; page, a &#8220;404 page not found&#8221; error was shown.</p>
<p>This is a problem with IIS misconfiguration, see <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=18270">Bug 18270</a> in the wikimedia bugzilla. <a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=18270#c19">Comment 19</a> solves this issue:</p>
<blockquote><p>Got to IIS Manager.<br />
Open Web Sites.<br />
Right click on the website and select Properties.<br />
Go to the Custom Errors tab.<br />
Scroll down to the 404 error, select it and click the &#8220;Set to Default&#8221; button.</p></blockquote>
<p>Hope this will help someone <img src='http://blog.ich-wars-nicht.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/06/mediawiki-404-page-not-found-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Change Linux UID/GID</title>
		<link>http://blog.ich-wars-nicht.ch/2010/03/change-linux-uidgid/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/03/change-linux-uidgid/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 17:07:56 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[gid]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[uid]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2271</guid>
		<description><![CDATA[Log in with another user than the one to be edited or reboot into recovery mode and enter the following commands: usermod -u &#60;new-UID&#62; &#60;old-username&#62; groupmod -g &#60;new-GID&#62; &#60;old-groupname&#62; find / -user &#60;old-UID&#62; -exec chown &#60;new-UID&#62; &#123;&#125; \; find / -group &#60;old-GID&#62; -exec chgrp &#60;new-GID&#62; &#123;&#125; \; Warning: Use on your own risk. This change [...]]]></description>
			<content:encoded><![CDATA[<p>Log in with another user than the one to be edited or reboot into recovery mode and enter the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">usermod <span style="color: #660033;">-u</span> <span style="color: #000000; font-weight: bold;">&lt;</span>new-UID<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>old-username<span style="color: #000000; font-weight: bold;">&gt;</span>
groupmod <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">&lt;</span>new-GID<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>old-groupname<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-user</span> <span style="color: #000000; font-weight: bold;">&lt;</span>old-UID<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #000000; font-weight: bold;">&lt;</span>new-UID<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-group</span> <span style="color: #000000; font-weight: bold;">&lt;</span>old-GID<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chgrp</span> <span style="color: #000000; font-weight: bold;">&lt;</span>new-GID<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>Warning: Use on your own risk. This change should only be done by users that know what they&#8217;re doing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/03/change-linux-uidgid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Platzfresser in der Linux Shell finden</title>
		<link>http://blog.ich-wars-nicht.ch/2010/02/platzfresser-in-der-linux-shell-finden/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/02/platzfresser-in-der-linux-shell-finden/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 13:49:35 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Arbeitsalltag]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux hacks]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[speicherplatz]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2189</guid>
		<description><![CDATA[Um in der Linux Shell die 10 grössten Platzfresser im aktuellen Verzeichnis zu finden, füge folgenden Alias deiner ~/.profile hinzu: alias ducks='du -cks * &#124; sort -rn &#124; head -11' Resultat: Eine schöne, übersichtliche Liste, die den Total-Platzverbrauch wie auch die zehn grössten Speicherfresser auflistet. danilo@srv:/bin$ ducks 3768 insgesamt 692 bash 236 tar 196 ip [...]]]></description>
			<content:encoded><![CDATA[<p>Um in der Linux Shell die 10 grössten Platzfresser im aktuellen Verzeichnis zu finden, füge folgenden Alias deiner ~/.profile hinzu:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ducks</span>=<span style="color: #ff0000;">'du -cks * | sort -rn | head -11'</span></pre></div></div>

<p>Resultat: Eine schöne, übersichtliche Liste, die den Total-Platzverbrauch wie auch die zehn grössten Speicherfresser auflistet.</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">danilo@srv:/bin$ ducks
3768    insgesamt
692     bash
236     tar
196     ip
152     nano
112     cpio
108     netstat
104     grep
96      vdir
96      ls
96      egrep</pre></div></div>

<p><em>(Quelle: Linux Server Hacks, O&#8217;Reilly, 2003, ISBN 3-89721-361-3)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/02/platzfresser-in-der-linux-shell-finden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Rkhunter Application Warnings on Debian</title>
		<link>http://blog.ich-wars-nicht.ch/2010/02/rkhunter-application-warnings-on-debian/</link>
		<comments>http://blog.ich-wars-nicht.ch/2010/02/rkhunter-application-warnings-on-debian/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 08:00:56 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[rkhunter]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=2129</guid>
		<description><![CDATA[On my (up to date) Debian Lenny installation, rkhunter regularly complains that various applications are out of date. This happens if the developer has released a new version of an application, but the Debian security team hasn&#8217;t added it to the repos yet. Warning: Application &#8216;gpg&#8217;, version &#8216;xxx&#8217;, is out of date, and possibly a [...]]]></description>
			<content:encoded><![CDATA[<p>On my (up to date) Debian Lenny installation, <a href="http://rkhunter.sourceforge.net/">rkhunter</a> regularly complains that various applications are out of date. This happens if the developer has released a new version of an application, but the Debian security team hasn&#8217;t added it to the repos yet.</p>
<blockquote><p>Warning: Application &#8216;gpg&#8217;, version &#8216;xxx&#8217;, is out of date, and possibly a security risk.<br />
Warning: Application &#8216;named&#8217;, version &#8216;xxx&#8217;, is out of date, and possibly a security risk.<br />
Warning: Application &#8216;openssl&#8217;, version &#8216;xxx&#8217;, is out of date, and possibly a security risk.<br />
(&#8230;)</p></blockquote>
<p>As I have enough trust in the Debian security team, I wanted to disable the app version checks. That is possible by adding the &#8220;apps&#8221; test to the DISABLE_TESTS option in /etc/rkhunter.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">199 DISABLE_TESTS=&quot;suspscan hidden_procs deleted_files packet_cap_apps apps&quot;</pre></div></div>

<p>If you&#8217;re also getting false warnings about possible promiscuous interfaces (e.g. on a virtual server), add the &#8220;promisc&#8221; option to the DISABLE_TESTS option.</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">199 DISABLE_TESTS=&quot;suspscan hidden_procs deleted_files packet_cap_apps apps promisc&quot;</pre></div></div>

<p>Another hint: Set the PKGMGR option to DPKG in order to check the hashes of binaries against the hashes provided by the Debian package manager, instead of just observing changes in the binary, which will report false positives on each system package update.</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">257 PKGMGR=DPKG</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2010/02/rkhunter-application-warnings-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Batch symlink update</title>
		<link>http://blog.ich-wars-nicht.ch/2009/09/batch-symlink-update/</link>
		<comments>http://blog.ich-wars-nicht.ch/2009/09/batch-symlink-update/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 13:09:37 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Arbeitsalltag]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Serveradministration]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=1808</guid>
		<description><![CDATA[If you have a directory with a lot of wrong symlinks that you need to update, you can use this bash script to partially replace strings in the target path. #/bin/bash &#160; SEARCHPATH=/etc/alternatives #Directory containing wrong symlinks FILTERSTRING=openjdk #String to filter list of symlinks to update (using grep) SEARCHSTRING=java-6-openjdk #String to search in symlink target [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a directory with a lot of wrong symlinks that you need to update, you can use this bash script to partially replace strings in the target path.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#/bin/bash</span>
&nbsp;
<span style="color: #007800;">SEARCHPATH</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>alternatives <span style="color: #666666; font-style: italic;">#Directory containing wrong symlinks</span>
<span style="color: #007800;">FILTERSTRING</span>=openjdk <span style="color: #666666; font-style: italic;">#String to filter list of symlinks to update (using grep)</span>
<span style="color: #007800;">SEARCHSTRING</span>=java-<span style="color: #000000;">6</span>-openjdk <span style="color: #666666; font-style: italic;">#String to search in symlink target path</span>
<span style="color: #007800;">REPLACESTRING</span>=java-<span style="color: #000000;">6</span>-sun <span style="color: #666666; font-style: italic;">#String to replace in symlink target path</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #800000;">${SEARCHPATH}</span> <span style="color: #660033;">-type</span> l <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> LINK; <span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #007800;">TARGET</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">readlink</span> <span style="color: #007800;">$LINK</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #800000;">${TARGET}</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${FILTERSTRING}</span>&quot;</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #007800;">TARGET</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #800000;">${TARGET}</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s#<span style="color: #007800;">${SEARCHSTRING}</span>#<span style="color: #007800;">${REPLACESTRING}</span>#g&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;executing: ln -sf <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">${TARGET}</span><span style="color: #000099; font-weight: bold;">\&quot;</span> <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">${LINK}</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span>
        <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${TARGET}</span>&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${LINK}</span>&quot;</span>
    <span style="color: #000000; font-weight: bold;">fi</span>  
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Disclaimer: This is the first bash script I&#8217;ve ever written, use on your own risk <img src='http://blog.ich-wars-nicht.ch/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  But it worked on my computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2009/09/batch-symlink-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Show MySQL Database Encoding</title>
		<link>http://blog.ich-wars-nicht.ch/2009/08/show-mysql-database-encoding/</link>
		<comments>http://blog.ich-wars-nicht.ch/2009/08/show-mysql-database-encoding/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 08:31:19 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Arbeitsalltag]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[Webdesign]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=1717</guid>
		<description><![CDATA[To get the current mysql database encoding, issue the following sql query: SHOW VARIABLES LIKE &#34;character_set_database&#34;;]]></description>
			<content:encoded><![CDATA[<p>To get the current mysql database encoding, issue the following sql query:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SHOW</span> <span style="color: #993333; font-weight: bold;">VARIABLES</span> <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">&quot;character_set_database&quot;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2009/08/show-mysql-database-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Unix &#8220;write&#8221; as normal user</title>
		<link>http://blog.ich-wars-nicht.ch/2009/06/unix-write-as-normal-user/</link>
		<comments>http://blog.ich-wars-nicht.ch/2009/06/unix-write-as-normal-user/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 22:44:39 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[permission denied]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=1531</guid>
		<description><![CDATA[In case you get a &#8220;Permission denied&#8221; when trying to use the write command as a normal user on Unix, possibly the setuid bit is missing. Apparently this is the default setting on Debian Etch. Set it with: # chmod u+s /usr/bin/write]]></description>
			<content:encoded><![CDATA[<p>In case you get a &#8220;Permission denied&#8221; when trying to use the <code>write</code> command as a normal user on Unix, possibly the setuid bit is missing. Apparently this is the default setting on Debian Etch. Set it with:</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;"># chmod u+s /usr/bin/write</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2009/06/unix-write-as-normal-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Netbeans Communications Link Failure</title>
		<link>http://blog.ich-wars-nicht.ch/2009/06/netbeans-communications-link-failure/</link>
		<comments>http://blog.ich-wars-nicht.ch/2009/06/netbeans-communications-link-failure/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 19:26:36 +0000</pubDate>
		<dc:creator>danilo</dc:creator>
				<category><![CDATA[Serveradministration]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[communications link failure]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[my.cnf]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql-administrator]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://blog.ich-wars-nicht.ch/?p=1521</guid>
		<description><![CDATA[Are you getting the following error message when trying to connect to your local mysql server from Netbeans? Unable to connect to the MySQL server: &#160; org.netbeans.api.db.explorer.DatabaseException: org.netbeans.api.db.explorer.DatabaseException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure &#160; Last packet sent to the server was 0 ms ago.. &#160; The server may not be running or your MySQL connection properties [...]]]></description>
			<content:encoded><![CDATA[<p>Are you getting the following error message when trying to connect to your local mysql server from Netbeans?</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">Unable to connect to the MySQL server:
&nbsp;
org.netbeans.api.db.explorer.DatabaseException: org.netbeans.api.db.explorer.DatabaseException:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
&nbsp;
Last packet sent to the server was 0 ms ago..
&nbsp;
The server may not be running or your MySQL connection properties may not be set correctly. Do you want to edit your MySQL connectino properties?</pre></div></div>

<p>First try to connect to the server with other tools like <code>/usr/bin/mysql-administrator</code> or <code>mysql -u user -p</code>. If that doesn&#8217;t work, your MySQL server is probably down. If it does, try commenting out the <code>skip-networking</code> option in your /etc/mysql/my.cnf file.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ich-wars-nicht.ch/2009/06/netbeans-communications-link-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>

