<?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>kix&#039;s notepad &#187; Linux</title>
	<atom:link href="http://www.kix.es/blog/category/english/linux-english/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kix.es/blog</link>
	<description>- x -</description>
	<lastBuildDate>Sat, 24 Dec 2011 00:18:54 +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>Dreamhost &amp; git</title>
		<link>http://www.kix.es/blog/2011/12/24/dreamhost-git/</link>
		<comments>http://www.kix.es/blog/2011/12/24/dreamhost-git/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 23:02:18 +0000</pubDate>
		<dc:creator>kix</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kix.es/blog/?p=130</guid>
		<description><![CDATA[If you are trying to setup git in your server, think two things first: Only for your user Vs. multiple users With or without web-based repository browsing Why? Because all options are not possible at DH. Only for your user Vs. multiple users If only your used will update the repositories, then you can access [...]]]></description>
			<content:encoded><![CDATA[<p>If you are trying to setup git in your server, think two things first:</p>
<ol>
<li>Only for your user Vs. multiple users</li>
<li>With or without web-based repository browsing</li>
</ol>
<p>Why? Because all options are not possible at DH.</p>
<p><strong>Only for your user Vs. multiple users</strong></p>
<p>If only your used will update the repositories, then you can access to your server using SSH o WebDav. If more people will update the repositories, then you need WebDav access. For WebDav access, you need to setup it using the <a href="https://panel.dreamhost.com" title="DH Panel" target="_blank">panel</a> BUT, you cannot edit the .htaccess and .htpasswd files, because you don&#8217;t have access to this files.</p>
<p><strong>With or without web-based repository browsing</strong></p>
<p>If the web presentation is not important for you, then you can configure your repositories without web browsing. If you want to show your repositories using a web-based repository browsing, like for example GitWeb, then you need edit the .htaccess file. But if you are using WebDav, then, you cannot edit the file!</p>
<p><strong>Summary</strong></p>
<table border="1" cellspacing="1" cellpadding="1" width="400">
<tr>
<td><strong>Users</strong></td>
<td colspan="2" align="center">Only one</td>
<td colspan="2" align="center">More than one</td>
</tr>
<tr>
<td><strong>Access</strong></td>
<td align="center" width="100">SSH</td>
<td align="center" width="100">WebDav</td>
<td colspan="3" align="center">WebDav</td>
</tr>
<tr>
<td><strong>&#8220;GitWeb&#8221;</strong></td>
<td align="center">Yes</td>
<td colspan="3" align="center">No</td>
</tr>
</table>
<p>I hope this table helps.<br />
&nbsp;</br><br />
Some links:<br />
<a href="http://joemaller.com/990/a-web-focused-git-workflow/">http://joemaller.com/990/a-web-focused-git-workflow/</a><br />
<a href="https://github.com/git/git/tags">https://github.com/git/git/tags</a><br />
<a href="http://wiki.dreamhost.com/Git">http://wiki.dreamhost.com/Git</a></p>
<p></br></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kix.es/blog/2011/12/24/dreamhost-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing alone Debian GNU Linux in Mac Mini Server 2011</title>
		<link>http://www.kix.es/blog/2011/10/13/installing-alone-debian-gnu-linux-in-mac-mini-server-2011/</link>
		<comments>http://www.kix.es/blog/2011/10/13/installing-alone-debian-gnu-linux-in-mac-mini-server-2011/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 06:08:39 +0000</pubDate>
		<dc:creator>kix</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kix.es/blog/?p=109</guid>
		<description><![CDATA[I followed these steps to install alone Debian GNU Linux in my Mac Mini Server (2011 edition), without MacOS X. Please, read this post first, then do it. Make it at your own risk. You will need (all steps): 2 USB memory sticks Empty CD-Rom to write and USB burning drive (or other USB drive) [...]]]></description>
			<content:encoded><![CDATA[<p>I followed these steps to install alone Debian GNU Linux in my Mac Mini Server (2011 edition), without MacOS X. Please, read this post first, then do it. Make it at your own risk.</p>
<p>You will need (all steps):</p>
<ol>
<li>2 USB memory sticks</li>
<li>Empty CD-Rom to write and USB burning drive (or other USB drive)</li>
<li>Debian boot image file (boot.img.gz)</li>
<li>Debian install image</li>
</ol>
<p><strong>Step 1 &#8211; Download the installation media.</strong></p>
<p>Mac Mini has a bug about installing from CD-ROM (external) and you cannot use this method, therefore, you need to do USB installation. You need for this step:</p>
<ol>
<li>1 USB memory sticks</li>
<li>Debian boot image file (boot.img.gz)</li>
<li>Debian install image</li>
<li>Installed operation system (Linux, Windows, MacOS X)</li>
</ol>
<p>The Mac Mini has &#8220;new&#8221; hardware, not supported in all Debian versions. With old images you can boot, but the network cards won&#8217;t be detected. You need download a newer Debian testing CD and boot.img file. You can download the boot.img.gz file here: <a href="http://ftp.nl.debian.org/debian/dists/lenny/main/installer-amd64/current/images/hd-media/" title="http://ftp.nl.debian.org/debian/dists/lenny/main/installer-amd64/current/images/hd-media/" target="_blank">http://ftp.nl.debian.org/debian/dists/lenny/main/installer-amd64/current/images/hd-media/</a> (look the date, is 2011/10/02 or later). Now, the Debian install ISO image. You can use a businesscard image o netinstall image, because are small (you will copy the image in the pendrive). I used the netinstall image. You can download the images here: <a href="http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/" title="http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/" target="_blank">http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/</a>.</p>
<p>Now is time to create the USB drive with the boot image. You can do it using Windows, MacOS X or Linux. But you need <strong>dd</strong> or <strong>zcat</strong> (find them, for your operating system, using your favorite search engine).</p>
<p>Plug the USB drive to the computer. If your are using Linux, type <strong>dmesg</strong> to find the device. Do not use partitions in the USB drive, use the main device. For example, if the USB plugged is /dev/sdj with the partition /dev/sdj1, you must use /dev/sdj. If you delete the partition, sometimes is better. Now select option 1 or option 2 (sdj is the USB drive):</p>
<p>Option 1, using zcat:</p>
<p><code>zcat boog.img.gz > /dev/sdj</code></p>
<p>Option 2, using dd:</p>
<p>You need to uncompress the file first. Then make the USB boot:</p>
<p><code>gzip -d boot.img.gz<br />
dd if=boot.img of=/dev/sdj</code></p>
<p>Now, copy the image file (something like debian-testing-amd64-netinst.iso or debian-testing-amd64-businesscard.iso) to the USB drive. Mount the drive first (I will use /mnt as mountpoint). Probably you need mount with the user root or using <strong>sudo</strong>. Do not forget to write the full path of the debian-testing-amd64-businesscard.iso file in the copy if is not in the current folder:</p>
<p><code>mount /dev/sdj /mnt<br />
cp debian-testing-amd64-businesscard.iso /mnt</code></p>
<p><strong>Step 2 &#8211; MacOS X recovery/install USB drive.</strong></p>
<p>You need for this step:</p>
<ol>
<li>1 USB memory stick</li>
<li>MacOS X or recovery image</li>
</ol>
<p>At the end of the installation (Step 4), you need run the <em>bless</em> command. It is included in MacOS X, and you can use it form the recovery or install device.</p>
<p>Download the &#8220;Lion Recovery Disk Assistant&#8221; form Apple at <a href="http://support.apple.com/kb/DL1433" title="http://support.apple.com/kb/DL1433" target="_blank">http://support.apple.com/kb/DL1433</a>. Install it in you MacOS X and create the recovery USB drive.</p>
<p>If you don&#8217;t have MacOS X, probably you can download a recovery image. Burn it with <strong>dd</strong>.</p>
<p>Test the image booting the Mac Mini (press Alt key,&#8230;), select the recovery disk, your language and of course, cancel the installation.</p>
<p><strong>Step 3 &#8211; Create rEFIt drive</strong><br />
You need copy some files from the rEFIt CD-ROM to the EFI partition in your hard drive. You will need to connect these files to the Mac Mini, using a USB stick or USB CD-ROM drive.</p>
<p>You need for this step:</p>
<ol>
<li>USB memory stick or CD-ROM drive</li>
</ol>
<p>Download the rEFIt iso form <a href="http://refit.sourceforge.net/" title="http://refit.sourceforge.net/"></a>. Now, open the iso file (e.g. with winRAR or mount -t loop) and save the files in a folder in the pendrive or write the ISO in a CD-ROM. You will need some files of this ISO in the step 5. I wrote the ISO in a CD-ROM.</p>
<p><strong>Step 4 &#8211; Install Debian</strong></p>
<p>You need for this step:</p>
<ol>
<li>USB memory stick burned in the Step 1</li>
</ol>
<p>Ok, we start. Now, your MacOS X will be deleted (and your files!). Now, you cannot go back, therefore, please, check that you made all the previous steps and have the things ready. Insert the USB drive in the Mac Mini, hold the Alt key and press the power button. When the boot manager show the drives, release the Alt button. Select the USB stick (labeled &#8220;Windows&#8221; <img src='http://www.kix.es/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ) and boot Debian installation.</p>
<p>Probably you know how to install Debian. I don&#8217;t spend time with it. The most important is the partitions:</p>
<ol>
<li>You need to leave the EFI System Partition in the disks (about 200Mb), do not erase it. Is used by the EFI and you need it in the Step 5.</li>
<li>Delete only the Apple Partitions.</li>
<li>If you setup RAID, you need a /boot partition. Create it in the first drive. About 200Mb.</li>
<li>Do not forget to create a swap drive.</li>
<li>I recommend RAID if you have Mac Mini Server.</li>
</ol>
<p>Your partition tables (2 disks) should be something like (with comments):</p>
<p><code>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1               1      409639      204819+  ee  EFI System Partition<br />
/dev/sda2   *      409640      800265      195313   83  Linux (/boot)<br />
/dev/sda3          800266  1449823703   724511719   fd  Linux raid autodetect (/)<br />
</code></p>
<p><code>   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdb1               1      409639      204819+  ee  EFI System Partition<br />
/dev/sdb2   *      409640    16795200    16385560   83  Linux raid autodetect (/)<br />
/dev/sdb3        16795201  1449823703   708126159   82  Linux swap<br />
</code></p>
<p>Finish your debian installation. Install GRUB in MBR.</p>
<p><strong>Step 5 &#8211; Setup rEFIt</strong></p>
<p>Now, if you try to boot the Mac Mini, the process will fail. Don&#8217;t worry. Is time to recover the boot.</p>
<p>You need for this step:</p>
<ol>
<li>USB memory stick burned in the Step 2 (MacOS X recovery disk)</li>
<li>USB memory stick burned in the Step 3 or the CD-ROM (rEFIt)</li>
</ol>
<p>Plug the MacOS X recovery USB and boot the Mac Mini pressing the Alt key. Select the recovery drive to boot. Select your language and in the toolbar select &#8220;Terminal&#8221;.</p>
<p>In the terminal we need to copy some files form the rEFIt ISO to the EFI partition. Mount the partition with the EFI (default /dev/disk0s1) in one folder. Check the EFI partition with:</p>
<p><code>diskutil list</code></p>
<p>Now, mount the EFI partition. I created a folder in the <em>tmp</em>folder of the user to do it (not /tmp because is read-only):</p>
<p><code>mkdir tmp/efi<br />
sudo mount -t msdos /dev/disk0s1 tmp/efi</code></p>
<p>Check if is mounted with</p>
<p><code>mount</code></p>
<p>Remember the full path of the tmp folder (e.g. /youhomefolder/tmp)</p>
<p>Now you can change to the tmp/efi folder and check the files (sometimes is empty, but I had a APPLE folder, don&#8217;t do nothing (erase,&#8230;)). Now, create an efi folder in the EFI partition:</p>
<p><code>cd /yourhomefolder/tmp/efi<br />
mkdir efi</code></p>
<p>Now mount the ISO or the USB drive (yourEFIdevice):</p>
<p><code>cd /yourhomefolder/tmp/<br />
mkdir origin<br />
mount yourEFIdevice /yourhomefolder/tmp/origin</code></p>
<p>and copy:</p>
<p><code>cp -r /yourhomefolder/tmp/origin/efi /yourhomefolder/tmp/efi/</code></p>
<p>Now, you will have the efi folder in /yourhomefolder/tmp/efi/. Probably these previous steps could be done using Linux or as first step (with MacOS X), but I did at the end of the process. Time to run bless:</p>
<p><code>bless --mount /efi --setBoot --file /yourhomefolder/efi/efi/refit/refit.efi --labelfile /yourhomefolder/efi/efi/refit/refit.vollabel</code></p>
<p>Ok, done. Shutdown the computer, remove the USB/CD-Rom drives and boot the system. Wait. Wait More. Now rEFIt shows their menu (<a href="http://refit.sourceforge.net/screen.html" title="http://refit.sourceforge.net/screen.html" target="_blank">http://refit.sourceforge.net/screen.html</a>)</p>
<p>Don&#8217;t boot Linux yet, the partition table must synchronized with the GPT partition table. This gives legacy operating systems and boot loaders access to hard disk partitions. To do this step you have two options, select it in the menu (with keypad and hit enter) or run the rEFIt shell and run &#8220;gptsync.efi&#8221;.</p>
<p>Reboot your Mac, wait, wait more, rEFIt boot screen, wait more, wait. GRUB is here, wait, Debian is booting. Enjoy.</p>
<p>Comments are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kix.es/blog/2011/10/13/installing-alone-debian-gnu-linux-in-mac-mini-server-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ID3 hooks for gpodder</title>
		<link>http://www.kix.es/blog/2011/04/07/id3-hooks-for-gpodder/</link>
		<comments>http://www.kix.es/blog/2011/04/07/id3-hooks-for-gpodder/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 13:57:51 +0000</pubDate>
		<dc:creator>kix</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kix.es/blog/?p=97</guid>
		<description><![CDATA[I had some problems with gpodder because my Philips GoGear do not support mp3 files with id3 version 2 (id3v2) info. I wrote two different &#8220;hooks&#8221; to solve the problem: 1. The first hook converts the id3v1 to id3v2 using eyeD3 when the file is transfered to the device. This hook is id3v2toid3v1.py This hooks [...]]]></description>
			<content:encoded><![CDATA[<p>I had some problems with gpodder because my <a href="http://www.p4c.philips.com/cgi-bin/dcbint/cpindex.pl?hlt=Link_Overview&#038;tmplt=ePlatform%20-%20Philips&#038;scy=US&#038;slg=AEN&#038;session=20110131121733_66.249.71.180&#038;ctn=SA2VBE04K/17&#038;list=aa12_list_partial.html">Philips GoGear</a> do not support mp3 files with id3 version 2 (id3v2) info.</p>
<p>I wrote two different &#8220;hooks&#8221; to solve the problem:</p>
<p>1. The first hook converts the id3v1 to id3v2 using eyeD3 when the file is transfered to the device. This hook is <a href="http://kix.es/src/gpodder/id3v2toid3v1_py.txt">id3v2toid3v1.py</a></p>
<p>This hooks works fine if the mp3 file has id3v2 header. The problem is with mp3 files without id3 header, because the id3v1 header will be empty too. Then, I wrote a second hook:</p>
<p>2. The second hook checks if the original mp3 file has id3 headers with a minimum fields filled (album, artist, date and genre). If they are empty, the hook creates them with the information in the podcast rss file. This hook is <a href="http://kix.es/src/gpodder/retaggin_py.txt">retagging.py</a></p>
<p>For this second hook, a new <a href="http://kix.es/src/gpodder/on_episode_downloaded_hook.patch">patch</a> for gpodder is needed, because we need access to the database and to the downloaded file. The patch can be found <a href="http://kix.es/src/gpodder/on_episode_downloaded_hook.patch">here</a> and has been reported to the gpodder dev team as  <a href="https://bugs.gpodder.org/show_bug.cgi?id=1319">bug</a>.</p>
<p>Please, do not forget to rename de &lt;file&gt;_py.txt to $home/.config/gpodder/hooks/&lt;file&gt;.py</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kix.es/blog/2011/04/07/id3-hooks-for-gpodder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Office 2007 in Debian Linux</title>
		<link>http://www.kix.es/blog/2010/02/27/installing-office-2007-in-debian-linux/</link>
		<comments>http://www.kix.es/blog/2010/02/27/installing-office-2007-in-debian-linux/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 14:40:23 +0000</pubDate>
		<dc:creator>kix</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kix.es/blog/?p=70</guid>
		<description><![CDATA[I found some problems in other (good) tutorials &#8230; but are a little bit old and then incorrect. A new one using debian testing: Install the wine packages: apt-get install wine wine-bin wine-utils cabextract Run winecfg to set the configuration directory (~/.wine) Now, we need the Microsoft XML Parser. To install it, the best is [...]]]></description>
			<content:encoded><![CDATA[<p>I found some problems in other (good) tutorials &#8230; but are a little bit old and then incorrect. A new one using debian testing:</p>
<ol>
<li>Install the wine packages: <code>apt-get install wine wine-bin wine-utils cabextract</code></li>
<li>Run <code>winecfg</code> to set the configuration directory (<code>~/.wine</code>)</li>
<li>Now, we need the Microsoft XML Parser. To install it, the best is install the winetricks script. Get it at <a href="http://wiki.winehq.org/winetricks">http://wiki.winehq.org/winetricks</a></li>
<li>Change the permissions of the winetricks script file: <code>chmod +x winetricks</code></li>
<li>Run the script and select the MS XML version 3: <code>./winetricks msxml3</code>. The cabstract package was installed in the first step because winetricks needs it.</li>
<li>Insert the Office 2007 CD-ROM and mount it with the <code>unhide</code> option: <code>mount -t iso9660 -o unhide /dev/cdrom /media/cdrom</code></li>
<li>Start the installer: <code>wine /media/cdrom/setup.exe</code></li>
</ol>
<p>Enjoy it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kix.es/blog/2010/02/27/installing-office-2007-in-debian-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How 2 debug usb @ linux kernel</title>
		<link>http://www.kix.es/blog/2010/01/10/how-2-debug-usb-linux-kernel/</link>
		<comments>http://www.kix.es/blog/2010/01/10/how-2-debug-usb-linux-kernel/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 15:12:24 +0000</pubDate>
		<dc:creator>kix</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Español]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kix.es/blog/?p=56</guid>
		<description><![CDATA[#!/bin/bash mount -t debugfs none_debugs /sys/kernel/debug modprobe usbmon ls /sys/kernel/debug/usbmon cat /proc/bus/usb/devices cat /sys/kernel/debug/usbmon/1t 1t is my device]]></description>
			<content:encoded><![CDATA[<p><code><br />
#!/bin/bash<br />
mount -t debugfs none_debugs /sys/kernel/debug<br />
modprobe usbmon<br />
ls /sys/kernel/debug/usbmon<br />
cat /proc/bus/usb/devices<br />
cat /sys/kernel/debug/usbmon/1t<br />
</code></p>
<p><code>1t</code> is my device <img src='http://www.kix.es/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kix.es/blog/2010/01/10/how-2-debug-usb-linux-kernel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

