<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>framebuffer &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/framebuffer/</link>
	<description>Feed of posts on WordPress.com tagged "framebuffer"</description>
	<pubDate>Fri, 04 Dec 2009 20:16:20 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Augmenter la résolution des terminaux tty]]></title>
<link>http://kernelcontrol.wordpress.com/2009/08/10/augmenter-la-resolution-des-terminaux-tty/</link>
<pubDate>Mon, 10 Aug 2009 14:42:42 +0000</pubDate>
<dc:creator>Pistache`</dc:creator>
<guid>http://kernelcontrol.wordpress.com/2009/08/10/augmenter-la-resolution-des-terminaux-tty/</guid>
<description><![CDATA[Après l&#8217;installation toute fraîche d&#8217;Ubuntu Jaunty sur mon laptop, j&#8217;avais remarqu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Après <a title="Premier billet du blog" href="http://kernelcontrol.wordpress.com/2009/08/06/ouverture-officielle-du-blog-pistache/">l&#8217;installation toute fraîche d&#8217;Ubuntu Jaunty sur mon laptop</a>, j&#8217;avais remarqué que les différents terminaux tty, accessibles par la combinaison de touche &#60;Ctrl&#62; + &#60;Alt&#62; + &#60;Fn&#62; (&#60;Fn&#62; allant de F1 à F6), étaient &#8230; moches ! En fait le problème venait simplement du fait que leur résolution n&#8217;était pas suffisamment grande. Pour remédier à ce léger inconvénient j&#8217;ai dû procéder à quelques réglages qui m&#8217;ont permis d&#8217;avoir une belle console bien claire.</p>
<p style="text-align:justify;">Avant toute chose, il faut activer le framebuffer en passant le paramètre <em>vga</em> au noyau lors de son amorçage. Ce paramètre prend pour valeur un code qui représente une résolution et un nombre de bits de couleurs. Le code <em>791</em> par exemple, indique une résolution de 1024&#215;768 pour 16 bits de couleurs. Vous pouvez <a title="Tableau des modes vga" href="http://en.wikipedia.org/wiki/VESA_BIOS_Extensions#Linux_video_mode_numbers" target="_blank">jetez un oeil</a> sur le tableau assez complet des modes disponibles.  Pour avoir la liste de ceux qui sont supportés par votre carte graphique ainsi que les codes qui leurs sont associés installez <em>hwinfo</em>. Pour ce faire entrez la commande suivante dans un terminal :</p>
<p style="text-align:justify;"><!--more--></p>
<pre class="brush: bash;">sudo apt-get install hwinfo</pre>
<p style="text-align:justify;">Une fois le paquet installé, tapez :</p>
<pre class="brush: bash;">sudo hwinfo --framebuffer</pre>
<p style="text-align:justify;">Assurez-vous de ne pas oublier le <em>sudo</em>, autrement la commande ci-dessus ne donnera pas de résultat. Maintenant que nous connaissons le code du mode à adopter (<em>791</em> pour ma part), passons le paramètre au noyau. Cette opération se fait au niveau du chargeur de démarrage, en l&#8217;occurrence Grub dont le fichier de configuration est <em>/boot/grub/menu.lst</em>. Editez ce dernier :</p>
<pre class="brush: bash;">sudo gedit /boot/grub/menu.lst</pre>
<p style="text-align:justify;">Puis repérez la ligne qui contient les paramètres à passer au noyau :</p>
<pre class="brush: bash;"># defoptions=quiet splash</pre>
<p style="text-align:justify;">Ajoutez-y l&#8217;option <em>vga=791</em>, ce qui donnera</p>
<pre class="brush: bash;"># defoptions=quiet splash vga=791</pre>
<p style="text-align:justify;">Sauvegardez le ficher puis quittez. Pour que Grub applique les changements exécutez dans le teminal la commande suivante :</p>
<pre class="brush: bash;">sudo update-grub</pre>
<p style="text-align:justify;">Ainsi, Grub prendra en compte le nouveau paramètre dès le prochain démarrage et les changements persisteront même après les mises à jour du noyau. Le plus important étant fait, reste maintenant à régler quelques petits détails. Si vous redémarrez votre système maintenant, il est probable que le splash screen (l&#8217;écran affichant Ubuntu au démarrage) soit décalé vers la droite, ou pire qu&#8217;il ne s&#8217;affiche pas du tout. Pour palier ces éventuels problèmes nous allons éditer un autre fichier :</p>
<pre class="brush: bash;">sudo gedit /etc/usplash.conf</pre>
<p style="text-align:justify;">Dans le fichier <em>/etc/usplash</em>, assurez vous que les valeurs de <em>xres</em> et <em>yres</em> soient bien ceux de la résolution choisie pour le terminal. Dans mon cas, ayant opté pour une résolution de 1024&#215;768, je dois avoir le contenu suivant :</p>
<pre class="brush: bash;">
# Usplash configuration file
# These parameters will only apply after running update-initramfs.

xres=1024
yres=768
</pre>
<p style="text-align:justify;">Comme indiqué en anglais dans ce même fichier, pour appliquer les changements il faut exécuter la commande <em>update-initramfs</em>. Donc toujours dans la console :</p>
<pre class="brush: bash;">sudo update-initramfs -u</pre>
<p style="text-align:justify;">Vous pouvez maintenant redémarrer votre machine, vérifier si tout se passe bien et admirer une console avec une résolution plus confortable qu&#8217;avant. Si toutefois au lieu de voir vos terminaux l&#8217;écran reste désespérément noir, il existe une manipulation qui consiste à faire en sorte que le module <em>vesafb</em> soit chargé au démarrage et non blacklisté. Puisque sous linux tout est fichier :</p>
<pre class="brush: bash;">sudo gedit /etc/modprobe.d/blacklist-framebuffer.conf</pre>
<p style="text-align:justify;">Commentez la ligne suivante en ajoutant simplement un # à son début :</p>
<pre class="brush: bash;">blacklist vesafb</pre>
<p style="text-align:justify;">Ouvrir maintenant le fichier <em>/etc/initramfs-tools/modules</em></p>
<pre class="brush: bash;">sudo gedit /etc/initramfs-tools/modules</pre>
<p style="text-align:justify;">pour y ajouter les deux modules <em>vesafb</em> et <em>fbcon</em> de la manière suivante :</p>
<pre class="brush: bash;">
# List of modules that you want to include in your initramfs.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod

vesafb
fbcon
</pre>
<p style="text-align:justify;">Si votre fichier contient préalablement d&#8217;autre modules, il ne faut bien entendu pas les supprimer, ajoutez <em>vesafb</em> et <em>fbcon</em> à la fin. Appliquons ensuite les changements grâce à la commande <em>update-initramfs</em> déjà vue :</p>
<pre class="brush: bash;">sudo update-initramfs -u</pre>
<p>Dernier fichier à modifier maintenant :</p>
<pre class="brush: bash;">/etc/modules</pre>
<p style="text-align:justify;">en y ajoutant simplement :</p>
<pre class="brush: bash;">vesafb</pre>
<p style="text-align:justify;">Enfin ! Après un simple redémarrage de la machine, tout devrait fonctionner à merveille : le splash screen à sa place et une résolution acceptable pour les différents terminaux. Si vous avez encore quelques problèmes rendez-vous sur le site <a title="Ubuntu-fr" href="http://www.ubuntu-fr.org" target="_blank">Ubuntu-fr</a>, vous y trouverez certainement de l&#8217;aide. D&#8217;ailleurs ce post est inspiré du tutoriel <a title="Comment activer le framebuffer" href="http://doc.ubuntu-fr.org/tutoriel/comment_activer_le_framebuffer" target="_blank">Comment activer le framebuffer</a>.</p>
<p style="text-align:justify;">Maintenant que nous avons une belle console, nous verrons dans les prochains posts que tout ou presque peut être fait dans le terminal. D&#8217;ici là portez vous bien <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cambiare l'usplash e avere la tty a risoluzione piena]]></title>
<link>http://andrealazzarotto.com/2009/07/15/cambiare-lusplash-e-avere-la-tty-a-risoluzione-piena/</link>
<pubDate>Wed, 15 Jul 2009 13:56:15 +0000</pubDate>
<dc:creator>Lazza</dc:creator>
<guid>http://andrealazzarotto.com/2009/07/15/cambiare-lusplash-e-avere-la-tty-a-risoluzione-piena/</guid>
<description><![CDATA[Mi piace configurare ogni dettaglio della distribuzione. Ho cercato quindi dopo avere installato Ubu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Mi piace configurare ogni dettaglio della distribuzione. Ho cercato quindi dopo avere installato Ubuntu, come cambiare l&#8217;usplash (cioè il caricamento in fase di boot) e come impostare le tty (cioè le console virtuali raggiungibili con i tasti <em>ctr+alt+F[1-6]</em>) perché avessero la risoluzione del mio monitor (un amplissimo 1680&#215;1050). Se volete sapere come fare, continuate a leggere. Eccovi un assaggio di come appare ora la mia tty:</p>
<p style="text-align:center;"><em><img class="alignnone size-full wp-image-1141" title="console2" src="http://lazza.wordpress.com/files/2009/07/console2.png" alt="console2" width="420" height="270" /></em></p>
<p style="text-align:center;"><em>Altro che 80 caratteri di larghezza&#8230; <img src="http://img249.imageshack.us/img249/4363/facegrinza0.png" alt="" align="absmiddle" /></em></p>
<p><strong>Cambiare l&#8217;usplash e impostarne la risoluzione</strong></p>
<p>Una cosa per volta. Usplash è ciò che rappresenta graficamente il boot in moltissime distribuzioni Linux (compresa Ubuntu). Non è la tecnologia migliore, infatti pare Ubuntu cambierà nella versione 9.10 (o 10.4) seguendo le orme di Fedora. In ogni caso per ora funziona ed è bella la possibilità di cambiarne l&#8217;aspetto. Oltre a ciò, si può anche impostarne la risoluzione (che quasi sempre non è corretta, viene tenuta a 1024&#215;768 o 800&#215;600 per questioni di compatibilità).</p>
<p>La prima cosa da fare è procurarsi un bel tema usplash. Su Gnome Look ce ne sono moltissimi (basta cercare il termine usplash), e bisogna assicurarsi che il tema supporti la risoluzione che vogliamo, in caso contrario dovremmo usarlo ad una risoluzione inferiore. Io ho scelto <a href="http://www.gnome-look.org/content/show.php/Hardy-Colors+Usplash?content=79631" target="_blank">Hardy Colors usplash</a> che fornisce temi in colorazioni differenti. In generale comunque un tema usplash viene distribuito come una libreria in formato <em>.so</em>. Per l&#8217;esempio, userò il tema <em>human-ubuntu.so</em> presente nell&#8217;archivio di cui sopra.</p>
<p>Da terminale, una volta entrati nella cartella che lo contiene, provvedete a copiarlo dove deve andare:</p>
<p><code>sudo cp human-ubuntu.so /usr/lib/usplash</code></p>
<p>Ora dovete creare il nuovo collegamento allo splash screen. Pertanto il comando da dare sarà:</p>
<p><code>sudo ln -sf /usr/lib/usplash/human-ubuntu.so /etc/alternatives/usplash-artwork.so</code></p>
<p>Prima di terminare, modificate il file responsabile della risoluzione del vostro usplash:</p>
<p><code>sudo nano /etc/usplash.conf</code></p>
<p>Inserite i valori appropriati (la vostra risoluzione, o quella supportata dal tema) e poi premete F2, Invio, F3. Non resta altro che aggiornare l&#8217;initramfs:</p>
<p><code>sudo update-initramfs -u</code></p>
<p><strong>Impostare la risoluzione delle tty</strong></p>
<p>Per ricavare le informazioni utili che adopererete, dovrete installare il pacchetto <em>hwinfo</em>. Fatelo col gestore di pacchetti. Nel terminale date quindi il comando:</p>
<p><code>sudo hwinfo --framebuffer</code></p>
<p>Tra le ultime righe c&#8217;è quello che interessa, in particolare nel mio caso:</p>
<p><code>Mode 0x0368: 1680x1050 (+1680), 8 bits<br />
Mode 0x0369: 1680x1050 (+6720), 24 bits</code></p>
<p>Ricordate che se il vostro è un monitor economico (molti di quelli nei portatili lo sono) allora non avrete la possibilità di impostare la piena risoluzione che usate. Potete sceglierne comunque una maggiore di quella che state usando in quel momento per le tty. Io ho la possibilità di ottenere la risoluzione 1680&#215;1050 a 24 bit usando la modalità <em>0&#215;0369</em>. Mi segno pertanto il numero, dimenticandomi dello zero dopo la <em>x</em>. Ciò che mi serve pertanto è <em>0&#215;369</em>. Voi segnate il vostro numero e poi modificate il file di avvio di grub:</p>
<p><code>sudo nano /boot/grub/menu.lst</code></p>
<p>Cercate la riga delle <em>kopt</em>, probabilmente sarà simile alla seguente:</p>
<p><code># kopt=root=UUID=********-****-****-****-************ ro</code></p>
<p>Voi limitatevi ad aggiungere in fondo il parametro <em>vga</em> come segue, sostituendo naturalmente il valore trovato (ricordate che è tutto su una riga):</p>
<p><code># kopt=root=UUID=********-****-****-****-************ ro vga=0x369</code></p>
<p>Ora l&#8217;ultima cosa da fare è aggiornare grub:</p>
<p><code>sudo update-grub</code></p>
<p>Per ora è tutto. Dal prossimo avvio della macchina (lo spegnimento potrebbe vedersi male, tranquilli) sarà tutto perfetto. Godetevi il vostro boot a tema ed a risoluzione piena, e la vostra nuova immensa console. <img src="http://img249.imageshack.us/img249/8563/faceguyud3.png" alt="" align="absmiddle" /></p>
<p><strong>Fonti e spunti:</strong></p>
<ul>
<li><a href="http://www.broadbandreports.com/forum/r19201274-Framebuffer-1680x1050" target="_blank">Framebuffer 1680&#215;1050</a></li>
<li><a href="http://en.gentoo-wiki.com/wiki/Dell_Inspiron_1525#Framebuffer" target="_blank">Dell Inspiron 1525 &#8211; Gentoo Linux Wiki</a></li>
<li><a href="http://maketecheasier.com/create-install-your-own-usplash-theme-in-ubuntu/2009/01/25" target="_blank">How To Create And Install Your Own Usplash Theme In Ubuntu</a></li>
<li><a href="http://www.tuxmind.altervista.org/?p=448" target="_blank">Cambiare lo splash di boot su Ubuntu Gutsy (USplash)</a></li>
<li><a href="https://bugs.launchpad.net/ubuntu/+source/usplash/+bug/154781" target="_blank">Bug #154781 in usplash (Ubuntu): “Out of Range message and usplash not displayed in Gutsy”</a></li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Booting 'Debian Lenny' into widescreen framebuffer]]></title>
<link>http://codehunk.wordpress.com/2009/07/02/booting-debian-lenny-into-widescreen-framebuffer/</link>
<pubDate>Thu, 02 Jul 2009 20:06:39 +0000</pubDate>
<dc:creator>janmejay</dc:creator>
<guid>http://codehunk.wordpress.com/2009/07/02/booting-debian-lenny-into-widescreen-framebuffer/</guid>
<description><![CDATA[I have a Dell D630 Latitude(running Lenny) that i use at work. While trying to push the framebuffer ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have a Dell D630 Latitude(running Lenny) that i use at work. While trying to push the framebuffer size, i had to experiment a bit with numbers, because i couldn&#8217;t get ready to use values off google for widescreen framebuffers. &#8216;<strong>865</strong>&#8216; is what worked for me(it gives me <strong>1280&#215;800</strong>). If you got a widescreen laptop(i guess most laptops these days are), appending &#8216;<strong>vga=856</strong>&#8216; to grub boot line should make it come up in <strong>1280&#215;800</strong> mode. For example, your kernel&#8217;s <strong>menu.lst</strong>(<em>/boot/grub/menu.lst</em>) entry should look like&#8230;</p>
<pre>...
title           Debian GNU/Linux, kernel 2.6.26-2-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 vga=865 ro quiet
initrd          /boot/initrd.img-2.6.26-2-686
...</pre>
<p>Hope this helps someone. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[dvtm: window manager da framebuffer]]></title>
<link>http://newmainframe.wordpress.com/2009/06/09/dvtm-window-manager-da-framebuffer/</link>
<pubDate>Tue, 09 Jun 2009 10:44:04 +0000</pubDate>
<dc:creator>blackcode</dc:creator>
<guid>http://newmainframe.wordpress.com/2009/06/09/dvtm-window-manager-da-framebuffer/</guid>
<description><![CDATA[Se mai diventere dei Terminal-Dipendenti, avrete certamente la necessità di un window manager sotto ]]></description>
<content:encoded><![CDATA[Se mai diventere dei Terminal-Dipendenti, avrete certamente la necessità di un window manager sotto ]]></content:encoded>
</item>
<item>
<title><![CDATA[Framebuffer in widescreen (1280x800)]]></title>
<link>http://newmainframe.wordpress.com/2009/06/07/framebuffer-in-widescreen-1280x800/</link>
<pubDate>Sun, 07 Jun 2009 16:54:39 +0000</pubDate>
<dc:creator>blackcode</dc:creator>
<guid>http://newmainframe.wordpress.com/2009/06/07/framebuffer-in-widescreen-1280x800/</guid>
<description><![CDATA[wide Testato su Gentoo, kernel 2.6.30-rc8 (vanilla), intel GMA 950. Il nostro scopo è avere il frame]]></description>
<content:encoded><![CDATA[wide Testato su Gentoo, kernel 2.6.30-rc8 (vanilla), intel GMA 950. Il nostro scopo è avere il frame]]></content:encoded>
</item>
<item>
<title><![CDATA[sobre_framebuffer]]></title>
<link>http://lapipaplena.wordpress.com/2009/05/10/sobre_framebuffer/</link>
<pubDate>Sun, 10 May 2009 15:54:37 +0000</pubDate>
<dc:creator>la pipa plena</dc:creator>
<guid>http://lapipaplena.wordpress.com/2009/05/10/sobre_framebuffer/</guid>
<description><![CDATA[Para identificar qué resolución es la más adecuada para nuestro equipo: # apt-get install hwinfo # h]]></description>
<content:encoded><![CDATA[Para identificar qué resolución es la más adecuada para nuestro equipo: # apt-get install hwinfo # h]]></content:encoded>
</item>
<item>
<title><![CDATA[EEE+Framebuffer]]></title>
<link>http://skinwalker.wordpress.com/2009/05/07/eeeframebuffer/</link>
<pubDate>Thu, 07 May 2009 23:30:16 +0000</pubDate>
<dc:creator>skinwalker</dc:creator>
<guid>http://skinwalker.wordpress.com/2009/05/07/eeeframebuffer/</guid>
<description><![CDATA[Nothing much, just thought of posting a screenshot of my EEE Pc in action. As I had mentioned in som]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Nothing much, just thought of posting a screenshot of my EEE Pc in action. As I had mentioned in some of my earlier posts, I have a very barebone EEE setup. Obviously it runs Lunar Linux, and there are no window managers installed. I have dwm, and evilwm as my primary wm&#8217;s, and just now compiled fluxbox, just because I am a huge fluxbox fan, and tend to use it from time to time.  But most of the time I just code and don&#8217;t get out of the console, and when its not so important, elinks takes care of my browsing efforts. So during such days all I use it the tty console, with framebuffer enabled. That gives me a lot of screen real estate, and dvtm, gives me a great way to utilize the space. I have to try out the vertical patch fro screen by the way, may be over the weekend. Terminus comes to the rescue as far as the console font is concerned. I do like the default console font, but I am more used to terminus. Anyway here is a screenshot of my framebuffer on my EEE Pc. It runs on the latest stable kernel 2.6.29.2, compiled with framebuffer support. Of course I haven&#8217;t played around with 915resolution yet to get the right resolution.  But 800&#215;600 is so much better than the boring console without framebuffer. So comment on the screenshot. Click on it for full view.</p>
<p style="text-align:justify;"><a href="http://g.imagehost.org/view/0206/FBEEE" target="_blank"><img class="aligncenter" src="http://skinwalker.wordpress.com/files/2009/05/fbeee1.jpg" alt="" width="150" height="113" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Art of Concise Coding]]></title>
<link>http://farbendeslichts.wordpress.com/2009/04/09/art-of-concise-coding/</link>
<pubDate>Thu, 09 Apr 2009 10:15:32 +0000</pubDate>
<dc:creator>impersonation</dc:creator>
<guid>http://farbendeslichts.wordpress.com/2009/04/09/art-of-concise-coding/</guid>
<description><![CDATA[I&#8217;ve had a slightly successful first day at my new job. Given to code review a game project fo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I&#8217;ve had a slightly successful first day at my new job. Given to code review a game project for the iphone, I expected to dally a couple of days with getting myself upto speed. But being thrust immediately into bug fixing is what actually happened. Not that I&#8217;m complaining.</p>
<p>I had to fix 3 bugs, and guess what, they were ALL solved by commenting out extra lines of code. There were lines that were just not needed. I confess being a culprit of the same crime many times, being safe rather than sorry when the compiler throws a couple of value not initialized errors. But its a journey on the path of programming zen that comes with experience.</p>
<p>One of the bugs was that the iphone screen was flickering. Its a problem that is widely documented by many, just Google it. And many solutions work. I feel it might be helpful to some if I described what made the difference in this particular case. It was the case of some liberal usage of &#8220;swapbuffers&#8221;. As we all know, OpenGL can be configured with a timer which in turn processes each frame. When the framebuffers are ready with the data processed in that particular &#8220;loop&#8221;, the buffers are swapped, send to show up on the screen while we go back to the loop and process the next buffers. But calling the swapbuffers command repeatedly many times within each frame leaves the clearly visible flicker. Try keeping it down to only once each frame render.</p>
<p>Another small clue to solving that flickering problem you might be having&#8230;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Today's announce]]></title>
<link>http://annotate.wordpress.com/2009/03/18/todays-announce/</link>
<pubDate>Wed, 18 Mar 2009 23:03:23 +0000</pubDate>
<dc:creator>fudanchii</dc:creator>
<guid>http://annotate.wordpress.com/2009/03/18/todays-announce/</guid>
<description><![CDATA[Hari ini gw bangun jam 12.30 am&#8230; dan gw pikir dah subuh&#8230; XD seperti biasa kompie masih n]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hari ini gw bangun jam 12.30 am&#8230;<br />
dan gw pikir dah subuh&#8230; XD<br />
seperti biasa kompie masih nyala&#8230; terakhir ditinggal lagi buka netbeans&#8230;<br />
oh&#8230; project minesweeper lama gw..<br />
proyek game minesweeper di java yang belum selesai, malas bikin UI nya&#8230; ada yang mau jadi sukarelawan?? &#62;:D<br />
dan gw kepikiran untuk bikin mines solver nya juga&#8230; mngkin pake markov chain&#8230;<br />
baru belajar stochastic ni&#8230; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  </p>
<p>tapi bukan2&#8230; gw belajar markov model bukan buat proyek ini&#8230;<br />
buat teaser&#8230; gw berencana mengerjakan proyek &#8220;once in a life time&#8221; gw<br />
yang gw kasih nama M.A.I.D.<br />
salah satu komponen na pake markov modelling&#8230;<br />
tapi karena proyek &#8220;once in a life time&#8221; jangan ditunggu kapan selesainya&#8230;<br />
gw aja ga tau&#8230; :p</p>
<p>nah balik lagi ke minesweeper tadi&#8230; rencana nya mau di remake engine mines nya pake c++ sekalian solver nya juga&#8230;</p>
<p>hmmm, o iya tulisan ini gw post lewat laptop seorang teman, laptop gw ga bisa booting setelah gw update kernelnya ke 2.6.27-14.. Intuisi gw berkata ini masalah di grub nya&#8230; berhubung Ubuntu kurang cerdas mengurusi masalah menu di grub. secara otomatis ubuntu bakal nge-rewrite konfigurasi grub (menu.lst) dan nulis ulang daftar kernel yang kita punya. nah kalau kita ngupdate kernel rutin dari 2.6.27-7 sampai sekarang 2.6.27-14 berarti ada 14*2=28 menu yang bakal muncul di grub&#8230; nah berhubung grub punya gw di custom supaya bisa nampilin gambar <a href="http://yuzu-soft.com/natsu/index.html">Yuiko-chan</a> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  . ni grub pasti menuhin vesa buffer nya sendirian&#8230; dan pas menu nya muncul, dia kehabisan memori buat ngehandle input dari keyboard&#8230; dan jadi lah laptop gw terpaku sambil tetap menunjukkan imutnya Yuiko ditambah sedikit mosaik berwarna-warni&#8230;</p>
<p>nah sekarang biar gw benerin dulu laptop gw..<br />
nanti gw post step-by-step ngebenerinnya (kalo bener)<br />
dan buat z4ck. Sabar&#8230; ceritanya mungkin di post seminggu sekali&#8230;<br />
proyek SDK nya genshiken sebenarnya&#8230; :p</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Framebuffer no Boot: 1400x900 com módulo NVIDIA]]></title>
<link>http://memphyx.wordpress.com/2009/02/07/framebuffer-no-boot-1400x900-com-modulo-nvidia/</link>
<pubDate>Sat, 07 Feb 2009 18:28:28 +0000</pubDate>
<dc:creator>memphyx</dc:creator>
<guid>http://memphyx.wordpress.com/2009/02/07/framebuffer-no-boot-1400x900-com-modulo-nvidia/</guid>
<description><![CDATA[Encontrei um pequeno desafio para minha vida geek&#8230; hehehe. Até então, estava eu utilizando um ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Encontrei um pequeno desafio para minha vida geek&#8230; hehehe.</p>
<p>Até então, estava eu utilizando um monitor de 15&#8243; com resolução nativa de 1024&#215;768; como disse, até então.</p>
<p>Consegui vender tal monitor LCD e com isso agora sou o felizardo dono de um <a href="http://www.lge.com/products/model/detail/W1752T.jhtml" target="_blank">Flatron W1752T (LG) (17&#8243; Wide com resolução nativa de 1400&#215;900)</a>.</p>
<p><img class="alignright size-full wp-image-427" title="LG Flatron W1752T" src="http://memphyx.wordpress.com/files/2009/02/lg-w1752t.jpeg" alt="LG Flatron W1752T" width="180" height="180" /></p>
<p>Em um primeiro momento, nem dei muita bola para a resolução no boot (1024&#215;768 ) e sim pela configuração no X (<em>/etc/X11/xorg.conf</em>), que me permitiu não fazer nada para que esta se auto ajustasse a nova resolução nativa, e eu deslumbrasse com o visual incrível com que o KDE 4.2 se mostrou.</p>
<p>Mais sabe como são as coisas nesta vida nerd (neh?)&#8230; nada nunca está perfeito! E toda vez quando nos deparamos com alguma imperfeição, o que fazemos? Sim, escovamos bits! (rss)</p>
<p>A primeira coisa que pensei, foi em simplesmente descobrir os &#8220;<a href="http://tldp.org/HOWTO/Framebuffer-HOWTO-5.html" target="_blank">números mágicos</a>&#8220;  que podem ser utilizados na parâmetro &#8220;vga&#8221; nas linhas referentes ao carregamento da imagem do kernel em /boot/grub/menu.lst que estaria tudo resolvido. Não deu certo, pois, por padrão, o módulo utilizado para fornecer o framebuffer no boot é o <strong>vesafb</strong>, e ele trabalha apenas com resoluções á 4:3 não suportando opções em 16:10.</p>
<p>Até eu descobrir isso, passou um tempo e precisei baixar o <a href="http://aur.archlinux.org/packages.php?ID=14977" target="_blank">hwinfo no AUR</a> , compilar e instalar o software. Depois de instalado rodei um <strong>hwinfo &#8211;framebuffer </strong>que me retornou os modos de operação:</p>
<pre>02: None 00.0: 11001 VESA Framebuffer                                                               
  [Created at bios.447]                                                                             
  Unique ID: rdCR.G89VdJ4sMmF                                                                       
  Hardware Class: framebuffer                                                                       
  Model: "NVIDIA G86 Board - p403h20 "                                                              
  Vendor: "NVIDIA Corporation"                                                                      
  Device: "G86 Board - p403h20 "                                                                    
  SubVendor: "NVIDIA"                                                                               
  SubDevice:                                                                                        
  Revision: "Chip Rev"                                                                              
  Memory Size: 14 MB                                                                                
  Memory Range: 0xe9000000-0xe9dfffff (rw)
(...)
Mode 0x0364: 1440x900 (+1440), 8 bits
Mode <strong>0x0365: 1440x900</strong> (+5760), 24 bits
(...)</pre>
<p>O &#8220;x&#8221; da questão é que o Módulo nvidia no kernel, estava carregado, e isso faz com que os modos suportados por ele sejam mostrados; estas resoluções, como disse, não são suportadas no vesafb.</p>
<p>Sabendo desse modo ( 0&#215;0365), minha primeira tentativa foi passar o parâmetro para o kernel no carregamento do sistema. Para isso modifiquei a linha referente a isto em /boot/grub/menu.lst:</p>
<p><em>kernel /boot/vmlinuz26 root=/dev/mapper/nvidia_abacfabc3 <strong>video=vesafb:no<a title="mtrr" href="http://www.clevitonmendes.blogspot.com/2008/08/mtrr.html" target="_blank">mtrr</a>,1440&#215;900-32@60 vga=0&#215;365</strong> ro</em></p>
<p>Se repararem bem, faz sentido, mas em meu próximo boot, nada aconteceu! Por que?</p>
<p>Esta é mais simples de responder&#8230; hehehe.. simplesmente porque estou usando o vesafb e não o módulo nvidia. Para resolver meu problema, resolvi enfiar o módulo da nvidia diretamente na <a href="http://en.wikipedia.org/wiki/Initrd" target="_blank">initrd (<em>/boot/kernel26.img</em>)</a>.</p>
<p>O procedimento é fácil&#8230; basta editar o arquivo <strong>/etc/mkinitcpio.conf</strong>, adicionando o módulo da nvidia na linha <em>MODULES</em>, deixando o arquivo conforme o exemplo:</p>
<p><em><strong>MODULES=&#8221;</strong>dm_mod pata_acpi pata_amd ata_generic scsi_mod sata_nv sata_via jfs xfs reiserfs <strong>nvidia&#8221;</strong></em></p>
<p>Após isto, salvei o arquivo e gerei uma nova imagem de disco de ram para o kernel através do <strong>mkinitcpio -p kernel26</strong> . Então editei novamente o <em>/boot/grub/menu.ls</em>t e fiz esta alteração:</p>
<p><em>kernel /boot/vmlinuz26 root=/dev/mapper/nvidia_abacfabc3 video=<strong>nvidiafb</strong>:nomtrr,1440&#215;900-32@60 vga=0&#215;365 ro</em></p>
<p>Salvei, reiniciei e voilá.. funcionando perfeitamente; como eu queria:</p>
<p><strong>- Resolução de boot a 1440&#215;900.</strong></p>
<p>Só não tentei utilizar o <em>nvidiafb</em> antes de carregar o módulo da <em>nvidia</em> na initrd.. então não sei responder no momento se este passo do <em>mkinitcpio</em> seria necessário.  Coisa linda ficou o modo verbose no boot de meu linux assim!</p>
<p>Algumas informações podem ser encontradas nos links abaixo:</p>
<p><a href="http://bbs.archlinux.org/viewtopic.php?id=25133">http://bbs.archlinux.org/viewtopic.php?id=25133</a></p>
<p><a href="http://tldp.org/HOWTO/Framebuffer-HOWTO-5.html" target="_blank">http://tldp.org/HOWTO/Framebuffer-HOWTO-5.html</a></p>
<p><a href="http://www.linuxquestions.org/questions/debian-26/guide-to-2.6-kernel-upgraderecompile-206992/page16.html" target="_blank">http://www.linuxquestions.org/questions/debian-26/guide-to-2.6-kernel-upgraderecompile-206992/page16.html</a></p>
<p><a href="http://www.mail-archive.com/debian-user-portuguese@lists.debian.org/msg107891.html" target="_blank">http://www.mail-archive.com/debian-user-portuguese@lists.debian.org/msg107891.html</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Replacing default desktop manager with qingy on Ubuntu intrepid]]></title>
<link>http://mzanfardino.wordpress.com/2009/01/30/replacing-default-desktop-manager-with-qingy-on-ubuntu-intrepid/</link>
<pubDate>Fri, 30 Jan 2009 23:20:46 +0000</pubDate>
<dc:creator>mzanfardino</dc:creator>
<guid>http://mzanfardino.wordpress.com/2009/01/30/replacing-default-desktop-manager-with-qingy-on-ubuntu-intrepid/</guid>
<description><![CDATA[I often find that I want to login to a text console as opposed to my GUI. I use Ubuntu 8.10 (intrepi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I often find that I want to login to a text console as opposed to my GUI.  I use <em>Ubuntu 8.10 (intrepid ibex)</em> with <em>gnome</em> which uses <em>gdm</em>  desktop manager by default.  I&#8217;ve found in the past while working with <em>gentoo</em> that I can replace the GUI login provided by <em>kdm, gdm,</em> etc. with <em>qingy</em> which uses framebuffer video support to provide a nice splash screen without the overhead of a full-blown GUI.</p>
<p>With the introduction of <em>upstart</em> as a replacement for <em>inittab</em> in <em>ubuntu</em> there are different steps to making <em>qingy</em> work and the qingy (and other) sites suggest.  First, install <em>qingy</em> (this part hasn&#8217;t changed!).  I installed from repos, but you can download and install from the <em>qingy</em> home page (<a href="http://qingy.sourceforge.net/">http://qingy.sourceforge.net/</a>).  the repos will place the <em>quingy</em> binary in <em>/usr/sbin</em>.  Next, edit <em>/etc/event.d/tty1</em>.  Comment out the statement <code># exec /sbin/getty 38400 tty1</code> and add a new statement <code>exec /usr/sbin/qingy</code> tty1.  This will alter tty1 from loading <em>getty</em> to <em>qingy</em>.  NOTE: Many how-to&#8217;s suggest replacing <em>getty</em> with <em>qingy</em> for all but one tty.  I do not feel this is necessary, as I&#8217;m merely using <em>qingy</em> as a replacement for <em>gdm</em> and I only need one instance of this.</p>
<p>Next, disable your desktop manager.  I&#8217;ve stated that I use <em>gdm</em> so if you are using <em>kde</em> or <em>xdm</em> (or something else entirely) you may have to figure out the best way to do this.  The easiest way to disable <em>gdm</em> is by using <em>bum</em> (boot-up manager GUI).  This will likely have to be installed using your favorite installation method.  I use <code>sudo aptitude install bum</code> from the command line.  Once running, locate GNOME Display Manager and un-check it.  If you click apply the GUI session will end! <em>You have been warned!</em></p>
<p>At this point you should be able to boot your machine and find that you have a nifty splash screen with options to start different sessions, among them will be text-console.</p>
<p>Note: you will likely want to change some of the default configuration for <em>qingy</em>.  For instance, by default <em>qingy</em> will launch your GUI session in the open tty (tty1 in this case).  If, like me, you are used to seeing the GUI on tt7, you have to change <code>/etc/qingy/settings x_server_tty = unused_tty</code>.  There are many other settings that can be adjusted in the setting files as well.</p>
<p>Also, you can find a nice selection of themes for <em>qingy</em> on freshmeat (<a href="http://themes.freshmeat.net">http://themes.freshmeat.net</a>)</p>
<p>*** HEADS UP ***<br />
Now, this is where things got a little frustrating for me.  When I logged into a <em>gnome</em> session, I discovered that my audio was not initializing.  I could not playback audio or work with audio in any way.  I did not get any specific errors: <em>dmesg</em>, <em>/var/log/syslog</em> and <em>/var/log/messages</em> did not reveal any obvious errors.  I tested audio from a text-console and found that I could playback mp3 files using <em>mpg321</em> or <em>ximp3</em> (both console based mp3 players), but only if I run these apps as <em>sudo</em>.  </p>
<p>This gave me the vital clue that helped to solve the problem with <em>gnome</em>.  It turns out that my user account was not a member of the <em>audio</em> group that is installed when <em>ubuntu</em> was installed.  It&#8217;s apparently not necessary when you use <em>gdm</em> as your desktop manager. By adding my user to the <em>audio</em> group I was able to playback audio from text-console without the need of <em>sudo</em> *and* when I logged into my <em>gnome</em> session audio was working!</p>
<p>In addition to audio not working, <em>nm-applet</em> (the panel <em>NetworkManager</em> icon control) is also not working.  This item took a little more effort to resolve, as it&#8217;s not a simple matter of adding a user account to a group.  <u>The way I resolved this might not be the correct method</u>, so please do your own research! However, I found that if I modified a number of files in <em>/etc/dbus-1/system.d/</em> I could make it work.  Specifically I modified the following files:</p>
<ol>
<li>/etc/dbus-1/system.d/ConsoleKit.conf</li>
<li>/etc/dbus-1/system.d/NetworkManager.conf</li>
<li>/etc/dbus-1/system.d/nm-applet.conf</li>
<li>/etc/dbus-1/system.d/nm-avahi-autoipd.conf</li>
<li>/etc/dbus-1/system.d/ nm-dhcp-client.conf</li>
<li>/etv/dbus-1/system.d/nm-dispatcher.conf</li>
<li>/etc/dbus-1/system.d/ nm-system-settings.conf</li>
</ol>
<p>For each of these files I copied the policy user section &#8220;root&#8221; and changed the user to my user account.</p>
<p><u>TO REPEAT: This may *not* be the correct way to do this, but in the end it worked.</u></p>
<p>Another issue I had was with the use of <em>encfs</em> which I used for directory encryption.  I found that until I added my user account to the <em>fuse</em> group I was unable to mount my encrypted directories.</p>
<p>I suspect that there are other issues as well with this approach.  </p>
<p>If you have any suggestions or comments regarding this method vs. some other method, please post here or provide a link to the suggestion.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to view Japanese characters on the Linux virtual terminal]]></title>
<link>http://actualreality.wordpress.com/2009/01/11/how-to-view-japanese-characters-on-the-linux-virtual-terminal/</link>
<pubDate>Mon, 12 Jan 2009 07:26:47 +0000</pubDate>
<dc:creator>Jesse</dc:creator>
<guid>http://actualreality.wordpress.com/2009/01/11/how-to-view-japanese-characters-on-the-linux-virtual-terminal/</guid>
<description><![CDATA[Although it&#8217;s no problem to view Japanese/Unicode characters on an X11 console like xterm or K]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Although it&#8217;s no problem to view Japanese/Unicode characters on an X11 console like xterm or Konsole, it can be difficult to view them in the Linux virtual terminal. That&#8217;s where <a href="http://jfbterm.sourceforge.jp/">JFBTERM</a> comes into view. It provides Japanese and other special character output using the framebuffer.</p>
<p>Ubuntu provides a prebuilt package in the repositories; to install it execute</p>
<p><code>sudo apt-get install jfbterm</code></p>
<p>It is also helpful to install a good font for it to use:</p>
<p><code>sudo apt-get install unifont</code></p>
<p>Now, provided that you have a working framebuffer, you can start it by running <code>jfbterm</code>.</p>
<p>If you receive an error about /dev/fb0 not present, you need to enable a framebuffer. In Ubuntu, modify the current kernel line in /boot/grub/menu.lst to include vesafb. For example, my section in menu.lst reads something like:</p>
<p><code>title		Ubuntu 8.10, kernel 2.6.27-9<br />
kernel		/boot/vmlinuz-2.6.27-9 root=/dev/hda1 ro vesafb:mtrr,ywrap vga=0x318<br />
initrd		/boot/initrd.img-2.6.27-9<br />
quiet</code></p>
<p>After making the modification, reboot the system and try running jfbterm again.</p>
<p>Once you have jfbterm running, you can run commands like usual, and now should be able to see Japanese characters properly.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Framebuffer Bootlogo selbst erstellen]]></title>
<link>http://rorschachstagebuch.wordpress.com/2008/12/19/framebuffer-bootlogo-selbst-erstellen/</link>
<pubDate>Fri, 19 Dec 2008 13:57:45 +0000</pubDate>
<dc:creator>Rorschach</dc:creator>
<guid>http://rorschachstagebuch.wordpress.com/2008/12/19/framebuffer-bootlogo-selbst-erstellen/</guid>
<description><![CDATA[Ich habe mir gerade mal den neusten Vanilla-Kernel 2.6.27.10 installiert und wollte mir ein eigenes ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ich habe mir gerade mal den neusten Vanilla-Kernel 2.6.27.10 installiert und wollte mir ein eigenes Bootlogo für den Framebuffer erstellen. Es hat einige Zeit an Recherche gebraucht um herauszufinden wie das genau geht aber hier nun die Lösung:</p>
<p>Also wie ich herausgefunden habe soll das Bild eine Grösse von 80&#215;80 Pixeln besitzen und maximal 224 Farben. Das mit den 224 Farben geht bereits aus der Kernelkonfiguration hervor: &#8221; Standard 224-color Linux logo&#8221;. Das mit den 80&#215;80 Pixeln habe ich im Netz gefunden, weiss aber nicht ob nicht doch auch höhere Werte bei der Pixelanzahl möglich sind.</p>
<p>Am besten erstellt man mit Gimp ein solches Bild und speichert es als PNG (im folgenden meinlogo.png genannt).</p>
<p>Nun muss man erstmal das Paket <b>netpbm</b> installieren damit wir unser Logo in das richtige Format konvertieren können. Dies geht nach der Installation des Paketes mit dem simplen Befehl:<br />
<code>pngtopnm meinlogo.png &#124; pnmtoplainpnm &#62; logo_linux_clut224.ppm</code> </p>
<p>Und das war es eigentlich auch schon. Das so erzeugte Bild mit dem Namen logo_linux_clut224.ppm kopiert man noch nach /drivers/video/logo/logo_linux_clut224.ppm des entpackten Kernel-Quellcodes. Damit überschreibt man das alte Bild was meist distributionsspezifisch ist oder beim Vanilla-Kernel einfach unser Lieblingspinguin Tux. </p>
<p>Beim Konfigurieren des Kernels muss man nun noch dran denken &#8220;Device Drivers -&#62; Graphics Support -&#62; Bootup logo -&#62; Standard 224-color Linux logo&#8221; zu aktivieren und das wars.</p>
<p>Wenn der Kernel nun installiert ist und man bootet ihn mit aktiviertem Framebuffer wird man sein selbst erstelltes Bild sehen (je 1 mal pro Core/CPU).</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux: Programas para o console]]></title>
<link>http://aleteia.wordpress.com/2008/12/12/linux-programas-para-o-console/</link>
<pubDate>Fri, 12 Dec 2008 13:03:58 +0000</pubDate>
<dc:creator>André Ramaciotti</dc:creator>
<guid>http://aleteia.wordpress.com/2008/12/12/linux-programas-para-o-console/</guid>
<description><![CDATA[Como eu comentei no artigo anterior, em que eu mostrava como mudar as cores no console do Linux, vou]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Como eu comentei no artigo anterior, em que eu mostrava como mudar as cores no console do Linux, vou falar sobre alguns programas que rodam sem o X. É claro que se pode usá-los no X também, mas a idéia desse artigo é mostrar que sim, existe vida sem o X!</p>
<p>Algum deles precisam de um <em>framebuffer</em> (que em breve eu mostrarei como configurar), outros não, e eles estão organizados em nenhuma ordem específica.</p>
<p><!--more--></p>
<h2>links</h2>
<p>Este é um browser que funciona tanto sem <em>framebuffer</em> como com. Sem, ele mostra o texto da página na tela, mais ou menos como os comandos <tt>less</tt> e <tt>more</tt> fazem. Para selecionar o link que se quer seguir, use as setas para cima e para baixo; para avançar, enter ou a seta para direita e para voltar, aperte a seta para esquerda.</p>
<p>Com <em>framebuffer</em>, ele se parece mais com um browser normal, mostrando até imagens (embora o layout não fique exatamente igual a como se veria a página num “browser de verdade”). Para tê-lo funcionando neste modo, além do <em>frambuffer</em>, é preciso ter o <tt>gpm</tt> rodando e o <tt>links</tt> ter sido compilado com as opções<br />
<code>./configure --prefix=/usr --mandir=/usr/share/man --enable-javascript --enable-graphics --with-x --with-fb --without-directfb</code></p>
<p>Não esqueça de verificar antes se sua distro não possui já o pacote <tt>links-g</tt> pré-compilado. E para executá-lo no modo gráfico, rode <tt>links -g</tt> (é possível usar esse modo gráfico no X também, sendo um browser bastante leve). Assim no modo gráfico, ele pode ser usado também como visualizador de imagens.</p>
<p><strong>programas semelhantes:</strong> existem vários outros browsers de modo texto tais como <tt>lynx</tt>, <tt>elinks</tt>, <tt>w3m</tt>, mas esses não possuem modo gráfico. Uma alternativa mais completa é o <tt>hacked links</tt>, que é o links modificado com algumas coisas a mais.</p>
<h2>gpm</h2>
<p>No texto sobre o <tt>links</tt> eu falei que era preciso ter o <tt>gpm</tt> rodando, mas o que ele faz (pergunta retórica)*? Ele é um <em>daemon</em> que oferece funcionalidades do mouse ao console. Por exemplo, com ele é possível selecionar texto usando o mouse e depois colá-lo.</p>
<h2>mpd e ncmpcpp</h2>
<p><tt>mpd</tt> é um acrônimo para <em>Music Player Daemon</em>. Isso já diz tudo, ele é um player que funciona como um daemon e pode-se escolher a interface que se quiser para controlá-lo. O ponto fraco do <tt>mpd</tt> é que até a versão mais recente, 0.13.2, ele não é capaz de reproduzir arquivos que não estejam numa biblioteca pré-configurada (isso inclui CDs de áudio).</p>
<p>Entre as interfaces, as mais úteis para o console são o ncmpcpp (que é uma versão melhorada do ncmpc) e o mpc. O primeiro é uma interface em ncurses, você pode criar uma <em>playlist</em> e depois fechá-lo que ele continuará tocando. O segundo é útil para fazer scripts e funciona direto da linha de comando, ex: <tt>mpc stop</tt> . Quem for usuário do <a href="http://last.fm/">last.fm</a> pode instalar mais um daemon, chamado <tt>mpdscribbler</tt>.</p>
<h2>mplayer</h2>
<p>O <tt>mplayer</tt> é um velho conhecido dos linuxers, e ele funciona também no console, com ou sem <em>framebuffer</em>. No primeiro caso é simples, basta executá-lo como se faria no X, mas no console.</p>
<p>No segundo caso ele funciona, mas concordo que sirva mais como uma brincadeira que qualquer outra coisa. Existem as bibliotecas aa e caca que permitem a execução do vídeo em ascii. Sim, em letrinhas. A diferença é que uma não tem cores e a outra tem.</p>
<p><code>mplayer -vo aa -monitorpixelsize 0.5 arquivo</code><br />
<code>mplayer -vo caca -monitorpixelsize 0.5 arquivo</code></p>
<p>Além disso, já que o <tt>mpd</tt> não executa arquivos que não estejam na biblioteca, pode-se usar o <tt>mplayer</tt> para essa função, ao menos para executar CDs de áudio (sem o cache ele pode travar às vezes):</p>
<p><code>mplayer -cache 2048 cdda://</code></p>
<h2>pebrot</h2>
<p>Queira ou não, o MSN é o mensageiro instantâneo mais usado no Brasil e o <tt>pebrot</tt> é um cliente em curses para ele. Além do que, o MSN pode ser bastante útil na solução de problemas se houver algum amigo que também use Linux na sua lista de contatos.</p>
<h2>pdftotext, antiword, catdoc e o3totxt</h2>
<p>Estes são programas que convertem alguns formatos de arquivos para texto apenas. O primeiro, como o nome diz, converte pdfs, os dois do meio convertem arquivos da Microsoft e o terceiro converte arquivos do OpenOffice.</p>
<p>Por parível que increça, o do OpenOffice é o mais difícil de ser usado, é preciso dezipá-lo e passar o arquivo content.xml. A maneira mais fácil de fazer isso é com o comando:</p>
<p><code>unzip -p arquivo.odt content.xml &#124; o3totxt &#124; tee</code></p>
<p>Infelizmente, nem sempre estes programas funcionam, mas mesmo assim são bastante úteis. Só lembrando que no caso dos arquivos da Microsoft, geralmente eles vêm na encoding 8859-1, por isso se aparecer alguns caracteres estranhos, passe uma opção dizendo a codificação do arquivo de entrada.</p>
<h2>screen</h2>
<p>Eu já <a href="http://aleteia.wordpress.com/2007/11/16/screen/">falei sobre o <tt>screen</tt> antes</a>, ele é útil pois permite ter vários <em>shells</em> rodando num mesmo console.</p>
<h2>Considerações finais</h2>
<p>É claro que existem alternativas aos programas que eu coloquei aqui, e existem outros programas, eu só procurei mostrar o que eu uso e que considero bons programas.</p>
<p>* Não sei&#8230; talvez devesse existir uma pontuação própria para perguntas retóricas. Se seria útil não sei, mas uma pontuação para sarcasmo seria.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[TuxLogo framebuffer Linux kernel]]></title>
<link>http://facusdelacruz.wordpress.com/2008/11/15/tuxlogo-framebuffer-linux-kernel/</link>
<pubDate>Sat, 15 Nov 2008 18:48:46 +0000</pubDate>
<dc:creator>Overclock_Orange</dc:creator>
<guid>http://facusdelacruz.wordpress.com/2008/11/15/tuxlogo-framebuffer-linux-kernel/</guid>
<description><![CDATA[Siempre me gusto de Slackware y Fedora, que mientras iniciaba me mostraba un simpatico Tux en la pan]]></description>
<content:encoded><![CDATA[Siempre me gusto de Slackware y Fedora, que mientras iniciaba me mostraba un simpatico Tux en la pan]]></content:encoded>
</item>
<item>
<title><![CDATA[Change framebuffer resolution]]></title>
<link>http://chirale.wordpress.com/2008/05/22/change-framebuffer-resolution/</link>
<pubDate>Thu, 22 May 2008 10:26:28 +0000</pubDate>
<dc:creator>chirale</dc:creator>
<guid>http://chirale.wordpress.com/2008/05/22/change-framebuffer-resolution/</guid>
<description><![CDATA[While trying to update kernel in order to run Virtualbox, i got a weird resolution error. On OS boot]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>While trying to update kernel <a href="http://chirale.wordpress.com/2007/12/23/virtualbox-ose-debian-install-howto/">in order to run Virtualbox</a>, i got a weird resolution error. On OS boot, screen blanks with an error like &#8220;Resolution is beyond allowed limits&#8221;. Since this happens before GUI is loaded, Xorg is innocent. I&#8217;ve installed the <a title="http://www.geocities.com/stomljen/" href="http://" target="_blank">915resolution</a> patch for a widescreen HP, but it&#8217;s innocent too.</p>
<p>Well, this is a framebuffer issue! To solve it I&#8217;ve followed <a href="http://technobounce.com/index.php?entry=entry070912-113942" target="_blank">these instructions on technobounce</a>.</p>
<ul>
<li>apt-get install hwinfo</li>
<li>hwinfo &#8211;framebuffer</li>
<li>Then make a backup copy of your <strong>/boot/grub/menu.lst</strong> and add to your kernel line <em>vga=0&#215;035a</em> where <em>0&#215;035a</em> is the wanted resolution mode.</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Via rilascia 16000 linee di codice FOSS]]></title>
<link>http://ercolinux.wordpress.com/2008/05/12/via-rilascia-16000-linee-di-codice-foss/</link>
<pubDate>Mon, 12 May 2008 15:27:20 +0000</pubDate>
<dc:creator>ercolinux</dc:creator>
<guid>http://ercolinux.wordpress.com/2008/05/12/via-rilascia-16000-linee-di-codice-foss/</guid>
<description><![CDATA[VIA ha rilasciato oltre 16.000 linee di codice per gestire in maniera nativa nel kernel Linux il fra]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>VIA ha rilasciato oltre 16.000 linee di codice per gestire in maniera nativa nel kernel Linux il framebuffer  dei chipset Unichrome CLE266, CN700, CX700, K400, K800, K8M890,  P4M890, P4M900, PM800 e VX800 IGP. Il supporto garantisce il funzionamento di collegamenti digitali e HDMI. Per adesso sono soli i driver per il framebuffer, ma speriamo sia il primo passo verso il rilascio dei driver completi con il supporto per il 3D e i video.</p>
<p>Il codice è stato rilasciato come una serie di patch attraverso la mailing list degli sviluppatori fbdev ed è rilasciato sotto GPL2.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Tăng độ phân giải cho tty console trong Gutsy]]></title>
<link>http://kythuatmaytinh.wordpress.com/2007/12/18/tang-d%e1%bb%99-phan-gi%e1%ba%a3i-cho-tty-console-trong-gutsy/</link>
<pubDate>Tue, 18 Dec 2007 23:17:02 +0000</pubDate>
<dc:creator>htr3n</dc:creator>
<guid>http://kythuatmaytinh.wordpress.com/2007/12/18/tang-d%e1%bb%99-phan-gi%e1%ba%a3i-cho-tty-console-trong-gutsy/</guid>
<description><![CDATA[Sau khi mình cài Gutsy xong và download driver nvidia mới về thì phải tắt Xorg để cấu hình. Khi nhảy]]></description>
<content:encoded><![CDATA[Sau khi mình cài Gutsy xong và download driver nvidia mới về thì phải tắt Xorg để cấu hình. Khi nhảy]]></content:encoded>
</item>
<item>
<title><![CDATA[Русификация консоли в Ubuntu]]></title>
<link>http://starl1te.wordpress.com/2007/12/08/%d1%80%d1%83%d1%81%d0%b8%d1%84%d0%b8%d0%ba%d0%b0%d1%86%d0%b8%d1%8f-%d0%ba%d0%be%d0%bd%d1%81%d0%be%d0%bb%d0%b8-%d0%b2-ubuntu/</link>
<pubDate>Sat, 08 Dec 2007 18:57:22 +0000</pubDate>
<dc:creator>Starlite</dc:creator>
<guid>http://starl1te.wordpress.com/2007/12/08/%d1%80%d1%83%d1%81%d0%b8%d1%84%d0%b8%d0%ba%d0%b0%d1%86%d0%b8%d1%8f-%d0%ba%d0%be%d0%bd%d1%81%d0%be%d0%bb%d0%b8-%d0%b2-ubuntu/</guid>
<description><![CDATA[И все-таки убунту &#8211; весьма косячный дистрибутив. В дебиане консоль русская из коробки, а вот в]]></description>
<content:encoded><![CDATA[И все-таки убунту &#8211; весьма косячный дистрибутив. В дебиане консоль русская из коробки, а вот в]]></content:encoded>
</item>
<item>
<title><![CDATA[Gutsy no carga usplash]]></title>
<link>http://tuxwebera.wordpress.com/2007/10/23/gutsy-no-carga-usplash/</link>
<pubDate>Tue, 23 Oct 2007 07:31:45 +0000</pubDate>
<dc:creator>sharintux</dc:creator>
<guid>http://tuxwebera.wordpress.com/2007/10/23/gutsy-no-carga-usplash/</guid>
<description><![CDATA[Este es un problema que me ha dado la nueva versión de Ubuntu, Gutsy Gibbon. Hago la instalación lim]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Este es un problema que me ha dado la nueva versión de Ubuntu, Gutsy Gibbon. Hago la instalación limpia, reinicio y&#8230; sorpresa! ¿dónde se ha metido mi pantalla de carga?</p>
<p>Afortunadamente, tras pensar muchas cosas desagradables, después de lo que tarda en cargarse habitualmente un usplash me inicia el GDM. Pero&#8230; ¿habrá solución a esto no?</p>
<p>Pues sí. Tras revisar innumerables foros sobre el tema, parece ser que Gutsy tiene un pequeño problema de compatibilidad con el framebuffer debido a que determinados monitores o tarjetas de vídeo no soportan la resolución por defecto.</p>
<p>La solución, en sí, es muy sencilla:</p>
<p>1.- Instalamos <a href="//startupmanager">Startup Manager</a> , bien desde este mismo enlace, bien por Synaptics o bien por consola:</p>
<p><code>sudo aptitude install startupmanager</code></p>
<p>Para iniciarlo hacemos un:</p>
<p><code>sudo startupmanager</code></p>
<p>Y, para acabar, elegimos la resolución que más se ajuste a nuestro hardware. Ahora es cuestión de reiniciar, <strike>cruzar los dedos</strike> y disfrutar de lo mejor de Ubuntu.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
