<?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/"
	>

<channel>
	<title>dmarkey.com</title>
	<atom:link href="http://dmarkey.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://dmarkey.com/wordpress</link>
	<description>Always remember you're unique, just like everyone else.</description>
	<pubDate>Tue, 05 Jan 2010 06:34:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New ubuntu and arch xen install initrds</title>
		<link>http://dmarkey.com/wordpress/2010/01/05/new-ubuntu-and-arch-xen-install-initrds/</link>
		<comments>http://dmarkey.com/wordpress/2010/01/05/new-ubuntu-and-arch-xen-install-initrds/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 06:34:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Xen]]></category>

		<category><![CDATA[xen linux ubuntu arch]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/2010/01/05/new-ubuntu-and-arch-xen-install-initrds/</guid>
		<description><![CDATA[New Xen install initrds.
Over the past week i&#8217;ve been working on Ubuntu 9.10 and Arch linux install initrds for Xen PVM.
The arch one has been straight forward but the ubuntu one is a bit on the tricky side(grub2 mainly).
Will post them up when i have them tested a bit.
]]></description>
			<content:encoded><![CDATA[<p>New Xen install initrds.</p>
<p>Over the past week i&#8217;ve been working on Ubuntu 9.10 and Arch linux install initrds for Xen PVM.</p>
<p>The arch one has been straight forward but the ubuntu one is a bit on the tricky side(grub2 mainly).</p>
<p>Will post them up when i have them tested a bit.</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2010/01/05/new-ubuntu-and-arch-xen-install-initrds/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Easy NAT</title>
		<link>http://dmarkey.com/wordpress/2009/12/15/easy-nat/</link>
		<comments>http://dmarkey.com/wordpress/2009/12/15/easy-nat/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 11:09:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[nat linux iptables]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/2009/12/15/easy-nat/</guid>
		<description><![CDATA[This is the easy way to give virtual machines access to an external network using iptables.
Warning this is very open and probably shouldnt be used in a production environment.
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING  -j MASQUERADE
]]></description>
			<content:encoded><![CDATA[<p>This is the easy way to give virtual machines access to an external network using iptables.</p>
<p>Warning this is very open and probably shouldnt be used in a production environment.</p>
<p>echo 1 > /proc/sys/net/ipv4/ip_forward</p>
<p>iptables -t nat -A POSTROUTING  -j MASQUERADE</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2009/12/15/easy-nat/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Arch Linux</title>
		<link>http://dmarkey.com/wordpress/2009/12/04/arch-linux/</link>
		<comments>http://dmarkey.com/wordpress/2009/12/04/arch-linux/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 12:11:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/2009/12/04/arch-linux/</guid>
		<description><![CDATA[So I&#8217;ve moved to Arch,
I think this will be the end of my distro hopping, arch can give me everything I need, and with the rolling release it means I never need to upgrade, although I do like to start from scratch every now and again(i keep a very messy home directory).
Check it out. Dont [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve moved to Arch,<br />
I think this will be the end of my distro hopping, arch can give me everything I need, and with the rolling release it means I never need to upgrade, although I do like to start from scratch every now and again(i keep a very messy home directory).</p>
<p>Check it out. Dont forget to check out the best feature, AUR, similar to opensuse&#8217;s build service, but way better.</p>
<p>Beware that the installer is basic, you need to know your way around linux to be able to do anything remotly advanced (raid or LVM).</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2009/12/04/arch-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I&#8217;m going to blog more</title>
		<link>http://dmarkey.com/wordpress/2009/12/03/im-going-to-blog-more/</link>
		<comments>http://dmarkey.com/wordpress/2009/12/03/im-going-to-blog-more/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 00:30:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/2009/12/03/im-going-to-blog-more/</guid>
		<description><![CDATA[I haven&#8217;t been blogging as much as i&#8217;d like to. To change this i&#8217;m using this cool blogging client called &#8220;charm&#8221;
I hope this will make it easier for me to blog more. I have lots of useful stuff to say!
]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t been blogging as much as i&#8217;d like to. To change this i&#8217;m using this cool blogging client called &#8220;charm&#8221;<br />
I hope this will make it easier for me to blog more. I have lots of useful stuff to say!</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2009/12/03/im-going-to-blog-more/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Testing QTM</title>
		<link>http://dmarkey.com/wordpress/2009/12/02/testing-qtm/</link>
		<comments>http://dmarkey.com/wordpress/2009/12/02/testing-qtm/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 23:27:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/2009/12/02/testing-qtm/</guid>
		<description><![CDATA[Just testing QTM, Now using charm
]]></description>
			<content:encoded><![CDATA[<p>Just testing QTM, Now using charm</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2009/12/02/testing-qtm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Python winbind/libwbclient module</title>
		<link>http://dmarkey.com/wordpress/2009/11/13/python-winbindlibwbclient-module/</link>
		<comments>http://dmarkey.com/wordpress/2009/11/13/python-winbindlibwbclient-module/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 17:33:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Samba]]></category>

		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/?p=67</guid>
		<description><![CDATA[I&#8217;ve created a python ctypes-based module for interfacing with samba libwbclient, using ctypes means that it doesn&#8217;t require compilation, but this does rely on the ABI be compatible between versions of libwbclient, if you notice strange behavior or random segfaults, contact me.
Its tested on Linux but should in theory work on solaris, or any OS [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created a python ctypes-based module for interfacing with samba libwbclient, using ctypes means that it doesn&#8217;t require compilation, but this does rely on the ABI be compatible between versions of libwbclient, if you notice strange behavior or random segfaults, contact me.</p>
<p>Its tested on Linux but should in theory work on solaris, or any OS with python ctypes and samba 3.2.</p>
<p>Overview of the class:</p>
<p>class WBClient(__builtin__.object)</p>
<p>Class that interfaces with libwbclient via ctypes.</p>
<p>Optionally pass in a domain name, if no domain name is supplied the</p>
<p>default domain is used(from libwbclient).</p>
<p>Methods defined here:</p>
<p><strong>__init__(self, default_domain=None)</strong></p>
<p><strong>authenticate_user(self, username, password, domain=None)</strong></p>
<p>Authenticates a user</p>
<p>If the winbind seperator is in the username False is returned</p>
<p>This means username\password doesnt work, one must explicitly give</p>
<p>the domain as the 3rd argument if not authenticating off the default domain</p>
<p>Returns the full username in the form of Domain\Username (or a different winbind separator) if successful, None if not.</p>
<p><strong>change_user_password(self, username, oldpw, newpw)</strong></p>
<p>Change user password, (Working with samba 3.4)</p>
<p><strong>get_display_name(self, username, domain=None)</strong></p>
<p>Gets the display name of a user/group</p>
<p><strong>get_group_membership(self, username, domain=None)</strong></p>
<p>This function looks up the group membership of a user,</p>
<p>Returns a list if successful, None if not</p>
<p><strong>get_sid(self, name, domain=None)</strong></p>
<p>Get the SID string of a user/group/machine</p>
<p><strong>list_groups(self, domain=None)</strong></p>
<p>Lists the groups in a domain</p>
<p><strong>list_users(self, domain=None)</strong></p>
<p>Lists the users in a domain</p>
<p><strong>lookup_domain_controller(self, domain=None)</strong></p>
<p>Lookup domain controller for a domain(Could not get to work)</p>
<p><strong>reload_interface(self)</strong></p>
<p>(re)loads Interface details, winbind separator etc</p>
<p><strong>resolve_wins_by_ip(self, ip)</strong></p>
<p>Resolve an IP to a Netbios name</p>
<p><strong>resolve_wins_by_name(self, name)</strong></p>
<p>Resolve a Netbios name to an IP.</p>
<p>Get your copy from<a title=" http://dmarkey.com/svn/winbind" href=" http://dmarkey.com/svn/winbind"> http://dmarkey.com/svn/winbind</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2009/11/13/python-winbindlibwbclient-module/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using an OpenLDAP directory for Thunderbird address book lookups</title>
		<link>http://dmarkey.com/wordpress/2009/03/13/using-an-openldap-directory-for-thunderbird-address-book-lookups/</link>
		<comments>http://dmarkey.com/wordpress/2009/03/13/using-an-openldap-directory-for-thunderbird-address-book-lookups/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 01:25:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/?p=62</guid>
		<description><![CDATA[I wanted thunderbird to be able to look up addresses in my OpenLDAP directory. It worked out of the box somewhat using the standard inetorgperson attributes. But i wanted to map some of my POSIX attributes so Thunderbird would recognize them and therefore there would be more information in the address book entry.
Here is a [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted thunderbird to be able to look up addresses in my OpenLDAP directory. It worked out of the box somewhat using the standard inetorgperson attributes. But i wanted to map some of my POSIX attributes so Thunderbird would recognize them and therefore there would be more information in the address book entry.</p>
<p>Here is a table of ldap attributes thunderbird is interested in.</p>
<p>http://www.mozilla.org/projects/thunderbird/specs/ldap.html</p>
<p>This is based on a less than perfect schema that mozilla came up with.</p>
<p>Anyway, Thunderbird already gave me the First name(givenName), lastname(sn), displayname(cn), and email(mail) bits from each address book entry, but i wanted it to fill in the Nickname from the POSIX gecos attribute(It usually contains a little more information than just the name), so this is what had to be done on the OpenLDAP side</p>
<p>my DIT for this example is dc=example,dc=com and my users entries will be in ou=user</p>
<p>First i had to download and install the mozilla LDAP schema  from https://wiki.mozilla.org/MailNews:Mozilla_LDAP_Address_Book_Schema</p>
<p>I had to then define a new &#8220;relay&#8221; database at the botton of my slapd.conf, it looks something like this:</p>
<p>database                relay<br />
suffix                  &#8220;dc=addresses&#8221;<br />
relay                   &#8220;ou=user,dc=example,dc=com&#8221;<br />
overlay                 rwm<br />
rwm-suffixmassage       &#8220;ou=user,dc=example,dc=com<br />
map attribute mozillaNickname gecos<br />
map attribute mail *<br />
map attribute uid *<br />
map attribute sn *<br />
map attribute givenname *<br />
map attribute cn *<br />
map attribute *</p>
<p>This will create a second virtual DIT called dc=addresses which will use the &#8220;real&#8221; ldap directory(ou=user,dc=example,dc=com) as a back-end. This will map the gecos to the mozilla nickname and it will now appear in the users address book entry in thunderbird, it also blocks all information except the bits that are needed like displayname, cn, givenname, sn. It would probably be advisable to apply some ACLs to this aswell just incase.</p>
<p>This is only an example. If you have other attributes that might fit into an address book entry then you can map them to the mozilla atrributes.</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2009/03/13/using-an-openldap-directory-for-thunderbird-address-book-lookups/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nagios SunRay Plugin</title>
		<link>http://dmarkey.com/wordpress/2009/03/04/nagios-sunray-plugin/</link>
		<comments>http://dmarkey.com/wordpress/2009/03/04/nagios-sunray-plugin/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 19:42:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/?p=54</guid>
		<description><![CDATA[I was looking around for a nagios plugin to monitor our sunray servers where I work and I couldn&#8217;t find any. So I cooked my own. check_sunray
It&#8217;s basically just a wrapper around utwho.
The mandatory arguments for the plugin are -w and -c. -w is the warning threshold for the amount of sunray sessions and -c [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking around for a nagios plugin to monitor our sunray servers where I work and I couldn&#8217;t find any. So I cooked my own.<a href="http://dmarkey.com/~dmarkey/check_sunray"> check_sunray</a></p>
<p>It&#8217;s basically just a wrapper around utwho.</p>
<p>The mandatory arguments for the plugin are -w and -c. -w is the warning threshold for the amount of sunray sessions and -c is the critical threshold for the amount of sunray sessions.</p>
<p>By default it counts all logged-in sunray sessions(but not necessarily active), i.e. the output of utwho with no arguments, with the -o option it only counts active sunray sessions(eq to utwho -c) and -a counts all sessions, even non logged-in ones (eq to utwho -a)</p>
<p>I use nrpe to monitor my remote sunray servers so this is the definition in nrpe.conf:</p>
<p>command[check_sunray]=/opt/csw/libexec/nagios-plugins/check_sunray -w 10 -c 20 -o</p>
<p>This will raise a warning alert if the amount of active sunray sessions goes over 10 and a critical alert if the amount of active sunray sessions goes over 20.</p>
<p>This has only been tested with SRSS 4.1 on solaris but im pretty sure it&#8217;ll work with linux SRSS.</p>
<p>If anyone has any other ideas on how to monitor a sunray server leave me a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2009/03/04/nagios-sunray-plugin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Poor Xorg performance on OpenSuse 11.1</title>
		<link>http://dmarkey.com/wordpress/2009/01/08/poor-xorg-performance-on-opensuse-111/</link>
		<comments>http://dmarkey.com/wordpress/2009/01/08/poor-xorg-performance-on-opensuse-111/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 01:19:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/?p=50</guid>
		<description><![CDATA[I upgraded my opensuse 11 installation on my laptop (Dell XPS 1330) to opensuse 11.1 and I notices straight away that my 2d graphics performance was _abysmal_.
The gfx card on my laptop is Intel Corporation Mobile GM965/GL960 using the xorg intel driver.
Things like scrolling in gmail and scrolling man pages in konsole and 2d screen [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded my opensuse 11 installation on my laptop (Dell XPS 1330) to opensuse 11.1 and I notices straight away that my 2d graphics performance was _abysmal_.</p>
<p>The gfx card on my laptop is Intel Corporation Mobile GM965/GL960 using the xorg intel driver.</p>
<p>Things like scrolling in gmail and scrolling man pages in konsole and 2d screen savers all went to a crawl and the driver kept on crashing the machine, I tried to tweak different things in xorg.conf but nothing helped.</p>
<p>I put up with it for a few weeks but today I got fed up and reverted to 11.0, now the performance is back to acceptible levels.</p>
<p>Because of this i&#8217;ve been disappointed with the 11.1 release. Luckily from a Kde 3.5 point of view there is little difference between 11.0 ans 11.1.</p>
<p>Hopefully this issue will be solved and a patch released. Actually come to think of it I really should raise a bug.</p>
<p>If anyone else has experienced issues with the intel driver on OpenSuse 11.1 or xorg 7.4 please leave a comment describing your problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2009/01/08/poor-xorg-performance-on-opensuse-111/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu Hardy Xen DomU installer</title>
		<link>http://dmarkey.com/wordpress/2008/12/04/ubuntu-hardy-xen-domu-installer/</link>
		<comments>http://dmarkey.com/wordpress/2008/12/04/ubuntu-hardy-xen-domu-installer/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 18:16:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://dmarkey.com/wordpress/?p=20</guid>
		<description><![CDATA[So I learned all about ubuntu preseed when i was re-jigging the intrepid installer, so i was able to automate all the extra stuff you had to do at the end on a hardy install described in one of my earlier posts.
Note that this is a amd64 network install kernel/initrd only, so make sure you [...]]]></description>
			<content:encoded><![CDATA[<p>So I learned all about ubuntu preseed when i was re-jigging the intrepid installer, so i was able to automate all the extra stuff you had to do at the end on a hardy install described in one of my earlier posts.</p>
<p>Note that this is a amd64 network install kernel/initrd only, so make sure you have fast network access. My last Hardy kernel/initrd was used in conjunction with the CD iso. This one isnt.</p>
<p>This installer runs seamlessly, all you have to do is ignore the &#8220;unable to identify hard disk&#8221; error.</p>
<p><a href="http://www.dmarkey.com/hardy/vmlinuz">vmlinuz</a></p>
<p><a href="http://www.dmarkey.com/hardy/initrd">initrd</a></p>
<p>One thing to note is that the virtual hard disk has to be /dev/hda in order for the installer to work(grub wont install otherwise) so this is an example config:</p>
<p>memory = 500<br />
name = &#8220;ubuntu-hardy&#8221;<br />
vcpus = 1<br />
disk = ['phy:/dev/xenvg/hardy,hda,w']<br />
kernel = &#8220;/xen/hardy/vmlinuz&#8221;<br />
ramdisk = &#8220;/xen//hardy/initrd&#8221;<br />
#bootloader=&#8221;/usr/bin/pygrub&#8221;<br />
vif  = [  ]<br />
When the install is finished uncomment the pygrub line, and comment out the kernel/ramdisk lines.</p>
<p>The reason i decided to re-jig the hardy installer was that it is LTS and for virtual servers that might be a selling point.</p>
<p>Any questions let me know.</p>
<p>Many thinks to cjwatson on #ubuntu-installer for teaching me all about preseed.</p>
]]></content:encoded>
			<wfw:commentRss>http://dmarkey.com/wordpress/2008/12/04/ubuntu-hardy-xen-domu-installer/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
