<?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>anselmolsm/blog &#187; linux</title>
	<atom:link href="http://www.anselmolsm.org/blog/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anselmolsm.org/blog</link>
	<description></description>
	<lastBuildDate>Wed, 16 Jun 2010 00:56:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>A script to configure Qt-S60 environment on Linux</title>
		<link>http://www.anselmolsm.org/blog/a-script-to-configure-qt-s60-environment-on-linux/</link>
		<comments>http://www.anselmolsm.org/blog/a-script-to-configure-qt-s60-environment-on-linux/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 21:00:22 +0000</pubDate>
		<dc:creator>anselmolsm</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[GPSL]]></category>
		<category><![CDATA[INdT]]></category>
		<category><![CDATA[Qt Labs Americas en]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Qt-S60]]></category>
		<category><![CDATA[S60]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.anselmolsm.org/blog/?p=1127</guid>
		<description><![CDATA[You may have noticed that Qt is being ported to S60, and as you can read here, daily builds are available as technology preview since the end of September. At first, there are only MS Windows installers, but Lizardo did a great job collecting and writing patches and instructions to make it possible to develop with Qt for S60 on Linux. [...]]]></description>
			<content:encoded><![CDATA[<p>You may have noticed that Qt is being ported to <a href="http://en.wikipedia.org/wiki/S60_(software_platform)" target="_blank">S60</a>, and as you can read <a href="http://labs.trolltech.com/blogs/2009/09/24/daily-binaries-of-qt-for-symbians60-available/" target="_blank">here</a>, daily builds are available as technology preview since the end of September. At first, there are only MS Windows installers, but <a href="http://lizardo.wordpress.com/" target="_blank">Lizardo</a> did a <a href="http://lizardo.wordpress.com/2009/09/24/installing-qt-for-s60-daily-snapshots-on-linux/" target="_blank">great job</a> collecting and writing patches and instructions to make it possible to develop with Qt for S60 on Linux.</p>
<p>To ease this process, I wrote a small script that does almost the same described in Lizardo&#8217;s post, with some new pseudo features. It needs some improvements, the known ones are marked with #XXX &#8211; <strong>contributions are welcome!<br />
</strong></p>
<p>It consists in 2 files, the script and a config file where the user can customize the directories where things will be installed, the directory of the downloaded files, the version of S60 that will be used. Initially it&#8217;s ready for S60 3rd edition FP2 and S60 5th edition (Check <a href="http://wiki.forum.nokia.com/index.php/Which_S60_SDK_should_I_use%3F" target="_blank">here</a> the version of your target device), etc.</p>
<p>Running the script, the first step shows the URLs to files you have to download, but need login or other kind of interaction with the website. The script is a nice guy, when it&#8217;s possible &#8220;he&#8221; asks if you allow him to open those URLs in your default browser =)</p>
<p>The script then downloads other files that are direct accessible and the installation begins. If everything goes right, in the end your environment will be ready for Qt-S60 development.</p>
<p>Wanna try? Download a it <a href="http://www.anselmolsm.org/public/setupQtS60env/setupQtS60env-latest.tar.bz2">here</a> or git clone it:</p>
<p style="text-align: center;">git clone <a href="git://littlechina.org/anselmo/setupQtS60env">git://littlechina.org/anselmo/setupQtS60env</a></p>
<p>That&#8217;s it =)</p>
<p>ToDo:</p>
<ul>
<li>Simplify updates of Qt-S60 in a environment already in use.</li>
<li>Solve the #XXX in the script</li>
<li>Probably there are other things that I don&#8217;t remember now =)</li>
<li>UPDATE: 2009-10-17: There are some issues in qmake when using DEPLOYMENT</li>
<li>UPDATE2: 2009-10-19: The old daily builds aren&#8217;t available anymore, a message there says that they &#8220;back tonight hopefully&#8221;</li>
<li>UPDATE3: 2009-10-20: Builds are back =)</li>
<li>UPDATE4: 2009-11-01: The gnupoc patch for Qt-S60 needs to be uptaded =/ .</li>
<li>Hopefully it&#8217;s going to save us =) <a href="http://labs.trolltech.com/blogs/2009/10/28/a-new-symbian-toolchain-for-linux/" target="_blank">http://labs.trolltech.com/blogs/2009/10/28/a-new-symbian-toolchain-for-linux/</a></li>
</ul>
<img src="http://www.anselmolsm.org/blog/?ak_action=api_record_view&id=1127&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.anselmolsm.org/blog/a-script-to-configure-qt-s60-environment-on-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CoolerMaster X-Craft &amp; Linux</title>
		<link>http://www.anselmolsm.org/blog/coolermaster-x-craft-linux/</link>
		<comments>http://www.anselmolsm.org/blog/coolermaster-x-craft-linux/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 02:56:18 +0000</pubDate>
		<dc:creator>anselmolsm</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[pt_BR]]></category>
		<category><![CDATA[hw]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.anselmolsm.org/blog/?p=233</guid>
		<description><![CDATA[EDIT: Veja nos comentários o que foi postado pelo Luis. Ele indica como contornar o problema sem precisar de patch e recompilar o kernel. =) Adquiri recentemente um case para HD externo CoolerMaster X-Craft 310 e acabei sendo pego de surpresa quando vi que ele não era devidamente reconhecido. Nos logs apareciam mensagens do tipo: [...]]]></description>
			<content:encoded><![CDATA[<p><!--:pt-->EDIT: Veja nos comentários o que foi postado pelo Luis. Ele indica como contornar o problema sem precisar de patch e recompilar o kernel. =)</p>
<p>Adquiri recentemente um case para HD externo CoolerMaster X-Craft 310 e acabei sendo pego de surpresa quando vi que ele não era devidamente reconhecido. Nos logs apareciam mensagens do tipo:</p>
<blockquote><p><code>usb 7-3: new high speed USB device using ehci_hcd and address 13<br />
usb 7-3: device descriptor read/64, error -32<br />
usb 7-3: device descriptor read/64, error -32<br />
usb 7-3: new high speed USB device using ehci_hcd and address 14<br />
usb 7-3: device descriptor read/64, error -32<br />
usb 7-3: device descriptor read/64, error -32<br />
usb 7-3: new high speed USB device using ehci_hcd and address 15<br />
usb 7-3: device not accepting address 15, error -110<br />
usb 7-3: new high speed USB device using ehci_hcd and address 16<br />
usb 7-3: device not accepting address 16, error -110<br />
hub 7-0:1.0: unable to enumerate USB device on port 3<br />
usb 5-1: new full speed USB device using uhci_hcd and address 20<br />
usb 5-1: device descriptor read/64, error -32</code></p></blockquote>
<p>Bateu a dúvida se o problema era com o hardware, mas isso foi descartado ao verificar que o o case+HD funcionaram no Windão. Procurando na Internet, acabei encontrando várias queixas no <a href="http://forum.coolermaster.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;keywords=x+craft+linux" target="_blank">fórum</a> da CoolerMaster sobre problemas com vários outros modelos. Todos eles receberam respostas (sobre o suporte a Linux) do tipo: &#8220;Unfortunately it isn&#8217;t.  We apologize for any inconvenience.&#8221;</p>
<p>Resolvi então dar uma olhada no <a href="http://bugzilla.kernel.org/" target="_blank">bugzilla</a> do kernel, onde encontrei o bug report <a href="http://bugzilla.kernel.org/show_bug.cgi?id=8639" target="_blank">8639</a> que fala sobre o modelo X-Craft 360 e de uma solução para o mesmo problema que eu estava tendo.</p>
<p>Há um <a href="http://kerneltrap.org/mailarchive/linux-usb/2008/9/16/3311254" target="_blank">e-mail</a> enviado por Jaroslav Kysela para a lista <a href="http://vger.kernel.org/vger-lists.html#linux-usb" target="_blank">linux-usb</a> que explica com mais detalhes o problema e a solução. O problema parece residir no fato de que em geral os chips USB 2.0 levam cerca de 5 segundos para responderem à requisição <a href="http://www.gelato.unsw.edu.au/lxr/source/include/linux/usb_ch9.h#L56" target="_blank">USB_REQ_GET_DESCRIPTOR</a>, entretanto o chip utilizado na linha X-Craft demora cerca de 10 segundos. Assim, com o timeout, não há a correta identificação do dispositivo.</p>
<p>Até o kernel 2.6.27-rc8 a alteração não havia sido incorporada ao código, mas provavelmente algo será feito nesse sentido numa versão futura. Até lá, o <a href="http://www.anselmolsm.org/blog/files/patch-2.6.27-rc8.patch" target="_blank">patch</a> sugerido dá conta do serviço. O que é feito nele é a simples alteração do timeout de 5 para 12 segundos.</p>
<p>Testei com a versão 2.6.27-rc8, mas a alteração deve funcionar também com a 2.6.26.</p>
<p>&#8212;</p>
<p>PS1: O patch aqui disponibilizado não é meu (infelizmente =P), mas sim a versão que usei da segunda solução proposta pelo J. Kysela.</p>
<p>PS2: o usuário &#8220;<a href="http://forum.coolermaster.com/viewtopic.php?f=6&amp;t=10947&amp;sid=5564807c06799b5b330592f12371d15c#p85556" target="_blank">tinga</a>&#8221; usado no fórum da CoolerMaster é uma homenagem à uma grande personalidade da Unicamp =)</p>
<p>PS3: Correções sobre eventuais bobagens que eu tenha escrito aqui são bem vindas.</p>
<p>EDIT PS4: Pessoas, não adianta só aplicar o patch e esperar algo acontecer, precisa recompilar o kernel, instalar e rebootar né&#8230;<!--:--><!--:en-->Adquiri recentemente um case para HD externo CoolerMaster X-Craft 310 e acabei sendo pego de surpresa quando vi que ele não era devidamente reconhecido. Nos logs apareciam mensagens do tipo:</p>
<blockquote><p><code>usb 7-3: new high speed USB device using ehci_hcd and address 13<br />
usb 7-3: device descriptor read/64, error -32<br />
usb 7-3: device descriptor read/64, error -32<br />
usb 7-3: new high speed USB device using ehci_hcd and address 14<br />
usb 7-3: device descriptor read/64, error -32<br />
usb 7-3: device descriptor read/64, error -32<br />
usb 7-3: new high speed USB device using ehci_hcd and address 15<br />
usb 7-3: device not accepting address 15, error -110<br />
usb 7-3: new high speed USB device using ehci_hcd and address 16<br />
usb 7-3: device not accepting address 16, error -110<br />
hub 7-0:1.0: unable to enumerate USB device on port 3<br />
usb 5-1: new full speed USB device using uhci_hcd and address 20<br />
usb 5-1: device descriptor read/64, error -32</code></p></blockquote>
<p>Bateu a dúvida se o problema era com o hardware, mas isso foi descartado ao verificar que o o case+HD funcionaram no Windão. Procurando na Internet, acabei encontrando várias queixas no <a href="http://forum.coolermaster.com/search.php?st=0&amp;sk=t&amp;sd=d&amp;keywords=x+craft+linux" target="_blank">fórum</a> da CoolerMaster sobre problemas com vários outros modelos. Todos eles receberam respostas (sobre o suporte a Linux) do tipo: &#8220;Unfortunately it isn&#8217;t.  We apologize for any inconvenience.&#8221;</p>
<p>Resolvi então dar uma olhada no <a href="http://bugzilla.kernel.org/" target="_blank">bugzilla</a> do kernel, onde encontrei o bug report <a href="http://bugzilla.kernel.org/show_bug.cgi?id=8639" target="_blank">8639</a> que fala sobre o modelo X-Craft 360 e de uma solução para o mesmo problema que eu estava tendo.</p>
<p>Há um <a href="http://kerneltrap.org/mailarchive/linux-usb/2008/9/16/3311254" target="_blank">e-mail</a> enviado por Jaroslav Kysela para a lista <a href="http://vger.kernel.org/vger-lists.html#linux-usb" target="_blank">linux-usb</a> que explica com mais detalhes o problema e a solução. O problema parece residir no fato de que em geral os chips USB 2.0 levam cerca de 5 segundos para responderem à requisição <a href="http://www.gelato.unsw.edu.au/lxr/source/include/linux/usb_ch9.h#L56" target="_blank">USB_REQ_GET_DESCRIPTOR</a>, entretanto o chip utilizado na linha X-Craft demora cerca de 10 segundos. Assim, com o timeout, não há a correta identificação do dispositivo.</p>
<p>Até o kernel 2.6.27-rc8 a alteração não havia sido incorporada ao código, mas provavelmente algo será feito nesse sentido numa versão futura. Até lá, o <a href="http://www.anselmolsm.org/blog/files/patch-2.6.27-rc8.patch" target="_blank">patch</a> sugerido dá conta do serviço. O que é feito nele é a simples alteração do timeout de 5 para 12 segundos.</p>
<p>Testei com a versão 2.6.27-rc8, mas a alteração deve funcionar também com a 2.6.26.</p>
<p>&#8212;</p>
<p>PS1: O patch aqui disponibilizado não é meu (infelizmente =P), mas sim a versão que usei da segunda solução proposta pelo J. Kysela.</p>
<p>PS2: o usuário &#8220;<a href="http://forum.coolermaster.com/viewtopic.php?f=6&amp;t=10947&amp;sid=5564807c06799b5b330592f12371d15c#p85556" target="_blank">tinga</a>&#8221; usado no fórum da CoolerMaster é uma homenagem à uma grande personalidade da Unicamp =)</p>
<p>PS3: Correções sobre eventuais bobagens que eu tenha escrito aqui são bem vindas.</p>
<p>EDIT PS4: Pessoas, não adianta só aplicar o patch e esperar algo acontecer, precisa recompilar o kernel, instalar e rebootar né&#8230;<!--:--></p>
<img src="http://www.anselmolsm.org/blog/?ak_action=api_record_view&id=233&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.anselmolsm.org/blog/coolermaster-x-craft-linux/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>o primeiro ssh a gente nunca esquece</title>
		<link>http://www.anselmolsm.org/blog/o-primeiro-ssh-a-gente-nunca-esquece/</link>
		<comments>http://www.anselmolsm.org/blog/o-primeiro-ssh-a-gente-nunca-esquece/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 00:33:01 +0000</pubDate>
		<dc:creator>anselmolsm</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[pt_BR]]></category>
		<category><![CDATA[hacker!]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[priscila]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.anselmolsm.org/blog/?p=192</guid>
		<description><![CDATA[Sep 16 21:17:35 persephone sshd[5853]: Accepted password for priscila from 189.20.51.83 port61753 ssh2 Sep 16 21:17:35 persephone sshd[5853]: pam_unix_session(sshd:session): session opened for user priscila]]></description>
			<content:encoded><![CDATA[<p>Sep 16 21:17:35 persephone sshd[5853]: Accepted password for priscila from 189.20.51.83 port61753 ssh2<br />
Sep 16 21:17:35 persephone sshd[5853]: pam_unix_session(sshd:session): session opened for user priscila</p>
<img src="http://www.anselmolsm.org/blog/?ak_action=api_record_view&id=192&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.anselmolsm.org/blog/o-primeiro-ssh-a-gente-nunca-esquece/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Living on the edge</title>
		<link>http://www.anselmolsm.org/blog/living-on-the-edge/</link>
		<comments>http://www.anselmolsm.org/blog/living-on-the-edge/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 01:52:21 +0000</pubDate>
		<dc:creator>anselmolsm</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[pt_BR]]></category>
		<category><![CDATA[danger]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nilba]]></category>
		<category><![CDATA[pc]]></category>

		<guid isPermaLink="false">http://www.anselmolsm.org/blog/?p=188</guid>
		<description><![CDATA[Querendo formatar um cartão SD como ext2, digitei mkfs.ext2 /dev/sd &#60;TAB&#62; &#8230; só que cartão SD não é mapeado como /dev/sdb (como acontece com pendrives, por exemplo), e sim /dev/mmcblk0. Com isso, o &#60;TAB&#62; completou com /dev/sda (o HD do meu notebook)&#8230; anselmo@persephone:~$ mkfs.ext2 /dev/sda mke2fs 1.40.8 (13-Mar-2008) /dev/sda is entire device, not just one [...]]]></description>
			<content:encoded><![CDATA[<p>Querendo formatar um <a href="http://en.wikipedia.org/wiki/Secure_Digital_card" target="_blank">cartão SD</a> como <a href="http://en.wikipedia.org/wiki/Ext2">ext2</a>, digitei <strong>mkfs.ext2 /dev/sd &lt;TAB&gt;</strong> &#8230; só que cartão SD não é mapeado como /dev/sdb (como acontece com pendrives, por exemplo), e sim /dev/mmcblk0. Com isso, o &lt;TAB&gt; completou com /dev/sda (o HD do meu notebook)&#8230;</p>
<p style="padding-left: 30px;"><strong>anselmo@persephone:~$ mkfs.ext2 /dev/sda<br />
mke2fs 1.40.8 (13-Mar-2008)<br />
/dev/sda is entire device, not just one partition!</strong></p>
<p style="padding-left: 30px;"><strong>Proceed anyway? (y,n) </strong></p>
<p>por sorte não o fiz como root heheh&#8230; Tá, podem me chamar de <a href="http://en.wikipedia.org/wiki/Newbie" target="_blank">nilba</a> agora.</p>
<p>PS: pra galera <a href="http://en.wikipedia.org/wiki/Windows" target="_blank">Windera</a>, quase fiz um &#8220;format c:&#8221;</p>
<p>PS2: Embora <a href="http://www.libertatia.org/blog/" target="_blank">alguns</a> acreditem que &#8220;<a href="http://en.wikipedia.org/wiki/Livin%27_on_the_Edge" target="_blank">Living on the Edge</a>&#8221; é do <a href="http://en.wikipedia.org/wiki/Bon_Jovi" target="_blank">Bon Jovi</a>, obviamente é do <a href="http://en.wikipedia.org/wiki/Aerosmith" target="_blank">Aerosmith</a> =P</p>
<img src="http://www.anselmolsm.org/blog/?ak_action=api_record_view&id=188&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.anselmolsm.org/blog/living-on-the-edge/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vídeo no PSP</title>
		<link>http://www.anselmolsm.org/blog/video-no-psp/</link>
		<comments>http://www.anselmolsm.org/blog/video-no-psp/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 03:28:55 +0000</pubDate>
		<dc:creator>anselmolsm</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[pt_BR]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[psp]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.anselmolsm.org/blog/?p=182</guid>
		<description><![CDATA[O Otubo publicou um script para converter vídeos para tocar no PSP. Conforme escrevi lá nos comentários, aqui vai o script que encontrei e utilizei em alguns poucos testes que fiz só para ver o PSP tocando vídeos. O script encodepsp pode ser encontrado aqui. Uso: encodepsp inputfile outputfile ou: encodepsp dvd://1 movie.mp4 Andei conversando [...]]]></description>
			<content:encoded><![CDATA[<p style="justify;">O Otubo <a href="http://www.otubo.net/2008/08/assistindo-filmes-do-seu-psp-linux.html" target="_blank">publicou</a> um script para converter vídeos para tocar no PSP. Conforme escrevi lá nos comentários, aqui vai o script que <a href="http://voidpointer.org/?p=17" target="_blank">encontrei</a> e utilizei em alguns poucos testes que fiz só para ver o PSP tocando vídeos.</p>
<p style="justify;">O script <em>encodepsp</em> pode ser encontrado <a href="http://www.anselmolsm.org/blog/files/encodepsp" target="_blank">aqui</a>.</p>
<p style="justify;">Uso: <em>encodepsp inputfile outputfile</em></p>
<p style="justify;">ou: <em>encodepsp dvd://1 movie.mp4</em></p>
<p style="justify;">Andei conversando a respeito, percebi que é possível melhorar alguns parâmetros. Como eu nunca mexi muito com isso, preciso dar uma estudada hehe. Quem sabe em breve consigo algo melhor =) .</p>
<img src="http://www.anselmolsm.org/blog/?ak_action=api_record_view&id=182&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.anselmolsm.org/blog/video-no-psp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
