<?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>regerar.se</title>
	<atom:link href="http://regerar.se/feed/" rel="self" type="application/rss+xml" />
	<link>http://regerar.se</link>
	<description>Make stuff made</description>
	<lastBuildDate>Sun, 06 May 2012 14:46:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>XBMC on Ubuntu 12.04 with rar support</title>
		<link>http://regerar.se/2012/05/06/xbmc-on-ubuntu-12-04-with-rar-support/</link>
		<comments>http://regerar.se/2012/05/06/xbmc-on-ubuntu-12-04-with-rar-support/#comments</comments>
		<pubDate>Sun, 06 May 2012 14:46:00 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Daily]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=152</guid>
		<description><![CDATA[How to install xbmc from team xbmc which supports reading from rar archives]]></description>
			<content:encoded><![CDATA[<p>How to install xbmc from team xbmc which supports reading from rar archives</p>
<pre class="brush: plain; title: ; notranslate">
sudo  apt-add-repository ppa: nathan-renniewaldock / xbmc-stable
sudo  apt-get update
sudo  apt-get install  xbmc
</pre>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2012/05/06/xbmc-on-ubuntu-12-04-with-rar-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Rescan SCSI bus to add/remove a SCSI device without rebooting server</title>
		<link>http://regerar.se/2011/08/26/linux-rescan-scsi-bus-to-addremove-a-scsi-device-without-rebooting-server/</link>
		<comments>http://regerar.se/2011/08/26/linux-rescan-scsi-bus-to-addremove-a-scsi-device-without-rebooting-server/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 11:08:02 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=143</guid>
		<description><![CDATA[FC (Fibre Channel) For other scsi attached storage: To add a single device: Replace HBTL and # with actual values as per your setup. For example, if you added a new disk to a Linux VM in VMware, just run &#8230; <a href="http://regerar.se/2011/08/26/linux-rescan-scsi-bus-to-addremove-a-scsi-device-without-rebooting-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>FC (Fibre Channel)</p>
<pre class="brush: plain; title: ; notranslate">
echo &quot;1&quot; &gt; /sys/class/fc_host/host#/issue_lip
</pre>
<p>For other scsi attached storage:</p>
<pre class="brush: plain; title: ; notranslate">
echo &quot;- - -&quot; &gt; /sys/class/scsi_host/host#/scan
</pre>
<p>To add a single device:</p>
<pre class="brush: plain; title: ; notranslate">
echo &quot;scsi add-single-device &lt;H&gt; &lt;B&gt; &lt;T&gt; &lt;L&gt;&quot; &gt; /proc/scsi/scsi
</pre>
<p>Replace HBTL and # with actual values as per your setup.</p>
<p>For example, if you added a new disk to a Linux VM in VMware, just run the following:</p>
<pre class="brush: plain; title: ; notranslate">
echo &quot;- – -&quot; &gt; /sys/class/scsi_host/host0/scan
</pre>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/08/26/linux-rescan-scsi-bus-to-addremove-a-scsi-device-without-rebooting-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing specific Facebook events from my HTC Sense Calendar</title>
		<link>http://regerar.se/2011/08/26/removing-specific-facebook-events-from-my-htc-sense-calendar/</link>
		<comments>http://regerar.se/2011/08/26/removing-specific-facebook-events-from-my-htc-sense-calendar/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 08:00:11 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Trix]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=138</guid>
		<description><![CDATA[This will keep your FaceBook calendar but just remove those annoying events that clutter your Android calendar Open your Calendar Find &#38; tap on the event that you want to delete Long-Press the Menu button until the keyboard shows Tap &#8230; <a href="http://regerar.se/2011/08/26/removing-specific-facebook-events-from-my-htc-sense-calendar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This will keep your FaceBook calendar but just remove those annoying events that clutter your Android calendar</p>
<p>Open your Calendar<br />
Find &amp; tap on the event that you want to delete<br />
Long-Press the Menu button until the keyboard shows<br />
Tap the Backspace (back arrow) button &amp; tap the option to remove that event</p>
<p>Gone!</p>
<p>Thanks to <a href="http://geekdrop.com/content/removing-specific-facebook-events-from-my-htc-sense-calendar">http://geekdrop.com/content/removing-specific-facebook-events-from-my-htc-sense-calendar</a> for the answer</p>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/08/26/removing-specific-facebook-events-from-my-htc-sense-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian on HP DL380 etc. Servers?</title>
		<link>http://regerar.se/2011/05/05/debian-on-hp-dl380-etc-servers/</link>
		<comments>http://regerar.se/2011/05/05/debian-on-hp-dl380-etc-servers/#comments</comments>
		<pubDate>Thu, 05 May 2011 19:38:24 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=136</guid>
		<description><![CDATA[Netinstall, installing as usual, and then, fail! No network! Of course, it turns out that the needed Broadcom NetXtreme II driver (bnx2) is in the non-free repository, aka not included on the installations cd&#8217;s After googleing around, finding all those &#8230; <a href="http://regerar.se/2011/05/05/debian-on-hp-dl380-etc-servers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Netinstall, installing as usual, and then, fail! No network!</p>
<p>Of course, it turns out that the needed Broadcom NetXtreme II driver (bnx2) is in the non-free repository, aka not included on the installations cd&#8217;s</p>
<p>After googleing around, finding all those 37 easy step bla bla to replace and add deb files on the installation media, too tired to do such things after a 12 hour work day</p>
<p>Finally, found that Debian supply non-free media too!</p>
<p>You find them here:</p>
<p>http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/</p>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/05/05/debian-on-hp-dl380-etc-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor connectivity</title>
		<link>http://regerar.se/2011/03/21/monitor-connectivity/</link>
		<comments>http://regerar.se/2011/03/21/monitor-connectivity/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 07:49:48 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=120</guid>
		<description><![CDATA[On one of my boxes, i started to get some connectivity drops, so wanted a way to monitor and alert me when it happened. Found a script called watchping which seems nice, installed it and hope it fits my needs, &#8230; <a href="http://regerar.se/2011/03/21/monitor-connectivity/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On one of my boxes, i started to get some connectivity drops, so wanted a way to monitor and alert me when it happened.</p>
<p>Found a script called watchping which seems nice, installed it and hope it fits my needs, reads hosts from a config file, able to set mail alerts, logs to syslog etc</p>
<p>Found the script on this website: <a title="http://www.brendangregg.com/ping_scripts.html" href="http://www.brendangregg.com/ping_scripts.html">http://www.brendangregg.com/ping_scripts.html</a></p>
<p>Also included the source for the script if the site above would be down at some point</p>
<pre class="brush: bash; collapse: true; light: false; title: ; toolbar: true; notranslate">
#!/bin/sh
#
# watchping - daemon to ping servers, take action if down (email/web/log).
#	Stateful, only emails when something changes. Unix.
#
# 25-Jun-2003	ver 1.10
#
# USAGE: watchping [-vhES][-e addr][-s priority][-l logfile][-w website]
#                  [-t secs][-i infile | hosts ...]
#
#  eg,  watchping                     # Ping /etc/hosts hosts, email root.
#       watchping -e fred@nurk.com    # Email this address instead of root.
#       watchping mars phobos         # Ping these servers instead.
#       watchping -i prod.txt         # Read host list from prod.txt.
#	watchping -w hosts.html       # Generate website of host status.
#
# By default it pings servers listed in /etc/hosts, and both emails root and
# logs via syslog if a server goes down. The servers to ping can be configured
# in either a text file or arguments, and actions to take are options below.
# It has been written for Solaris and should work elsewhere with
# minor changes.
#
#	-h	Usage help.
#	-v	Verbose info on startup. Use until familiar with options.
#	-e	Email this address. By default it emails root.
#	-E	Don't send email.
#	-t	Seconds to sleep between pings. Default is 60.
#	-s	Use this &quot;facility.priority&quot; for syslog. By default it uses
#		the &quot;priority&quot; variable in the script below.
#	-S	Don't send messages to syslog. Default is to use syslog.
#	-w	Web site. Update this website with ping status (coloured).
#	-l	Log file. Append status messages here.
#	hosts	A list of hosts to ping. By default, the list is fetched from
#		hosts discovered in /etc/hosts (specified in the &quot;hosts&quot;
#		variable in the script).
#	-i	In list file. A text file containing the host list mentioned
#		above. Syntax is a list of hostnames and/or IPs. Useful if
#		the host list grows to be large.
#
# The four actions are to email alerts, syslog alerts, log everything, and
# generate a website. A combination may be practical. For example, a startup
# script might run,
#
#	watchping -e sysadmin@mars -w /var/http/prod.html -i /etc/prod.txt &amp;
#	watchping -e dbadmin@venus -w /var/http/db.html -i /etc/db.txt &amp;
#
# Both of the above run in the background, check every 60 seconds, and send
# alerts to syslog. They will also email alerts to the address after &quot;-e&quot;,
# they read host lists from the text files in /etc after the &quot;-i&quot; (here one
# may list production server names, the other database server names), and
# they even update colour coded websites after the &quot;-w&quot; (red is bad, green is
# good, blue is unknown).
#
# COPYRIGHT: Copyright (c) 2003 Brendan Gregg.
#
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software Foundation,
#  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
#  (http://www.gnu.org/copyleft/gpl.html)
#
# 03-Jun-2003	Brendan Gregg	Created this.
# 25-Jun-2003	Brendan Gregg	Added event based code.

#
# --- Setup Vars and Subs ---
#
ping=/usr/sbin/ping		# Location of ping
timeout=5			# Default ping timeout, secs
PATH=/bin:$PATH
verbose=0			# setup defaults
addr=&quot;root&quot;
email=1
priority=&quot;user.err&quot;
syslog=1
hostsdb=&quot;/etc/hosts&quot;		# if used
secs=60
logfile=&quot;&quot;
website=&quot;&quot;
infile=&quot;&quot;
deadlast=&quot;&quot;			# previous list of dead hosts

# usage - print the usage message
#
usage() {
	echo &gt;&amp;2 &quot;USAGE: $0 [-vhES][-e addr][-s priority][-l logfile]
                   [-w website][-t secs][-i infile | hosts ...]
  eg,  $0                     # Ping /etc/hosts hosts, email root.
       $0 -e fred@nurk.com    # Email this address instead of root.
       $0 mars phobos         # Ping these servers instead.
       $0 -i prod.txt         # Read host list from prod.txt.
       $0 -w hosts.html       # Generate website of host status.&quot;
}

# logtext - append the input text to the file in $logfile.
#
logtext() {
	echo &quot;-----\n$*&quot; &gt;&gt; $logfile
}

# webtext - process the input text into a website and save to $website file.
#	If you know some HTML, the lines below can be customised to your
#	taste. (If this awk program was much longer, it should be perl).
#
webtext() {
	# This can be customised below.
(	echo &quot;$*&quot; | awk '
		NR == 1 { print &quot;&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;WatchPing Report&lt;/TITLE&gt;&quot;
			  print &quot;&lt;/HEAD&gt;&lt;BODY BGCOLOR=\&quot;#FFFFFF\&quot;&gt;&quot;
			  print &quot;&lt;H1&gt;WatchPing Report, &quot; $0 &quot;&lt;/H1&gt;&lt;HR&gt;&lt;H2&gt;&quot;
		}
		NR &gt; 1 { if ($0 ~ /no answer/) {
			    print &quot;&lt;FONT COLOR=\&quot;#FF0000\&quot;&gt;&quot; $0 &quot;&lt;/FONT&gt;&lt;BR&gt;&quot;
			 } else if ($0 ~ /unknown host/) {
			    print &quot;&lt;FONT COLOR=\&quot;#0000AA\&quot;&gt;&quot; $0 &quot;&lt;/FONT&gt;&lt;BR&gt;&quot;
			 } else {
			    print &quot;&lt;FONT COLOR=\&quot;#00AA00\&quot;&gt;&quot; $0 &quot;&lt;/FONT&gt;&lt;BR&gt;&quot;
			 }
		}
		END { print &quot;&lt;/BODY&gt;&lt;/HTML&gt;&quot; }'
)	&gt; $website
}

# emailsend - This reads from two variables,  $dead and $text, and emails
#	their contents to the $addr variable. If will generate a syslog
#	error if the email can't be sent (if allowed to syslog).
#
emailsend() {
	mail $addr &lt;&lt;-END
	Subject: WatchPing Alert:$dead
	WatchPing Alert

	The following hosts failed to ping,
	$dead

	Output from all pings,

	$text
	END
	if [ $? -ne 0 -a $syslog -eq 1 ]; then
		logger -twatchping -p$syslog ERROR1: Emailing $addr
	fi
}

# syslogsend - sent a message to syslog
#
syslogsend() {
	logger -twatchping -p$syslog Hosts Down: $dead
}

if [ ! -x $ping ]		# Check ping works, or try a different path.
then
	ping=/bin/ping
	if [ ! -x $ping ]; then
		echo &gt;&amp;2 &quot;ERROR2: Can't find ping. Please place in \$PATH.&quot;
		exit 1
	fi
fi

#
# --- Parse Options ---
#
set -- `getopt vhESe:t:s:l:w:i: $*`
if [ $? -ne 0 ]; then
        usage
        exit 1
fi

while [ $# -ne 0 ]
do
	case &quot;$1&quot; in
	-v)	verbose=1
		;;
	-h)	usage
		exit 0
		;;
	-E)	email=0
		;;
	-S)	syslog=0
		;;
	-e)	addr=$2
		shift
		;;
	-t)	secs=$2
		shift
		;;
	-s)	priority=$2
		shift
		;;
	-l)	logfile=$2
		touch $logfile
		if [ $? -ne 0 ]; then
		   echo &gt;&amp;2 &quot;ERROR3: logfile $logfile, is not writable.&quot;
		   exit 2
		fi
		shift
		;;
	-w)	website=$2
		touch $website
		if [ $? -ne 0 ]; then
		   echo &gt;&amp;2 &quot;ERROR4: website $website, is not writable.&quot;
		   exit 2
		fi
		shift
		;;
	-i)	infile=$2
		if [ ! -r $infile ]; then
		   echo &gt;&amp;2 &quot;ERROR5: $infile, is not readable.&quot;
		   exit 2
		fi
		hosts=`cat $infile` 	# Use infile for list of hosts
		shift
		;;
	--)	shift
		break
		;;
	esac
	shift
