<?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>x2on.de &#187; Linux</title>
	<atom:link href="http://www.x2on.de/category/software/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x2on.de</link>
	<description>by Felix Schulze - a mobile evangelist. Tutorials for iOS, Android, Mac, Linux, iPhone and more...</description>
	<lastBuildDate>Sun, 29 Jan 2012 18:46:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tutorial: Redmine with Git and Gitosis on Ubuntu 11.04</title>
		<link>http://www.x2on.de/2011/04/23/tutorial-redmine-with-git-and-gitosis-on-ubuntu-11-04/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-redmine-with-git-and-gitosis-on-ubuntu-11-04</link>
		<comments>http://www.x2on.de/2011/04/23/tutorial-redmine-with-git-and-gitosis-on-ubuntu-11-04/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 08:03:40 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Gitosis]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[Repository]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vServer]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=776</guid>
		<description><![CDATA[This is a tutorial for installing redmine on Ubuntu 11.04 with Git integration, managed by Gitosis and a redmine gitosis plugin. It&#8217;s based on my last tutorial about installing redmine ob Ubuntu 8.04: http://www.x2on.de/2010/10/30/tutorial-redmine-with-svn-git-and-gitosis-on-ubuntu-8-04/ 1. Install redmine Get recent version from github (currently 1.1.3) apt-get install git-core mkdir /var/www cd /var/www git clone git://github.com/edavis10/redmine.git cd [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial for installing redmine on Ubuntu 11.04 with Git integration, managed by Gitosis and a redmine gitosis plugin.</p>
<p>It&#8217;s based on my last tutorial about installing redmine ob Ubuntu 8.04: <a href="http://www.x2on.de/2010/10/30/tutorial-redmine-with-svn-git-and-gitosis-on-ubuntu-8-04/">http://www.x2on.de/2010/10/30/tutorial-redmine-with-svn-git-and-gitosis-on-ubuntu-8-04/</a></p>
<h2>1. Install redmine</h2>
<p>Get recent version from github (currently 1.1.3)<br />
<span id="more-776"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> git-core
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www
<span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>edavis10<span style="color: #000000; font-weight: bold;">/</span>redmine.git
<span style="color: #7a0874; font-weight: bold;">cd</span> redmine
<span style="color: #c20cb9; font-weight: bold;">git</span> checkout <span style="color: #660033;">-b</span> 1.1.3 1.1.3</pre></div></div>

<p>Install packages</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby  ruby1.9.1-dev libgemplugin-ruby libgemplugin-ruby1.8  mysql-server apache2-mpm-prefork <span style="color: #c20cb9; font-weight: bold;">wget</span> libruby-extras libruby1.8-extras rake apache2-prefork-dev libapache-dbi-perl libapache2-mod-perl2 libdigest-sha1-perl libmysqlclient15-dev build-essential libcurl4-openssl-dev cron</pre></div></div>

<p>If you like to use Gant-Charts:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> librmagick-ruby1.8</pre></div></div>

<p>Create database</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> redmine <span style="color: #993333; font-weight: bold;">CHARACTER</span> <span style="color: #993333; font-weight: bold;">SET</span> utf8;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">USER</span> <span style="color: #ff0000;">'redmine'</span>@<span style="color: #ff0000;">'localhost'</span> <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'my_password'</span>;
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">ALL</span> privileges <span style="color: #993333; font-weight: bold;">ON</span> redmine<span style="color: #66cc66;">.*</span> <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">'redmine'</span>@<span style="color: #ff0000;">'localhost'</span>;</pre></div></div>

<p>Configure Database Settings</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> redmine<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>database.yml.example redmine<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>database.yml</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> redmine<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>database.yml</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">production:
  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: my_password
  encoding: utf8</pre></div></div>

<p>Install Rubygem (Ubuntu 11.04 has an older version)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>production.cf.rubygems.org<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>rubygems-1.7.2.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz rubygems-1.7.2.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.7.2
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem-ubuntu
ruby setup.rb
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem</pre></div></div>

<p>Install Rails + Rack</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails <span style="color: #660033;">-v</span>=2.3.11
gem <span style="color: #c20cb9; font-weight: bold;">install</span> rack <span style="color: #660033;">-v</span>=1.1.0
gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql
gem <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-v</span>=0.4.2 i18n</pre></div></div>

<p>Configure redmine</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> www-data:www-data files log tmp public<span style="color: #000000; font-weight: bold;">/</span>plugin_assets
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">755</span> files log tmp public<span style="color: #000000; font-weight: bold;">/</span>plugin_assets
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">777</span> public<span style="color: #000000; font-weight: bold;">/</span>plugin_assets
rake generate_session_store
<span style="color: #007800;">RAILS_ENV</span>=production rake db:migrate
<span style="color: #007800;">RAILS_ENV</span>=production rake redmine:load_default_data</pre></div></div>

<p>Test redmine</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby script<span style="color: #000000; font-weight: bold;">/</span>server webrick <span style="color: #660033;">-e</span> production</pre></div></div>

<p>Now you can check http://my_domain.com:3000 if everything works</p>
<h2>2. Apache Integration</h2>
<p>Install passenger (Modify version numbers if needed)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger
passenger-install-apache2-module
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>passenger.load
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>passenger.load <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-enabled<span style="color: #000000; font-weight: bold;">/</span>passenger.load</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>passenger.conf</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">PassengerRoot <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-3.0.7
PassengerRuby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8</pre></div></div>

<p><strong>Alternative:</strong> You can install passenger with ubuntu:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-passenger</pre></div></div>

<p>Configure Apache</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>my_domain</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    ServerName my_domain.com
&nbsp;
    DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>public
&nbsp;
    PassengerDefaultUser www-data
    RailsEnv production
    RailsBaseURI <span style="color: #000000; font-weight: bold;">/</span>redmine
    SetEnv X_DEBIAN_SITEID <span style="color: #ff0000;">&quot;default&quot;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">&gt;</span>
        Order allow,deny
        Allow from all
    <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>apache2.conf</pre></div></div>

<p>Add this at the end of the file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Include <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>passenger.conf</pre></div></div>

<p>Activate your site</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>my_domain <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-enabled<span style="color: #000000; font-weight: bold;">/</span>my_domain</pre></div></div>

<p>Remove default entry</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-enabled<span style="color: #000000; font-weight: bold;">/</span>000-default</pre></div></div>

<p>Restart Apache and it should work</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<h2>3. Git integration</h2>
<p>Install needed packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> inifile
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libnet-ssh-ruby1.8 python-setuptools
gem <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">lockfile</span> net-ssh
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gitosis git-daemon-run acl</pre></div></div>

<p>Activate acl for your partition:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">...
<span style="color: #007800;">UUID</span>=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx <span style="color: #000000; font-weight: bold;">/</span>               ext4    acl,<span style="color: #007800;">errors</span>=remount-ro <span style="color: #000000;">0</span>       <span style="color: #000000;">1</span>
...</pre></div></div>

<p>Reboot your machine:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">reboot</pre></div></div>

<p>Configure gitosis:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-H</span> <span style="color: #660033;">-u</span> gitosis <span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> dsa</pre></div></div>

<p>No Password, default file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> gitosis <span style="color: #c20cb9; font-weight: bold;">cat</span> ~gitosis<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa.pub <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-H</span> <span style="color: #660033;">-u</span> gitosis gitosis-init
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> -i.orig <span style="color: #ff0000;">'s:/var/cache:/srv/gitosis:g'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sv<span style="color: #000000; font-weight: bold;">/</span>git-daemon<span style="color: #000000; font-weight: bold;">/</span>run
<span style="color: #c20cb9; font-weight: bold;">sudo</span> sv restart <span style="color: #c20cb9; font-weight: bold;">git-daemon</span></pre></div></div>

<p>Install gitosis plugin for redmine:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">setfacl <span style="color: #660033;">-m</span> user:www-data:r-x,mask:r-x ~gitosis<span style="color: #000000; font-weight: bold;">/</span>.ssh
setfacl <span style="color: #660033;">-m</span> user:www-data:r--,mask:r-- ~gitosis<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine
script<span style="color: #000000; font-weight: bold;">/</span>plugin <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>xdissent<span style="color: #000000; font-weight: bold;">/</span>redmine_gitosis.git
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> www-data <span style="color: #007800;">X_DEBIAN_SITEID</span>=default <span style="color: #007800;">RAILS_ENV</span>=production rake db:migrate:plugins
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<p>Open your Browser, got to my_domain and login. Go to Administration &#8211; Plugins &#8211; Configure Redmine Gitosis plugin.<br />
Change localhost to my_domain.<br />
Change xdissent.com to my_domain.</p>
<p><strong>Have fun!</strong></p>
<h3>Source:</h3>
<p><a href="http://brantinteractive.com/2007/02/16/getting-the-mysql-gem-installed-on-ubuntu/ " target="_blank"> http://brantinteractive.com/2007/02/16/getting-the-mysql-gem-installed-on-ubuntu/<br />
</a><a href="http://www.redmine.org/wiki/1/RedmineInstall" target="_blank"> http://www.redmine.org/wiki/1/RedmineInstall</a><br />
<a href="http://wiki.ousli.org/index.php/Redmine_in_Ubuntu_Jaunty_9.04" target="_blank"> http://wiki.ousli.org/index.php/Redmine_in_Ubuntu_Jaunty_9.04</a><br />
<a href="http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_Ubuntu" target="_blank"> http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_Ubuntu</a><br />
<a href="http://www.redmine.org/wiki/redmine/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl " target="_blank"> http://www.redmine.org/wiki/redmine/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl<br />
</a><a href="http://xdissent.com/2010/05/04/github-clone-with-redmine/ " target="_blank"> http://xdissent.com/2010/05/04/github-clone-with-redmine/<br />
</a><a href="http://dev.remarkablewit.com/redmine/projects/dev-server/wiki" target="">http://dev.remarkablewit.com/redmine/projects/dev-server/wiki</a><a href="http://xdissent.com/2010/05/04/github-clone-with-redmine/ " target="_blank"><br />
</a><a href="https://github.com/xdissent/redmine_gitosis" target="">https://github.com/xdissent/redmine_gitosis</a><a href="http://xdissent.com/2010/05/04/github-clone-with-redmine/ " target="_blank"><br />
</a><a href="http://www.redmine.org/issues/2525" target="">http://www.redmine.org/issues/2525</a><a href="http://xdissent.com/2010/05/04/github-clone-with-redmine/ " target="_blank"><br />
</a><a href="http://wiki.ubuntuusers.de/acl" target="_blank">http://wiki.ubuntuusers.de/acl</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2011/04/23/tutorial-redmine-with-git-and-gitosis-on-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>67</slash:comments>
		</item>
		<item>
		<title>Tutorial: Redmine with SVN, Git and Gitosis on Ubuntu 8.04</title>
		<link>http://www.x2on.de/2010/10/30/tutorial-redmine-with-svn-git-and-gitosis-on-ubuntu-8-04/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tutorial-redmine-with-svn-git-and-gitosis-on-ubuntu-8-04</link>
		<comments>http://www.x2on.de/2010/10/30/tutorial-redmine-with-svn-git-and-gitosis-on-ubuntu-8-04/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 07:54:24 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[8.04]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Gitosis]]></category>
		<category><![CDATA[LTS]]></category>
		<category><![CDATA[Passenger]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[Repository]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vServer]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=643</guid>
		<description><![CDATA[This is a tutorial for installing redmine on Ubuntu 8.04 with SVN and Git integration (managed by Gitosis and a redmine gitosis plugin). UPDATE #1 &#8211; 2011-04-23: New Tutorial for Redmine with Git and Gitosis on Ubuntu 11.04:http://www.x2on.de/2011/04/23/tutorial-redmine-with-git-and-gitosis-on-ubuntu-11-04/ 1. Install redmine Get recent trunk version from github (currently 1.02) apt-get install git-core mkdir /var/www cd [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial for installing redmine on Ubuntu 8.04 with SVN and Git integration (managed by Gitosis and a redmine gitosis plugin).</p>
<p>UPDATE #1 &#8211; 2011-04-23: New Tutorial for Redmine with Git and Gitosis on Ubuntu 11.04:<a href="http://www.x2on.de/2011/04/23/tutorial-redmine-with-git-and-gitosis-on-ubuntu-11-04/">http://www.x2on.de/2011/04/23/tutorial-redmine-with-git-and-gitosis-on-ubuntu-11-04/</a></p>
<h2>1. Install redmine</h2>
<p>Get recent trunk version from github (currently 1.02)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> git-core
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www
<span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>edavis10<span style="color: #000000; font-weight: bold;">/</span>redmine.git</pre></div></div>

<p>Install packages</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby ruby1.8-dev libgemplugin-ruby libgemplugin-ruby1.8  mysql-server apache2-mpm-prefork <span style="color: #c20cb9; font-weight: bold;">wget</span> libruby-extras libruby1.8-extras rails subversion rake apache2-prefork-dev libapache-dbi-perl libapache2-mod-perl2 libdigest-sha1-perl libapache2-svn libmysqlclient15-dev build-essential libcurl4-openssl-dev cron</pre></div></div>

<p>Create database</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> redmine <span style="color: #993333; font-weight: bold;">CHARACTER</span> <span style="color: #993333; font-weight: bold;">SET</span> utf8;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">USER</span> <span style="color: #ff0000;">'redmine'</span>@<span style="color: #ff0000;">'localhost'</span> <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'my_password'</span>;
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">ALL</span> privileges <span style="color: #993333; font-weight: bold;">ON</span> redmine<span style="color: #66cc66;">.*</span> <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">'redmine'</span>@<span style="color: #ff0000;">'localhost'</span>;</pre></div></div>

<p>Configure Database Settings</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> redmine<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>database.yml.example redmine<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>database.yml</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> redmine<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>database.yml</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">production:
  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: 47w8t2938qfge2
  encoding: utf8</pre></div></div>

<p>Install Rubygem (Ubuntu 8.04 has an older version)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>production.cf.rubygems.org<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.7.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz rubygems-1.3.7.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.7
ruby setup.rb
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem</pre></div></div>

<p>Install Rails + Rack</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails <span style="color: #660033;">-v</span>=2.3.5
gem <span style="color: #c20cb9; font-weight: bold;">install</span> rack <span style="color: #660033;">-v</span>=1.0.1
gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql</pre></div></div>

<p>Configure redmine</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> www-data:www-data files log tmp public<span style="color: #000000; font-weight: bold;">/</span>plugin_assets
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">755</span> files log tmp public<span style="color: #000000; font-weight: bold;">/</span>plugin_assets
rake generate_session_store
<span style="color: #007800;">RAILS_ENV</span>=production rake db:migrate
<span style="color: #007800;">RAILS_ENV</span>=production rake redmine:load_default_data</pre></div></div>

<p>Test redmine</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby script<span style="color: #000000; font-weight: bold;">/</span>server webrick <span style="color: #660033;">-e</span> production</pre></div></div>

<p>Now you can check http://my_domain.com:3000 if everything works</p>
<h2>2. Apache Integration</h2>
<p>Install passenger (Modify version numbers if needed)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/apache2/mod_passenger.so&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>passenger.load
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>passenger.load <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-enabled<span style="color: #000000; font-weight: bold;">/</span>passenger.load</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>passenger.conf</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">PassengerRoot <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-3.0.0
PassengerRuby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8</pre></div></div>

<p>Configure Apache</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>my_domain</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">    ServerName my_domain.com
&nbsp;
    DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>public
&nbsp;
    ServerAdmin user<span style="color: #000000; font-weight: bold;">@</span>example.com
    LogLevel warn
    ErrorLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>redmine_error
    CustomLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>redmine_access combined
&nbsp;
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>apache2.conf</pre></div></div>

<p>Add this at the end of the file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Include <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>passenger.conf</pre></div></div>

<p>Activate your site</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>my_domain <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-enabled<span style="color: #000000; font-weight: bold;">/</span>my_domain</pre></div></div>

<p>Remove default entry</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-enabled<span style="color: #000000; font-weight: bold;">/</span>000-default</pre></div></div>

<p>Restart Apache and it should work</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<h2>3. Subversion integration</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>Redmine.pm <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>perl5<span style="color: #000000; font-weight: bold;">/</span>Apache<span style="color: #000000; font-weight: bold;">/</span>Redmine.pm</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;"># /svn location for users</span>
 PerlLoadModule Apache::Redmine
&nbsp;
   DAV <span style="color: #c20cb9; font-weight: bold;">svn</span>
   SVNParentPath <span style="color: #ff0000;">&quot;/var/repos/svn&quot;</span>
   Order deny,allow
   Deny from all
   Satisfy any
&nbsp;
   PerlAccessHandler Apache::Authn::Redmine::access_handler
   PerlAuthenHandler Apache::Authn::Redmine::authen_handler
   AuthType Basic
   AuthName <span style="color: #ff0000;">&quot;Redmine SVN Repository&quot;</span> 
&nbsp;
   <span style="color: #666666; font-style: italic;">#read-only access</span>
&nbsp;
      Require valid-user
      Allow from my_domain.com
      Allow from localhost
       Satisfy any
&nbsp;
   <span style="color: #666666; font-style: italic;"># write access</span>
     Require valid-user
&nbsp;
   <span style="color: #666666; font-style: italic;">## Mysql-Settings</span>
   RedmineDSN <span style="color: #ff0000;">&quot;DBI:mysql:database=redmine;host=localhost&quot;</span>
   RedmineDbUser <span style="color: #ff0000;">&quot;redmine&quot;</span>
   RedmineDbPass <span style="color: #ff0000;">&quot;my_password&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Security:</span>
&nbsp;
      Order deny,allow
      Allow from localhost
      Allow from my_domain.com
      Deny from all</pre></div></div>

<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-enabled<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> www-data:www-data <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>repos
<span style="color: #c20cb9; font-weight: bold;">chmod</span> 0750 <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span></pre></div></div>

<p>Go to Administration &#8211; Settings &#8211; Repositories on your redmine site and enable &#8220;WS for repository management&#8221;. Then generate an API key.</p>
<p>Test the automatic generation:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>reposman.rb <span style="color: #660033;">--redmine</span> my_domain.com <span style="color: #660033;">--svn-dir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #660033;">--owner</span> www-data <span style="color: #660033;">--url</span> http:<span style="color: #000000; font-weight: bold;">//</span>my_domain.com<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #660033;">--verbose</span> <span style="color: #660033;">--key</span>=my_api_key</pre></div></div>

<p>If everything works create an crontab for this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.d<span style="color: #000000; font-weight: bold;">/</span>redmine</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">10</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> root ruby <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>reposman.rb <span style="color: #660033;">--redmine</span> my_domain.com <span style="color: #660033;">--svn-dir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #660033;">--owner</span> www-data <span style="color: #660033;">--url</span> http:<span style="color: #000000; font-weight: bold;">//</span>my_domain.com<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #660033;">--verbose</span> <span style="color: #660033;">--key</span>=my_api_key</pre></div></div>

<p>Now you are ready to use SVN with redmine</p>
<h2>4. Git integration</h2>
<p>Install needed packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> inifile
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libnet-ssh-ruby1.8 python-setuptools
gem <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">lockfile</span>
easy_install pip
pip <span style="color: #c20cb9; font-weight: bold;">install</span> virtualenv</pre></div></div>

<p>Add an user for gitosis:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">adduser <span style="color: #660033;">--system</span> <span style="color: #660033;">--shell</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">--gecos</span> <span style="color: #ff0000;">'Git Administrator'</span> <span style="color: #660033;">--group</span> <span style="color: #660033;">--disabled-password</span> <span style="color: #660033;">--home</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>gitosis <span style="color: #c20cb9; font-weight: bold;">git</span></pre></div></div>

<p>Create an ssh-key (with empty passphrase):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-H</span> <span style="color: #660033;">-u</span> <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-t</span> dsa</pre></div></div>

<p>Create an Virtual Environment for python and install gitosis:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> <span style="color: #c20cb9; font-weight: bold;">git</span> virtualenv ~git<span style="color: #000000; font-weight: bold;">/</span>virtualenv
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> <span style="color: #c20cb9; font-weight: bold;">git</span> ~git<span style="color: #000000; font-weight: bold;">/</span>virtualenv<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pip <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">git</span>+<span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>eagain.net<span style="color: #000000; font-weight: bold;">/</span>gitosis.git
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;source <span style="color: #007800;">$HOME</span>/virtualenv/bin/activate&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">tee</span> <span style="color: #660033;">-a</span> ~git<span style="color: #000000; font-weight: bold;">/</span>.bashrc <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> ~git<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa.pub <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-H</span> <span style="color: #660033;">-u</span> <span style="color: #c20cb9; font-weight: bold;">git</span> ~git<span style="color: #000000; font-weight: bold;">/</span>virtualenv<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gitosis-init</pre></div></div>

<p>Install redmine-gitosis plugin:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> www-data:www-data <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine
script<span style="color: #000000; font-weight: bold;">/</span>plugin <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>rocket-rentals<span style="color: #000000; font-weight: bold;">/</span>redmine-gitosis.git</pre></div></div>

<p>Patch the plugin:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>redmine-gitosis<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>gitosis.rb</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">require <span style="color: #ff0000;">'lockfile'</span>
require <span style="color: #ff0000;">'inifile'</span>
require <span style="color: #ff0000;">'net/ssh'</span>
&nbsp;
module Gitosis
  <span style="color: #666666; font-style: italic;"># server config</span>
  GITOSIS_URI = <span style="color: #ff0000;">'git@my_domain.com:gitosis-admin.git'</span>
  GITOSIS_BASE_PATH = <span style="color: #ff0000;">'/opt/gitosis/repositories/'</span>
&nbsp;
  <span style="color: #666666; font-style: italic;"># commands</span>
  ENV<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">'GIT_SSH'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> = SSH_WITH_IDENTITY_FILE = File.join<span style="color: #7a0874; font-weight: bold;">&#40;</span>RAILS_ROOT, <span style="color: #ff0000;">'vendor/plugins/redmine-gitosis/extra/ssh_with_identity_file.sh'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Configure SSH:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>.ssh
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> www-data:www-data <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>.ssh
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> www-data <span style="color: #c20cb9; font-weight: bold;">ssh</span> my_domain.com</pre></div></div>

<p>Migrate plugin:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake db:migrate_plugins <span style="color: #007800;">RAILS_ENV</span>=production</pre></div></div>

<p>Remove standard ssh-key and change it to the created one:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>redmine-gitosis<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>private_key
<span style="color: #c20cb9; font-weight: bold;">cp</span> ~git<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>redmine-gitosis<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>private_key
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> www-data:www-data <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine</pre></div></div>

<p>Test if the www-data user can read the key:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> www-data <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>redmine<span style="color: #000000; font-weight: bold;">/</span>vendor<span style="color: #000000; font-weight: bold;">/</span>plugins<span style="color: #000000; font-weight: bold;">/</span>redmine-gitosis<span style="color: #000000; font-weight: bold;">/</span>extra<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>private_key</pre></div></div>

<p>Add the www-data user to the git group:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">usermod <span style="color: #660033;">-a</span> <span style="color: #660033;">-G</span> <span style="color: #c20cb9; font-weight: bold;">git</span> www-data</pre></div></div>

<p><strong>Have fun!</strong></p>
<h3>Source:</h3>
<p><a href="http://brantinteractive.com/2007/02/16/getting-the-mysql-gem-installed-on-ubuntu/ " target="_blank"> http://brantinteractive.com/2007/02/16/getting-the-mysql-gem-installed-on-ubuntu/<br />
</a><a href="http://www.redmine.org/wiki/1/RedmineInstall" target="_blank"> http://www.redmine.org/wiki/1/RedmineInstall</a><br />
<a href="http://wiki.ousli.org/index.php/Redmine_in_Ubuntu_Jaunty_9.04" target="_blank"> http://wiki.ousli.org/index.php/Redmine_in_Ubuntu_Jaunty_9.04</a><br />
<a href="http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_Ubuntu" target="_blank"> http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_Ubuntu</a><br />
<a href="http://www.redmine.org/wiki/redmine/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl " target="_blank"> http://www.redmine.org/wiki/redmine/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl<br />
</a><a href="http://xdissent.com/2010/05/04/github-clone-with-redmine/ " target="_blank"> http://xdissent.com/2010/05/04/github-clone-with-redmine/<br />
</a><a href="http://wiki.ubuntuusers.de/virtualenv" target="_blank"> http://wiki.ubuntuusers.de/virtualenv</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2010/10/30/tutorial-redmine-with-svn-git-and-gitosis-on-ubuntu-8-04/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Build Git from source on Ubuntu</title>
		<link>http://www.x2on.de/2010/07/13/build-git-from-source-on-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-git-from-source-on-ubuntu</link>
		<comments>http://www.x2on.de/2010/07/13/build-git-from-source-on-ubuntu/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 17:44:15 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=578</guid>
		<description><![CDATA[Snippet for building Git from source on Ubuntu Linux: sudo apt-get install git-core build-essential autoconf sudo apt-get install libdigest-sha1-perl liberror-perl sudo apt-get build-dep git-core git clone git://git.kernel.org/pub/scm/git/git.git cd git make configure ./configure make sudo apt-get purge git-core sudo make install]]></description>
			<content:encoded><![CDATA[<p>Snippet for building Git from source on Ubuntu Linux:<br />
<span id="more-578"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> git-core build-essential <span style="color: #c20cb9; font-weight: bold;">autoconf</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libdigest-sha1-perl liberror-perl
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> build-dep git-core
<span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>git.kernel.org<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>scm<span style="color: #000000; font-weight: bold;">/</span>git<span style="color: #000000; font-weight: bold;">/</span>git.git
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #c20cb9; font-weight: bold;">git</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> configure
.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> purge git-core
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2010/07/13/build-git-from-source-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1&amp;1 Surf-Stick (ZTE MF110) unter Ubuntu 9.10</title>
		<link>http://www.x2on.de/2010/01/14/11-surf-stick-zte-mf110-unter-ubuntu-9-10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=11-surf-stick-zte-mf110-unter-ubuntu-9-10</link>
		<comments>http://www.x2on.de/2010/01/14/11-surf-stick-zte-mf110-unter-ubuntu-9-10/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 21:19:13 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[1&1]]></category>
		<category><![CDATA[1und1]]></category>
		<category><![CDATA[MF110]]></category>
		<category><![CDATA[Modeswitch]]></category>
		<category><![CDATA[Surf-Stick]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[UMTS]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[USB_Modeswitch]]></category>
		<category><![CDATA[WAN]]></category>
		<category><![CDATA[ZTE]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=415</guid>
		<description><![CDATA[Um den 1&#38;1 Surf-Stick (ZTE MF110) auch unter Ubuntu 9.10 benutzen zu können, muss der USB-Modus des Sticks umgeschaltet werden. Dieser läuft standardmäßig als Filesystem und nicht als UMTS-Stick. Ein Tool namens &#8220;USB_Modeswitch&#8221; schafft hierbei Abhilfe. UPDATE 01.02.2010 &#8211; 13:20: Durch eine neue Version von usb_modeswitch haben sich die Befehle leicht verändert. Die Anleitung habe [...]]]></description>
			<content:encoded><![CDATA[<p>Um den 1&amp;1 Surf-Stick (ZTE MF110) auch unter Ubuntu 9.10 benutzen zu können, muss der USB-Modus des Sticks umgeschaltet werden. Dieser läuft standardmäßig als Filesystem und nicht als UMTS-Stick.<br />
Ein Tool namens &#8220;USB_Modeswitch&#8221; schafft hierbei Abhilfe.</p>
<p><strong>UPDATE 01.02.2010 &#8211; 13:20:</strong> Durch eine neue Version von usb_modeswitch haben sich die Befehle leicht verändert. Die Anleitung habe ich angepasst. (Sollte vorher bereits eine ältere Version installiert worden sein, so muss diese mit &#8220;sudo make uninstall&#8221; entfernt werden)</p>
<p><strong>UPDATE 26.04.2011 &#8211; 21:32:</strong> Update to modeswitch 1.1.7.</p>
<p><strong>Anleitung:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #c20cb9; font-weight: bold;">make</span> libusb-dev
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.draisberghof.de<span style="color: #000000; font-weight: bold;">/</span>usb_modeswitch<span style="color: #000000; font-weight: bold;">/</span>usb-modeswitch-1.1.7.tar.bz2
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvfj usb-modeswitch-1.1.7.tar.bz2
<span style="color: #7a0874; font-weight: bold;">cd</span> usb-modeswitch-1.1.7
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Danach erkennt Ubuntu den Stick als UMTS-Hardware und das Profil kann angelegt werden. (Bei 1&amp;1 ist der APN mail.partner.de)</p>
<p>Links: <a href="http://www.draisberghof.de/usb_modeswitch/">http://www.draisberghof.de/usb_modeswitch/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2010/01/14/11-surf-stick-zte-mf110-unter-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Eee-PC 1005HA Ubuntu Karmic Sondertasten + Perfomance</title>
		<link>http://www.x2on.de/2009/11/30/eee-pc-1005ha-ubuntu-karmic-sondertasten-perfomance/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=eee-pc-1005ha-ubuntu-karmic-sondertasten-perfomance</link>
		<comments>http://www.x2on.de/2009/11/30/eee-pc-1005ha-ubuntu-karmic-sondertasten-perfomance/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 21:54:16 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Eee-PC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[1005HA]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[Asus]]></category>
		<category><![CDATA[eee]]></category>
		<category><![CDATA[eee-control]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=371</guid>
		<description><![CDATA[Ubuntu 9.10 Karmic läuft auf dem Eee-PC 1005HA &#8220;out of the box&#8221; ziemlich rund. Um die letzten Feinheiten zum laufen zu bekommen (Sondertasten, Performance/Laufzeit-Tunning) gibt es Tool eee-control. Abhilfe schafft hier ein neues Freeware-Tool namens Eee-Control. Über die Task-Leiste anwählbar, ermöglicht es das Untertakten der CPU zur Akku-Schonung ebenso wie die Belegung der Hotkeys, eine [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 9.10 Karmic läuft auf dem Eee-PC 1005HA &#8220;out of the box&#8221; ziemlich rund. Um die letzten Feinheiten zum laufen zu bekommen (Sondertasten, Performance/Laufzeit-Tunning) gibt es Tool eee-control.</p>
<blockquote><p>Abhilfe schafft hier ein neues Freeware-Tool namens <a href="http://greg.geekmind.org/eee-control/" target="_blank">Eee-Control</a>. Über die Task-Leiste anwählbar, ermöglicht es das Untertakten der CPU zur Akku-Schonung ebenso wie die Belegung der Hotkeys, eine Änderung der Displayhelligkeit sowie die (De-)aktivierung von Bluetooth, WLAN, Webcam, Touchpad und Kartenlesegerät. (Quelle: <a href="http://www.einfach-eee.de/eee-pc-software/eee-control-eee-manager-fuer-linux/">http://www.einfach-eee.de/eee-pc-software/eee-control-eee-manager-fuer-linux/</a>)</p></blockquote>
<p>Leider funktioniert das unter Ubuntu 9.10 nicht so richtig. Es gibt aber eine angepasste Version für Karmic.</p>
<ul>
<li><a href="http://greg.geekmind.org/eee-control/">Original eee-control</a></li>
<li><a href="http://danamlund.dk/eee-control/eee-control.html">Angepasste für Karmic 9.10</a></li>
</ul>
<p>Damit nun auf einem 1005HA das ganze einwandfrei läuft, muss noch eine Datei angepasst werden:</p>
<p><span id="more-371"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>eee-control-daemon <span style="color: #666666; font-style: italic;">#Zeile 85-86</span></pre></div></div>

<p><strong>Original:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">elif</span> os.path.exists<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;/sys/class/backlight/eeepc/brightness&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:
        brn_path = <span style="color: #ff0000;">&quot;/sys/class/backlight/eeepc/brightness&quot;</span></pre></div></div>

<p><strong>in folgendes ändern:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">elif</span> os.path.exists<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;/sys/class/backlight/acpi_video0/brightness&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:
        brn_path = <span style="color: #ff0000;">&quot;/sys/class/backlight/acpi_video0/brightness&quot;</span></pre></div></div>

<p><strong>Links:</strong></p>
<ul>
<li><a href="http://forum.eeeuser.com/viewtopic.php?id=43975&amp;p=29">http://forum.eeeuser.com/viewtopic.php?id=43975&amp;p=29</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2009/11/30/eee-pc-1005ha-ubuntu-karmic-sondertasten-perfomance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell-Skripte in ANT-Build Datei einbinden</title>
		<link>http://www.x2on.de/2009/10/21/shell-skripte-in-ant-build-datei-einbinden/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shell-skripte-in-ant-build-datei-einbinden</link>
		<comments>http://www.x2on.de/2009/10/21/shell-skripte-in-ant-build-datei-einbinden/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 20:26:42 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=304</guid>
		<description><![CDATA[Ein kleiner Tip für alle die in einem Projekt Apache ANT benutzen und ein Shell-Skript einbinden wollen. Hierbei gibt es eine Möglichkeit zwischen verschiedenen Betriebssystemen zu unterscheiden, und so unterschiedliche Scripte auszuführen. &#60;target name=&#34;examplescript&#34;&#62; &#60;exec dir=&#34;.&#34; executable=&#34;/bin/bash&#34; os=&#34;Mac OS X&#34;&#62; &#60;arg line=&#34;./examplescript-mac.sh&#34; /&#62; &#60;/exec&#62; &#60;exec dir=&#34;.&#34; executable=&#34;/bin/bash&#34; os=&#34;Linux&#34;&#62; &#60;arg line=&#34;./examplescript-linux.sh&#34; /&#62; &#60;/exec&#62; &#60;exec dir=&#34;.&#34; executable=&#34;cmd&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Ein kleiner Tip für alle die in einem Projekt <a href="http://ant.apache.org/" target="_blank">Apache ANT</a> benutzen und ein Shell-Skript einbinden wollen. Hierbei gibt es eine Möglichkeit zwischen verschiedenen Betriebssystemen zu unterscheiden, und so unterschiedliche Scripte auszuführen.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;examplescript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;.&quot;</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;/bin/bash&quot;</span> <span style="color: #000066;">os</span>=<span style="color: #ff0000;">&quot;Mac OS X&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;./examplescript-mac.sh&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;.&quot;</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;/bin/bash&quot;</span> <span style="color: #000066;">os</span>=<span style="color: #ff0000;">&quot;Linux&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;./examplescript-linux.sh&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exec</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;.&quot;</span> <span style="color: #000066;">executable</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span> <span style="color: #000066;">os</span>=<span style="color: #ff0000;">&quot;Windows NT&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">line</span>=<span style="color: #ff0000;">&quot;/c examplescript-win.bat&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exec<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2009/10/21/shell-skripte-in-ant-build-datei-einbinden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MiKTeX Package Manager unter Linux nutzen</title>
		<link>http://www.x2on.de/2009/04/13/miktex-package-manager-unter-linux-nutzen/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=miktex-package-manager-unter-linux-nutzen</link>
		<comments>http://www.x2on.de/2009/04/13/miktex-package-manager-unter-linux-nutzen/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 18:03:11 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[LaTex]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[MiKTeX]]></category>
		<category><![CDATA[Pakete]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=243</guid>
		<description><![CDATA[MiKTeX ist eine LaTeX Distribution für Windows, die eine sehr gute Packetverwaltung bietet. Seit kurzem gibt es eine Beta-Version die es möglich macht die Paketverwaltung auch unter Linux zu nutzen. So lassen sich einzelne benötigte Pakete schnell und einfach nachinstallieren. Installation unter Ubuntu: DEB Paket unter http://miktex.org/unx/ herunterladen sudo dpkg -i miktex-tools-&#60;version&#62;.deb Benutzung: Liste der [...]]]></description>
			<content:encoded><![CDATA[<p>MiKTeX ist eine LaTeX Distribution für Windows, die eine sehr gute Packetverwaltung bietet. Seit kurzem gibt es eine Beta-Version die es möglich macht die Paketverwaltung auch unter Linux zu nutzen.<br />
So lassen sich einzelne benötigte Pakete schnell und einfach nachinstallieren.<br />
<span id="more-243"></span></p>
<h3>Installation unter Ubuntu:</h3>
<ul>
<li>DEB Paket unter <a href="http://miktex.org/unx/" target="_blank">http://miktex.org/unx/</a> herunterladen</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> miktex-tools-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span>.deb</pre></div></div>

</li>
</ul>
<h3>Benutzung:</h3>
<p>Liste der verfügbaren Pakete aktualisieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> mpm <span style="color: #660033;">--update-db</span></pre></div></div>

<p>Paket suchen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> mpm <span style="color: #660033;">--list</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> PAKETNAME</pre></div></div>

<p>Paket installieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> mpm <span style="color: #660033;">--install</span>=PAKETNAME</pre></div></div>

<p>Paket in das LaTeX Verzeichnis kopieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-R</span> ~<span style="color: #000000; font-weight: bold;">/</span>miktex-texmf<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>texmf-texlive<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Paket in der LaTeX Bibliothek registrieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> mktexlsr</pre></div></div>

<p>Nun lässt sich das gewünschte Paket mit LaTeX benutzen.</p>
<p>Bei der Installation eines Paketes kann auch direkt der Pfad zur TeX-Distribution angeben werden:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> mpm <span style="color: #660033;">--install</span>=PAKETNAME <span style="color: #660033;">--install-root</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>texmf-texlive<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Weitere Infos zu LaTeX unter Ubuntu: <a href="http://wiki.ubuntuusers.de/LaTeX" target="_blank">http://wiki.ubuntuusers.de/LaTeX</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2009/04/13/miktex-package-manager-unter-linux-nutzen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup Skript für Server</title>
		<link>http://www.x2on.de/2009/03/16/backup-skript-fur-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=backup-skript-fur-server</link>
		<comments>http://www.x2on.de/2009/03/16/backup-skript-fur-server/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 11:18:23 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[E-mail]]></category>
		<category><![CDATA[Mutt]]></category>

		<guid isPermaLink="false">http://www.x2on.de/?p=228</guid>
		<description><![CDATA[Um von einem Server immer ein Backup der aktuellen Konfigurations-Dateien zu haben, ist es sehr praktisch sich diese einmal pro Tag per E-mail automatisch senden zu lassen. Für den Versand per E-mail wird das Programm mutt benötigt. In Debian lässt sich mutt einfach über folgenden Befehl installieren: apt-get install mutt Danach muss ein Skript für [...]]]></description>
			<content:encoded><![CDATA[<p>Um von einem Server immer ein Backup der aktuellen Konfigurations-Dateien zu haben, ist es sehr praktisch sich diese einmal pro Tag per E-mail automatisch senden zu lassen. Für den Versand per E-mail wird das Programm mutt benötigt.</p>
<p>In Debian lässt sich mutt einfach über folgenden Befehl installieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mutt</pre></div></div>

<p>Danach muss ein Skript für das Backup und den Versand angelegt werden:<br />
(Bitte Pfad, Betreff und E-mail Adresse anpassen).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.daily<span style="color: #000000; font-weight: bold;">/</span>backup</pre></div></div>

<p><span id="more-228"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">DATUM</span>=<span style="color: #000000; font-weight: bold;">`/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #ff0000;">&quot;+%Y-%m-%d_%H-%M&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> cvfz <span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>backup-<span style="color: #007800;">$DATUM</span>.tar.gz <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/*</span>
mutt <span style="color: #660033;">-n</span> <span style="color: #660033;">-F</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;Betreff der E-mail&quot;</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>backup-<span style="color: #007800;">$DATUM</span>.tar.gz email<span style="color: #000000; font-weight: bold;">@</span>example.com <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></td></tr></table></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.daily<span style="color: #000000; font-weight: bold;">/</span>backup</pre></div></div>

<p>Abschließend das Skript testen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.daily<span style="color: #000000; font-weight: bold;">/</span>backup</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2009/03/16/backup-skript-fur-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eee-PC: Automatisches Script für Ubuntu 8.04</title>
		<link>http://www.x2on.de/2008/04/25/eee-pc-automatisches-script-fuer-ubuntu-804/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=eee-pc-automatisches-script-fuer-ubuntu-804</link>
		<comments>http://www.x2on.de/2008/04/25/eee-pc-automatisches-script-fuer-ubuntu-804/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 09:45:17 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Eee-PC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Asus]]></category>
		<category><![CDATA[eee]]></category>
		<category><![CDATA[Netbook]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://localhost/dev/?p=72</guid>
		<description><![CDATA[Mit diesem kleinen Script funktioniert in Ubuntu 8.04 Wlan, Sound, die OSD Anzeige und das Herunterfahren. Weiterhin werden einige grafische Anpassungen gemacht, damit der kleine Monitor besser ausgenutzt wird. Disclaimer: Ich übernehme keine Garantie für Schäden am System, Verlust von Daten oder sonst irgendwas. Jeder der diesen Schritt macht muss selber wissen ob er das [...]]]></description>
			<content:encoded><![CDATA[<p>Mit diesem kleinen Script funktioniert in Ubuntu 8.04 Wlan, Sound, die OSD Anzeige und das Herunterfahren. Weiterhin werden einige grafische Anpassungen gemacht, damit der kleine Monitor besser ausgenutzt wird.</p>
<p><strong>Disclaimer:</strong> Ich übernehme keine Garantie für Schäden am System, Verlust von Daten oder sonst irgendwas. Jeder der diesen Schritt macht muss selber wissen ob er das Risiko eingehen will.<br />
<strong>DU MACHST DIE ÄNDERUNG AUF DEIN RISIKO</strong></p>
<p>Konsole mit ALT+STRG+T öffnen und folgendes eingeben:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.x2on.de<span style="color: #000000; font-weight: bold;">/</span>eeepc<span style="color: #000000; font-weight: bold;">/</span>ubuntueeetweak.sh
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x ubuntueeetweak.sh
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>ubuntueeetweak.sh</pre></div></div>

<p><span id="more-72"></span><br />
With this script you can fix Wlan, Sound, OSD an Halt on you Eee-PC.</p>
<p><strong>Disclaimer:</strong> I take no guarantee for system damage, loss of data or anything else.<br />
<strong>YOU ARE PERFORMING THE CHANGES AT YOUR OWN RISK!</strong><strong></strong></p>
<p>Open an Terminal with CTRL+ALT+T</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.x2on.de<span style="color: #000000; font-weight: bold;">/</span>eeepc<span style="color: #000000; font-weight: bold;">/</span>ubuntueeetweak.sh
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x ubuntueeetweak.sh
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>ubuntueeetweak.sh</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2008/04/25/eee-pc-automatisches-script-fuer-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Triple Boot mit OS X, Ubuntu 7.10 und Windows Vista</title>
		<link>http://www.x2on.de/2008/04/15/triple-boot-mit-os-x-ubuntu-710-und-windows-vista/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=triple-boot-mit-os-x-ubuntu-710-und-windows-vista</link>
		<comments>http://www.x2on.de/2008/04/15/triple-boot-mit-os-x-ubuntu-710-und-windows-vista/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 10:39:23 +0000</pubDate>
		<dc:creator>Felix Schulze</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://localhost/dev/2008/04/15/triple-boot-mit-os-x-ubuntu-710-und-windows-vista/</guid>
		<description><![CDATA[Dieses Tutorial richtet sich an alle die auf ihrem MacBook Pro neben OS X 10.5 noch Windows Vista SP1 und Ubuntu 7.10 Linux installieren wollen. (sog. Triple Boot) Grundsätzlich ist dies mittels rEFIT möglich, man muss an manchen stellen ein bisschen tricksen. 1. Voraussetzungen: Ubuntu 7.10 Installations-CD Windows Vista Installations-DVD Bootcamp-Treiber für Windows (Bootcamp Installation [...]]]></description>
			<content:encoded><![CDATA[<p>Dieses Tutorial richtet sich an alle die auf ihrem MacBook Pro neben OS X 10.5 noch Windows Vista SP1 und Ubuntu 7.10 Linux installieren wollen. (sog. Triple Boot)</p>
<p>Grundsätzlich ist dies mittels rEFIT möglich, man muss an manchen stellen ein bisschen tricksen.</p>
<p><strong>1. Voraussetzungen:</strong></p>
<ul>
<li>Ubuntu 7.10 Installations-CD</li>
<li> Windows Vista Installations-DVD</li>
<li> Bootcamp-Treiber für Windows (Bootcamp Installation ist nicht nötig!)</li>
<li>rEFIT</li>
<li>Backup gemacht</li>
</ul>
<p><span id="more-67"></span><br />
<strong>2. MacOS X Partition verkleinern:</strong></p>
<ol>
<li>Festplatten-Dienstprogramm starten</li>
<li>Festplatte auswählen</li>
<li>Auf Partitionieren klicken</li>
<li> Mit &#8220;+&#8221; zwei neue Partitionen anlegen und bei Format &#8220;Mac OS X Extended (Journaled)&#8221; auswählen</li>
<li>Auf Anwenden klicken</li>
<li>Nun die letzte Partition als &#8220;Windows NT Dateisystem&#8221; formatieren und als Namen &#8220;Windows&#8221; eingeben</li>
</ol>
<p><strong>4. rEFIT installieren:</strong></p>
<ol>
<li>rEFIT herunterladen: <a href="http://refit.sourceforge.net/" target="_blank">http://refit.sourceforge.net/</a></li>
<li>Bei der Installation auf Anpassen klicken und die Linux-Treiber mit installieren</li>
</ol>
<p><strong>5. Ubuntu installieren:</strong></p>
<ol>
<li>Von der Ubuntu-CD booten</li>
<li>F2 drücken für die Sprachauswahl</li>
<li>Nach kurzer Zeit startet die Ubuntu-Live Version</li>
<li>Auf dem Desktop auf installieren klicken</li>
<li>Setup mit gewünschten Einstellung bis zum Punkt &#8220;Partitionieren&#8221; durchlaufen</li>
<li>Bei &#8220;Partitionieren&#8221; Manuell auswählen und auf Weiter klicken</li>
<li>Hier die vorhin erstellte Paritition für Linux auswählen (bei mir /dev/sda3)</li>
<li>auf Edit Parition klicken</li>
<li>Ext 3 auswählen</li>
<li>/ auswählen</li>
<li>Auf Ok klicken</li>
<li>Einen Hacken bei &#8220;Format&#8221; machen</li>
<li>Weiter bis zur Übersicht</li>
<li>Auf Advanced klicken</li>
<li>(hd0) löschen und auf OK Klicken</li>
<li>nochmal auf Advanced klicken</li>
<li>in /dev/sda3 (siehe Punkt 7) ändern</li>
<li>Auf &#8220;Installieren&#8221; klicken</li>
<li>Nach der Installation neustarten</li>
</ol>
<p><strong>7. Ubuntu Boot einrichten:</strong></p>
<ol>
<li>Von der Ubuntu-Live CD booten</li>
<li> Auf System &#8211;&gt; Administration &#8211;&gt; GNOME Partition Editior klicken</li>
<li>Rechtsklick auf /dev/sd3</li>
<li>Haken bei boot machen</li>
<li>Kann sein das der GNOME Partition Editor dabei abstürzt, sollte trotzdem funktionieren</li>
<li>Falls es danach beim ersten booten hängen bleibt einfach nochmal neustarten</li>
</ol>
<p><strong>5. Windows installieren:</strong></p>
<ol>
<li>Vista-DVD einlegen und beim booten auswählen</li>
<li>Bei der Installation die letzte Partition (Windows) formatieren und auswählen</li>
<li>Nach der Installation das SP1 installieren</li>
<li>BootCamp Treiber in Windows installieren</li>
<li>Laufwerk C umbennen in Windows (oder beliebigen Namen)</li>
</ol>
<p><strong>6. Ubuntu einrichten:</strong></p>
<p>Beim MacBook Pro muss nun der W-LAN Treiber installiert werden, da dieser nicht standardmäßig funktioniert. Für die Grafik sollte der Restricted Treiber &#8220;nvidia-glx&#8221; aktiviert werden.</p>
<ol>
<li>Ubuntu updaten:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></td></tr></table></div>

</li>
<li>Ubuntu neustarten</li>
<li>Wlan einrichten:</li>
<li>Terminal öffnen und folgendes eingeben

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.x2on.de<span style="color: #000000; font-weight: bold;">/</span>dl<span style="color: #000000; font-weight: bold;">/</span>mbpinstaller
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x mbpinstaller
.<span style="color: #000000; font-weight: bold;">/</span>mbpinstaller</pre></td></tr></table></div>

</li>
<li>Optional: Touchpad bei Eingabe temporär ausschalten
<ol>
<li>Öffne ein Terminal<br />
Öffne die xorg.conf mit</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf</pre></div></div>

</li>
<li>In der Synaptics Touchpad Sektion folgende Zeile hinzufügen</li>
<li><code>Option "SHMConfig" "on"</code></li>
<li>X mit (Ctrl+Alt+Backspace) neustarten</li>
<li>System &#8211;&gt; Einstellungen &#8211;&gt; Sitzungen öffnen</li>
<li>Einen Neuen Eintrag hinzufügen:</li>
<li><code>syndaemon -t -d</code></li>
<li>Nun sollte das Touchpad bei einer Tastatureingabe 2 Sekunden das Tippen deaktiviert sein.</li>
</ol>
</li>
<li>Optional: rEFIT Icon ändern:<br />
Die Icons beim Start des Mac&#8217;s können beliebig verändert werden.<br />
Diese sind im Ordner /efi/refit/icons abgelegt.</li>
</ol>
<p>Viel Spaß mit Ubuntu und Vista auf deinem MacBook Pro.</p>
<p>Dieser Werk oder Inhalt ist unter einer <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/de/">Creative Commons-Lizenz</a> lizenziert.</p>
<p><strong>Quellen:</strong></p>
<p><a href="https://help.ubuntu.com/community/MacBookPro" target="_blank">https://help.ubuntu.com/community/MacBookPro</a><br />
<a href="https://wiki.ubuntu.com/MacBookPro/SantaRosa" target="_blank">https://wiki.ubuntu.com/MacBookPro/SantaRosa</a><br />
<a href="http://refit.sourceforge.net/doc/" target="_blank">http://refit.sourceforge.net/doc/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x2on.de/2008/04/15/triple-boot-mit-os-x-ubuntu-710-und-windows-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

