<?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>Vegard Hammerseth &#187; linux</title>
	<atom:link href="http://vegard.hammerseth.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://vegard.hammerseth.com</link>
	<description>Geekness by remote</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:31:31 +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>ALL IN 1 HDD Docking (Unitek) in Linux</title>
		<link>http://vegard.hammerseth.com/2010/05/all-in-1-hdd-docking-unitek-in-linux/</link>
		<comments>http://vegard.hammerseth.com/2010/05/all-in-1-hdd-docking-unitek-in-linux/#comments</comments>
		<pubDate>Wed, 26 May 2010 22:31:37 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[double]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[HDD]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[western digital]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=692</guid>
		<description><![CDATA[Since my external HDD`s adapter died and I found out that these Western Digital`s adapters are bad all over through Google. I threw the contoller away and bought a new instead of another faulty adapter. There were little information about this controller, but it has tons of features at a low cost. My main concern was support [...]]]></description>
			<content:encoded><![CDATA[<p>Since my external HDD`s adapter died and I found out that these Western Digital`s adapters are bad all over through Google. I threw the contoller away and bought a new instead of another faulty adapter. There were little information about this controller, but it has tons of features at a low cost. My main concern was support in Ubuntu, but I found some defuse info about Linux support after some heavy Googling. I gave it a shoot and this post is my blessing for it`s plug`n`play comparability with Linux. I can now use the WD SATA disk and an old IDE disk laying around!</p>
<p><a href="http://lh6.ggpht.com/_kHz6hsl_gy8/S_mzWgiCJKI/AAAAAAAAFaE/KSDX4iIoejc/all%20in%201%20hdd%20docking%20front.jpg"><img class="alignnone" title="Front" src="http://lh6.ggpht.com/_kHz6hsl_gy8/S_mzWgiCJKI/AAAAAAAAFaE/KSDX4iIoejc/all%20in%201%20hdd%20docking%20front.jpg" alt="" width="390" height="323" /></a> <a href="http://lh3.ggpht.com/_kHz6hsl_gy8/S_mzWGx1zWI/AAAAAAAAFaA/XMcDbWpyeTk/all%20in%201%20hdd%20docking%20top.jpg"><img class="alignnone" title="Front" src="http://lh3.ggpht.com/_kHz6hsl_gy8/S_mzWGx1zWI/AAAAAAAAFaA/XMcDbWpyeTk/all%20in%201%20hdd%20docking%20top.jpg" alt="" width="390" height="293" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2010/05/all-in-1-hdd-docking-unitek-in-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Computer and Arduino controlled car (1:18)</title>
		<link>http://vegard.hammerseth.com/2010/02/computer-and-arduino-controlled-car-118/</link>
		<comments>http://vegard.hammerseth.com/2010/02/computer-and-arduino-controlled-car-118/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 20:02:47 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[/dev/ttyUSB0]]></category>
		<category><![CDATA[1:18]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[c++ish]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[controlled]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=613</guid>
		<description><![CDATA[So I decided to make something with RC-servos using the Arduino board and the sensor shield which I recently purchased. I went ahead figuring out how to send arrow signals from my computer to Arduino using USB interface. Using void setup() { Serial.begin(9600); } on Arduino and screen /dev/ttyUSB0 9600 on my computer, I managed [...]]]></description>
			<content:encoded><![CDATA[<p>So I decided to make something with RC-servos using the Arduino board and the sensor shield which I recently purchased.</p>
<p>I went ahead figuring out how to send arrow signals from my computer to Arduino using USB interface.</p>
<p>Using <code>void setup() { Serial.begin(9600); }</code> on Arduino and <code>screen /dev/ttyUSB0 9600</code> on my computer, I managed to send commands back and forth. I hooked up the standard servo library and write some code before I mounted the Arduino board on my <a href="http://vegard.hammerseth.com/2009/05/team-losi-mini-rock-crawler-modifications/">mini rock crawler</a>. I now had a computer controlled car. Because of Arduino`s simple interface I had it all up and running around an hour. Check the small video and code below.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/BOP4Nkqgku8&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/BOP4Nkqgku8&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>You can view and or use the code as you like below. (Sorry about the indention, WordPress messes it up).</p>
<div style="background-color:#bfbfbf;">
//<br />
// LIBRARY<br />
//<br />
#include &lt;Servo.h&gt;</p>
<p>//<br />
// OBJ<br />
//<br />
Servo servo1;<br />
Servo servo2;</p>
<p>// VARS<br />
int readByte;<br />
int servo1Angle = 90;	  //default servo angle<br />
int servo2Angle = 90;</p>
<p>int minPulse     =  700;  // minimum servo position<br />
int maxPulse     =  2300; // maximum servo position </p>
<p>void setup()<br />
{<br />
  servo1.attach(2, minPulse, maxPulse);  //connect servo<br />
  servo2.attach(3, minPulse, maxPulse);</p>
<p>  Serial.begin(9600); // start serial<br />
  Serial.println(&#8220;Ready\n&#8221;);<br />
} </p>
<p>void loop()<br />
{<br />
  if (Serial.available() > 1) // procced when two bytes is avaiable<br />
  {<br />
    readByte; = Serial.read();  //read first byte<br />
    if (readByte; == 91)<br />
    {<br />
      readByte; = Serial.read(); //read second byte to determine arrow type<br />
      if (readByte; == 65 &#038;&#038; servo1Angle <= 180)      //UP<br />
      {<br />
        servo1Angle += 5;<br />
      }<br />
      else if(readByte; == 66 &#038;&#038; servo1Angle >= 0)  //DOWN<br />
      {<br />
        servo1Angle -= 5;<br />
      }<br />
      else if(readByte; == 67 &#038;&#038; servo2Angle <= 180)  //RIGHT<br />
      {<br />
        servo2Angle += 5;<br />
      }<br />
      else if(readByte; == 68 &#038;&#038; servo2Angle >= 0) //LEFT<br />
      {<br />
        servo2Angle -= 5;<br />
      }</p>
<p>    }<br />
  }<br />
  // set servo positions<br />
  servo1.write(servo1Angle);<br />
  servo2.write(servo2Angle);<br />
  delay(15);<br />
}
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2010/02/computer-and-arduino-controlled-car-118/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04 on MacBookPro5,3</title>
		<link>http://vegard.hammerseth.com/2009/08/ubuntu-904-on-macbookpro53/</link>
		<comments>http://vegard.hammerseth.com/2009/08/ubuntu-904-on-macbookpro53/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 20:56:30 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[5.3]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[jackalope]]></category>
		<category><![CDATA[januty]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[macbookpro]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[mbp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=521</guid>
		<description><![CDATA[How I installed Ubuntu Jaunty Jackalope 9.04 on my MacBook Pro 5,3. After you have installed Ubuntu on your MBP and connected to internet. We need to add some lines in sources.list to be able to get special packages developed for apple products. WARNING: be carefull with all the &#8221; when pasting, they tend to [...]]]></description>
			<content:encoded><![CDATA[<p>How I installed Ubuntu Jaunty Jackalope 9.04 on my MacBook Pro 5,3.</p>
<p>After you have installed Ubuntu on your MBP and connected to internet. We need to add some lines in sources.list to be able to get special packages developed for apple products.</p>
<p><strong>WARNING: be carefull with all the &#8221; when pasting, they tend to change into a similar sign!</strong></p>
<p><strong>Update</strong><br />
<code>echo deb http://ppa.launchpad.net/mactel-support/ubuntu jaunty main | sudo tee -a /etc/apt/sources.list<br />
echo deb-src http://ppa.launchpad.net/mactel-support/ubuntu jaunty main | sudo tee -a /etc/apt/sources.list<br />
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7A6BC20C4FE04DADD10837608DB7F87A2B97B7B8 (DONT WORK)</code></p>
<p><code>sudo apt-get update<br />
sudo apt-get upgrade<br />
</code></p>
<p>REBOOT (recommended)</p>
<p><strong>Get hardware packages</strong><br />
<code>sudo apt-get install mbp-nvidia-bl-dkms applesmc-dkms hal-applesmc bcm5974-dkms lm-sensors</code></p>
<p>Reboot if you want it to work right away or just continue below.</p>
<p><strong>Keyboard</strong><br />
<a href="https://help.ubuntu.com/community/AppleKeyboard">Apple keyboard</a> backlight and Fn-keys should now work.<br />
If you want to change the fn-usage buttons.</p>
<p><code>echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf<br />
sudo update-initramfs -u </code></p>
<p>I like to use gnome-do and usually use the Menu key for this. You will be prompted for next login, make sure you load the file.<br />
Add this to ~/.xmodmaprc<br />
<code>keycode 252 = Super_R<br />
echo keysym Super_R = Menu<br />
keycode 49 = apostrophe</code></p>
<p>If you`re having problems getting the $ or brackets (and more) we need to do edit your keyboard layout. Go to Gnome menu -&gt; preferences -&gt; keyboard -&gt; layout and change keyboard model to apple and make sure you have the right layout selected.</p>
<p><strong>Sensors</strong><br />
For using sensors and fans we need to load apple modules:</p>
<p><code>echo coretemp | sudo tee -a /etc/modules<br />
echo applesmc | sudo tee -a /etc/modules</code></p>
<p>Reboot (optional).</p>
<p><strong>Caps lock</strong><br />
By default the green caps-lock does not work. ItÂ´s a easy fix.</p>
<p><code>sudo apt-get remove mouseemu</code></p>
<p><strong>Monitor</strong><br />
If you don`t like the way your MBP auto dim your screen, you can disable it.</p>
<p><code>gconftool -s /apps/gnome-power-manager/ambient/enable -t bool false</code></p>
<p><strong>Touchpad</strong><br />
To get multitouch we need to do a little trick.</p>
<p><code>echo bcm5974 | sudo tee -a /etc/modules<br />
echo usbhid | sudo tee -a /etc/modules<br />
echo blacklist usbhid | sudo tee -a /etc/modprobe.d/blacklist.conf</code></p>
<p>Open /etc/hal/fdi/policy/x11-synaptics-bcm5974.fdi and paste.<br />
<code>sudo gedit /etc/hal/fdi/policy/x11-synaptics-bcm5974.fdi</code></p>
<pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
&lt;deviceinfo version="0.2"&gt;
 &lt;device&gt;
  &lt;match key="info.capabilities" contains="input.touchpad"&gt;
   &lt;match key="info.product" contains="bcm5974"&gt;
   &lt;merge key="appledevice" type="bool"&gt;true&lt;/merge&gt;
   &lt;/match&gt;

   &lt;match key="appledevice" bool="true"&gt;
        &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;
        &lt;merge key="input.x11_options.SHMConfig" type="string"&gt;1&lt;/merge&gt;

        &lt;merge key="input.x11_options.FingerLow" type="string"&gt;40&lt;/merge&gt;
        &lt;merge key="input.x11_options.FingerHigh" type="string"&gt;70&lt;/merge&gt;
        &lt;merge key="input.x11_options.ClickFinger1" type="string"&gt;1&lt;/merge&gt;
        &lt;merge key="input.x11_options.ClickFinger2" type="string"&gt;3&lt;/merge&gt;
        &lt;merge key="input.x11_options.ClickFinger3" type="string"&gt;2&lt;/merge&gt;
        &lt;merge key="input.x11_options.TapButton1" type="string"&gt;1&lt;/merge&gt;
        &lt;merge key="input.x11_options.TapButton2" type="string"&gt;3&lt;/merge&gt;
        &lt;merge key="input.x11_options.TapButton3" type="string"&gt;2&lt;/merge&gt;

        &lt;merge key="input.x11_options.VertEdgeScroll" type="string"&gt;false&lt;/merge&gt;
        &lt;merge key="input.x11_options.HorizEdgeScroll" type="string"&gt;false&lt;/merge&gt;
        &lt;merge key="input.x11_options.VertTwoFingerScroll" type="string"&gt;1&lt;/merge&gt;
        &lt;merge key="input.x11_options.HorizTwoFingerScroll" type="string"&gt;1&lt;/merge&gt;

        &lt;merge key="input.x11_options.MinSpeed" type="string"&gt;0.5&lt;/merge&gt;
        &lt;merge key="input.x11_options.MaxSpeed" type="string"&gt;2.5&lt;/merge&gt;
        &lt;merge key="input.x11_options.AccelFactor" type="string"&gt;0.15&lt;/merge&gt;

        &lt;merge key="input.x11_options.PalmDetect" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.PalmMinWidth" type="string"&gt;25&lt;/merge&gt;
        &lt;merge key="input.x11_options.PalmMinZ" type="string"&gt;250&lt;/merge&gt;
   &lt;/match&gt;
  &lt;/match&gt;
 &lt;/device&gt;
&lt;/deviceinfo&gt;</code></pre>
<p>Reboot (optional).</p>
<p><strong>Sound</strong><br />
Follow this recipe and your sound should work.</p>
<p><code><br />
sudo apt-get install linux-headers-generic linux-image-generic linux-restricted-modules-generic<br />
wget ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-unstable-snapshot.tar.gz<br />
tar xf alsa-driver-unstable-snapshot.tar.gz<br />
cd alsa-driver-unstable<br />
sudo ./configure --enable-dynamic-minors --with-cards="hda-intel" --with-oss<br />
sudo make<br />
sudo make install<br />
cd ..<br />
sudo rm -rf alsa-driver-unstable alsa-driver-unstable-snapshot.tar.gz</code></p>
<p>REBOOT (recommended)</p>
<p>Now, donÂ´t forget to unmute sound channels.</p>
<p>If youÂ´d want a automatic fan program, I wrote one in bash. It requires lm-sensors (installed above) to work. I will write it in C some day.<br />
<code>#!/bin/bash</code></p>
<p><code># we don`t want to go all the way up to critiacal temp, safe_temp is substracted from critical temp<br />
SAFE_TEMP=10</code></p>
<p><code> </code></p>
<p><code># AUTOMATIC VALUES BELOW, DON`T EDIT</p>
<p># CPU critical temp<br />
CPU_CRIT=`cat /sys/devices/platform/coretemp.0/temp1_crit`</p>
<p># FAN SPEED<br />
FAN1_SPEED_MIN=`cat /sys/devices/platform/applesmc.768/fan1_min`<br />
FAN1_SPEED_MAX=`cat /sys/devices/platform/applesmc.768/fan1_max`<br />
FAN2_SPEED_MIN=`cat /sys/devices/platform/applesmc.768/fan2_min`<br />
FAN2_SPEED_MAX=`cat /sys/devices/platform/applesmc.768/fan2_max`<br />
CPU_CRIT=`expr "(" "$CPU_CRIT" "/" 1000 ")" "-" "$SAFE_TEMP"`</p>
<p>echo 1 &gt; /sys/devices/platform/applesmc.768/fan1_manual<br />
echo 1 &gt; /sys/devices/platform/applesmc.768/fan2_manual</p>
<p># dynamic values<br />
while [ 1 ]; do</p>
<p># CPU TEMPS<br />
CPU_TEMP0=`cat /sys/devices/platform/coretemp.0/temp1_input`<br />
CPU_TEMP1=`cat /sys/devices/platform/coretemp.1/temp1_input`<br />
CPU_TEMP=`expr "(" $CPU_TEMP0 + $CPU_TEMP1 ")" "/" 2000`</p>
<p># calculate<br />
FAN_SPEED=`expr "(" $CPU_TEMP "-" 34 ")" "*" 200`</p>
<p># if CPU reaches critical - SAFE_TEMP, shut off<br />
if [ "$CPU_TEMP" -gt "$CPU_CRIT" ]; then<br />
shutdown -h now<br />
fi</p>
<p># don`t go below min limit<br />
if [ "$FAN_SPEED" -le "$FAN1_SPEED_MIN" ]; then<br />
FAN_SPEED=$FAN1_SPEED_MIN;<br />
fi</p>
<p># don`t go above max limit<br />
if [ "$FAN_SPEED" -gt "$FAN1_SPEED_MAX" ]; then<br />
FAN_SPEED=$FAN1_SPEED_MAX;<br />
fi</p>
<p># only write if speed has changed<br />
if [ "$FAN_SPEED" != "$FAN_SPEED_OLD" ]; then<br />
#echo $CPU_TEMP $FAN_SPEED<br />
echo $FAN_SPEED &gt; /sys/devices/platform/applesmc.768/fan1_output<br />
echo $FAN_SPEED &gt; /sys/devices/platform/applesmc.768/fan2_output<br />
fi</p>
<p># store old speed<br />
FAN_SPEED_OLD=$FAN_SPEED;</p>
<p></code></p>
<p><code>sleep 5<br />
done<br />
</code></p>
<p><strong>Pommed</strong><br />
If you would like to install pommed on this machine at this time we have to modify pommed. I have notified creator of pommed about macbook5,3 support. If you have version above 1.27 you can skip this how to.</p>
<p><code>wget https://alioth.debian.org/frs/download.php/3084/pommed-1.27.tar.gz<br />
tar zxf pommed-1.27.tar.gz<br />
cd pommed-1.27/pommed/<br />
pico pommed-mpb5,3.patch</code></p>
<p>Then paste following.<br />
<code>--- pommed.c-old	2009-08-22 20:23:21.796989322 +0200<br />
+++ pommed.c	2009-08-22 20:22:42.270020918 +0200<br />
@@ -677,6 +677,7 @@<br />
* MacBook Pro 13" (June 2009) */<br />
else if ((strcmp(buf, "MacBookPro5,1") == 0)<br />
|| (strcmp(buf, "MacBookPro5,2") == 0)<br />
+           || (strcmp(buf, "MacBookPro5,3") == 0)<br />
|| (strcmp(buf, "MacBookPro5,5") == 0))<br />
ret = MACHINE_MACBOOKPRO_5;<br />
/* Core Duo MacBook (May 2006) */<br />
</code></p>
<p>Now apply the patch<br />
<code>patch -p0 &lt; pommed-mpb5,3.patch</code></p>
<p>Install required packages<br />
<code>sudo apt-get install pommed libdbus-1-dev libalsa-ocaml-dev libaudiofile-dev libconfuse-dev libpci-dev</code></p>
<p>Compile<br />
<code>cd ..<br />
make pommed<br />
sudo cp pommed/pommed /usr/sbin/pommed<br />
</code></p>
<p>Reboot.</p>
<p>Read additional info <a href="https://help.ubuntu.com/community/MacBookPro5-1_5-2/Jaunty">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2009/08/ubuntu-904-on-macbookpro53/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download youtube/flash in Ubuntu (Linux)</title>
		<link>http://vegard.hammerseth.com/2009/06/download-youtubeflash-in-ubuntu-linux/</link>
		<comments>http://vegard.hammerseth.com/2009/06/download-youtubeflash-in-ubuntu-linux/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 20:31:20 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[/tmp]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[embedded]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mechanical hand]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=438</guid>
		<description><![CDATA[Ever seen a cool movie on the Internet? embedded in flash, unable to download it? who haven&#8217;t.. Solution is quite simple and here is it quick for you: Open a page with flash. Wait till it&#8217;s completely downloaded, then fetch if from /tmp/. A longer explanation would be to a youtube page and load the [...]]]></description>
			<content:encoded><![CDATA[<p>Ever seen a cool movie on the Internet? embedded in flash, unable to download it? who haven&#8217;t..</p>
<p>Solution is quite simple and here is it <strong>quick</strong> for you: Open a page with flash. Wait till it&#8217;s completely downloaded, then fetch if from /tmp/.</p>
<p>A <strong>longer</strong> explanation would be to a youtube page and load the entire movie like so:<br />
<a href="http://lh4.ggpht.com/_kHz6hsl_gy8/Sil6MNSmLuI/AAAAAAAADjs/EYm1_UqMMWE/s512/youtube.jpg"><img class="alignnone" title="Youtube" src="http://lh4.ggpht.com/_kHz6hsl_gy8/Sil6MNSmLuI/AAAAAAAADjs/EYm1_UqMMWE/s512/youtube.jpg" alt="" width="318" height="232" /></a></p>
<p>When you see the movie has loaded fully, without interruptions from the user (you). You can find it in /tmp/:<br />
<a href="http://lh4.ggpht.com/_kHz6hsl_gy8/Sil6M7Gz6HI/AAAAAAAADjw/m_iis_2R61Q/s720/tmp.jpg"><img class="alignnone" title="Flash in /tmp" src="http://lh4.ggpht.com/_kHz6hsl_gy8/Sil6M7Gz6HI/AAAAAAAADjw/m_iis_2R61Q/s720/tmp.jpg" alt="" width="337" height="190" /></a></p>
<p>Now you just copy it to where ever you&#8217;ll like. If you want to convert it, you can open it with avidemux or Kino and then export it to .mpeg or whatever format you&#8217;d want.</p>
<p>Using ffmpeg:<br />
<code>ffmpeg -i "/tmp/Flash8CRIFL" "mechanical hand.mpeg"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2009/06/download-youtubeflash-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HP Photosmart C4380</title>
		<link>http://vegard.hammerseth.com/2008/08/hp-photosmart-c4380/</link>
		<comments>http://vegard.hammerseth.com/2008/08/hp-photosmart-c4380/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 22:54:06 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[c4380]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[photosmart]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wirelessly]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=140</guid>
		<description><![CDATA[Got my new printer today. Shortly after unpacking it I hooked it up and setup it on my windows-partition. Basically because I didn&#8217;t have time to see if HP or anyone else had setup software for it on Linux. The cool thing about this cheap printer is WiFi. It has WLAN which can be turned [...]]]></description>
			<content:encoded><![CDATA[<p>Got my new printer today. Shortly after unpacking it I hooked it up and setup it on my windows-partition. Basically because I didn&#8217;t have time to see if HP or anyone else had setup software for it on Linux.</p>
<p>The cool thing about this cheap printer is WiFi. It has WLAN which can be turned physically on/off. After it was connected to my network, I did like 5 mouse-clicks and the printer was wirelessly installed in Ubuntu.</p>
<p>Scanning did also work (in Ubuntu) wirelessly, which was pretty cool. It&#8217;s a joy to see Ubuntu managing these things just as good and in my opinion; easyer than windows.</p>
<p>Thumbs up for HP Photosmart C4380. Don&#8217;t be frighten to buy, even if you&#8217;re a tux.</p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2008/08/hp-photosmart-c4380/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