done

if [ &quot;$1&quot; != &quot;&quot; ]; then			# hosts were on the command line
        hosts=$*
fi

if [ &quot;$hosts&quot; = &quot;&quot; ]; then		# or, fetch hosts from default
	if [ ! -r &quot;$hostsdb&quot; ]; then
	   echo &gt;&amp;2 &quot;ERROR6: $hostsdb, is not readable.&quot;
	   exit 2
	fi
	hosts=`awk '/^[0-9]/ { print $1 }' $hostsdb`
fi

#
# --- Print Settings, if verbose ---
#
if [ $verbose -eq 1 ]; then
	echo &quot;Running WatchPing...&quot;
	echo &quot;Sleep Interval: $secs secs&quot;
	[ $email -eq 1 ] &amp;&amp; echo &quot;Email address: $addr&quot;
	[ $syslog -eq 1 ] &amp;&amp; echo &quot;Syslog priority: $priority&quot;
	[ &quot;$logfile&quot; != &quot;&quot; ] &amp;&amp; echo &quot;Logfile: $logfile&quot;
	[ &quot;$website&quot; != &quot;&quot; ] &amp;&amp; echo &quot;Website: $website&quot;
	echo &quot;Checking Hosts:&quot; $hosts
fi

#
# --- MAIN LOOP ---
#
while :
do
	error=0
	dead=&quot;&quot;					# list of dead hosts
	text=&quot;`date`&quot;				# output report

	#
	#  Ping hosts
	#
	for host in $hosts
	do
		output=&quot;`$ping $host $timeout 2&gt;&amp;1`&quot;
		if [ $? -ne 0 ]; then
			error=1
			dead=&quot;$dead $host&quot;
		fi
		text=&quot;${text}
