<?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>coCoKNIght.com &#187; Ubuntu</title>
	<atom:link href="http://cocoknight.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocoknight.com</link>
	<description>Online Portfolio of Fabian Hernandez</description>
	<lastBuildDate>Sat, 14 Jan 2012 19:55:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Recover Ubuntu from failed fsck on RAID partition</title>
		<link>http://cocoknight.com/recover-ubuntu-from-failed-fsck-on-raid-partition/</link>
		<comments>http://cocoknight.com/recover-ubuntu-from-failed-fsck-on-raid-partition/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 20:01:16 +0000</pubDate>
		<dc:creator>coCoKNIght</dc:creator>
				<category><![CDATA[Tech Talk]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cocoknight.com/?p=523</guid>
		<description><![CDATA[This post explains how I managed to get my RAID system to boot again after a failed fsck on Ubuntu start-up.]]></description>
			<content:encoded><![CDATA[<p>When the periodical fsck on Ubuntu start-up returns an error, if you&#8217;ve set up a password for root, then you can just enter that password and repair the errors on your partition.<br />
But Ubuntu comes with the root account disabled per default and you&#8217;re recommended not to give root a password for security reasons. This means that you probably won&#8217;t be able to comply with this promt:</p>
<p><code>Give root password for mainenance<br />
(or type Control-D to continue): _</code></p>
<p>Further, you&#8217;re not presented with any console to login and perform the manual fsck. So the only option is to do the fsck from LiveCD. Normally this is fairly simple:</p>
<p><code>sudo fsck /dev/sda1</code></p>
<p>Replace <strong>sda1</strong> with the actual name of your partition. If you don&#8217;t know you can start the <strong>partition editor</strong> from the <strong>administration</strong> menu and check.</p>
<p>This is not so easy however if the partition you need to check is part of a <acronym title="Redundant Array of Independent Disks">RAID</acronym> because you have to configure and start software <acronym title="Redundant Array of Independent Disks">RAID</acronym> first. This is done with <strong>mdadm</strong>, however <strong>mdadm</strong> doesn&#8217;t come with the Ubuntu LiveCD.</p>
<p>So I ended up using a KNOPPIX LiveCD to be able to finally perform the manual fsck on my <acronym title="Redundant Array of Independent Disks">RAID</acronym> partition:</p>
<ul>
<li>Scan the <acronym title="Redundant Array of Independent Disks">RAID</acronym> partitions. You&#8217;ll also be verifying that you&#8217;re using the correct partitions that belong to a <acronym title="Redundant Array of Independent Disks">RAID</acronym>.<br />
<code>sudo mdadm --examine --scan /dev/sda1<br />
sudo mdadm --examine --scan /dev/sdb1</code><br />
The output should be something like this:<br />
<code>ARRAY /dev/md0 level=raid1 num-devices=2 UUID=a28090aa:6893be8b:c4024dfc:29cdb07a</code></li>
<li>Now edit <strong>mdadm.conf</strong>:<br />
<code>sudo nano /etc/mdadm/mdadm.conf</code><br />
and add the above output line to the end of the file with the following modification:<br />
<code>ARRAY /dev/md0 level=raid1 num-devices=2 UUID=a28090aa:6893be8b:c4024dfc:29cdb07a devices=/dev/sda1,/dev/sdb1</code><br />
where <strong>devices=/dev/sda1,/dev/sdb1</strong> are the two <acronym title="Redundant Array of Independent Disks">RAID</acronym> partitions you want to perform the fsck</li>
<li>Start the <acronym title="Redundant Array of Independent Disks">RAID</acronym> setup:<br />
<code>sudo /etc/init.d/mdadm start<br />
sudo /etc/init.d/mdadm-raid start</code></li>
<li>Perform the fsck on your <acronym title="Redundant Array of Independent Disks">RAID</acronym> partition:<br />
<code>sudo fsck /dev/md0</code></li>
<li>Finally restart into your now booting Ubuntu system</li>
</ul>
<p><strong>Sources:</strong></p>
<ul>
<li><a title="Recover Data From RAID1 LVM Partitions With Knoppix Linux LiveCD" href="http://www.howtoforge.com/recover_data_from_raid_lvm_partitions">Recover Data From RAID1 LVM Partitions With Knoppix Linux LiveCD</a></li>
<li> <a title="After fsck failure, mantenance shell asks for root password" href="https://bugs.launchpad.net/ubuntu/+bug/372430">Launchpad bug report</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cocoknight.com/recover-ubuntu-from-failed-fsck-on-raid-partition/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>G-Pen 560 on Ubuntu</title>
		<link>http://cocoknight.com/g-pen-560-on-jaunty/</link>
		<comments>http://cocoknight.com/g-pen-560-on-jaunty/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 11:07:28 +0000</pubDate>
		<dc:creator>coCoKNIght</dc:creator>
				<category><![CDATA[Tech Talk]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cocoknight.com/?p=491</guid>
		<description><![CDATA[A tutorial that explains various ways to get your G-Pen 560 working with the different versions of Ubuntu. It's also useful for users of other graphic tablets.]]></description>
			<content:encoded><![CDATA[<p><img class="visualContent" title="G-Pen 560 on Jaunty" src="/wp-content/uploads/2009/07/gpen500x375.jpg" alt="G-Pen 560 on Jaunty" width="500" height="375" /></p>
<p><strong>Update (11/04/2010) for Ubuntu 10.10 Maverick:</strong> I now got it to work in Maverick using the following steps:</p>
<ol>
<li>Install the <strong>xserver-xorg-input-aiptek</strong> package from <strong>Synaptic Package Manager</strong></li>
<li>Create a new file with <strong>gedit</strong> by starting the <strong>Run Application</strong> dialogue with <strong>Alt F2</strong> and executing:<br />
<code>gksudo gedit /lib/udev/rules.d/69-xserver-xorg-input-aiptek.rules</code><br />
<strong>note:</strong> you will be promted for your password</li>
<li>Paste the following content into <strong>gedit</strong>, then save and close the file:<br />
<code>ACTION!="add|change", GOTO="xorg_aiptek_end"<br />
KERNEL!="event[0-9]*", GOTO="xorg_aiptek_end"<br />
ATTRS{idVendor}=="08ca", ENV{x11_driver}="aiptek", SYMLINK+="input/aiptektablet"<br />
LABEL="xorg_aiptek_end"</code></li>
<li>Create another file with <strong>gedit</strong> by starting the <strong>Run Application</strong> dialogue with <strong>Alt F2</strong> and executing:<br />
<code>gksudo gedit /usr/share/X11/xorg.conf.d/70-aiptek.conf</code><br />
<strong>note:</strong> you might be promted for your password again</li>
<li>Paste the following content into <strong>gedit</strong>, then save and close the file:<br />
<code>Section "InputClass"<br />
Identifier "aiptek"<br />
MatchProduct "Aiptek|AIPTEK|aiptek"<br />
MatchDevicePath "/dev/input/event*"<br />
Driver "aiptek"<br />
Option "SendCoreEvents" "true"<br />
Option "<acronym title="Universal Serial Bus">USB</acronym>" "on"<br />
Option "Type" "stylus"<br />
Option "Mode" "absolute"<br />
Option "zMin" "0"<br />
Option "zMax" "1023"<br />
EndSection</code></li>
<li>Restart your system and your tablet should be working</li>
</ol>
<p><strong>Update (11/11/2009) for Ubuntu 9.10 Karmic:</strong> In Karmic the .fdi files are still working dispite the deprecation of HAL but you&#8217;ll have to create/edit them again if you&#8217;ve upgraded from Jaunty. However the Wacom driver which I was using in Jaunty doesn&#8217;t work anymore. The Aiptek driver works but with poor pressure sensitivity support (To use the Aiptek driver follow the instructions I&#8217;ve updated at <a title="Ubuntu Community Documentation: Aiptek Tablet" href="https://help.ubuntu.com/community/AiptekTablet">Ubuntu Community Documentation: Aiptek Tablet</a>). I&#8217;m using the Wizardpen driver as the pressure sensitivity works much better (Download and install the <a title="Wizardpen driver for Karmic" href="http://www.tecnicoslinux.com.ar/livecd/GeniusMousePen-Driver_0.7.0_i386.deb">Wizardpen driver for Karmic</a> and follow the original instructions below).</p>
<p>I finally got my G-Pen 560 graphic tablet working on my Ubuntu Linux which at the time I write this is 9.04 Jaunty Jackalope, and you know what? It&#8217;s <strong>easy</strong>!<br />
<strong>Update (7/29/2009):</strong> At the moment I&#8217;m using and recomending the Wacom driver. Skip the Wizardpen part and scroll down to read instructions on how to enable the Wacom driver for your tablet. Continue reading from here if you prefer to use the Wizardpen driver.</p>
<ol>
<li><a title="Wizardpen Driver DEB Package" href="http://digitalbluewave.blogspot.com/2009/04/wizardpen-070-alpha2-deb-package-now.html">Download the Wizardpen driver DEB package</a> and install it on your system</li>
<li>Create a new file with <strong>gedit</strong> by starting the <strong>Run Application</strong> dialogue with <strong>Alt F2</strong> and executing:<br />
<code>gksudo gedit /etc/hal/fdi/policy/gpen560.fdi</code><br />
<strong>note:</strong> you will be promted for your password</li>
<li>Paste the following content into <strong>gedit</strong>:<br />
<code>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;<br />
&lt;deviceinfo version="0.2"&gt;<br />
&lt;device&gt;<br />
&lt;match key="info.product" contains="Aiptek"&gt;<br />
&lt;merge key="input.x11_driver" type="string"&gt;wizardpen&lt;/merge&gt;</code></p>
<p><code>&lt;merge key="input.x11_options.SendCoreEvents" type="string"&gt;true&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.TopX" type="string"&gt;185&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.TopY" type="string"&gt;372&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.BottomX" type="string"&gt;11811&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.BottomY" type="string"&gt;8793&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.MaxX" type="string"&gt;11811&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.MaxY" type="string"&gt;8793&lt;/merge&gt;</code></p>
<p><code>&lt;merge key="input.x11_options.TopZ" type="string"&gt;32&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.MaxZ" type="string"&gt;1023&lt;/merge&gt;<br />
&lt;merge key="input.x11_options.BottomZ" type="string"&gt;1023&lt;/merge&gt;</code></p>
<p><code>&lt;/match&gt;<br />
&lt;/device&gt;<br />
&lt;/deviceinfo&gt;</code></li>
<li>Save the file and close <strong>gedit</strong></li>
<li>plug in (or re-plug in) your tablet and you should be done</li>
</ol>
<p>Note that if you want to make use of pressure sensitivity you&#8217;ll have to configure it on the specific applications.<br />
Also note that I haven&#8217;t figured out how to make the two buttons on the stylus work.</p>
<p>For other Wizardpen compatible tablets you&#8217;ll have to find out the right configuration for the <strong>.fdi</strong> file. Other than that it&#8217;s the same process. Consult the sources at the bottom of this article.</p>
<p>You could instead also use the <a title="Aiptek Tablet - Community Ubuntu Documentation" href="https://help.ubuntu.com/community/AiptekTablet">Aiptek driver</a>, or the <a title="Wacom - Community Ubuntu Documentation" href="https://help.ubuntu.com/community/Wacom">Wacom driver</a>, have a look at this Ubuntu forum post: <a title="Genius Mouspen 8x6 under Jaunty Jackalope" href="http://ubuntuforums.org/showthread.php?t=1151464&amp;page=2">Genius Mouspen 8&#215;6 under Jaunty Jackalope</a>. When I tried them, one of the stylus buttons worked as right click, but performance overall was not as good as with the <a title="TabletSetupWizardpen - Community Ubuntu Documentation" href="https://help.ubuntu.com/community/TabletSetupWizardpen">wizardpen driver</a>.</p>
<p>I&#8217;d recomend you to try the <a title="Wacom - Community Ubuntu Documentation" href="https://help.ubuntu.com/community/Wacom">Wacom driver</a> nevertheless to see for yourself, which one you prefer:</p>
<ol>
<li>Disable the <strong>.fdi</strong> file previously created so it doesn&#8217;t interfere with the Wacom configuration (only if you followed the instructions above about configuring the Wizardpen driver):<br />
Open <strong>nautilus</strong> with root priviledges by starting the <strong>Run Application</strong> dialogue with <strong>Alt F2</strong> and executing:<br />
<code>gksudo nautilus</code><br />
<strong>note:</strong> you will be promted for your password<br />
navigate to <code>/etc/hal/fdi/policy/</code> and rename <code>gpen560.fdi</code> to <code>gpen560.fdi.wizardpen</code></li>
<li>Open the Wacom configuration file using gedit with root priviledges:<br />
<code>gksudo gedit /usr/share/hal/fdi/policy/20thirdparty/10-wacom.fdi</code><br />
<strong>note:</strong> you will be promted for your password</li>
<li>Change this line:<br />
<code>&lt;match key="info.product" contains="Wacom"&gt;</code><br />
to:<br />
<code>&lt;match key="info.product" contains_outof="Wacom;Aiptek"&gt;</code></li>
<li>Save the file and close <strong>gedit</strong></li>
<li>plug in (or re-plug in) your tablet and you should be done</li>
</ol>
<p>By the way the Windows driver is buggy and the driver for Mac doesn&#8217;t work, at least not for leopard. <strong>Update (7/29/2009):</strong> However, the guys at Genius sent me a link to a <a title="Beta driver for Mac" href="http://download.geniusnet.com/2009/Tablet/GPen640-V172.zip ">newer driver</a> (probably beta) which does work for me. Try it!</p>
<p><strong>Sources:</strong><br />
<a title="Ubuntu Community Documentation: Aiptek Tablet" href="https://help.ubuntu.com/community/AiptekTablet"><br />
Ubuntu Community Documentation: Aiptek Tablet</a><br />
<a title="TabletSetupWizardpen - Community Ubuntu Documentation" href="https://help.ubuntu.com/community/TabletSetupWizardpen">Ubuntu Community Documentation: TabletSetupWizardpen</a><br />
<a title="Wacom - Community Ubuntu Documentation" href="https://help.ubuntu.com/community/Wacom">Ubuntu Community Documentation: Wacom</a><br />
<a title="The Digital Blue Wave" href="http://digitalbluewave.blogspot.com/">The Digital Blue Wave</a><br />
<a title="Genius Mouspen 8x6 under Jaunty Jackalope" href="http://ubuntuforums.org/showthread.php?t=1151464&amp;page=2">Genius Mouspen 8&#215;6 under Jaunty Jackalope</a><br />
<a href="http://penguins-diary.blogspot.com/2010/10/genius-g-pen-560-under-ubuntu-1004.html">Genius G-Pen 560 under Ubuntu 10.04</a><br />
<a href="http://penguins-diary.blogspot.com/2008/11/genius-g-pen-560-tablet-on-ubuntu-linux.html">Genius G-Pen 560 Tablet on Ubuntu Linux 8.10 Intrepid</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cocoknight.com/g-pen-560-on-jaunty/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

