<?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>Braindumps of an IT Specialist</title>
	<atom:link href="http://www.prodeta.nl/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.prodeta.nl</link>
	<description>Too many things to remember</description>
	<lastBuildDate>Mon, 01 Mar 2010 14:24:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Open a shared calendar in Exchange 2007 webaccess</title>
		<link>http://www.prodeta.nl/?p=158</link>
		<comments>http://www.prodeta.nl/?p=158#comments</comments>
		<pubDate>Mon, 01 Mar 2010 14:15:02 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=158</guid>
		<description><![CDATA[By default you need to have full mailbox access to open a co-workers mailbox.
To open a shared calendar to which you have been given rights by your co-worker, do the following:
append /owa/full_email_address_co_worker/?cmd=contents&#38;module=calendar to the url of Exchange 2007 webaccess.
https://webmail.domain.com/owa/name@domain.com/?cmd=contents&#38;module=calendar
This should also work for Inbox, Tasks and Contacts:
/?cmd=contents&#38;module=inbox
/?cmd=contents&#38;module=tasks
/?cmd=contents&#38;module=contacts
source: Microsoft Technet

]]></description>
			<content:encoded><![CDATA[<p>By default you need to have full mailbox access to open a co-workers mailbox.<br />
To open a shared calendar to which you have been given rights by your co-worker, do the following:</p>
<p>append <span style="color: #0000ff;">/owa/</span><span style="color: #00ff00;">full_email_address_co_worker</span><span style="color: #0000ff;">/?cmd=contents&amp;module=calendar</span> to the url of Exchange 2007 webaccess.</p>
<p>https://webmail.domain.com/owa/name@domain.com/?cmd=contents&amp;module=calendar</p>
<p>This should also work for Inbox, Tasks and Contacts:</p>
<p><span style="color: #0000ff;">/?cmd=contents&amp;module=inbox<br />
/?cmd=contents&amp;module=tasks<br />
/?cmd=contents&amp;module=contacts</span></p>
<p><span style="color: #0000ff;"><span style="color: #000000;">source: <a href="http://technet.microsoft.com/en-us/library/bb232199%28EXCHG.80%29.aspx" target="_blank">Microsoft Technet</a></span><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=158</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mobile theme active</title>
		<link>http://www.prodeta.nl/?p=155</link>
		<comments>http://www.prodeta.nl/?p=155#comments</comments>
		<pubDate>Thu, 18 Feb 2010 15:52:06 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=155</guid>
		<description><![CDATA[www.prodeta.nl is now using a mobile theme, so it should take a lot less time to load the site
]]></description>
			<content:encoded><![CDATA[<p>www.prodeta.nl is now using a mobile theme, so it should take a lot less time to load the site</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=155</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synology Network Backups to rsync-compatible servers</title>
		<link>http://www.prodeta.nl/?p=105</link>
		<comments>http://www.prodeta.nl/?p=105#comments</comments>
		<pubDate>Thu, 14 Jan 2010 10:56:36 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[synology]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=105</guid>
		<description><![CDATA[I wanted an off-site backup destination for my <a href="http://www.synology.com/enu/products/DS109/index.php">Synology DS109</a>. I decided to use an 'old' NSLU2 which I had lying around. I have installed Debian Lenny on a 2GB USB flash disk, <a href="http://www.cyrius.com/debian/nslu2/">this</a> is a good website for installing Debian on a NSLU2, if you want to try it yourself. 
 
The best method for low-bandwith backups (except for the first one) is the use of rsync]]></description>
			<content:encoded><![CDATA[<p>I wanted an off-site backup destination for my <a href="http://www.synology.com/enu/products/DS109/index.php">Synology DS109</a>. I decided to use an &#8216;old&#8217; NSLU2 which I had lying around. I have installed Debian Lenny on a 2GB USB flash disk, <a href="http://www.cyrius.com/debian/nslu2/">this</a> is a good website for installing Debian on a NSLU2, if you want to try it yourself.</p>
<p>The best method for low-bandwith backups (except for the first one) is the use of rsync. So let&#8217;s get a rsync daemon running and worry about security later.</p>
<p>Assuming rsync is installed, let&#8217;s create the config file used by the daemon in /etc/rsyncd.conf:<br />
<code><br />
vi /etc/rsyncd.conf<br />
log file = /var/log/rsyncd.log<br />
pid file = /var/run/rsyncd.pid<br />
lock file = /var/run/rsync.lock</p>
<p>read only = yes<br />
uid = root<br />
gid = root<br />
use chroot = no</p>
<p>[synology]<br />
path = /path/to/backuplocation/<br />
comment = NAS rsync backup<br />
read only = no<br />
list = yes<br />
auth users = root<br />
secrets file = /etc/rsyncd.secrets</p>
<p>ESC<br />
:wq<br />
</code></p>
<p>Basically the daemon runs as root and has a backup module &#8220;synology&#8221; waiting for connections on port 873. To restrict only specific users to connect to the module I used &#8216;auth users = root&#8217;, put the username/password in /etc/rsyncd.secrets:<br />
<code><br />
vi /etc/rsyncd.secrets<br />
root:12345<br />
ESC<br />
:wq<br />
chmod 640 /etc/rsyncd.secrets<br />
/etc/init.d/rsyncd start<br />
</code><br />
Let see if everything is running correctly:<br />
<code><br />
srv> rsync root@192.168.1.2::<br />
synology    	NAS rsync backup<br />
</code></p>
<p>Now we can use our rsync client or the <a href="http://forum.synology.com/wiki/index.php/How_to_conduct_Network_Backups_to_rsync-compatible_servers">network backup feature</a> of the synology nas to replicate to the NSLU2 rsync daemon.</p>
<p>all without encryption and using the root account, not too secure, right?<br />
So, what are our options?</p>
<p>1. Use no encryption<br />
2. Use an SSH tunnel<br />
3. Use SSH and a unprivileged user</p>
<p>assuming the first one is not an option, we can create an SSH tunnel with the following command<br />
<code><br />
ssh -f -L 873:192.168.1.2:873 root@192.168.1.2 sleep 10; rsync -avh /path/to/source root@localhost::synology<br />
</code><br />
This will create a tunnel on port 873 of the localhost to port 873 on the remote host to execute a sleep command. The sleep command causes no stress on the remote host. The tunnel will disconnect itself when the sleep command is done, so we need to execute the rsync command to keep the tunnel active. For more information on auto-closing ssh tunnels, check this <a href="http://www.g-loaded.eu/2006/11/24/auto-closing-ssh-tunnels/">website</a>.</p>
<p>This still uses the root account, and also cannot be used with the Network Backup of the Synology. It is possible to use it on the Synology with crontab, but this is not really user-friendly, so we need to create an unprivileged user and connect to the rsync daemon via SSH.</p>
<p>First problem, the rsnc daemon will start with the credentials used by the SSH connection, the allready running daemon will not be used. So we need to have the settings from the running daemon transferred to the home folder of the unprivileged user.</p>
<p>First, create the user, i.e. &#8220;rsyncbackup&#8221;<br />
<code><br />
useradd -d /home/ -m -c "Backup User" -p rsyncbackup<br />
</code><br />
and login as this user.</p>
<p>Create the same rsyncd.conf as we did for the daemon, but focussed on this user:<br />
<code><br />
log file = /home/rsyncbackup/rsyncd.log<br />
pid file = /home/rsyncbackup/rsyncd.pid<br />
lock file = /home/rsyncbackup/rsync.lock</p>
<p>read only = yes<br />
use chroot = no</p>
<p>[synology]<br />
path = /path/to/backuplocation/<br />
comment = NAS rsync backup<br />
read only = no<br />
list = yes<br />
auth users = rsyncbackup<br />
secrets file = /home/rsyncbackup/rsyncd.secrets<br />
</code></p>
<p>Be sure to set te correct permissions for this user to write to the backup destination!</p>
<p>If you start a rsync session using:<br />
<code><br />
rsync -avhe ssh /path/to/source rsyncbackup@192.168.1.2::synology<br />
</code></p>
<p>you will first be prompted for your SSH password and then for the password to access de rsync module &#8220;synology&#8221;.</p>
<p><strong>Now we have a secure (SSH) connection using an account with no permissions other than write to the backup destination.</strong></p>
<p>If you need to automate this, there are many tutorials on the web explaining how to rsync using SSH public keys, <a href="http://www.debianhelp.co.uk/rsync.htm">this</a> is a good place to start.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=105</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable SSH for normal users on Synology</title>
		<link>http://www.prodeta.nl/?p=102</link>
		<comments>http://www.prodeta.nl/?p=102#comments</comments>
		<pubDate>Mon, 21 Dec 2009 20:05:01 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[synology]]></category>
		<category><![CDATA[normal user]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=102</guid>
		<description><![CDATA[edit /etc/passwd 
change the line of the users fron /sbin/nologin to /bin/ash 
 
restart ssh daemon: 
cd /usr/syno/etc.defaults/rc.d/ 
./S95sshd.sh restart &]]></description>
			<content:encoded><![CDATA[<p>edit /etc/passwd<br />
change the line of the users fron /sbin/nologin to /bin/ash</p>
<p>restart ssh daemon:<br />
cd /usr/syno/etc.defaults/rc.d/<br />
./S95sshd.sh restart &</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=102</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debian Lenny on VMware, quick and easy</title>
		<link>http://www.prodeta.nl/?p=97</link>
		<comments>http://www.prodeta.nl/?p=97#comments</comments>
		<pubDate>Mon, 31 Aug 2009 06:39:08 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=97</guid>
		<description><![CDATA[Install as "standard system" 
 
Default repositories: 
deb http://ftp.nl.debian.org/debian/ lenny main 
deb-src http://ftp.nl.debian.org/debian/ lenny main 
 
Configure the network as static 
 vi /etc/network/interfaces 
 
remove all and replace with the following: 
 auto eth0 
 iface eth0 inet static 
 address 10.0.0.1 
 netmask 255.0.0.0 
 network 10.0.0.0 
 broadcast 10.255.255.255 
 gateway 10.0.0.254 
 
 
Install ssh server: 
 apt-get install openssh-server 
 
install a better editor]]></description>
			<content:encoded><![CDATA[<p>Install as &#8220;standard system&#8221;</p>
<p>Default repositories:<br />
deb http://ftp.nl.debian.org/debian/ lenny main<br />
deb-src http://ftp.nl.debian.org/debian/ lenny main</p>
<p>Configure the network as static<br />
 <code>vi /etc/network/interfaces</code></p>
<p>remove all and replace with the following:<br />
 <code>auto eth0<br />
 iface eth0 inet static<br />
         address 10.0.0.1<br />
         netmask 255.0.0.0<br />
         network 10.0.0.0<br />
         broadcast 10.255.255.255<br />
         gateway 10.0.0.254</code></p>
<p>Install ssh server:<br />
 <code>apt-get install openssh-server</code></p>
<p>install a better editor:<br />
 <code>apt-get install vim-nox</code></p>
<p>Clear screen at logoff:<br />
 <code>vi /etc/profile </code><br />
add<br />
 <code>trap clear 0</code> at the top</p>
<p>Install vmware tools<br />
Dependencies:<br />
<code> apt-get install linux-headers-`uname -r` psmisc make gcc-4.1<br />
 ln -s /usr/bin/gcc-4.1 /usr/bin/gcc</code></p>
<p>install/upgrade vmware tools<br />
<code> mount /dev/cdrom /media/cdrom<br />
 cp /media/cdrom/VMwareTools-3.5.0-158874.tar.gz /tmp/<br />
 cd /tmp/<br />
 tar zxvf VMwareTools-3.5.0-158874.tar.gz<br />
 ./vmware-install.pl</code> </p>
<p> SNAPSHOT ! ! !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=97</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synology Mail Station multiple domains, the simple way</title>
		<link>http://www.prodeta.nl/?p=92</link>
		<comments>http://www.prodeta.nl/?p=92#comments</comments>
		<pubDate>Mon, 25 May 2009 09:35:33 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mailstation]]></category>
		<category><![CDATA[multiple domains]]></category>
		<category><![CDATA[station]]></category>
		<category><![CDATA[synology]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=92</guid>
		<description><![CDATA[Use VI to edit /usr/syno/mailstation/etc/main.cf 
 
Find the line 
 
mydestination = $myhostname (this will be the domain you entered in the gui) 
 
For additional domains, just add them to this line, ie: 
 
mydestination = $myhostname mydomain1.com mydomain2.com 
 
Note: Every user will receive mail for all domain names, so johndoe@mydomain1.com, johndoe@mydomain2.com, etc]]></description>
			<content:encoded><![CDATA[<p>Use VI to edit <code>/usr/syno/mailstation/etc/main.cf</code></p>
<p>Find the line</p>
<p><code>mydestination = $myhostname </code>(this will be the domain you entered in the gui)</p>
<p>For additional domains, just add them to this line, ie:</p>
<p><code>mydestination = $myhostname mydomain1.com mydomain2.com</code></p>
<p>Note: Every user will receive mail for all domain names, so johndoe@mydomain1.com, johndoe@mydomain2.com, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=92</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Clear screen on logoff</title>
		<link>http://www.prodeta.nl/?p=87</link>
		<comments>http://www.prodeta.nl/?p=87#comments</comments>
		<pubDate>Mon, 11 May 2009 12:18:10 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=87</guid>
		<description><![CDATA[Add 
trap clear 0 
to the top of /etc/profile]]></description>
			<content:encoded><![CDATA[<p>Add<br />
<code>trap clear 0</code><br />
to the top of /etc/profile</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=87</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The power of netsh</title>
		<link>http://www.prodeta.nl/?p=81</link>
		<comments>http://www.prodeta.nl/?p=81#comments</comments>
		<pubDate>Fri, 08 May 2009 08:12:09 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=81</guid>
		<description><![CDATA[Sometimes you want to have a static address, for testing purposes or something else. 
 
I really dislike going through control panel, network connections, etc just to have a static ip address for a simple action which will take me 10 minutes and then changing it back. 
 
Here is how to automate it, I created a batch file which will set a static ip, subnetmask, default gateway and dns]]></description>
			<content:encoded><![CDATA[<p>Sometimes you want to have a static address, for testing purposes or something else.</p>
<p>I really dislike going through control panel, network connections, etc just to have a static ip address for a simple action which will take me 10 minutes and then changing it back.</p>
<p>Here is how to automate it, I created a batch file which will set a static ip, subnetmask, default gateway and dns followed by a pause command. after you press the any key it will change everything back to dhcp.</p>
<p><code>@ECHO OFF<br />
ECHO Set static address 10.0.0.10?<br />
pause<br />
netsh interface ip set address "Local Area Connection" static 10.0.0.10 255.0.0.0 10.0.0.254 1<br />
netsh interface ip add dns "Local Area Connection" 10.0.0.1<br />
netsh interface ip add dns "Local Area Connection" 10.0.0.2 index=2<br />
ECHO Set dynamic address?<br />
pause<br />
netsh interface ip set address "Local Area Connection" dhcp<br />
netsh interface ip set dns "Local Area Connection" dhcp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=81</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use VCBmounter.exe with ntbackup</title>
		<link>http://www.prodeta.nl/?p=71</link>
		<comments>http://www.prodeta.nl/?p=71#comments</comments>
		<pubDate>Mon, 04 May 2009 11:54:35 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[VCB]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=71</guid>
		<description><![CDATA[With this command you will connect to virtual center and create a file-level mount over the network (no san mode, if you want this (FC or iSCSI) use the option "-m san"). 
 
vcbmounter -h virtualcenter.domain.com -u username -p password -a name:nameofthevm -t file -r c:\mnt\nameofthevm -m nbd 
 
To unmount 
 
vcbmounter -h virtualcenter.domain.com -u username -p password -U c:\mnt\nameofthevm 
 
Although ntbackup is unsupported for use with VCB]]></description>
			<content:encoded><![CDATA[<p>With this command you will connect to virtual center and create a file-level mount over the network (no san mode, if you want this (FC or iSCSI) use the option &#8220;-m san&#8221;).</p>
<p><code>vcbmounter -h virtualcenter.domain.com -u username -p password -a name:nameofthevm -t file -r c:\mnt\nameofthevm -m nbd</code></p>
<p>To unmount</p>
<p><code>vcbmounter -h virtualcenter.domain.com -u username -p password -U c:\mnt\nameofthevm</code></p>
<p>Although ntbackup is unsupported for use with VCB, because it has no pre- and post-scripts, you can however use a batch file to mount de VM, start ntbackup and unmount the vm.</p>
<p>Paste the following in a .bat file and change it to your needs:<br />
<code><br />
@ECHO OFF<br />
SET VCBFW="C:\Program Files\VMware\VMware Consolidated Backup Framework"<br />
%VCBFW%\vcbmounter -h virtualcenter.domain.com -u username -p password -a name:%1 -t file -r c:\mnt\%1 -m nbd<br />
ntbackup backup c:\mnt\%1\letters\c /j "%1 C-disk" /f "c:\ntbackup\%1.bkf" /snap:off /m normal<br />
%VCBFW%\vcbmounter -h virtualcenter.domain.com -u username -p password -U c:\mnt\%1<br />
</code></p>
<p>usage: <code>vcb.bat servername</code><br />
Use Task Scheduler to schedule the backup using this batch file.</p>
<p><span style="color: #000080;">Update:</span><br />
You can also backup the full VM by changing the following in the batch file:<br />
<code>%VCBFW%\vcbmounter -h virtualcenter.domain.com -u username -p password -a name:%1 -t fullvm -r c:\mnt\%1 -m nbd -M 1 -F 1</code><br />
and<br />
<code>ntbackup backup c:\mnt\%1 /j "%1 Full backup" /f "c:\ntbackup\%1.bkf" /snap:off /m normal</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=71</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Access stored usernames and passwords</title>
		<link>http://www.prodeta.nl/?p=69</link>
		<comments>http://www.prodeta.nl/?p=69#comments</comments>
		<pubDate>Mon, 04 May 2009 09:50:34 +0000</pubDate>
		<dc:creator>bantenbrink</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.prodeta.nl/?p=69</guid>
		<description><![CDATA[Click "start" --> "run" 
Type: %windir%\system32\control.exe keymgr.dll]]></description>
			<content:encoded><![CDATA[<p>Click &#8220;start&#8221; &#8211;> &#8220;run&#8221;<br />
Type: %windir%\system32\control.exe keymgr.dll</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prodeta.nl/?feed=rss2&amp;p=69</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
