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

<channel>
	<title>nameq0</title>
	<atom:link href="http://nameq.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nameq.wordpress.com</link>
	<description>yet another linux blog and stuff</description>
	<lastBuildDate>Thu, 17 Nov 2011 03:21:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nameq.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>nameq0</title>
		<link>http://nameq.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nameq.wordpress.com/osd.xml" title="nameq0" />
	<atom:link rel='hub' href='http://nameq.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Recursive Find and Replace in Linux</title>
		<link>http://nameq.wordpress.com/2011/10/05/recursive-find-and-replace-in-linux/</link>
		<comments>http://nameq.wordpress.com/2011/10/05/recursive-find-and-replace-in-linux/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 01:01:30 +0000</pubDate>
		<dc:creator>chernobyl2001</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[recursive]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://nameq.wordpress.com/?p=214</guid>
		<description><![CDATA[Hello people! I&#8217;ve once again needed to do a recursive find and replace to replace all memcpy in ffmpeg source for memmove since there&#8217;s a bug about the optimizations done with memcpy in x86_64 archs. I thought this tip could be helpfull to others to in future. So here it is, how you can do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=214&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello people!<br />
I&#8217;ve once again needed to do a recursive find and replace to replace all memcpy in ffmpeg source for memmove since there&#8217;s a <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627818" title="memcpy bug on x86_64" target="_blank">bug about the optimizations</a> done with memcpy in x86_64 archs.<br />
I thought this tip could be helpfull to others to in future. So here it is, how you can do it too:
<pre>find ./ -type f | xargs sed -i 's/string1/string2/g'</pre>
<p>And that&#8217;s all folks! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nameq.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nameq.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nameq.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nameq.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nameq.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nameq.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nameq.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nameq.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nameq.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nameq.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nameq.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nameq.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nameq.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nameq.wordpress.com/214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=214&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nameq.wordpress.com/2011/10/05/recursive-find-and-replace-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d29213acd91970edb8bae190a4d8dde?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernobyl2001</media:title>
		</media:content>
	</item>
		<item>
		<title>DisplayLink on Fedora Linux</title>
		<link>http://nameq.wordpress.com/2011/09/21/displaylink-dl-165-running-on-linux-fedora/</link>
		<comments>http://nameq.wordpress.com/2011/09/21/displaylink-dl-165-running-on-linux-fedora/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 00:42:29 +0000</pubDate>
		<dc:creator>chernobyl2001</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[displaylink]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[dl165]]></category>
		<category><![CDATA[xinerama]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://nameq.wordpress.com/?p=120</guid>
		<description><![CDATA[I had the opportunity to recently try one of the DisplayLink&#8217;s USB 2.0 graphics adapter. This one is supposedly a DL-165 but was bought on eBay as a &#8220;USB 2.0 to VGA DVI HDMI Multi-Display Graphic Adapter&#8221; for about 35EUR. Its purpose will be the projection of presentations and other e-learning materials in a school [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=120&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had the opportunity to recently try one of the DisplayLink&#8217;s USB 2.0 graphics adapter. This one is supposedly a DL-165 but was bought on eBay as a &#8220;USB 2.0 to VGA DVI HDMI Multi-Display Graphic Adapter&#8221; for about 35EUR. Its purpose will be the projection of presentations and other e-learning materials in a school by a teacher. It&#8217;s a USB to DVI graphics adapter which comes with 2 adapters:</p>
<ul>
<li> 1 x DVI to VGA </li>
<li> 1 x DVI to HDMI </li>
</ul>
<p><a href="http://nameq.files.wordpress.com/2011/09/img_0432.jpg" target="_blank"><img src="http://nameq.files.wordpress.com/2011/09/img_0432.jpg?w=150&#038;h=112" alt="" title="SUNWEIT USB Display Adapter #1" width="150" height="112" class="size-thumbnail wp-image-121" /></a>&nbsp;<a href="http://nameq.files.wordpress.com/2011/09/img_0434.jpg" target="_blank"><img src="http://nameq.files.wordpress.com/2011/09/img_0434.jpg?w=150&#038;h=112" alt="" title="DisplayLink SUNWEIT USB Display Adapter #2" width="150" height="112" class="alignnone size-thumbnail wp-image-122" /></a>&nbsp;<a href="http://nameq.files.wordpress.com/2011/09/img_0435.jpg" target="_blank"><img src="http://nameq.files.wordpress.com/2011/09/img_0435.jpg?w=150&#038;h=112" alt="" title="DisplayLink SUNWEIT USB Display Adapter #3" width="150" height="112" class="alignnone size-thumbnail wp-image-123" /></a>&nbsp;<a href="http://nameq.files.wordpress.com/2011/09/img_0436.jpg" target="_blank"><img src="http://nameq.files.wordpress.com/2011/09/img_0436.jpg?w=150&#038;h=112" alt="" title="DisplayLink SUNWEIT USB Display Adapter #4" width="150" height="112" class="alignnone size-thumbnail wp-image-124" /></a>&nbsp;<a href="http://nameq.files.wordpress.com/2011/09/img_0437.jpg" target="_blank"><img src="http://nameq.files.wordpress.com/2011/09/img_0437.jpg?w=150&#038;h=112" alt="" title="DVI to HDMI adapter #1" width="150" height="112" class="alignnone size-thumbnail wp-image-125" /></a>&nbsp;<a href="http://nameq.files.wordpress.com/2011/09/img_0438.jpg" target="_blank"><img src="http://nameq.files.wordpress.com/2011/09/img_0438.jpg?w=150&#038;h=112" alt="" title="DVI to HDMI adapter #2" width="150" height="112" class="alignnone size-thumbnail wp-image-126" /></a></br><br />
Linux says it&#8217;s a  DisplayLink SUNWEIT USB Display Adapter see bellow: </p>
<pre>
[  122.227846] usb 2-1.3: New USB device found, idVendor=17e9, idProduct=024c
[  122.227853] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  122.227858] usb 2-1.3: Product: SUNWEIT USB Display
[  122.227862] usb 2-1.3: Manufacturer: DisplayLink
[  122.227866] usb 2-1.3: SerialNumber: 00000000-000794
</pre>
<p>I had several problems to put this to work under Linux as you will see next. I&#8217;ve googled around to look for setup instructions and found that starting from kernel 2.6.38 the udlfb driver which drives <a href="http://libdlo.freedesktop.org/wiki/" target="_blank">diplaylink devices under linux</a> has been moved from staging to main kernel tree.<br />
However the latest udlfb driver can also be obtained from <a href="http://git.plugable.com/gitphp/index.php?p=udlfb&amp;a=summary" target="_blank">here</a> and the latest displaylink X.org driver can be pulled from <a href="http://git.plugable.com/gitphp/index.php?p=xf-video-udlfb&amp;a=summary" target="_blank">here</a>.</p>
<p>Now the setup procedure:</p>
<ol>
<li>I&#8217;ve decided to recompile kernel 3.0.4 in order to include udlfb (see my <a href="http://nameq.wordpress.com/2011/09/10/compiling-vanilla-kernel-4-fedora/">previous post</a> on how to compile your custom vanilla kernel if you need directions here).</li>
<li>I&#8217;ve found out somewhere, maybe <a href="http://mulchman.org/blog/?p=90" target="_blank">here</a> that after udlfb driver is correctly installed in your system you should get a green display, so after recompiling kernel 3.0.4 to include udlfb driver i&#8217;ve plugged the usb cable and have immediately gotten my green display as seen bellow.</li>
<p><a href="http://nameq.files.wordpress.com/2011/09/img_0439_.jpg" target="_blank"><img src="http://nameq.files.wordpress.com/2011/09/img_0439_.jpg?w=300&#038;h=250" alt="" title="DisplayLink Linux Green Screen" width="300" height="250" class="alignnone size-medium wp-image-153" /></a></p>
<li>When you get your green screen you will also find a new device under <span style="font-size:x-small;"><code>/dev/fb1</code></span> see <span style="font-size:x-small;"><code>dmesg</code></span> log bellow
<pre>[ 9937.250452] udlfb: DisplayLink USB device /dev/fb1 attached. 800x600 resolution. Using 1880K framebuffer memory
[ 9937.250501] usbcore: registered new interface driver udlfb
</pre>
</li>
<li>The next step should be compiling the displaylink X.org driver. Start by cloning xf-video-udlfb git repo:
<pre>git clone http://git.plugable.com/webdav/xf-video-udlfb
cd xf-video-udlfb
./configure
make &amp;&amp; make install</pre>
<p>When done you will have two new files under <span style="font-size:x-small;"><code>/usr/local/lib/xorg/modules/drivers/</code></span>
<pre>[root@dell udlfb]# ls -l /usr/local/lib/xorg/modules/drivers/
total 160
-rwxr-xr-x 1 root root    993 Sep 19 00:56 displaylink_drv.la
-rwxr-xr-x 1 root root 157291 Sep 19 00:56 displaylink_drv.so
</pre>
</li>
<li>link <span style="font-size:x-small;"><code>displaylink_drv.so</code></span> to <span style="font-size:x-small;"><code>/usr/lib64/xorg/modules/drivers/</code></span> if under <span style="font-size:x-small;"><code>x86_64</code></span> arch or <span style="font-size:x-small;"><code>/usr/lib/xorg/modules/drivers/</code></span> if <span style="font-size:x-small;"><code>i386</code></span> arch.
<pre>ln -s /usr/local/lib/xorg/modules/drivers/displaylink_drv.so /usr/lib64/xorg/modules/drivers/</pre>
<p> or
<pre>ln -s /usr/local/lib/xorg/modules/drivers/displaylink_drv.so /usr/lib/xorg/modules/drivers/</pre>
<p>You are done for now.</li>
<li>Now it&#8217;s time to tailor a custom xorg.conf file for use. Recent Linux distros don&#8217;t come with a /etc/X11/xorg.conf file anymore so to generate a starting point issue the following command:
<pre>X -configure</pre>
<p> you will maybe need to change to runlevel 3 to run the previous command successfully, you can do that by running <span style="font-size:x-small;"><code>init 3</code></span> as root.<br />
This command will create a <span style="font-size:x-small;"><code>xorg.conf.new</code></span> as a basic starting point. Start by editing it to feet your needs. Remember that the displaylink monitor needs to be primary starting at:
<pre>X.pos 0</br>Y.pos 0</pre>
<p> take a look into xorg.conf manual
<pre>man xorg.conf</pre>
<p> to learn more about xorg.conf&#8217;s options. You can also look at xf-video-udlfb <span style="font-size:x-small;"><code>README</code></span> file you got previously.<br />
Bellow you can see how my xorg.conf file become after some tailoring:
<pre>
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen1" 0 0
	Screen      1  "Screen0" 1024 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	Option		"Xinerama" "On"
EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection

Section "Files"
	ModulePath   "/usr/lib64/xorg/modules"
	FontPath     "catalogue:/etc/X11/fontpath.d"
	FontPath     "built-ins"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	Option	     "Primary" "true"
EndSection

Section "Monitor"
	#DisplaySize 304 228 # mm
	Identifier "Monitor1"
	VendorName "SNY"
	ModelName "SDM-HS53"
	Option "DPMS"
	# 1024x768 @ 75.10 Hz (GTF) hsync: 60.23 kHz; pclk: 81.91 MHz
	Modeline "1024x768_75.10"  81.91  1024 1080 1192 1360  768 769 772 802  -HSync +Vsync
	Option	     "Primary" "false"
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

Section "Device"
	Identifier  "Card1"
	Driver      "displaylink"
	Option "fbdev" "/dev/fb1"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 16
	SubSection "Display"
		Depth     1
		Modes     "1440x900"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes     "1440x900"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes     "1440x900"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes     "1440x900"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes     "1440x900"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes     "1440x900"
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	DefaultDepth 16
	SubSection "Display"
		Depth     1
		Modes	  "1024x768_75.10" "1024x768"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes	  "1024x768_75.10" "1024x768"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes	  "1024x768_75.10" "1024x768"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes	  "1024x768_75.10" "1024x768"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes	  "1024x768_75.10" "1024x768"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes	  "1024x768_75.10" "1024x768"
	EndSubSection
EndSection
</pre>
<p> gtf command can also become handy here
<pre>man gtf</pre>
</li>
<li>Finally let&#8217;s test our setup:<br />
To do that lets create a new X session, issue the following:
<pre>startx -- :2 -config xorg.conf.new</pre>
<p>If everything went OK you should be now seeing an extended desktop on a new X session with the displaylink monitor set as primary.<br />
If for some reason this didn&#8217;t workout for you, don&#8217;t worry you have probably run into some of the issues i have too <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .<br />
The rest of this blog post will introduce you to some problems I&#8217;ve found and how you can workaround those if you also run into them. You will want to look at <span style="font-size:x-small;"><code>/var/log/Xorg.*.log</code></span> and <span style="font-size:x-small;"><code>dmesg</code></span> logs from time to time to try to understand what&#8217;s going on.</li>
</ol>
<p>Lets now start some debugging</p>
<ol>
<li>In my case after running
<pre>startx -- :2 -config xorg.conf.new</pre>
<p> i got a segmentation fault WTF? right?<br />
my log file stated the following
<pre>
[   265.190] (--) using VT number 8

[   267.692] (WW) Falling back to old probe method for displaylink
[   267.692] (II) Loading sub module "fbdevhw"
[   267.692] (II) LoadModule: "fbdevhw"
[   267.692] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[   267.692] (II) Module fbdevhw: vendor="X.Org Foundation"
[   267.692]    compiled for 1.9.5, module version = 0.0.2
[   267.692]    ABI class: X.Org Video Driver, version 8.0
[   267.692] (II) DL(0): using /dev/fb1
[   267.692] (EE) DL(0): Unknown EDID version 0
[   267.692] (**) DL(0): Depth 16, (--) framebuffer bpp 16
[   267.692] (==) DL(0): RGB weight 565
[   267.692] (==) DL(0): Default visual is TrueColor
[   267.692] (==) DL(0): Using gamma correction (1.0, 1.0, 1.0)
[   267.692] (II) DL(0): hardware: udlfb (video memory: 940kB)
[   267.692] (**) DL(0): Option "fbdev" "/dev/fb1"
[   267.692] (II) Loading sub module "fb"
[   267.692] (II) LoadModule: "fb"
[   267.693] (II) Loading /usr/lib64/xorg/modules/libfb.so
[   267.693] (II) Module fb: vendor="X.Org Foundation"
[   267.693]    compiled for 1.9.5, module version = 1.0.0
[   267.693]    ABI class: X.Org ANSI C Emulation, version 0.4
[   267.693] (II) DL(0): Output udlfb using monitor section Monitor1
[   267.693] (**) DL(0): Option "Primary" "false"
[   267.693] (EE) DL(0): Unknown EDID version 245
[   267.693] (II) DL(0): EDID for output udlfb
[   267.693]
Backtrace:
[   267.693] 0: /usr/bin/X (xorg_backtrace+0x28) [0x4a0908]
[   267.694] 1: /usr/bin/X (0x400000+0x60e99) [0x460e99]
[   267.694] 2: /lib64/libc.so.6 (0x355e200000+0x33140) [0x355e233140]
[   267.694] 3: /usr/lib64/xorg/modules/drivers/displaylink_drv.so (0x7ff1425d0000+0x382e) [0x7ff1425d382e]
[   267.694] 4: /usr/bin/X (InitOutput+0x802) [0x470bb2]
[   267.694] 5: /usr/bin/X (0x400000+0x213cd) [0x4213cd]
[   267.694] 6: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x355e21ee5d]
[   267.694] 7: /usr/bin/X (0x400000+0x21129) [0x421129]
[   267.694] Segmentation fault at address 0x24
[   267.694]
Fatal server error:
[   267.694] Caught signal 11 (Segmentation fault). Server aborting
</pre>
<p> my problem here was about the EDID. You can learn about EDID <a href="http://en.wikipedia.org/wiki/Extended_display_identification_data" target="_blank">here</a>.<br />
when i&#8217;ve looked again into dmesg log i&#8217;ve also noticed this particular entry after connecting the displaylink device:
<pre>[  236.494596] udlfb: Unable to get valid EDID from device/display</pre>
</li>
<li>After some time i found out that this late message was coming from <span style="font-size:x-small;"><code>udlfb.c</code></span> just search for it. It seems that udlfb driver isn&#8217;t being able to get the display EDID. As a workaround i&#8217;ve connected the monitor to the integrated VGA port on my laptop and ran the following:
<pre>xrandr --prop</pre>
<p> to get myself two 128bit arrays, one for my laptop LCD EDID and a second for the External Monitor connected to the integrated VGA port. Bellow you can see the EDID array for SONY SDM-HS53 Monitor
<pre>
EDID:
		00ffffffffffff004dd9502201010101
		0b0e01030c1e1778ea8c3ea4584d9124
		154f51a1080001010101010101010101
		01010101010164190040410026301888
		360030e410000018000000fd00393f1c
		3109000a202020202020000000fc0053
		444d2d485335330a20202020000000ff
		00313235333730360a202020202000ce
</pre>
<p>I&#8217;ve also found that fedora provides a set of tools to play with EDIDs. If you are curious and want to try them out issue this:
<pre>yum install monitor-edid</pre>
<p> in the end you can do something like
<pre>xrandr --prop | monitor-parse-edid</pre>
<p> interesting stuff.</li>
<li>As a next step I&#8217;ve tailored this hexadecimal array into a C array as follows:
<pre>
unsigned char sony_sdmhs53_edid[] = {
0x00,
0xff,
0xff,
0xff,
0xff,
0xff,
0xff,
0x00,
0x4d,
0xd9,
0x50,
0x22,
0x01,
0x01,
0x01,
0x01,
0x0b,
0x0e,
0x01,
0x03,
0x0c,
0x1e,
0x17,
0x78,
0xea,
0x8c,
0x3e,
0xa4,
0x58,
0x4d,
0x91,
0x24,
0x15,
0x4f,
0x51,
0xa1,
0x08,
0x00,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x01,
0x64,
0x19,
0x00,
0x40,
0x41,
0x00,
0x26,
0x30,
0x18,
0x88,
0x36,
0x00,
0x30,
0xe4,
0x10,
0x00,
0x00,
0x18,
0x00,
0x00,
0x00,
0xfd,
0x00,
0x39,
0x3f,
0x1c,
0x31,
0x09,
0x00,
0x0a,
0x20,
0x20,
0x20,
0x20,
0x20,
0x20,
0x00,
0x00,
0x00,
0xfc,
0x00,
0x53,
0x44,
0x4d,
0x2d,
0x48,
0x53,
0x35,
0x33,
0x0a,
0x20,
0x20,
0x20,
0x20,
0x00,
0x00,
0x00,
0xff,
0x00,
0x31,
0x32,
0x35,
0x33,
0x37,
0x30,
0x36,
0x0a,
0x20,
0x20,
0x20,
0x20,
0x20,
0x00,
0xce,
};
</pre>
<p> and added this to <span style="font-size:x-small;"><code>udlfb.c</code></span></li>
<li>The next step was to hardcode the EDID in <span style="font-size:x-small;"><code>udlfb.c</code></span> since it wasn&#8217;t being able to successfully get it dynamically through the USB device.<br />
Below you can see the changes i&#8217;ve made
<pre>
Binary files udlfb.git/.git/index and udlfb.new/.git/index differ
diff -uNrp udlfb.git/.git/logs/HEAD udlfb.new/.git/logs/HEAD
--- udlfb.git/.git/logs/HEAD	2011-09-23 00:02:10.376129589 +0100
+++ udlfb.new/.git/logs/HEAD	2011-09-22 04:46:35.000000000 +0100
@@ -1 +1 @@
-0000000000000000000000000000000000000000 1811e5c48a29cc925f9b7a49465e06255196a80f Nuno M Reis  1316732530 +0100	clone: from http://git.plugable.com/webdav/udlfb
+0000000000000000000000000000000000000000 1811e5c48a29cc925f9b7a49465e06255196a80f root  1316663195 +0100	clone: from http://git.plugable.com/webdav/udlfb
diff -uNrp udlfb.git/.git/logs/refs/heads/master udlfb.new/.git/logs/refs/heads/master
--- udlfb.git/.git/logs/refs/heads/master	2011-09-23 00:02:10.376129589 +0100
+++ udlfb.new/.git/logs/refs/heads/master	2011-09-22 04:46:35.000000000 +0100
@@ -1 +1 @@
-0000000000000000000000000000000000000000 1811e5c48a29cc925f9b7a49465e06255196a80f Nuno M Reis  1316732530 +0100	clone: from http://git.plugable.com/webdav/udlfb
+0000000000000000000000000000000000000000 1811e5c48a29cc925f9b7a49465e06255196a80f root  1316663195 +0100	clone: from http://git.plugable.com/webdav/udlfb
diff -uNrp udlfb.git/udlfb.c udlfb.new/udlfb.c
--- udlfb.git/udlfb.c	2011-09-23 00:02:10.379129638 +0100
+++ udlfb.new/udlfb.c	2011-09-22 05:56:36.000000000 +0100
@@ -75,6 +75,138 @@ static int console = 1; /* Allow fbcon t
 static int fb_defio = 1;  /* Detect mmap writes using page faults */
 static int shadow = 1; /* Optionally disable shadow framebuffer */

+
+unsigned char sony_sdmhs53_edid[] = {
+0x00,
+0xff,
+0xff,
+0xff,
+0xff,
+0xff,
+0xff,
+0x00,
+0x4d,
+0xd9,
+0x50,
+0x22,
+0x01,
+0x01,
+0x01,
+0x01,
+0x0b,
+0x0e,
+0x01,
+0x03,
+0x0c,
+0x1e,
+0x17,
+0x78,
+0xea,
+0x8c,
+0x3e,
+0xa4,
+0x58,
+0x4d,
+0x91,
+0x24,
+0x15,
+0x4f,
+0x51,
+0xa1,
+0x08,
+0x00,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x01,
+0x64,
+0x19,
+0x00,
+0x40,
+0x41,
+0x00,
+0x26,
+0x30,
+0x18,
+0x88,
+0x36,
+0x00,
+0x30,
+0xe4,
+0x10,
+0x00,
+0x00,
+0x18,
+0x00,
+0x00,
+0x00,
+0xfd,
+0x00,
+0x39,
+0x3f,
+0x1c,
+0x31,
+0x09,
+0x00,
+0x0a,
+0x20,
+0x20,
+0x20,
+0x20,
+0x20,
+0x20,
+0x00,
+0x00,
+0x00,
+0xfc,
+0x00,
+0x53,
+0x44,
+0x4d,
+0x2d,
+0x48,
+0x53,
+0x35,
+0x33,
+0x0a,
+0x20,
+0x20,
+0x20,
+0x20,
+0x00,
+0x00,
+0x00,
+0xff,
+0x00,
+0x31,
+0x32,
+0x35,
+0x33,
+0x37,
+0x30,
+0x36,
+0x0a,
+0x20,
+0x20,
+0x20,
+0x20,
+0x20,
+0x00,
+0xce,
+};
+
 /*
  * When building as a separate module against an arbitrary kernel,
  * check on build presence of other kernel modules we have dependencies on.
@@ -814,6 +946,7 @@ error:

 #endif

+/*
 static int dlfb_get_edid(struct dlfb_data *dev, char *edid, int len)
 {
 	int i;
@@ -841,6 +974,7 @@ static int dlfb_get_edid(struct dlfb_dat

 	return i;
 }
+*/

 static int dlfb_ops_ioctl(struct fb_info *info, unsigned int cmd,
 				unsigned long arg)
@@ -1304,20 +1438,23 @@ static int dlfb_setup_modes(struct dlfb_
 			   struct fb_info *info,
 			   char *default_edid, size_t default_edid_size)
 {
-	int i;
+	int i,j;
 	const struct fb_videomode *default_vmode = NULL;
 	int result = 0;
-	char *edid;
+	char *edid = NULL;
 	int tries = 3;

 	if (info-&gt;dev) /* only use mutex if info has been registered */
 		mutex_lock(&amp;info-&gt;lock);
-
+
 	edid = kmalloc(EDID_LENGTH, GFP_KERNEL);
 	if (!edid) {
 		result = -ENOMEM;
 		goto error;
 	}
+	for(j = 0; j &lt; EDID_LENGTH; j++){
+		edid[j] = sony_sdmhs53_edid[j];
+	}	

 	fb_destroy_modelist(&amp;info-&gt;modelist);
 	memset(&amp;info-&gt;monspecs, 0, sizeof(info-&gt;monspecs));
@@ -1329,11 +1466,13 @@ static int dlfb_setup_modes(struct dlfb_
 	 */
 	while (tries--) {

-		i = dlfb_get_edid(dev, edid, EDID_LENGTH);
+		i = 128;

-		if (i &gt;= EDID_LENGTH)
+		if (i &gt;= EDID_LENGTH){
 			fb_edid_to_monspecs(edid, &amp;info-&gt;monspecs);
-
+			pr_warn("teste\t%x",edid[8]);
+			pr_warn("teste\t%x",sony_sdmhs53_edid[8]);
+		}
 		if (info-&gt;monspecs.modedb_len &gt; 0) {
 			dev-&gt;edid = edid;
 			dev-&gt;edid_size = i;
@@ -1407,8 +1546,8 @@ static int dlfb_setup_modes(struct dlfb_
 		 * default to resolution safe for projectors
 		 * (since they are most common case without EDID)
 		 */
-		fb_vmode.xres = 800;
-		fb_vmode.yres = 600;
+		fb_vmode.xres = 1024;
+		fb_vmode.yres = 768;
 		fb_vmode.refresh = 60;
 		default_vmode = fb_find_nearest_mode(&amp;fb_vmode,
 						     &amp;info-&gt;modelist);
</pre>
<p>After applying this changes I&#8217;ve get ridden of the message I was getting earlier.
<pre>[  236.494596] udlfb: Unable to get valid EDID from device/display</pre>
<p></code></li>
<li>Let's go back to step no. 7 above
<pre>startx -- :2 -config xorg.conf.new</pre>
<p>And this time everything worked and i got mayself a new X session running on the displaylink device as primary monitor as seen bellow.<a href="http://nameq.files.wordpress.com/2011/09/img_0450.jpg" target="_blank"><img src="http://nameq.files.wordpress.com/2011/09/img_0450.jpg?w=300&#038;h=225" alt="" title="new X session running on displaylink device" width="300" height="225" class="alignnone size-medium wp-image-197" /></a></li>
</ol>
<p>And we are done! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </br>If you intent to use gnome 3 or other 3D features, DisplayLink devices still <a href="http://www.phoronix.com/scan.php?page=news_item&amp;px=OTUyMQ" title="DisplayLink Continues To Progress On Linux, But No 3D" target="_blank">lack 3D support under Linux</a>. We will have to wait a little bit longer.. :-/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nameq.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nameq.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nameq.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nameq.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nameq.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nameq.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nameq.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nameq.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nameq.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nameq.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nameq.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nameq.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nameq.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nameq.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=120&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nameq.wordpress.com/2011/09/21/displaylink-dl-165-running-on-linux-fedora/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d29213acd91970edb8bae190a4d8dde?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernobyl2001</media:title>
		</media:content>

		<media:content url="http://nameq.files.wordpress.com/2011/09/img_0432.jpg?w=150" medium="image">
			<media:title type="html">SUNWEIT USB Display Adapter #1</media:title>
		</media:content>

		<media:content url="http://nameq.files.wordpress.com/2011/09/img_0434.jpg?w=150" medium="image">
			<media:title type="html">DisplayLink SUNWEIT USB Display Adapter #2</media:title>
		</media:content>

		<media:content url="http://nameq.files.wordpress.com/2011/09/img_0435.jpg?w=150" medium="image">
			<media:title type="html">DisplayLink SUNWEIT USB Display Adapter #3</media:title>
		</media:content>

		<media:content url="http://nameq.files.wordpress.com/2011/09/img_0436.jpg?w=150" medium="image">
			<media:title type="html">DisplayLink SUNWEIT USB Display Adapter #4</media:title>
		</media:content>

		<media:content url="http://nameq.files.wordpress.com/2011/09/img_0437.jpg?w=150" medium="image">
			<media:title type="html">DVI to HDMI adapter #1</media:title>
		</media:content>

		<media:content url="http://nameq.files.wordpress.com/2011/09/img_0438.jpg?w=150" medium="image">
			<media:title type="html">DVI to HDMI adapter #2</media:title>
		</media:content>

		<media:content url="http://nameq.files.wordpress.com/2011/09/img_0439_.jpg?w=300" medium="image">
			<media:title type="html">DisplayLink Linux Green Screen</media:title>
		</media:content>

		<media:content url="http://nameq.files.wordpress.com/2011/09/img_0450.jpg?w=300" medium="image">
			<media:title type="html">new X session running on displaylink device</media:title>
		</media:content>
	</item>
		<item>
		<title>Query wikipedia over DNS</title>
		<link>http://nameq.wordpress.com/2011/09/14/query-wikipedia-over-dns/</link>
		<comments>http://nameq.wordpress.com/2011/09/14/query-wikipedia-over-dns/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 02:17:07 +0000</pubDate>
		<dc:creator>chernobyl2001</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[stuff]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://nameq.wordpress.com/?p=110</guid>
		<description><![CDATA[This is a nice one. Use the following command line to query wikipedia over DNS: dig +short txt Coimbra.wp.dg.cx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=110&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a nice one.<br />
Use the following command line to query wikipedia over DNS:</p>
<pre>dig +short txt Coimbra.wp.dg.cx</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nameq.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nameq.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nameq.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nameq.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nameq.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nameq.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nameq.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nameq.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nameq.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nameq.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nameq.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nameq.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nameq.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nameq.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=110&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nameq.wordpress.com/2011/09/14/query-wikipedia-over-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d29213acd91970edb8bae190a4d8dde?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernobyl2001</media:title>
		</media:content>
	</item>
		<item>
		<title>How 2 create a pdf document holding image scan files</title>
		<link>http://nameq.wordpress.com/2011/09/14/how-2-create-a-pdf-document-holding-image-scan-files/</link>
		<comments>http://nameq.wordpress.com/2011/09/14/how-2-create-a-pdf-document-holding-image-scan-files/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 01:48:15 +0000</pubDate>
		<dc:creator>chernobyl2001</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[stuff]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[scans]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://nameq.wordpress.com/?p=102</guid>
		<description><![CDATA[Hi all! Today I&#8217;m gonna share with you how to create a pdf document holding several images scan files. You probably have already asked yourself sometimes on how it would be great if you could easily create a pdf file from a bunch of image files after using you scanner. I have. Some scanner manufacturers [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=102&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all!<br />
Today I&#8217;m gonna share with you how to create a pdf document holding several images scan files.<br />
You probably have already asked yourself sometimes on how it would be great if you could easily create a pdf file from a bunch of image files after using you scanner. I have.<br />
Some scanner manufacturers do already provide ways to do multiple scans into a resulting pdf file, if this is your case you can stop reading now.<br />
As a Linux user and as a legacy scanner holder(but still an excellent unit) i found this an excellent way to achieve my task:</p>
<ol>
<li>You need to install ImageMagick. In fedora you can do that by typing:
<pre>yum install ImageMagick</pre>
</li>
<li>Next change directory into where you got your scans.<br />
In my case:</p>
<pre>cd ~/scans</pre>
<p>All my scans are auto-generated names as follows:</p>
<pre>
SCAN_001.png
SCAN_002.png
...
SCAN_012.png</pre>
</li>
<li>To get your pdf just type:
<pre>convert SCAN_[0-9]{3}.png book.pdf</pre>
<p>and it&#8217;s done.</li>
<p>To see the result just open the result <span style="font-size:x-small;"><code>book.pdf</code></span> file.<br />
I hope you&#8217;ve enjoyed this tip.</p>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nameq.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nameq.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nameq.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nameq.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nameq.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nameq.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nameq.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nameq.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nameq.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nameq.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nameq.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nameq.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nameq.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nameq.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=102&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nameq.wordpress.com/2011/09/14/how-2-create-a-pdf-document-holding-image-scan-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d29213acd91970edb8bae190a4d8dde?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernobyl2001</media:title>
		</media:content>
	</item>
		<item>
		<title>Compiling kernel 3 vanilla 4 fedora</title>
		<link>http://nameq.wordpress.com/2011/09/10/compiling-vanilla-kernel-4-fedora/</link>
		<comments>http://nameq.wordpress.com/2011/09/10/compiling-vanilla-kernel-4-fedora/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 19:18:55 +0000</pubDate>
		<dc:creator>chernobyl2001</dc:creator>
				<category><![CDATA[computer]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[vanilla]]></category>

		<guid isPermaLink="false">http://nameq.wordpress.com/?p=23</guid>
		<description><![CDATA[Hi all! Today i&#8217;ve decided to share with you how to compile a vanilla kernel for use with your fedora box. I&#8217;ll be showing you how to do it for a x86_64 system but it should be similar for i386. Start by getting your kernel tar here: kernel.org site. As root issue the following: cd [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=23&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all!<br />
Today i&#8217;ve decided to share with you how to compile a vanilla kernel for use with your fedora box.<br />
I&#8217;ll be showing you how to do it for a x86_64 system but it should be similar for i386.</p>
<ol>
<li>Start by getting your kernel tar here: <a href="http://www.kernel.org/" title="kernel.org page" target="_blank">kernel.org site.</a></li>
<li>As root issue the following:
<pre>cd /usr/src/kernels</pre>
</li>
<li>Issue the following to install some dependencies:
<pre>yum install gcc ncurses ncurses-devel kernel-devel -y</pre>
</li>
<li>After that copy your downloaded kernel there to by issuing:
<pre>cp /&lt;FOLDER_WHERE_YOUR_DOWNLOADED_KERNEL_IS&gt;/linux-&lt;VERSION&gt;.tar.bz2 .</pre>
</li>
<li>Untar the kernel:
<pre>tar -xvjf linux-&lt;VERSION&gt;.tar.bz2</pre>
</li>
<li>Change the kernel name to make it more appropriate:
<pre>mv linux-&lt;VERSION&gt; &lt;VERSION&gt;.1-95.$fedoraver.$arch</pre>
<p>Ex:</p>
<pre>
mv linux-3.0.4 3.0.4.1-95.fc14.x86_64
cd &lt;VERSION&gt;.1-95.$fedoraver.$arch</pre>
</li>
<li>After moving into the kernel folder edit the Makefile as bellow:
<pre>
VERSION = 3
PATCHLEVEL = 0
SUBLEVEL = 4
EXTRAVERSION = .1-95.fc14.x86_64
NAME = Sneaky Weasel</pre>
<p>Save the file.</li>
<li>To complete run:
<pre>make oldconfig</pre>
</li>
<p>	As soon as you start being asked with changes against the new kernel, do an enter everytime. By doing this you will apply the defaults for all items without interfering with the settings.</p>
<li>Editing the kernel options is not mandatory. If you want to compile right after the oldconfig, there&#8217;s no problem, jump that part and move straight for the makes. Here you edit accordingly with your box settings.
<pre>make menuconfig</pre>
<p>After finishing save your changes and continue as described bellow:</p>
<pre>make bzImage &amp;&amp; make modules &amp;&amp; make modules_install</pre>
<p>This will take a while you may go for a coffee break. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
<li>After everything finishes, you do the following simple tasks:
<pre>cp arch/x86_64/boot/bzImage /boot/vmlinuz-3.0.4.1-95.fc14.x86_64
cp System.map /boot/System.map-3.0.4.1-95.fc14.x86_64
cp .config /boot/config-3.0.4.1-95.fc14.x86_64</pre>
</li>
<li>Now you generate the image:
<pre>cd /boot
mkinitrd initramfs-3.0.4.1-95.fc14.x86_64.img 3.0.4.1-95.fc14.x86_64</pre>
</li>
<li>Now edit grub settings file to boot the new kernel. Just copy the current kernel entry and make the changes to the version numbers setting yours and you are done.
<pre>cd grub
vi menu.lst</pre>
<p>Here you can see an example:</p>
<pre>title Fedora (3.0.4.1-95.fc14.x86_64)
        root (hd0,5)
        kernel /vmlinuz-3.0.4.1-95.fc14.x86_64 ro root=/dev/mapper/vg_dell-lv_root rd_LVM_LV=vg_dell/lv_root rd_LVM_LV=vg_dell/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=pt-latin1 rhgb quiet intel_iommu=off
        initrd /initramfs-3.0.4.1-95.fc14.x86_64.img</pre>
</li>
<li>Save the file, recheck to see if you missed something and reboot.<br />
Enjoy the advantages of your new kernel.<br />
Good luck! </li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nameq.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nameq.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nameq.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nameq.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nameq.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nameq.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nameq.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nameq.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nameq.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nameq.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nameq.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nameq.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nameq.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nameq.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=23&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nameq.wordpress.com/2011/09/10/compiling-vanilla-kernel-4-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d29213acd91970edb8bae190a4d8dde?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernobyl2001</media:title>
		</media:content>
	</item>
		<item>
		<title>[U]biquitous [S]ystems project</title>
		<link>http://nameq.wordpress.com/2011/09/10/ubiquitous-systems-project-dei-uc-pt/</link>
		<comments>http://nameq.wordpress.com/2011/09/10/ubiquitous-systems-project-dei-uc-pt/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 03:12:21 +0000</pubDate>
		<dc:creator>chernobyl2001</dc:creator>
				<category><![CDATA[ubiquitous]]></category>
		<category><![CDATA[systems]]></category>
		<category><![CDATA[university]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[dei]]></category>
		<category><![CDATA[uc]]></category>
		<category><![CDATA[coimbra]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[universidade]]></category>

		<guid isPermaLink="false">http://nameq.wordpress.com/?p=17</guid>
		<description><![CDATA[Last semester I&#8217;ve registered myself for ubiquitous systems @dei.uc.pt. My project for the semester was CIT: City Issue Tracker. Take a closer look at it by watching the demo below.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=17&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last semester I&#8217;ve registered myself for ubiquitous systems @dei.uc.pt. My project for the semester was CIT: City Issue Tracker. Take a closer look at it by watching the demo below.</br><br />
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='497' height='310' src='http://www.youtube.com/embed/CIFILvdw6_M?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nameq.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nameq.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nameq.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nameq.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nameq.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nameq.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nameq.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nameq.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nameq.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nameq.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nameq.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nameq.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nameq.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nameq.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=17&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nameq.wordpress.com/2011/09/10/ubiquitous-systems-project-dei-uc-pt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d29213acd91970edb8bae190a4d8dde?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernobyl2001</media:title>
		</media:content>
	</item>
		<item>
		<title>iptables rules 4 samba sharing</title>
		<link>http://nameq.wordpress.com/2011/09/10/iptables-rules-4-samba-sharing-on-your-local-network/</link>
		<comments>http://nameq.wordpress.com/2011/09/10/iptables-rules-4-samba-sharing-on-your-local-network/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 01:34:12 +0000</pubDate>
		<dc:creator>chernobyl2001</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[sharing]]></category>

		<guid isPermaLink="false">http://nameq.wordpress.com/?p=10</guid>
		<description><![CDATA[Hello all! Today i&#8217;m sharing a set of rules to setup an iptables firewall on a linux box (fedora) for samba. If you ever have setup a samba daemon on your network you probably also thought about security accessing it, bellow you can see a set of rules for samba/share/access on your local network: start [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=10&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello all!<br />
Today i&#8217;m sharing a set of rules to setup an iptables firewall on a linux box (fedora) for samba.<br />
If you ever have setup a samba daemon on your network you probably also thought about security accessing it, bellow you can see a set of rules for samba/share/access on your local network:</p>
<ol>
<li>start by accessing
<pre>/etc/sysconfig/iptables</code></pre>
<p> with your favourite editor as root.</li>
<li>add the following set of rules to the file</li>
<pre>
# samba stuff
-A INPUT -p tcp -s 192.168.1.0/24 --dport 139 -j ACCEPT
-A INPUT -p udp -s 192.168.1.0/24 --dport 139 -j ACCEPT
-A INPUT -p udp -s 192.168.1.0/24 --dport 138 -j ACCEPT
-A INPUT -p tcp -s 0/0 --dport 139 -j DROP
-A INPUT -p udp -s 0/0 --dport 139 -j DROP
-A INPUT -p udp -s 0/0 --dport 138 -j DROP
-A INPUT -p udp -s 0/0 --dport 137 -j DROP
-A OUTPUT -p tcp -s 192.168.1.0/24 --dport 139 -j ACCEPT
-A OUTPUT -p udp -s 192.168.1.0/24 --dport 139 -j ACCEPT
-A OUTPUT -p udp -s 192.168.1.0/24 --dport 138 -j ACCEPT
</code></pre>
<li>restart iptables by doing:
<pre>/etc/init.d/iptables restart</code></pre>
<p> and you are done.</li>
</ol>
<p>Change <span style="font-size:x-small;"><code>192.168.1.0/24</code></span> to match your own network.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nameq.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nameq.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nameq.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nameq.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nameq.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nameq.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nameq.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nameq.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nameq.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nameq.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nameq.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nameq.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nameq.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nameq.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=10&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nameq.wordpress.com/2011/09/10/iptables-rules-4-samba-sharing-on-your-local-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d29213acd91970edb8bae190a4d8dde?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernobyl2001</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://nameq.wordpress.com/2011/09/10/hello-world/</link>
		<comments>http://nameq.wordpress.com/2011/09/10/hello-world/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 00:51:07 +0000</pubDate>
		<dc:creator>chernobyl2001</dc:creator>
				<category><![CDATA[stuff]]></category>

		<guid isPermaLink="false">http://nameq.wordpress.com/?p=1</guid>
		<description><![CDATA[Well here we are! Another blog on the air. Keep visiting here. Although you may sometimes feel disappointed!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=1&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well here we are! Another blog on the air.<br />
Keep visiting here. Although you may sometimes feel disappointed!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nameq.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nameq.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nameq.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nameq.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nameq.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nameq.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nameq.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nameq.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nameq.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nameq.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nameq.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nameq.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nameq.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nameq.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nameq.wordpress.com&amp;blog=27167782&amp;post=1&amp;subd=nameq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nameq.wordpress.com/2011/09/10/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d29213acd91970edb8bae190a4d8dde?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernobyl2001</media:title>
		</media:content>
	</item>
	</channel>
</rss>
