<?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>BioliZards.be</title>
	<atom:link href="http://blog.biolizards.be/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.biolizards.be</link>
	<description>DreamOn Technical Blog</description>
	<lastBuildDate>Sun, 04 Nov 2012 21:03:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Script to get Zenworks 11 Agent registration status</title>
		<link>http://blog.biolizards.be/script-to-get-zenworks-11-agent-registration-status/</link>
		<comments>http://blog.biolizards.be/script-to-get-zenworks-11-agent-registration-status/#comments</comments>
		<pubDate>Thu, 24 May 2012 12:33:29 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Novell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[vbscript]]></category>
		<category><![CDATA[Zenworks]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=1041</guid>
		<description><![CDATA[This script wil run the command line management interface for the Novell ZENworks Adaptive Agent that is installed on managed devices with the option security-location (sl) and  output the info in a message box. I have written this script to implement in &#8230;<p class="read-more"><a href="http://blog.biolizards.be/script-to-get-zenworks-11-agent-registration-status/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>This script wil run the command line management interface for the Novell ZENworks Adaptive Agent that is installed on managed devices with the option security-location (sl) and  output the info in a message box.</p>
<p>I have written this script to implement in a installer script to wait until the agent is registered in de ZenWorks Server.</p>
<pre class="brush: vb; title: ; notranslate">
Dim WshShell, oExec, strText, strId, strName, strStream
Set WshShell = CreateObject(&quot;WScript.Shell&quot;)

Set oExec = WshShell.Exec(&quot;zac sl&quot;)

Do While oExec.StdOut.AtEndOfStream &lt;&gt; True
strStream = trim(oExec.StdOut.ReadLine)

Select Case left(strStream,3)
Case &quot;The&quot;
If strstream = &quot;The current security location is unknown.&quot; Then
strStatus = &quot;No Location&quot;
End If
Case &quot;Id:&quot;
strStatus = &quot;Current Security Location:&quot;
strId = strStream
Case &quot;Nam&quot;
strName= strStream
End Select

Loop

If strStatus = &quot;Current Security Location:&quot; Then
strText = strStatus &amp; vbcrlf &amp; strId &amp; vbcrlf &amp; strName
Else
strText = &quot;The current security location is unknown.&quot;
End If

wscript.echo strText
</pre>
<p>More Console commands for Zenworks11 can be found here:<br />
<a href="http://www.novell.com/documentation/zenworks11/pdfdoc/zen11_utils/zen11_utils.pdf">http://www.novell.com/documentation/zenworks11/pdfdoc/zen11_utils/zen11_utils.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/script-to-get-zenworks-11-agent-registration-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a SMSGateway part1</title>
		<link>http://blog.biolizards.be/setting-up-a-smsgateway-part1/</link>
		<comments>http://blog.biolizards.be/setting-up-a-smsgateway-part1/#comments</comments>
		<pubDate>Sun, 20 May 2012 14:09:05 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=953</guid>
		<description><![CDATA[At work we have a little SMS gateway to send us a warning when a critical event is monitored by the server monitoring system. It&#8217;s a Windows XP machine with some old smsgateway software on it and a nokia 3310 &#8230;<p class="read-more"><a href="http://blog.biolizards.be/setting-up-a-smsgateway-part1/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>At work we have a little SMS gateway to send us a warning when a critical event is monitored by the server monitoring system. It&#8217;s a Windows XP machine with some old smsgateway software on it and a nokia 3310 connected with a data cable to the com port.</p>
<p><a href="http://blog.biolizards.be/wp-content/uploads/2012/04/3510e.jpg"><img class="aligncenter size-full wp-image-954" title="3510e" src="http://blog.biolizards.be/wp-content/uploads/2012/04/3510e.jpg" alt="" width="229" height="166" /></a>The system works like this:<a href="http://blog.biolizards.be/wp-content/uploads/2012/04/smsgateway.png"><img class="aligncenter size-full wp-image-969" title="smsgateway" src="http://blog.biolizards.be/wp-content/uploads/2012/04/smsgateway.png" alt="" width="444" height="121" /></a></p>
<ul>
<li>A critical event is triggered on the monitoring server</li>
<li>The monitoring server sends an e-mail to the administrators sms mailbox</li>
<li>The SMS Gateway checks the sms mailboxes of every sms mailbox if there is a mail the smsgateway will send the e-mail as sms to the administrators mobile phone.</li>
</ul>
<p>This system worked very well until a couple of months ago &#8230;.<br />
The old software stopped to check the mailboxes and we had to manually restart the soft to get it working again for some hours when it stopped again. Not a good solution for an alert system.</p>
<p>So we needed a new system &#8230;</p>
<p><span id="more-953"></span>First of all the hardware. It&#8217;s time to replace that old nokia 3310 with a com dataconnection cable with something new preferably USB. For some mobile users we have some Vodafone USB Sticks. I checked it out and it is sms send capable. (For further reference the usb stick is a Huawei K3715)</p>
<p><a href="http://blog.biolizards.be/wp-content/uploads/2012/04/IMG_20120410_170251.jpg"><img class="size-full wp-image-960 alignnone" title="IMG_20120410_170251" src="http://blog.biolizards.be/wp-content/uploads/2012/04/IMG_20120410_170251-e1334070387137.jpg" alt="" width="216" height="255" /></a>       <a href="http://blog.biolizards.be/wp-content/uploads/2012/04/images.jpg"><img class="size-full wp-image-961 alignnone" title="images" src="http://blog.biolizards.be/wp-content/uploads/2012/04/images.jpg" alt="" width="249" height="203" /></a></p>
<p>NOw the Software: since we are living in a time of financial crisis and budget cuts I looked for a opensource solution and found one.</p>
<p>In fact I found multiple but the most common are kannel and SMS Server Tools.<br />
Here is the info from the sites:</p>
<p><a style="color: #4a630f; text-decoration: none; line-height: 22px;" href="http://blog.biolizards.be/wp-content/uploads/2012/04/kannel.gif"><img class=" wp-image-958 alignright" title="kannel" src="http://blog.biolizards.be/wp-content/uploads/2012/04/kannel.gif" alt="" width="108" height="108" /></a></p>
<div><span style="color: #4a630f;"><span style="line-height: 22px;"><br />
</span></span></p>
<blockquote><p>Kannel is a compact and very powerful open source WAP and SMS gateway, used widely across the globe both for serving trillions of short messages (SMS), WAP Push service indications and mobile internet connectivity.  <a href="http://www.kannel.org/">http://www.kannel.org/</a></p></blockquote>
<blockquote>
<p style="text-align: left;"><a href="http://blog.biolizards.be/wp-content/uploads/2012/04/smstools3.gif"><img class="wp-image-959 aligncenter" title="smstools3" src="http://blog.biolizards.be/wp-content/uploads/2012/04/smstools3.gif" alt="" width="362" height="54" /></a>The <em>SMS Server Tools 3</em> is a SMS Gateway software which can send and receive short messages through GSM modems and mobile phones. <a href="http://smstools3.kekekasvi.com/">http://smstools3.kekekasvi.com</a></p>
</blockquote>
<p>I chose for the SMS Server Tools (or smstools) because for what I wanted to do SM Server Tools 3 seemed much simpler then kannel to set up. I think there are a lot more features and possibilities with Kannel but I didn&#8217;t want to get into a hard configuration for a simpel task.</p>
<p>Next I walk you through how I set the sms gateway up.</p>
<p>First of all we need a linux operating system. I chose for a Debian, smstools can run on every linux if you compile it.<br />
I&#8217;m not going in to a default installation of debian.</p>
<p>Ok the system is installed let&#8217;s be sure that the system and the package list is up to date.</p>
<pre class="brush: bash; title: ; notranslate">
apt-get upgrade
apt-get update</pre>
<p>smstools itself is easily installed beceause the package is in the debian repository.<br />
To install it just type:</p>
<pre class="brush: bash; title: ; notranslate">apt-get install smstools</pre>
<p>Now that smstools is installed we will need to configure it.<br />
The configuration file for smstools can be found in /etc/smsd.conf<br />
If the file is not here you need to start the sms Deamon<br />
(the deamon will create a default configuration the first time it starts)</p>
<pre class="brush: bash; title: ; notranslate">invoke-rc.d smstools start</pre>
<p>Now that the file is there we need to find some more information about the stick.<br />
Does the system recognize the stick, does it load the driver, where is the device connected to ?</p>
<p>To check it I started a tail on the messages system log file</p>
<pre class="brush: bash; title: ; notranslate">tail -f /var/log/messages</pre>
<p>It&#8217;s time to connect the USB stick to the computer and watch the messages:</p>
<blockquote><p>[ 1755.609974] usb 1-2: new high speed USB device using ehci_hcd and address 3<br />
[ 1756.154721] usb 1-2: New USB device found, idVendor=12d1, idProduct=1001<br />
[ 1756.154724] usb 1-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0<br />
[ 1756.154727] usb 1-2: Product: HUAWEI Mobile<br />
[ 1756.154728] usb 1-2: Manufacturer: HUAWEI Technology<br />
[ 1756.155753] usb 1-2: configuration #1 chosen from 1 choice<br />
[ 1760.892745] Initializing USB Mass Storage driver&#8230;<br />
[ 1760.894962] scsi6 : SCSI emulation for USB Mass Storage devices<br />
[ 1760.896913] scsi7 : SCSI emulation for USB Mass Storage devices<br />
[ 1760.897064] usbcore: registered new interface driver usb-storage<br />
[ 1760.897066] USB Mass Storage support registered.<br />
[ 1760.912696] usbcore: registered new interface driver usbserial<br />
[ 1760.912767] USB Serial support registered for generic<br />
[ 1760.912865] usbcore: registered new interface driver usbserial_generic<br />
[ 1760.912866] usbserial: USB Serial Driver core<br />
[ 1760.923068] USB Serial support registered for GSM modem (1-port)<br />
[ 1760.923404] option 1-2:1.0: GSM modem (1-port) converter detected<br />
[ 1760.923564] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0<br />
[ 1760.923571] option 1-2:1.1: GSM modem (1-port) converter detected<br />
[ 1760.923938] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1<br />
[ 1760.924146] option 1-2:1.2: GSM modem (1-port) converter detected<br />
[ 1760.924222] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2<br />
[ 1760.924237] usbcore: registered new interface driver option<br />
[ 1760.924238] option: v0.7.2:USB Driver for GSM modems<br />
[ 1766.270295] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2<br />
[ 1766.271401] scsi 7:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2<br />
[ 1766.296211] sr1: scsi-1 drive<br />
[ 1766.296366] sr 6:0:0:0: Attached scsi generic sg2 type 5<br />
[ 1766.297135] sd 7:0:0:0: Attached scsi generic sg3 type 0<br />
[ 1766.308267] sd 7:0:0:0: [sdb] Attached SCSI removable disk</p></blockquote>
<p>As you can see my computer found a couple of devices for the usb stick and connected them.<br />
The one&#8217;s I&#8217;m intresed in are the GSM modem&#8217;s. Those are connected to ttyUSB0, ttyUSB1 and ttyUSB2.</p>
<p>Another way to check that the device is connected is by using the command</p>
<pre class="brush: bash; title: ; notranslate">lsusb</pre>
<p>This is a utility to get information about the USB buses in the system and the connected devices.<br />
When I run it i see my Huawei stick popping up <img src='http://blog.biolizards.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<blockquote><p>Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem</p></blockquote>
<p>For more information on the ttyUSB devices you can run the following commands:</p>
<pre class="brush: bash; title: ; notranslate">
udevadm info -q all -n /dev/ttyUSB0
udevadm info -q all -n /dev/ttyUSB1
udevadm info -q all -n /dev/ttyUSB2
</pre>
<p>Why am I telling you this ? Beceause you might not be as lucky as me to get a working recognized stick.<br />
So these commands will help you to find more information to troubleshoot.</p>
<p>Ok let&#8217;s go back to the configuration<br />
Open it with a text editor (I&#8217;m using nano comes standard with debian and is easy to use)</p>
<pre class="brush: bash; title: ; notranslate">
nano /etc/smsd.conf
</pre>
<p>There is a lot of information here and samples configuration I&#8217;m only going to show you what configuration I used. So if you have the same device as me you can copy and paste this.</p>
<pre class="brush: bash; title: ; notranslate">
#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
#

devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
receive_before_send = no
autosplit = 3

[GSM1]
init = AT+CPMS=&quot;ME&quot;,&quot;ME&quot;,&quot;ME&quot;
device = /dev/ttyUSB1
incoming = yes
pin = 1111
baudrate = 19200
</pre>
<p>You can find more information about the configuratio parameters on the SMS server toools site: <a href="http://smstools3.kekekasvi.com/index.php?p=configure">http://smstools3.kekekasvi.com/index.php?p=configure</a></p>
<p>In the file I&#8217;m defining in wich directories my messages will come, wich log file needs to be used, that the messages needs to be split etc &#8230;</p>
<p>But I&#8217; want to draw you&#8217;re attention to The [GSM1] section.<br />
This is where we define wich devices needs to be used  and the option.</p>
<p>First of all for the modem I&#8217;m using the Huawei we need an initialization command: AT+CPMS=&#8221;ME&#8221;,&#8221;ME&#8221;,&#8221;ME&#8221;</p>
<p>A thank you at the community for this info<br />
The community can be found here: <a href="http://smstools3.kekekasvi.com/board.php">http://smstools3.kekekasvi.com/board.php</a></p>
<p>Then the device U see know why we needed that information<br />
both /dev/ttyUSB0 and /dev/ttyUSB1 should work but I use /dev/ttyUSB1</p>
<p>Then I simply define my sims pin code and the baudrate to be used.<br />
Save the configuration and restart the sms deamon</p>
<pre class="brush: bash; title: ; notranslate">invoke-rc.d smstools restart</pre>
<p>Check the log file for any errors (/var/log/smstools/smsd.log)</p>
<p>Time to test<br />
Send a text message with you&#8217;re mobile phone to the number of the sim that you put in the USB stick.<br />
The message should come in the  incoming folder (/var/spool/sms/incoming) If not check the log file to troubleshoot.</p>
<p>Now let&#8217;s test sending a message.<br />
Create a file in the  /var/spool/sms/outgoing fodler (the name of the file doesn&#8217;t matter) and add the following content:</p>
<pre class="brush: bash; title: ; notranslate">
To: &lt;number&gt;
This is a text message.
</pre>
<p>replace &lt;number&gt; with you&#8217;re mobile phone number<br />
(<span style="color: #ff0000;">ATTENTION</span>: the number must be in the international format)</p>
<p>If you list the directory content of outgoing you will see (if everything goes as it should be) that the file disappears.</p>
<p>If the sms is sent the file will be moved to /var/spool/sms/sent otherwise it will be moved to the directory /var/spool/sms/failed.</p>
<p>If you are lucky you will get a textmessages on you&#8217;re mobile phone with the text &#8220;this is a text message&#8221;</p>
<p>Now you got a basic server that will send sms message from the commandline</p>
<p>In a next post I will show you how to setup &#8220;logging to an sql database&#8221; and how to send an sms from a incoming mail (mail2sms).</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/setting-up-a-smsgateway-part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux WGET and APT-GET through a proxy</title>
		<link>http://blog.biolizards.be/linux-wget-and-apt-get-through-a-proxy/</link>
		<comments>http://blog.biolizards.be/linux-wget-and-apt-get-through-a-proxy/#comments</comments>
		<pubDate>Thu, 10 May 2012 12:25:22 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=1029</guid>
		<description><![CDATA[I always need to search how to solve the issue to get wget and apt-get working through a proxy server, therefore I&#8217;m posting it here. On the prompt enter: Replace &#60;proxy server hostname&#62; with the hostname of the proxyserver (eg: &#8230;<p class="read-more"><a href="http://blog.biolizards.be/linux-wget-and-apt-get-through-a-proxy/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I always need to search how to solve the issue to get wget and apt-get working through a proxy server, therefore I&#8217;m posting it here.</p>
<p>On the prompt enter:</p>
<pre class="brush: bash; title: ; notranslate">export http_proxy=&quot;http://&lt;proxy server hostname&gt;:&lt;port&gt;/&quot; </pre>
<p>Replace &lt;proxy server hostname&gt; with the hostname of the proxyserver (eg: mickey.localdomain.local)<br />
Replace &lt;port&gt; with the port the proxy uses (most common is port 8080)</p>
<p>If you need to login to your proxy use:</p>
<pre class="brush: bash; title: ; notranslate">export http_proxy=&quot;http://&lt;user&gt;:&lt;password&gt;@&lt;proxy server hostname&gt;:&lt;port&gt;/&quot; </pre>
<p>Replace &lt;username&gt; with your username<br />
Replace &lt;password&gt; with your password</p>
<p>You can also set a proxy for<strong> ftp, gopher and wais<br />
</strong>Here are some examples:</p>
<pre class="brush: bash; title: ; notranslate">
http_proxy=&quot;http://your.proxy.server:8080/&quot;;   export http_proxy
ftp_proxy=&quot;http://your.proxy.server:8080/&quot;;    export ftp_proxy
gopher_proxy=&quot;http://your.proxy.server:8080/&quot;; export gopher_proxy
wais_proxy=&quot;http://your.proxy.server:8080/&quot;;   export wais_proxy
</pre>
<p>If you need to connect to host without connecting through the proxy you can use the <strong>no_proxy </strong>variable<br />
eg:</p>
<pre class="brush: bash; title: ; notranslate">export no_proxy=&quot;192.168.0.1,localdomain&quot;</pre>
<p>This will set an exception for 192.168.0.1 and the local domain named:localdomain</p>
<p>After a logoff or reboot the settings you just did will be forgotten to solve this you can enter the commands in the file <strong>/etc/profile</strong>.</p>
<p>&nbsp;</p>
<p>Another way is to put everything in a script and run that script at login.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/linux-wget-and-apt-get-through-a-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install vmwaretools on SLES 11</title>
		<link>http://blog.biolizards.be/install-vmwaretools-on-sles-11/</link>
		<comments>http://blog.biolizards.be/install-vmwaretools-on-sles-11/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 13:19:21 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=1018</guid>
		<description><![CDATA[This is a short step by step to install the vmware tools on SLES 11 Install gcc compiler Install kernel headers Mount the cdrom drive. (In the vmware client select the virtual machine, select guest and select install vmware tools) &#8230;<p class="read-more"><a href="http://blog.biolizards.be/install-vmwaretools-on-sles-11/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>This is a short step by step to install the vmware tools on SLES 11</p>
<p>Install gcc compiler</p>
<pre class="brush: bash; title: ; notranslate">yast2 -i gcc</pre>
<p>Install kernel headers</p>
<pre class="brush: bash; title: ; notranslate">yast2 -i kernel-source</pre>
<p>Mount the cdrom drive.<br />
(In the vmware client select the virtual machine, select guest and select install vmware tools)</p>
<p>Make sure you have mounted the VMware tools virtual cd from the host before moving on.</p>
<pre class="brush: bash; title: ; notranslate">mount /dev/cdrom /mnt/</pre>
<p>Extract VMware tools to the tmp directory:</p>
<pre class="brush: bash; title: ; notranslate">tar -C /tmp -zxvf /mnt/VMwareTools-x.x.x.tar.gz</pre>
<p>Unmount the virtual cd:</p>
<pre class="brush: bash; title: ; notranslate">umount /mnt</pre>
<p>Make sure you run the following command from the Console, don&#8217;t try to run it using SSH because the network will be restarted and the installation will fail.</p>
<pre class="brush: bash; title: ; notranslate">cd /tmp/vmware-tools-distrib
./vmware-install.pl
</pre>
<p>Accept the defaults for every question. Make sure you&#8217;re located inside the vmware-tools-distrib folder when executing the vmware-install.pl script or the installation will fail.</p>
<p>If during the setup you didn&#8217;t let the vmware-config-tools script run, run it:</p>
<pre class="brush: bash; title: ; notranslate">/usr/bin/vmware-config-tools.pl</pre>
<p>To finish the installation and start the virtual machine with VMware tools installed, reboot the virtual machine:</p>
<pre class="brush: bash; title: ; notranslate">reboot</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/install-vmwaretools-on-sles-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install vmware tools on debian 6 (lenny)</title>
		<link>http://blog.biolizards.be/install-vmware-tools-on-debian-6-lenny/</link>
		<comments>http://blog.biolizards.be/install-vmware-tools-on-debian-6-lenny/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 16:10:21 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=987</guid>
		<description><![CDATA[Install kernel headers and some tools used to install VMware tools: Mount the cdrom drive. Make sure you have mounted the VMware tools virtual cd from the host before moving on. Extract VMware tools to the tmp directory: Unmount the &#8230;<p class="read-more"><a href="http://blog.biolizards.be/install-vmware-tools-on-debian-6-lenny/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Install kernel headers and some tools used to install VMware tools:</p>
<pre class="brush: bash; title: ; notranslate">apt-get install binutils cpp gcc make psmisc linux-headers-$(uname -r) libglib2.0-0</pre>
<p>Mount the cdrom drive. Make sure you have mounted the VMware tools virtual cd from the host before moving on.</p>
<pre class="brush: bash; title: ; notranslate">mount /dev/cdrom /mnt/</pre>
<p>Extract VMware tools to the tmp directory:</p>
<pre class="brush: bash; title: ; notranslate">tar -C /tmp -zxvf /mnt/VMwareTools-x.x.x.tar.gz</pre>
<p>Unmount the virtual cd:</p>
<pre class="brush: bash; title: ; notranslate">umount /mnt</pre>
<p>Make sure you run the following command from the Console, don&#8217;t try to run it using SSH because the network will be restarted and the installation will fail.</p>
<pre class="brush: bash; title: ; notranslate">cd /tmp/vmware-tools-distrib
./vmware-install.pl
</pre>
<p>Accept the defaults for every question. Make sure you&#8217;re located inside the vmware-tools-distrib folder when executing the vmware-install.pl script or the installation will fail.</p>
<p>If during the setup you didn&#8217;t let the vmware-config-tools script run, run it:</p>
<pre class="brush: bash; title: ; notranslate">/usr/bin/vmware-config-tools.pl</pre>
<p>To finish the installation and start the virtual machine with VMware tools installed, reboot the virtual machine:</p>
<pre class="brush: bash; title: ; notranslate">reboot</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/install-vmware-tools-on-debian-6-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Down :-S</title>
		<link>http://blog.biolizards.be/wordpress-down-s/</link>
		<comments>http://blog.biolizards.be/wordpress-down-s/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 13:45:35 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Global]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=947</guid>
		<description><![CDATA[Hi guys, I&#8217;m sorry for the long downtime. I had to move my hosting to another provider and didn&#8217;t go as well as I thought it would :-S One tip for you all do an export of you&#8217;re wordpress from &#8230;<p class="read-more"><a href="http://blog.biolizards.be/wordpress-down-s/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.biolizards.be/wp-content/uploads/2012/04/acme.jpg"><img class="aligncenter size-full wp-image-949" title="acme" src="http://blog.biolizards.be/wp-content/uploads/2012/04/acme.jpg" alt="" width="500" height="240" /></a></p>
<p>Hi guys,</p>
<p>I&#8217;m sorry for the long downtime.<br />
I had to move my hosting to another provider and didn&#8217;t go as well as I thought it would :-S</p>
<p>One tip for you all do an export of you&#8217;re wordpress from time to time.<br />
Now I had to rebuild my wordpress site from scratch with some sql imports for the content and file transfers for the photo&#8217;s, documents, plugins and themes.</p>
<p>But enough said the site is back up and I have a new post coming up &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/wordpress-down-s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VBscript: Check OS Version Information and Detect 32-bit or 64-bit Windows</title>
		<link>http://blog.biolizards.be/vbscript-check-os-version-information-and-detect-32-bit-or-64-bit-windows/</link>
		<comments>http://blog.biolizards.be/vbscript-check-os-version-information-and-detect-32-bit-or-64-bit-windows/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 09:08:55 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[HTA]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[vbscript]]></category>
		<category><![CDATA[32]]></category>
		<category><![CDATA[64]]></category>
		<category><![CDATA[bit]]></category>
		<category><![CDATA[Check OS]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=937</guid>
		<description><![CDATA[A little script to check the version of the OS Detect 32-bit or 64-bit Windows There are 2 options here A simpler and more correcter way would be Putting this together in an Html Application (HTA) makes:]]></description>
			<content:encoded><![CDATA[<p>A little script to check the version of the OS</p>
<pre class="brush: vb; title: ; notranslate">
Set dtmConvertedDate = CreateObject(&quot;WbemScripting.SWbemDateTime&quot;)

strComputer = &quot;.&quot;
Set objWMIService = GetObject(&quot;winmgmts:&quot; _
    &amp; &quot;{impersonationLevel=impersonate}!\\&quot; &amp; strComputer &amp; &quot;\root\cimv2&quot;)

Set colOperatingSystems = objWMIService.ExecQuery _
    (&quot;Select * from Win32_OperatingSystem&quot;)

For Each objOperatingSystem in colOperatingSystems
    Wscript.Echo &quot;Boot Device: &quot; &amp; objOperatingSystem.BootDevice
    Wscript.Echo &quot;Build Number: &quot; &amp; objOperatingSystem.BuildNumber
    Wscript.Echo &quot;Build Type: &quot; &amp; objOperatingSystem.BuildType
    Wscript.Echo &quot;Caption: &quot; &amp; objOperatingSystem.Caption
    Wscript.Echo &quot;Code Set: &quot; &amp; objOperatingSystem.CodeSet
    Wscript.Echo &quot;Country Code: &quot; &amp; objOperatingSystem.CountryCode
    Wscript.Echo &quot;Debug: &quot; &amp; objOperatingSystem.Debug
    Wscript.Echo &quot;Encryption Level: &quot; &amp; objOperatingSystem.EncryptionLevel
    dtmConvertedDate.Value = objOperatingSystem.InstallDate
    dtmInstallDate = dtmConvertedDate.GetVarDate
    Wscript.Echo &quot;Install Date: &quot; &amp; dtmInstallDate
    Wscript.Echo &quot;Licensed Users: &quot; &amp; _
        objOperatingSystem.NumberOfLicensedUsers
    Wscript.Echo &quot;Organization: &quot; &amp; objOperatingSystem.Organization
    Wscript.Echo &quot;OS Language: &quot; &amp; objOperatingSystem.OSLanguage
    Wscript.Echo &quot;OS Product Suite: &quot; &amp; objOperatingSystem.OSProductSuite
    Wscript.Echo &quot;OS Type: &quot; &amp; objOperatingSystem.OSType
    Wscript.Echo &quot;Primary: &quot; &amp; objOperatingSystem.Primary
    Wscript.Echo &quot;Registered User: &quot; &amp; objOperatingSystem.RegisteredUser
    Wscript.Echo &quot;Serial Number: &quot; &amp; objOperatingSystem.SerialNumber
    Wscript.Echo &quot;Version: &quot; &amp; objOperatingSystem.Version
Next
</pre>
<p>Detect 32-bit or 64-bit Windows</p>
<p>There are 2 options here</p>
<pre class="brush: vb; title: ; notranslate">
Set WshShell = CreateObject(&quot;WScript.Shell&quot;)

OsType = WshShell.RegRead(&quot;HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE&quot;)

If OsType = &quot;x86&quot; then
wscript.echo &amp; &quot;Windows 32bit system detected&quot;
elseif OsType = &quot;AMD64&quot; then
wscript.echo &amp; &quot;Windows 64bit system detected&quot;
end if
</pre>
<p>A simpler and more correcter way would be</p>
<pre class="brush: vb; title: ; notranslate">
wscript.echo GetObject(&quot;winmgmts:root\cimv2:Win32_Processor='cpu0'&quot;).AddressWidth
</pre>
<p>Putting this together in an Html Application (HTA) makes:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Outlook ReProfiling ...&lt;/title&gt;

&lt;HTA:APPLICATION
ID=&quot;objHTAOutlReProfiling&quot;
APPLICATIONNAME=&quot;OutlReProfiling&quot;
SCROLL=&quot;no&quot;
SINGLEINSTANCE=&quot;yes&quot;
WINDOWSTATE=&quot;maximize&quot;
&gt;
&lt;/head&gt;

&lt;style type=&quot;text/css&quot;&gt;
div.centered{
display:block;
position:absolute;
top:5%;
left:10%;
width:80%;
}
&lt;/style&gt;

&lt;body&gt;
&lt;div id=DataAreaNL&gt;
&lt;/div&gt;
&lt;/doby&gt;
&lt;SCRIPT Language=&quot;VBScript&quot;&gt;
Set dtmConvertedDate = CreateObject(&quot;WbemScripting.SWbemDateTime&quot;)

strComputer = &quot;.&quot;
Set objWMIService = GetObject(&quot;winmgmts:&quot; _
&amp; &quot;{impersonationLevel=impersonate}!\\&quot; &amp; strComputer &amp; &quot;\root\cimv2&quot;)

Set colOperatingSystems = objWMIService.ExecQuery _
(&quot;Select * from Win32_OperatingSystem&quot;)

For Each objOperatingSystem in colOperatingSystems
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Boot Device: &quot; &amp; objOperatingSystem.BootDevice &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Build Number: &quot; &amp; objOperatingSystem.BuildNumber &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Build Type: &quot; &amp; objOperatingSystem.BuildType &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Caption: &quot; &amp; objOperatingSystem.Caption &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Code Set: &quot; &amp; objOperatingSystem.CodeSet &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Country Code: &quot; &amp; objOperatingSystem.CountryCode &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Debug: &quot; &amp; objOperatingSystem.Debug &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Encryption Level: &quot; &amp; objOperatingSystem.EncryptionLevel &amp; &quot;&lt;br&gt;&quot;
dtmConvertedDate.Value = objOperatingSystem.InstallDate
dtmInstallDate = dtmConvertedDate.GetVarDate
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Install Date: &quot; &amp; dtmInstallDate  &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Licensed Users: &quot; &amp; _
objOperatingSystem.NumberOfLicensedUsers &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Organization: &quot; &amp; objOperatingSystem.Organization &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;OS Language: &quot; &amp; objOperatingSystem.OSLanguage &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;OS Product Suite: &quot; &amp; objOperatingSystem.OSProductSuite &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;OS Type: &quot; &amp; objOperatingSystem.OSType &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Primary: &quot; &amp; objOperatingSystem.Primary &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Registered User: &quot; &amp; objOperatingSystem.RegisteredUser &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Serial Number: &quot; &amp; objOperatingSystem.SerialNumber &amp; &quot;&lt;br&gt;&quot;
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp;&quot;Version: &quot; &amp; objOperatingSystem.Version &amp; &quot;&lt;br&gt;&quot;
Next

Set WshShell = CreateObject(&quot;WScript.Shell&quot;)

OsType = WshShell.RegRead(&quot;HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE&quot;)

If OsType = &quot;x86&quot; then
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp; &quot;Windows 32bit system detected&quot; &amp; &quot;&lt;BR&gt;&quot;
elseif OsType = &quot;AMD64&quot; then
DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp; &quot;Windows 64bit system detected&quot; &amp; &quot;&lt;BR&gt;&quot;
end if

DataAreaNL.InnerHTML=DataAreaNL.InnerHTML &amp; GetObject(&quot;winmgmts:root\cimv2:Win32_Processor='cpu0'&quot;).AddressWidth &amp; &quot;&lt;BR&gt;&quot;

&lt;/SCRIPT&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/vbscript-check-os-version-information-and-detect-32-bit-or-64-bit-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just received some new toys part 2</title>
		<link>http://blog.biolizards.be/just-received-some-new-toys-part-2/</link>
		<comments>http://blog.biolizards.be/just-received-some-new-toys-part-2/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 19:43:08 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Quadcopter]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=920</guid>
		<description><![CDATA[The third order also came in. These are almost all the parts for the quadcopter. More info about the arducopter (arduino based quadcopter) http://code.google.com/p/arducopter/wiki/ArduCopter]]></description>
			<content:encoded><![CDATA[<p>The third order also came in.<br />
These are almost all the parts for the quadcopter.</p>

<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_201448/' title='IMG_20111220_201448'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_201448-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_201448" title="IMG_20111220_201448" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_201810/' title='IMG_20111220_201810'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_201810-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_201810" title="IMG_20111220_201810" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_201828/' title='IMG_20111220_201828'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_201828-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_201828" title="IMG_20111220_201828" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_201939/' title='IMG_20111220_201939'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_201939-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_201939" title="IMG_20111220_201939" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_201958/' title='IMG_20111220_201958'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_201958-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_201958" title="IMG_20111220_201958" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_202416/' title='IMG_20111220_202416'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_202416-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_202416" title="IMG_20111220_202416" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_202425/' title='IMG_20111220_202425'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_202425-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_202425" title="IMG_20111220_202425" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_202451/' title='IMG_20111220_202451'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_202451-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_202451" title="IMG_20111220_202451" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_202657/' title='IMG_20111220_202657'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_202657-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_202657" title="IMG_20111220_202657" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys-part-2/img_20111220_202740/' title='IMG_20111220_202740'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111220_202740-e1324410104234-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111220_202740" title="IMG_20111220_202740" /></a>

<p>More info about the arducopter (arduino based quadcopter)</p>
<p><a href="http://code.google.com/p/arducopter/wiki/ArduCopter">http://code.google.com/p/arducopter/wiki/ArduCopter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/just-received-some-new-toys-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just received some new toys</title>
		<link>http://blog.biolizards.be/just-received-some-new-toys/</link>
		<comments>http://blog.biolizards.be/just-received-some-new-toys/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 18:05:59 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Quadcopter]]></category>

		<guid isPermaLink="false">http://blog.biolizards.be/?p=863</guid>
		<description><![CDATA[I was thinking about doing some electronic projects for some time now. So this year I got myself some presents. Today the first 2 packages arrived I bought some parts to build a UAV quadcopter and some parts to start &#8230;<p class="read-more"><a href="http://blog.biolizards.be/just-received-some-new-toys/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I was thinking about doing some electronic projects for some time now.<br />
So this year I got myself some presents.<br />
Today the first 2 packages arrived <img src='http://blog.biolizards.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I bought some parts to build a UAV quadcopter and some parts to start playing with arduino.</p>
<p>Here are some pictures of the unpacking:</p>

<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171031/' title='IMG_20111219_171031'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171031-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171031" title="IMG_20111219_171031" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171042/' title='IMG_20111219_171042'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171042-e1324316617611-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171042" title="IMG_20111219_171042" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171105/' title='IMG_20111219_171105'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171105-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171105" title="IMG_20111219_171105" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171154/' title='IMG_20111219_171154'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171154-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171154" title="IMG_20111219_171154" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171225/' title='IMG_20111219_171225'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171225-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171225" title="IMG_20111219_171225" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171354/' title='IMG_20111219_171354'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171354-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171354" title="IMG_20111219_171354" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171402/' title='IMG_20111219_171402'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171402-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171402" title="IMG_20111219_171402" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171621/' title='IMG_20111219_171621'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171621-e1324317539218-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171621" title="IMG_20111219_171621" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171629/' title='IMG_20111219_171629'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171629-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171629" title="IMG_20111219_171629" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171636/' title='IMG_20111219_171636'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171636-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171636" title="IMG_20111219_171636" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171642/' title='IMG_20111219_171642'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171642-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171642" title="IMG_20111219_171642" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171656/' title='IMG_20111219_171656'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171656-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171656" title="IMG_20111219_171656" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171704/' title='IMG_20111219_171704'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171704-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171704" title="IMG_20111219_171704" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171710/' title='IMG_20111219_171710'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171710-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171710" title="IMG_20111219_171710" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_171719/' title='IMG_20111219_171719'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_171719-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_171719" title="IMG_20111219_171719" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172141/' title='IMG_20111219_172141'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172141-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172141" title="IMG_20111219_172141" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172244/' title='IMG_20111219_172244'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172244-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172244" title="IMG_20111219_172244" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172253/' title='IMG_20111219_172253'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172253-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172253" title="IMG_20111219_172253" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172352/' title='IMG_20111219_172352'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172352-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172352" title="IMG_20111219_172352" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172359/' title='IMG_20111219_172359'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172359-e1324317305305-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172359" title="IMG_20111219_172359" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172408/' title='IMG_20111219_172408'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172408-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172408" title="IMG_20111219_172408" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172515/' title='IMG_20111219_172515'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172515-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172515" title="IMG_20111219_172515" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172621/' title='IMG_20111219_172621'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172621-e1324317386496-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172621" title="IMG_20111219_172621" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172634/' title='IMG_20111219_172634'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172634-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172634" title="IMG_20111219_172634" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172745/' title='IMG_20111219_172745'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172745-e1324317288562-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172745" title="IMG_20111219_172745" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172904/' title='IMG_20111219_172904'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172904-e1324317346390-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172904" title="IMG_20111219_172904" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_172947/' title='IMG_20111219_172947'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_172947-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_172947" title="IMG_20111219_172947" /></a>
<a href='http://blog.biolizards.be/just-received-some-new-toys/img_20111219_173007/' title='IMG_20111219_173007'><img width="150" height="150" src="http://blog.biolizards.be/wp-content/uploads/2011/12/IMG_20111219_173007-150x150.jpg" class="attachment-thumbnail" alt="IMG_20111219_173007" title="IMG_20111219_173007" /></a>

<p>Now still waiting for my quadcopter parts &#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/just-received-some-new-toys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HomeLab: DNS step 2: Setting up a BIND slave DNS server on SLES</title>
		<link>http://blog.biolizards.be/homelab-dns-step-2-setting-up-a-bind-slave-dns-server-on-sles/</link>
		<comments>http://blog.biolizards.be/homelab-dns-step-2-setting-up-a-bind-slave-dns-server-on-sles/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 16:01:02 +0000</pubDate>
		<dc:creator>DreamOn</dc:creator>
				<category><![CDATA[Homelab]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[bind9]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[master]]></category>
		<category><![CDATA[slave]]></category>
		<category><![CDATA[sles]]></category>

		<guid isPermaLink="false">http://www.biolizards.be/blog/?p=534</guid>
		<description><![CDATA[DNS will be a major service in our network and must be up and running 100% To accomplish this we will install a secondary DNS server (slave). The purpose of a slave name server is to share the load with &#8230;<p class="read-more"><a href="http://blog.biolizards.be/homelab-dns-step-2-setting-up-a-bind-slave-dns-server-on-sles/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.biolizards.be/wp-content/uploads/2011/09/bind9_debian1.jpg"><img class="alignright size-full wp-image-839" title="bind9_debian" src="http://blog.biolizards.be/wp-content/uploads/2011/09/bind9_debian1.jpg" alt="" width="150" height="126" /></a>DNS will be a major service in our network and must be up and running 100% To accomplish this we will install a secondary DNS server (slave).</p>
<blockquote><p>The purpose of a slave name server is to share the load with the master server, or handle the entire load if the master server is down. A slave name server loads its data over the network from another name server usually the master name server, but it can load from another slave name server too.<br />
This process is called a zone transfer.</p></blockquote>
<p>For the installation of a slave dns we need a second virtual machine:</p>
<ul>
<li>1 vCPU</li>
<li>512 MB Ram</li>
<li>Harddisk – 10GB</li>
<li>Network to your operational lan (ip: 172.30.1.3)</li>
<li>OS SLES 11 (64-bit)</li>
</ul>
<div><span class="Apple-style-span" style="line-height: 18px;">We need to install the bind package on this server to, and do an initial configuration of the server.<span id="more-534"></span></span></div>
<div>I&#8217;ll give you the short version (long version see step 1)</div>
<div>
<p><span style="color: #ff0000;">DNSSlave:~ #</span> yast2 -i bind bind-utils<br />
<span style="color: #ff0000;">DNSSlave:~ #</span> ls /etc/named.conf.include<br />
<span style="color: #ff0000;">DNSSlave:~ #</span> touch /etc/named.conf.include<br />
<span style="color: #ff0000;">DNSSlave:~ #</span> vi /etc/named.conf</p>
<pre><span style="color: #3366ff;">options {</span>
     # The directory statement defines the name server's working directory
     <span style="color: #3366ff;">directory "/var/lib/named";</span>
     # Write dump and statistics file to the log subdirectory.    
     # The pathenames are relative to the chroot jail.

     # Defines the absolute path where BIND dumps the database (cache)   
     # in response to a rndc dumpdb.
     <span style="color: #3366ff;">dump-file "/var/log/named_dump.db";</span>
     # File-name to which data will be written when the command rndc
     # stats is issued.
    <span style="color: #3366ff;"> statistics-file "/var/log/named.stats";</span>
     # The forwarders record contains a list of servers to which queries
     # should be forwarded.  Enable this line and modify the IP address to
     # your provider's name server.  Up to three servers may be listed.

     # The listen-on-v6 record enables or disables listening on IPv6  
     # interfaces.  Allowed values are 'any' and 'none' or a list of addresses.
     <span style="color: #3366ff;">listen-on-v6 { any; };</span>
     # If notify is set to yes (default), notify messages are sent to other
     # name servers when the the zone data is changed.  Instead of setting
     # a global 'notify' statement in the 'options' section, a separate
     # 'notify' can be added to each zone definition.
     <span style="color: #3366ff;">notify no;</span>
     # version specifies the string that will be returned to a version.
     # bind query when using the chaos class only. We tend to use it in
     # all named.conf files to avoid giving out a version number such that
     # an attacker can exploit known version-specific weaknesses.
     <span style="color: #3366ff;">version "Biolizards DNS server"; };</span>

# The following zone definitions don't need any modification.  The first one
# is the definition of the root name servers.  The second one defines
# localhost while the third defines the reverse lookup for localhost.
<span style="color: #3366ff;">zone "." in { type hint; file "root.hint"; }; zone "localhost" in { type master; file "localhost.zone"; }; zone "0.0.127.in-addr.arpa" in { type master; file "127.0.0.zone"; };</span>
# Include the meta include file generated by createNamedConfInclude.  This
# includes all files as configured in NAMED_CONF_INCLUDE_FILES from
# /etc/sysconfig/named
<span style="color: #3366ff;">include "/etc/named.conf.include";</span></pre>
</div>
<p>Now before we go on we need to modify the configuration on our <span style="color: #ff0000;">masterdns</span><br />
We need to allow our slavedns to download the zone file from the masterdns<br />
Open the file /etc/named.conf.include for editing on the <strong>masterdns</strong></p>
<p><span style="color: #ff0000;">DNSMaster:~ #</span> vi /etc/named.conf.include</p>
<p>Modify the content by adding<br />
allow-transfer { 172.30.1.3; };<br />
to each zone config  where 172.30.1.3 is the Ip address from our slavedns</p>
<pre>zone "biolizards.local" in {
 type master;
 file "master/biolizards.local.zone";
 allow-transfer {172.30.1.3;};
}; 

zone "30.172.in-addr.arpa" in {
 type master;
 file "master/172.30.zone";
 allow-transfer {172.30.1.3;};
};</pre>
<p>Don&#8217;t forget to load the new configuration</p>
<p>By a reload<br />
<span style="color: #ff0000;">DNSMaster:~ #</span> service named reload</p>
<p>or a restart of the named service<br />
<span style="color: #ff0000;">DNSMaster:~ #</span> service named restart</p>
<p>Now that the masterdns is configured to allow the slave to download the zone files, we can further configure  the slavedns. Let&#8217;s configure the zone files:</p>
<p><span style="color: #ff0000;">DNSSlave:~ #</span> vi /etc/named.conf.include</p>
<p>Insert the following content:</p>
<pre>zone "biolizards.local" in {
 type slave;
 file "slave/biolizards.local.zone";
 masters { 172.30.1.2; };
}; 

zone "30.172.in-addr.arpa" in {
 type slave;
 file "slave/172.30.zone";
 masters { 172.30.1.2; };
};</pre>
<p>Note that we changed the type to slave and the file location to the slave directory.<br />
We also added the line masters { 172.30.1.2; };<br />
Witch will tell the named service who the master dns server is for this zone.</p>
<p>Don&#8217;t forget to modify the rights for he working directory and sub-folder/files<br />
<span style="color: #ff0000;">DNSSlave:~ #</span> chown named.named /var/lib/named/ -R</p>
<p>and to add the named service to the different runlevels<br />
<span style="color: #ff0000;">DNSSlave:~ #</span> chkconfig –add named</p>
<p>Now we are ready to start the named service.<br />
<span class="Apple-style-span" style="color: #333333; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px; white-space: normal;"><span style="color: #ff0000;">DNSSlave:~ #</span> service named start</span></p>
<p>Once the slave server has been started you can check the /var/lib/named/slave directory and you should notice the new files called &#8220;biolizards.local.zone&#8221; and &#8220;172.30.zone&#8221;  which have been transfered from the master server.</p>
<p>Check the syslog for any errors</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.biolizards.be/homelab-dns-step-2-setting-up-a-bind-slave-dns-server-on-sles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
