<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Wallento&#039;s Random Stuff</title>
	<atom:link href="http://wallento.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wallento.wordpress.com</link>
	<description>random computer admin stuff</description>
	<lastBuildDate>Tue, 14 Jun 2011 07:32:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='wallento.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Wallento&#039;s Random Stuff</title>
		<link>http://wallento.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wallento.wordpress.com/osd.xml" title="Wallento&#039;s Random Stuff" />
	<atom:link rel='hub' href='http://wallento.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Manage Information and Documents with a Desktop Wiki &#8211; Encrypted backup</title>
		<link>http://wallento.wordpress.com/2011/01/15/manage-information-and-documents-with-a-desktop-wiki-encrypted-backup/</link>
		<comments>http://wallento.wordpress.com/2011/01/15/manage-information-and-documents-with-a-desktop-wiki-encrypted-backup/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 20:37:28 +0000</pubDate>
		<dc:creator>wallento</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wallento.wordpress.com/?p=40</guid>
		<description><![CDATA[In Manage Information and Documents with a Desktop Wiki I presented my simple setup of a desktop wiki. Since my former storage places mostly had a backup, an automated backup of the wiki on an existing server using scp with keys (no password prompt) is desirable. First of all, I decided for duplicity as tool [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=40&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In <a title="Manage Information and Documents with a Desktop Wiki" href="http://wallento.wordpress.com/2011/01/15/manage-information-and-documents-with-a-desktop-wiki/">Manage Information and Documents with a Desktop Wiki</a> I presented my simple setup of a desktop wiki. Since my former storage  places mostly had a backup, an automated backup of the wiki on an  existing server using scp with keys (no password prompt) is desirable.</p>
<p>First  of all, I decided for <a href="http://duplicity.nongnu.org/">duplicity</a> as tool to perform this backup  encrypted automatically. I decided to do it encrypted, because there is  sensible data in the wiki, a reason why my whole home directory is  encrypted using ecryptfs. The scripts below need some small changes in  case your home directory is not encrypted (and the cronjob thus runs  even when you are not logged in).</p>
<p>To use the backup routine  described below, you need a gpg key and an ssh key. The gpg key is  required to encrypt the data transferred to the remote server, while the  ssh key is required to do a passwordless transfer.</p>
<p>Basically, I use the following two lines to do the automatic backup and rotate full backups periodically:</p>
<pre>
duplicity  incremental --full-if-older-than 2W --encrypt-key $ENCRYPTKEY  $LOCAL_DIRECTORY scp://$USER@$HOST//$REMOTE_DIRECTORY &gt;&gt;  $HOME/logs/wikibackup.log
duplicity remove-all-but-n-full 2 --force scp://$USER@$HOST//$REMOTE_DIRECTORY &gt;&gt; /$HOME/logs/wikibackup.log
</pre>
<p>The  first line does an incremental backup of the local directory (e.g. <tt>/home/user/desktopwiki</tt>) to a remote host with given directory. For  encryption the gpg key ID is given as parameter and output logged. Every  two weeks it performs a full backup and between normal incremental  backups. This is just to not grow the remote directory file list  permanently. The seond line deletes the full backups except the current  and the one before (that is in fact not necessary, the paramter could  also be 1).</p>
<p>When you have your ssh key in your gnome keyring and  run those commands with the respective variables set in a terminal while  logged in, the backup is performed.</p>
<p>Apparently I don&#8217;t trust myself in not forgetting to run this from time to time. So a cronjob is required.</p>
<p>When  setting this up, the problem comes up, that the ssh key needs to be  opened with a password, because cron does not know your gnome keyring.  One solution is to create a separate keyring for your cronjob, but in  the given case, a backup is only necessary when I am logged in, because  there are no changes otherwise. Beside this, a backup is only possible  when I am logged in, because the encrypted home directory is not open  otherwise and data not accessible.</p>
<p>So, I decided to just propagate  the information where the keyring can be used (the <tt>SSH_AUTH_SOCKET</tt> environment variable) to the backup-script called by cron via a simple  text file. When cron calls the script, the variable is apparently unknown.</p>
<p>Thus I modified wikistart.sh by simply adding the following line at the end:</p>
<pre>echo $SSH_AUTH_SOCK &gt; ~/desktopwiki/wikibackup_sshauthsock</pre>
<p>My backup script then simply exports the content to the <tt>SSH_AUTH_SOCK</tt> variable for duplicity and the gnome keyring is used then.</p>
<p>The full backup script <tt>/home/user/desktopwiki/wikibackup.sh</tt>:<br />
<pre class="brush: plain;">
#!/bin/bash

HOST=remote.host.name
USER=username
LOCAL_DIRECTORY=/home/user/desktopwiki
REMOTE_DIRECTORY=/home/user/desktopwiki
ENCRYPTKEY=yourkeyid
export SSH_AUTH_SOCK=`cat /home/user/desktopwiki/wikibackup_sshauthsock`

if [ ! -e $SSH_AUTH_SOCK ]; then
	exit;
fi

ssh $HOST &quot;ls&quot; &amp;&gt; /dev/null

if [ $? == 0 ]; then
	duplicity incremental --full-if-older-than 2W --encrypt-key $ENCRYPTKEY $LOCAL_DIRECTORY scp://$USER@$HOST//$REMOTE_DIRECTORY &gt;&gt; /home/user/logs/wikibackup.log
	duplicity remove-all-but-n-full 2 --force scp://$USER@$HOST//$REMOTE_DIRECTORY &gt;&gt; /home/user/logs/wikibackup.log
fi
</pre></p>
<p>Finally, I set a simple cronjob to run the backup in the background:<br />
<pre class="brush: plain;">
0 * * * * /home/wallento/desktopwiki/wikibackup.sh
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wallento.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wallento.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wallento.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wallento.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wallento.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wallento.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wallento.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wallento.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wallento.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wallento.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wallento.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wallento.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wallento.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wallento.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=40&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wallento.wordpress.com/2011/01/15/manage-information-and-documents-with-a-desktop-wiki-encrypted-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44505ea8bd5954cb9f3752ea1f2464be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wallento</media:title>
		</media:content>
	</item>
		<item>
		<title>Manage Information and Documents with a Desktop Wiki</title>
		<link>http://wallento.wordpress.com/2011/01/15/manage-information-and-documents-with-a-desktop-wiki/</link>
		<comments>http://wallento.wordpress.com/2011/01/15/manage-information-and-documents-with-a-desktop-wiki/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 17:08:05 +0000</pubDate>
		<dc:creator>wallento</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[moin]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://wallento.wordpress.com/?p=32</guid>
		<description><![CDATA[For quite a while I used Zim as a desktop wiki. It did a good job storing Notes, ToDo-Lists ets. But recently I came to the conclusion, I need a more powerful wiki engine and I also wanted to get rid of those different places where documents are stored, namely my IMAP inbox, home directory, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=32&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For quite a while I used Zim as a desktop wiki. It did a good job storing Notes, ToDo-Lists ets.</p>
<p>But recently I came to the conclusion, I need a more powerful wiki engine and I also wanted to get rid of those different places where documents are stored, namely my IMAP inbox, home directory, several SVNs etc..</p>
<p>Instead my new way of doing this is to store group documents in SVN and have a local working copy. Group information and general documents are stored in an intranet wiki. And my personal documents and information I will store on a local wiki.</p>
<p>My choice is <a href="http://www.moinmo.in">MoinMoin</a> as locally running wiki. It is quite simple, pure python and file based. Just call a simple script and it runs as a service. I want to start the server when I log in to Gnome, it can&#8217;t even be started before, because my home folder is encrypted using ecryptfs.</p>
<p>Here are the steps to take:</p>
<ol>
<li><a href="http://moinmo.in/MoinMoinDownload">Download the latest version of MoinMoin</a> and extract it to some local folder, such as<tt> /home/user/desptopwiki/moin-1.9.3</tt></li>
<li>Start the server by starting it in a terminal python <tt>~/moin-1.9.3/wikiserver.py</tt></li>
<li>Test if it is running correctly by checking <tt>htp://localhost:8080</tt> in a browser</li>
<li>I modified some settings of the server for example by activating the front page in <tt>~/desktopwiki/moin-1.9.3/wikiconfig.py</tt></li>
<li>To manage the server I created two scripts:
<ul>
<li><tt>wikistart.sh</tt><br />
<pre class="brush: plain;">
#!/bin/bash

if [ -e ~/desktopwiki/wiki.pid ]; then
    ~/desktopwiki/wikistop.sh
fi

~/desktopwiki/moin-1.9.3/wikiserver.py &amp;&gt; /dev/null &amp;
echo $! &gt; ~/desktopwiki/wiki.pid
</pre></li>
<li><tt>wikistop.sh</tt><br />
<pre class="brush: plain;">
#!/bin/bash

if [ ! -e ~/desktopwiki/wiki.pid ]; then
     exit 0
fi

PID=`cat ~/desktopwiki/wiki.pid`

TMP=`ps -p $PID -o args= | grep wikiserver.py`

if [ -n &quot;$TMP&quot; ]; then
     kill $PID
fi

rm ~/desktopwiki/wiki.pid
</pre></li>
</ul>
<p>I know this can be done much better and nicer, but this way it works fine. Don&#8217;t forget to make them executable!</li>
<li>Finally I added <tt>~/desktopwiki/wikistart.sh</tt> to the programs started at gnome login via <tt>System-&gt;Preferences-&gt;Startup Applications</tt></li>
<li></li>
</ol>
<p>I did some minor changes to the Wiki configuration, but MoinMoin can be (locally!) used without nearly any changes to the configuration.</p>
<p>A last thing I did was to use prism to display the wiki and created a starter in the panel for this, because it looks nicer without all the browser stuff..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wallento.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wallento.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wallento.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wallento.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wallento.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wallento.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wallento.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wallento.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wallento.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wallento.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wallento.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wallento.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wallento.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wallento.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=32&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wallento.wordpress.com/2011/01/15/manage-information-and-documents-with-a-desktop-wiki/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44505ea8bd5954cb9f3752ea1f2464be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wallento</media:title>
		</media:content>
	</item>
		<item>
		<title>Using FreeNX on RHEL Enterprise Server 4.8 with Ubuntu 10.04 nxclient</title>
		<link>http://wallento.wordpress.com/2010/08/12/using-freenx-on-rhel-enterprise-server-4-8-with-ubuntu-10-04-nxclient/</link>
		<comments>http://wallento.wordpress.com/2010/08/12/using-freenx-on-rhel-enterprise-server-4-8-with-ubuntu-10-04-nxclient/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 15:08:42 +0000</pubDate>
		<dc:creator>wallento</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[FreeNX]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wallento.wordpress.com/?p=27</guid>
		<description><![CDATA[Puh, quite annoying stuff. Again, we had some issues with keyboard mapping in remote desktop related stuff (still pending to get xrdp correctly running). For a project we need a Redhat Enterprise Linux 4, so that I opted for an evaluation of the ES. For project partners, we needed NoMachine&#8217;s NX. Due to the user [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=27&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Puh, quite annoying stuff. Again, we had some issues with keyboard mapping in remote desktop related stuff (still pending to get xrdp correctly running).</p>
<p>For a project we need a Redhat Enterprise Linux 4, so that I opted for an evaluation of the ES. For project partners, we needed NoMachine&#8217;s NX. Due to the user limitation, the open source variant freenx came to focus. First issue was a missing usermod, what I solved quite dirty. Finally, the keyboard mapping did not work. AltGr was kind of page down and key up was screenshot, others with even no effect.</p>
<p>Doing the google thing, it took me two hours to come to the solution mentioned <a href="http://old.nabble.com/Arrow-keys-do-not-work--temporary-solution--td29116728.html">here</a>:</p>
<p>Open the /usr/bin/nxnode script for editing and go for some line around<br />
<code>cat &lt; "$USER_FAKE_HOME/.nx/C-$sess_id/options"</code><br />
In the following line, I added<br />
<code>${client:+client=$client,}</code><br />
after<br />
<code>[..]${kbload:+kbload=$kbload,}${keymap:+keymap=$keymap,}</code><br />
and it works fine now!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wallento.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wallento.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wallento.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wallento.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wallento.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wallento.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wallento.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wallento.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wallento.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wallento.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wallento.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wallento.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wallento.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wallento.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=27&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wallento.wordpress.com/2010/08/12/using-freenx-on-rhel-enterprise-server-4-8-with-ubuntu-10-04-nxclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44505ea8bd5954cb9f3752ea1f2464be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wallento</media:title>
		</media:content>
	</item>
		<item>
		<title>Xilinx Platform Studio SDK (eclipse) on Ubuntu 9.10</title>
		<link>http://wallento.wordpress.com/2010/08/11/xilinx-platform-studio-sdk-eclipse-on-ubuntu-9-10/</link>
		<comments>http://wallento.wordpress.com/2010/08/11/xilinx-platform-studio-sdk-eclipse-on-ubuntu-9-10/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 17:48:45 +0000</pubDate>
		<dc:creator>wallento</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xilinx]]></category>

		<guid isPermaLink="false">http://wallento.wordpress.com/?p=22</guid>
		<description><![CDATA[We recently had a bug with Xilinx Software under Ubuntu 9.10: The windows in the SDK did not render correctly. Thanks to this post I found out it has to do with the client-side windows change in GDK, that can be turned off with the environment variable GDK_NATIVE_WINDOWS=1. Hence I patched the xps_sdk script with: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=22&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We recently had a bug with Xilinx Software under Ubuntu 9.10: The windows in the SDK did not render correctly. Thanks to <a href="http://www.elektronensturm.de/blog/?p=26">this post</a> I found out it has to do with the client-side windows change in GDK, that can be turned off with the environment variable <code>GDK_NATIVE_WINDOWS=1</code>. Hence I patched the xps_sdk script with:</p>
<p><code>@@ -337,5 +337,5 @@<br />
 # Launch SDK<br />
 #############################################################################</p>
<p>-$SDK_HOME/eclipse $USER_WORKSPACE -vm $JAVA_VM -startup $SDK_HOME/startup.jar $SDK_ARGS<br />
+GDK_NATIVE_WINDOWS=1 $SDK_HOME/eclipse $USER_WORKSPACE -vm $JAVA_VM -startup $SDK_HOME/startup.jar $SDK_ARGS<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wallento.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wallento.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wallento.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wallento.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wallento.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wallento.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wallento.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wallento.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wallento.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wallento.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wallento.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wallento.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wallento.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wallento.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=22&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wallento.wordpress.com/2010/08/11/xilinx-platform-studio-sdk-eclipse-on-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44505ea8bd5954cb9f3752ea1f2464be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wallento</media:title>
		</media:content>
	</item>
		<item>
		<title>Tivoli Storage Manager and ecryptfs</title>
		<link>http://wallento.wordpress.com/2010/06/15/tivoli-storage-manager-and-ecryptfs/</link>
		<comments>http://wallento.wordpress.com/2010/06/15/tivoli-storage-manager-and-ecryptfs/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 08:10:20 +0000</pubDate>
		<dc:creator>wallento</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://wallento.wordpress.com/?p=18</guid>
		<description><![CDATA[On my notebook I use the encrypted home directory function of Ubuntu 10.04, that is an ecryptfs mount at login. When running the Tivoli Storage Manager, the backup stores the encrypted directory structure. But instead I wanted to store the stuff &#8220;unencrypted&#8221; to enable easier restore. To use TSM in that way, just add to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=18&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On my notebook I use the encrypted home directory function of Ubuntu 10.04, that is an ecryptfs mount at login.</p>
<p>When running the Tivoli Storage Manager, the backup stores the encrypted directory structure. But instead I wanted to store the stuff &#8220;unencrypted&#8221; to enable easier restore.</p>
<p>To use TSM in that way, just add to your dsm.sys</p>
<p><pre class="brush: plain;">
VIRTUALMOUNTPOINT /home/username
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wallento.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wallento.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wallento.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wallento.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wallento.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wallento.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wallento.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wallento.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wallento.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wallento.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wallento.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wallento.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wallento.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wallento.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=18&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wallento.wordpress.com/2010/06/15/tivoli-storage-manager-and-ecryptfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44505ea8bd5954cb9f3752ea1f2464be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wallento</media:title>
		</media:content>
	</item>
		<item>
		<title>Using svn and git concurrently</title>
		<link>http://wallento.wordpress.com/2010/06/12/using-svn-and-git-concurrently/</link>
		<comments>http://wallento.wordpress.com/2010/06/12/using-svn-and-git-concurrently/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 18:51:50 +0000</pubDate>
		<dc:creator>wallento</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://wallento.wordpress.com/?p=6</guid>
		<description><![CDATA[I have used git at work for my local development for quite a time. In our network we have a subversion server for collaboration, so that I used git-svn locally. Now I wanted to publish an open source project and came to the idea to use github for the first time. After first commits I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=6&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have used git at work for my local development for quite a time. In our network we have a subversion server for collaboration, so that I used git-svn locally. Now I wanted to publish an open source project and came to the idea to use github for the first time. After first commits I noticed that the commit messages apparently hold the git-svn information, that is the reference to the revision. That is the result of that I want to use our internal svn and github concurrently.</p>
<p>My solution to use my local svn backend and use the git master branch in the normal way, is to branch the svn and work with rebasing and cherry-picks, to not confuse the world with my internal svn stuff. This is a quite simple solution, but maybe helps you to solve the same issue.</p>
<p>First you need to branch from your current master HEAD.</p>
<p><pre class="brush: bash; gutter: false;">
git branch svn
git checkout svn
</pre></p>
<h2>Initialize SVN from git</h2>
<p>Initially we want to push our current stuff to the subversion repository. This is not absolutely straight forward, but easily done as described <a href="http://eikke.com/importing-a-git-tree-into-a-subversion-repository/" target="_blank">here</a>.</p>
<p><pre class="brush: bash; auto-links: false; gutter: false; wrap-lines: false;">
git svn init http://url/to/svn
git svn fetch
echo `git log --pretty=oneline master | tail -n1 | awk '{print $1}'` `git show-ref git-svn | awk '{print $1}'` &gt;&gt; .git/info/grafts
</pre></p>
<p>Now we can commit the current git to the subversion server</p>
<p><pre class="brush: bash; auto-links: false; gutter: false; wrap-lines: false;">
git svn dcommit
</pre></p>
<h2>Push stuff to SVN</h2>
<p>Pushing stuff to svn is pretty straight-forward as a series of commands, that can e.g., be put in an alias:</p>
<p><pre class="brush: bash; auto-links: false; gutter: false; wrap-lines: false;">
git stash
git checkout svn
git rebase master
git svn rebase
git svn dcommit
git checkout master
git stash apply
</pre></p>
<h2>Get stuff from SVN</h2>
<p>This part is kinda ugly, because we need to rewrite IDs. The best efficient way I found so far is manual, but I hope I can elaborate an automated way for it.</p>
<p>First get the current revision from SVN.</p>
<p><pre class="brush: bash; auto-links: false; gutter: false; wrap-lines: false;">
git checkout svn
git svn rebase
</pre></p>
<p>Now some comparison work is required, because you will need to get the revisions one per one and rewrite the commit messages. First check the log in the svn branch</p>
<p><pre class="brush: bash; auto-links: false; gutter: false; wrap-lines: false;">
git log
</pre></p>
<p>You will see the new revision. Now we will pick this one also for our git master branch, so that we first switch there:</p>
<p><pre class="brush: bash; auto-links: false; gutter: false; wrap-lines: false;">
git checkout master
</pre></p>
<p>and now pick the commit by the id in svn branch</p>
<p><pre class="brush: bash; auto-links: false; gutter: false; wrap-lines: false;">
git cherry-pick commit-id
</pre></p>
<p>Now we still need to rewrite the comment, that can be done by amending the last commit</p>
<p><pre class="brush: bash; auto-links: false; gutter: false; wrap-lines: false;">
git commit --amend
</pre></p>
<p>will open the editor and let you remove the git-svn-id line.</p>
<p>This may not be the best way to do it, but I hope it helps you with such a layout.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wallento.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wallento.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wallento.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wallento.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wallento.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wallento.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wallento.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wallento.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wallento.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wallento.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wallento.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wallento.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wallento.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wallento.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wallento.wordpress.com&amp;blog=14171854&amp;post=6&amp;subd=wallento&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wallento.wordpress.com/2010/06/12/using-svn-and-git-concurrently/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/44505ea8bd5954cb9f3752ea1f2464be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">wallento</media:title>
		</media:content>
	</item>
	</channel>
</rss>