${output}&quot;
	done

	#
	#  Process Actions
	#
	[ $verbose -eq 1 ] &amp;&amp; echo &quot;-----\n$text&quot;
	[ &quot;$logfile&quot; != &quot;&quot; ] &amp;&amp; logtext &quot;$text&quot;
	[ &quot;$website&quot; != &quot;&quot; ] &amp;&amp; webtext &quot;$text&quot;

	# These actions are triggered by a state change
	if [ &quot;$dead&quot; != &quot;$deadlast&quot; ]; then
		if [ $error -ne 0 ]; then
			[ $email -eq 1 ] &amp;&amp; emailsend	   # hosts down email
			[ $syslog -eq 1 ] &amp;&amp; syslogsend
		else
			dead=&quot; (all ok!)&quot;		   # (msg for email)
			[ $email -eq 1 ] &amp;&amp; emailsend	   # all ok email
			[ $syslog -eq 1 ] &amp;&amp; syslogsend
			dead=&quot;&quot;
		fi
	fi

	deadlast=&quot;$dead&quot;
	sleep $secs
done
</pre>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/03/21/monitor-connectivity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySQL sort order with null values last</title>
		<link>http://regerar.se/2011/03/06/mysql-sort-order-with-null-values-last/</link>
		<comments>http://regerar.se/2011/03/06/mysql-sort-order-with-null-values-last/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 14:56:48 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=112</guid>
		<description><![CDATA[If you wanna sort a column which includes null values and want them last, try this:]]></description>
			<content:encoded><![CDATA[<p>If you wanna sort a column which includes null values and want them last, try this:</p>
<pre class="brush: sql; title: ; notranslate">

SELECT * FROM table ORDER BY ISNULL(column), column
</pre>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/03/06/mysql-sort-order-with-null-values-last/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba share on AIX with AD auth</title>
		<link>http://regerar.se/2011/03/01/108/</link>
		<comments>http://regerar.se/2011/03/01/108/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 10:13:21 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[AIX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=108</guid>
		<description><![CDATA[If i knew all the problems it would cause, i would have installed a Linux VM to run it on Anyway, needed to setup a temporary storage for a win7 migration project, and the SAN with most free space only &#8230; <a href="http://regerar.se/2011/03/01/108/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If i knew all the problems it would cause, i would have installed a Linux VM to run it on</p>
<p>Anyway, needed to setup a temporary storage for a win7 migration project, and the SAN with most free space only had a connection to a AIX machine.</p>
<p>Downloaded the Samba packages from the IBM expansion pack and installed them, and of course then didn&#8217;t support ADS&#8230; so i went for the domain setup, joining the domain worked fine, so did querying the AD for a user list, ntlm_auth etc. Cool! Working!</p>
<p>Eeh.. not really, the package didn&#8217;t have ldap support compiled in, local auth against the the AD worked fine, but remote client didn&#8217;t work.</p>
<p>So back to the drawing board (Google really), found the pware binary&#8217;s, downloaded and installed them, used the old smb.conf from the last install (still domain setup), didn&#8217;t get shit from the AD, not even a userlist. Gave it up after googeling all possible unknown error messages and went for the ADS setup instead.</p>
<p>Began to setup Kerberos but ended up with unresolved domain all the time, hm, rechecked the configuration file several times, couldn&#8217;t find anything wrong, and checked earlier kinit read the file. After some investigation i found that there was another kinit binary already in the system path, which i mistakenly had used first time, that binary used /etc/krb5/krb5.conf and the one that came with pware is using /etc/krb5.conf, copied the file and tada, it worked!</p>
<p>Joined the domain, changed some minor stuff in smb.conf (realm), all seemed fine, but still couldn&#8217;t auth from my client, coffee break!</p>
<p>Fixed it by adding winbind as authentications methods in methods.cfg</p>
<p>Created a new LV and mounted it to my desired directory, wrote a preexec script for my homes share which creates and chmods home dirs for new users connecting, flawless!</p>
<p>Still, next time i&#8217;ll connect a FC cable from the SAN to the VMware environment so i can use a regular working Linux installation!</p>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/03/01/108/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Human readable dmesg timestamp</title>
		<link>http://regerar.se/2011/02/21/human-readable-dmesg-timestamp/</link>
		<comments>http://regerar.se/2011/02/21/human-readable-dmesg-timestamp/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 12:37:16 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=82</guid>
		<description><![CDATA[Needed a way to read the output of dmesg a little easier, as it outputs the time in seconds since boot]]></description>
			<content:encoded><![CDATA[<p>Needed a way to read the output of dmesg a little easier, as it outputs the time in seconds since boot</p>
<pre class="brush: perl; title: ; notranslate">
#!/usr/bin/perl

use strict;
use warnings;

my @dmesg_new = ();
my $dmesg = &quot;/bin/dmesg&quot;;
my @dmesg_old = `$dmesg`;
my $now = time();
my $uptime = `cat /proc/uptime | cut -d&quot;.&quot; -f1`;
my $t_now = $now - $uptime;

sub format_time {
 my @time = localtime $_[0];
 $time[4]+=1;    # Adjust Month
 $time[5]+=1900;    # Adjust Year
 return sprintf '%4i-%02i-%02i %02i:%02i:%02i', @time[reverse 0..5];
}

foreach my $line ( @dmesg_old )
{
 chomp( $line );
 if( $line =~ m/\[\s*(\d+)\.(\d+)\](.*)/i )
 {
 # now - uptime + sekunden
 my $t_time = format_time( $t_now + $1 );
 push( @dmesg_new , &quot;[$t_time] $3&quot; );
 }
}

print join( &quot;\n&quot;, @dmesg_new );
print &quot;\n&quot;;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/02/21/human-readable-dmesg-timestamp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LED Cube</title>
		<link>http://regerar.se/2011/02/21/videotester/</link>
		<comments>http://regerar.se/2011/02/21/videotester/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 07:51:15 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=53</guid>
		<description><![CDATA[Cool cube! I just have to build one of those! But i think i want more led&#8217;s, 10x10x10 would be nice :)]]></description>
			<content:encoded><![CDATA[<p>Cool cube!</p>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/e/Qc6X-YtuiwA"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/e/Qc6X-YtuiwA" type="application/x-shockwave-flash" width="640" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>I just have to build one of those! But i think i want more led&#8217;s, 10x10x10 would be nice :)</p>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/02/21/videotester/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Another cerificate to the list</title>
		<link>http://regerar.se/2011/02/20/another-cerificate-to-the-list/</link>
		<comments>http://regerar.se/2011/02/20/another-cerificate-to-the-list/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 00:45:38 +0000</pubDate>
		<dc:creator>Linus Nordin</dc:creator>
				<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[Certificate]]></category>
		<category><![CDATA[IBM]]></category>

		<guid isPermaLink="false">http://regerar.se/?p=3</guid>
		<description><![CDATA[Had to update myself as the old certificates was about to expire, finished with 91%, pretty happy with the result! But why on earth does the test include answers with spelling errors, i doubt i would be a bad sysadm &#8230; <a href="http://regerar.se/2011/02/20/another-cerificate-to-the-list/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Had to update myself as the old certificates was about to expire, finished with 91%, pretty happy with the result!</p>
<p>But why on earth does the test include answers with spelling errors, i doubt i would be a bad sysadm if i read a letter wrong in a menu.. its just fucked up, get some real relevant questions instead!</p>
<p>Oh, and the cert is IBM Certified System Administrator &#8211; AIX 6.1</p>
]]></content:encoded>
			<wfw:commentRss>http://regerar.se/2011/02/20/another-cerificate-to-the-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<img style='margin:0;padding:0;border:0;' width='1px' height='1px' src="http://regerar.se/wp-content/plugins/mystat/mystat.php?act=time_load&id=36162&rnd=319923626" /></channel>
</rss>

