<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1047534008909792748</id><updated>2024-08-27T22:50:07.085-06:00</updated><title type='text'>André&#39;s Unix Life</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-1633517007271307447</id><published>2010-10-29T22:05:00.000-05:00</published><updated>2010-10-29T22:05:16.679-05:00</updated><title type='text'>Keep track of Installed Packages in Debian</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Since I usually do a &#39;aptitude update&#39; followed by an &#39;aptitude safe-upgrade&#39; and an &#39;aptitude full-upgrade&#39; almost on a daily basis, I sometimes need to keep track of what was upgrade, installed or removed, because eventually those upgrades generate some problems or unexpected issues.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To keep track of it I generate a list of packages installed and orphans packages every day.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# m h &amp;nbsp;dom mon dow &amp;nbsp; command&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;00 02 * * * /usr/bin/updatedb&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;00 11 * * * /usr/bin/dpkg --get-selections &amp;gt; /root/debian-packages/`date +\%Y-\%m-\%d`-packages.list; SUFFIX=packages.list /root/debian-packages/deleteEquals.sh&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;01 11 * * * /usr/bin/deborphan &amp;gt; /root/debian-packages/`date +\%Y-\%m-\%d`-deborphan; SUFFIX=deborphan /root/debian-packages/deleteEquals.sh&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Also, to don&#39;t waste space, I created a small script to remove the lists in case they don&#39;t have any changes, which is the &quot;deleteEquals.sh&quot; script.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The script just need the variable SUFFIX set so it knows which files should be checked, the whole script is below:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SUFFIX=${SUFFIX:=&quot;packages.list&quot;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cd /root/debian-packages&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;for i in $(ls -1rt /root/debian-packages/*${SUFFIX}); do&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if [ -z $PREVIOUS ]; then&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;PREVIOUS=&quot;$i&quot;; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;else&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;diff -q $PREVIOUS $i &amp;gt; /dev/null 2&amp;gt;/dev/null;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;RESULT=&quot;$?&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if [ $RESULT -eq 0 ]; then&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;rm $PREVIOUS;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;PREVIOUS=&quot;$i&quot;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;fi;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;done&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/1633517007271307447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/1633517007271307447?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/1633517007271307447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/1633517007271307447'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/10/keep-track-of-installed-packages-in.html' title='Keep track of Installed Packages in Debian'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-2128502218610074811</id><published>2010-10-07T16:45:00.000-05:00</published><updated>2010-10-07T16:45:42.574-05:00</updated><title type='text'>Using ps to see the whole process command in Solaris</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To see a long command line running in Linux you can use &#39;ps -efl&#39;, like this:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# ps -efl | grep chrome | tail -1&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1 S andre &amp;nbsp; &amp;nbsp;12842 &amp;nbsp;3822 &amp;nbsp;2 &amp;nbsp;80 &amp;nbsp; 0 - 344387 - &amp;nbsp; &amp;nbsp; 11:57 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00:06:56 /opt/google/chrome/chrome --type=renderer --lang=en-US --force-fieldtest=CacheSize/CacheSizeGroup_3/CacheThrottle/CacheThrottle_Off/ConnCountImpact/conn_count_6/ConnnectBackupJobs/ConnectBackupJobsEnabled/DnsImpact/default_enabled_prefetch/GlobalSdch/global_enable_sdch/IdleSktToImpact/idle_timeout_60/Prefetch/ContentPrefetchEnabled/ProxyConnectionImpact/proxy_connections_32/SpdyImpact/npn_with_spdy/ --enable-crash-reporter=1B284CE7461F92C501F326E117CE5DBE,Debian GNU/Linux testing (squeeze) --channel=3812.0x615ca00.296713068&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;But in Solaris it don&#39;t work the same way:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ ps -efl | grep java | grep noaccess&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;0 S noaccess &amp;nbsp;2258 &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; 0 &amp;nbsp;40 20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;? &amp;nbsp;11434 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;? &amp;nbsp; Aug 10 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;64:33 /usr/java/bin/java -server -Xmx128m&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;But we can use the&amp;nbsp;beautiful &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/usr/ucb/ps auxww&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ /usr/ucb/ps auxww | grep java | grep noaccess&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;noaccess &amp;nbsp;2258 &amp;nbsp;0.0 &amp;nbsp;0.39147284352 ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;S &amp;nbsp; Aug 10 64:32 /usr/java/bin/java -server -Xmx128m -XX:+UseParallelGC -XX:ParallelGCThreads=4&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Hope this help some lost soul out there.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/2128502218610074811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/2128502218610074811?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/2128502218610074811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/2128502218610074811'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/10/using-ps-to-see-whole-process-command.html' title='Using ps to see the whole process command in Solaris'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-1545596732294743974</id><published>2010-09-28T16:42:00.000-05:00</published><updated>2010-09-28T16:42:39.144-05:00</updated><title type='text'>VMware Mouse Grab Problem</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Some time ago I instaled vmware server in my machine and the mouse was just going crazy, just move it a little and lose focus from the VM Console.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;This seems to be due to some changes in the new versions of GTK, so to correct that do the following:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Go to the extension directory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;~/.mozilla/firefox/.default/extensions/VMwareVMRC@vmware.com/plugins/lib/wrapper-gtk24.sh&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;and add in the second line:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;export VMWARE_USE_SHIPPED_GTK=yes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;And that&#39;s it! Just restart Firefox and it works!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;I got this solution from here:&amp;nbsp;http://www.linuxinsight.com/vmware-mouse-grab-ungrab-problem.html&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/1545596732294743974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/1545596732294743974?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/1545596732294743974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/1545596732294743974'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/vmware-mouse-grab-problem.html' title='VMware Mouse Grab Problem'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-4272438892083103901</id><published>2010-09-20T15:59:00.000-05:00</published><updated>2010-09-20T15:59:20.020-05:00</updated><title type='text'>Utilizando o Installwatch</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;E aqui vai outra do Dicas-L:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/utilizando_o_installwatch.php&quot;&gt;http://www.dicas-l.com.br/arquivo/utilizando_o_installwatch.php&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;taghw&gt;&lt;taghw&gt;Para quem usa Slackware, Debian ou RedHat um&amp;nbsp;&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/utilizando_o_installwatch.php#&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #006600; cursor: pointer; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;ótimo&amp;nbsp;&lt;/a&gt;&lt;/taghw&gt;&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/utilizando_o_installwatch.php#&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #006600; cursor: pointer; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;software&lt;/a&gt;&amp;nbsp;para se usar na hora de instalar programas a partir do código fonte é o checkinstall, ele gera um pacote com o software sendo compilado para que depois possa ser instalado/desinstalado com facilidade,&lt;/taghw&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;A maior utilidade desse software para mim é a facilidade de desinstalação.&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Porém agora estou utilizando o gentoo, pois foi a melhor distro que encontrei para 64 bits.&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Por causa disso descobri que o checkinstall é baseado em um outro software chamado installwatch, que faz toda a parte de gerenciamento dos arquivos que estão sendo instalados.&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;taghw&gt;Depois de muito tempo procurando pelo installwatch&amp;nbsp;&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/utilizando_o_installwatch.php#&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #006600; cursor: pointer; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;pela internet&lt;/a&gt;&amp;nbsp;eu descobri que ele se encontra no próprio fonte do checkinstall,&lt;/taghw&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Então para se instalar façamos o seguinte:&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Baixe o checkinstall:&amp;nbsp;&lt;a href=&quot;http://asic-linux.com.mx/~izto/checkinstall/&quot; style=&quot;color: darkred; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;http://asic-linux.com.mx/~izto/checkinstall/&lt;/a&gt;&amp;nbsp;E faça o seguinte:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;$ tar xvfz checkinstall-1.6.0.tgz
  $ cd checkinstall-1.6.0/installwatch-0.7.0beta4/
  $ make
  # make install
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Agora crie os diretórios onde teremos informações dos pacotes instalados e removidos:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;# mkdir /var/{install,uninstall}
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;E pronto, agora sempre que compilar um pacote, ao invés de utilizar o famoso &quot;make install&quot;, use:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;# installwatch -o /var/install/&amp;lt;NOME_DO_SOFTWARE&amp;gt; make install
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Será criado um arquivo em&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/var/install&lt;/code&gt;&amp;nbsp;com o nome do software instalado e informação de todos arquivos criados,&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Para facilitar o processo de instalação pode-se criar um alias:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;# alias iw=&#39;installwatch -o /var/install/$(basename $(pwd))&#39;
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;A linha acima pode ser adicionada ao arquivo&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/etc/profile&lt;/code&gt;, para que tenhamos esse alias sempre que iniciarmos uma sessão, apenas note que o nome do arquivo que ficará no diretório&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/var/install&lt;/code&gt;&amp;nbsp;é o nome do diretório onde você se encontra, tome os devidos cuidados para não estar num diretório com o nome incorreto ou com o nome que pode sobrescrever a informação de outro pacote previamente instalado, particularmente eu tive apenas esse &quot;problema&quot; quando compilando pacotes cvs que tinham o diretório &quot;trunk&quot;.&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;E ao invés de digitar toda a enorme linha acima para se instalar o pacote é só utilizar:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;# iw make install
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Para se desinstalar podemos utilizar o script nuke da seguinte forma:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;# nuke /var/install/&amp;lt;NOME_DO_SOFTWARE&amp;gt;
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Abaixo segue o script nuke:&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;#!/usr/bin/perl
  # Author: Robert Park &amp;lt;feztaa@shaw.ca&amp;gt;
  # License: GNU General Public License
  
  # Revision 1.13  2002/08/08 00:51:34  feztaa
  # Added experimental --package and --install options for tarring up
  # and untarring packages from installwatch logfiles.
  #
  # Revision 1.12  2002/07/31 07:11:43  feztaa
  # Fixed major problem with symlinks that point to directories.
  #
  # Revision 1.11  2002/07/27 00:45:39  feztaa
  # Major overhaul; reduced LOC and increased efficiency all around.
  #
  # Revision 1.10  2002/07/26 19:41:00  feztaa
  # Incorporated fixes from Zenith Lau &amp;lt;zenithlau@sniic.com&amp;gt;, fixing
  # issues with symlinks.
  
  use strict;
  
  die &quot;You must be root!\n&quot; unless ($&amp;lt; == 0);
  
  # Underline a string by appending with with a newline and hyphens
  sub underline
  {
   my $str = join(&quot;&quot;, @_);
   my $chomp = 1;
  
   $chomp++ while (chomp $str);
  
   return &quot;$str\n&quot; . (&quot;-&quot; x length $str) . (&quot;\n&quot; x $chomp);
  }
  
  # Take an array, and return a string that&#39;s been properly commified,
  # ie (&quot;one&quot;, &quot;two&quot;, &quot;three&quot;) becomes &quot;one, two, and three&quot;.
  sub commify
  {
   (@_ == 0) ? &#39;&#39;                                      :
   (@_ == 1) ? $_[0]                                   :
   (@_ == 2) ? join(&quot; and &quot;, @_)                       :
               join(&quot;, &quot;, @_[0 .. ($#_-1)], &quot;and $_[-1]&quot;);
  }
  
  my %opts;
  my @args;
  
  foreach my $arg (@ARGV)
  {
   ($arg =~ m/^(-r|--report)$/) ?  $opts{report}  = 1 :
   ($arg =~ m/^(-p|--package)$/) ? $opts{package} = 1 :
   ($arg =~ m/^(-i|--install)$/) ? $opts{install} = 1 :
                                   push @args, $arg;
  }
  
  # Process all the logfiles
  foreach my $arg (@args)
  {
   $arg =~ s#^.*/##g;
   chomp $arg;
  
   my $install = &quot;/var/install/&quot; . $arg;
   my $package = &quot;/var/packages/&quot; . $arg . ($opts{install} ? &quot;&quot; : &quot;.tar.bz2&quot;);
   my $uninstall = &quot;/var/uninstall/&quot; . $arg;
  
   unless ((-f $install and not $opts{install}) or (-f $package and $opts{install}))
   {
     print &quot;Can&#39;t find $arg\n&quot;;
     next;
   }
  
   if ($opts{install})
   {
     print &quot;Unpacking files from $package ... \n&quot;;
     system(&quot;tar&quot;, &quot;-Pxjvpf&quot;, $package);
   }
   else
   {
     open &quot;INSTALL&quot;, &quot;&amp;lt;$install&quot; or die &quot;$!\n&quot;;
  
     print &quot;Processing $arg ... &quot;;
  
     my %files;
     my $error = 0;
  
     while (&amp;lt;INSTALL&amp;gt;)
     {
       chomp;
       my @fields = split;
  
       my $action = $fields[1];
       my $file = $action eq &quot;symlink&quot; ? $fields[3] : $fields[2];
  
       # Don&#39;t delete stuff that wasn&#39;t created properly;
       # prevents deletion of /usr or similar.
       if ($fields[-1] eq &quot;#success&quot;)
       {
         push @{ $files{$file} }, $action if (-f $file or -l $file or -d $file);
       }
     }
  
     print &quot;done.\n&quot;;
  
     if ($opts{report})
     {
       # Reporting mode, don&#39;t delete anything.
       print underline(&quot;Files/Directories installed by $arg\n&quot;);
  
       foreach my $file (sort { length $b &amp;lt;=&amp;gt; length $a } keys %files)
       {
         print &quot;$file:  &quot;, commify (@{ $files{$file} }), &quot;\n&quot;;
       }
     }
     elsif ($opts{package})
     {
       print &quot;Packing files from $arg into $package ... \n&quot;;
  
       system(&quot;tar&quot;, &quot;-cpPvjf&quot;, $package, (sort keys %files), $install);
     }
     else
     {
       # Nuke mode, delete stuff...
       print &quot;Uninstalling $arg ... &quot;;
  
       open &quot;UNINSTALL&quot;, &quot;&amp;gt;$uninstall&quot; or die &quot;$!\n&quot;;
  
       select UNINSTALL;
  
       print underline(&quot;Removed Files/Directories&quot;);
  
       foreach my $file (sort { length $b &amp;lt;=&amp;gt; length $a } keys %files)
       {
         if (grep /open|symlink|mkdir/, @{ $files{$file} })
         {
           $! = &quot;&quot;;
  
           print &quot;\n$file&quot;;
  
           # -d returns true for symlinks that point to directories,
           # so this is actually necessary.
           (-l &quot;$file&quot;) ? unlink &quot;$file&quot; :
           (-d &quot;$file&quot;) ? rmdir &quot;$file&quot;  :
                          unlink &quot;$file&quot;;
  
           if ($!)
           {
             print &quot; -- $!&quot;;
             $error++;
           }
         }
       }
  
       close &quot;INSTALL&quot;;
       close &quot;UNINSTALL&quot;;
       select STDOUT;
  
       # Let the user know what happened
       if ($error)
       {
         print &quot;$error files/directories could not be removed.\n&quot;;
       }
       else
       {
         unlink $install;
         print &quot;successful.\n&quot;;
       }
     }
   }
  }
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;taghw&gt;Um muito obrigado aos criadores desses&amp;nbsp;&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/utilizando_o_installwatch.php#&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #006600; cursor: pointer; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;softwares&lt;/a&gt;! Meu sistema estaria cheio de lixo sem eles!&lt;/taghw&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/4272438892083103901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/4272438892083103901?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/4272438892083103901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/4272438892083103901'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/utilizando-o-installwatch.html' title='Utilizando o Installwatch'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-6188816238024900644</id><published>2010-09-20T15:54:00.001-05:00</published><updated>2010-09-20T15:54:05.086-05:00</updated><title type='text'>Recuperando o Grub Perdido</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Aqui vai um link de uma dica minha no Dicas-L:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/recuperando_o_grub_perdido.php&quot;&gt;http://www.dicas-l.com.br/arquivo/recuperando_o_grub_perdido.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Verdana, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Quem nunca instalou um outro SO ou fez alguma besteira e perdeu o Grub (ou lilo)?&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;taghw&gt;Todos seus&amp;nbsp;&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/recuperando_o_grub_perdido.php#&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #006600; cursor: pointer; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;arquivos&lt;/a&gt;&amp;nbsp;estão lá, seu SO está do jeito que você deixou, mas você não consegue iniciar o sistema pois a MBR está incorreta.&lt;/taghw&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Bom, pra resolver é bem simples.&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;taghw&gt;Ligue a máquina com um Live&amp;nbsp;&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/recuperando_o_grub_perdido.php#&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #006600; cursor: pointer; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;CD&lt;/a&gt;&amp;nbsp;de sua preferência, o ideal é que seja o mais similar possível ao sistema instalado, principalmente versão de kernel;&lt;/taghw&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;taghw&gt;Após o boot, liste as partições existentes para descobrir quais as partições&amp;nbsp;&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/recuperando_o_grub_perdido.php#&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #006600; cursor: pointer; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;necessárias&lt;/a&gt;&amp;nbsp;para o SO:&lt;/taghw&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# fdisk -l
  
  Disk /dev/sda: 160.0 GB, 160041885696 bytes
  255 heads, 63 sectors/track, 19457 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Disk identifier: 0x053687be
  
   Device Boot      Start         End      Blocks   Id  System
  /dev/sda1   *           1        5099    40957686    7  HPFS/NTFS
  /dev/sda2            5100       19457   115330635    5  Extended
  /dev/sda5            5100        7649    20482843+   b  W95 FAT32
  /dev/sda6            7650       10199    20482843+   7  HPFS/NTFS
  /dev/sda7           10200       12749    20482843+   b  W95 FAT32
  /dev/sda8           12750       12762      104391   83  Linux
  /dev/sda9           12763       16586    30716248+  83  Linux
  /dev/sda10          16587       19391    22531131   83  Linux
  /dev/sda11          19392       19457      530113+  82  Linux swap / Solaris
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Crie um mount point e monte sua partição de root:&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# mkdir /mnt/recover
  # mount /dev/sda10 /mnt/recover
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;Caso você não saiba qual é sua partição de root, monte partição por partição até encontrar, o conteúdo da raiz não será muito diferente disso:&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# ls -1 /
  bin
  boot
  cdrom
  dev
  emul
  etc
  home
  initrd.img
  initrd.img.old
  lib
  lib32
  lib64
  media
  mnt
  opt
  proc
  root
  sbin
  selinux
  srv
  sys
  tmp
  usr
  var
  vmlinuz
  vmlinuz.old
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Verifique no seu&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/etc/fstab&lt;/code&gt;&lt;taghw&gt;&amp;nbsp; quais outras partições de sistema existem, se existir elas precisam ser montadas, em geral o que pode ser&amp;nbsp;&lt;a href=&quot;http://www.dicas-l.com.br/arquivo/recuperando_o_grub_perdido.php#&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #006600; cursor: pointer; float: none !important; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: underline;&quot;&gt;necessário&lt;/a&gt;&amp;nbsp;é:&lt;/taghw&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;/opt
  /tmp
  /usr
  /var
  /boot
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;Caso seu&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/etc/fstab&lt;/code&gt;&amp;nbsp;mostre o UUID do disco ao invés do dispositivo, você pode descobrir qual é o dispositivo com o comando blkid:&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# blkid /dev/sda10
  /dev/sda10: LABEL=&quot;linux&quot; UUID=&quot;57c5cf37-4a13-4a85-a088-716e758e6a0b&quot; TYPE=&quot;xfs&quot;
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Monte todas as partições necessárias no seu local correto, por exemplo, para montar a partição&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/usr&lt;/code&gt;, após verificar que ela está presente na partição&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;sda8&lt;/code&gt;:&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# mount /dev/sda8 /mnt/recover/usr
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Certifique-se de que todas as partições necessárias estão montadas, principalmente a partição&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/boot&lt;/code&gt;.&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Monte os pseudo devices:&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# mount -t proc none /mnt/recover/proc
  # mount -o bind /dev /mnt/recover/dev
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Entre no ambiente&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# chroot /mnt/recover /bin/bash
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Crie o&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/etc/mtab&lt;/code&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# grep -v rootfs /proc/mounts &amp;gt; /etc/mtab
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;Nesse ponto, caso você tenha muitas partições de sistema, como /usr por exemplo, é possível que seja necessário editar o arquivo e retirar o prefixo&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/mnt/recover&lt;/code&gt;.&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Confira se o&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/boot/grub/grub.conf&lt;/code&gt;&amp;nbsp;ou&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;/boot/grub/menu.lst&lt;/code&gt;&amp;nbsp;ou /&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;boot/grub/grub.cfg&lt;/code&gt;está correto (o arquivo depende da versão do grub e/ou da configuração).&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Execute o&amp;nbsp;&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;grub-install&lt;/code&gt;&amp;nbsp;no disco.&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: black; border-bottom-style: dotted; border-bottom-width: thin; border-color: initial; border-left-style: dotted; border-left-width: thin; border-right-style: dotted; border-right-width: thin; border-top-style: dotted; border-top-width: thin; border-width: initial; color: #54ff54; font-family: &#39;Andale Mono&#39;, Courier; font-size: 10pt; font-weight: bold; margin-bottom: 10px; margin-left: 30px; margin-right: 30px; margin-top: 10px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;# grub-install /dev/sda
&lt;/pre&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Reinicie a máquina e fique feliz!&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;É possível que, devido ao novo SO instalado, alguns discos mudem de ID para o grub, nesse caso, você receberá uma mensagem de que a partição não é bootável.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Nesse caso, aconselho editar a linha do grub no momento da inicialização (apertando &quot;e&quot;) e mudando o (&lt;code style=&quot;color: #3300cc; font-family: &#39;Bitstream Vera Sans Mono&#39;, courier; font-size: 10pt; font-weight: bold; overflow-x: auto; overflow-y: auto;&quot;&gt;hdX,Y&lt;/code&gt;) por valores de outras partições que existem no sistema, até se encontrar qual é a partição de root correta.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Uma vez encontrada a partição correta, inicie o sistema e edite o arquivo de configuração do grub com as informações corretas.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/6188816238024900644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/6188816238024900644?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/6188816238024900644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/6188816238024900644'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/recuperando-o-grub-perdido.html' title='Recuperando o Grub Perdido'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-867241260823093550</id><published>2010-09-16T15:09:00.002-05:00</published><updated>2010-09-16T15:09:53.789-05:00</updated><title type='text'>Connecting to Multiple Networks</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Here in my job I have to connect to two networks, one the intranet of the company and other a 3G network in order to access my email (since I am not a employe I don&#39;t have a company mail, and use a free one for everything).&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Since I only really need to use the company network to access the nodes I do support, the best option would be connect to both network and use the company one when I try to access the nodes, and the 3G network for everything else (which would basically mean all the internet). Before using this solution I was always needing to change from one network to another depending on what I needed to do.&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;So, how to do that? It is so incredible easy that took me some weeks to find out! ;)&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Basically you first need to connect to both networks (one at a time), and take a look at your routing table.&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Ok, so, first I connect to my company network (via cable, which in my case mean that interface eth0 will be used), and it gives me a routing table like the following (obviously, I am changing the address):&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ netstat -rn&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Kernel IP routing table&lt;br /&gt;
Destination&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Genmask&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags&amp;nbsp;&amp;nbsp; MSS Window&amp;nbsp; irtt Iface&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;0.0.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.10.10.1 &amp;nbsp; 0.0.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 eth0&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Ok, so lets disconnect and see how it looks like when connecting to the 3G (which in my case is the ppp0 interface):&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ netstat -rn&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Kernel IP routing table&lt;br /&gt;
Destination&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Genmask&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags&amp;nbsp;&amp;nbsp; MSS Window&amp;nbsp; irtt Iface&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;0.0.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192.168.1.1 &amp;nbsp; 0.0.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 ppp0&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;It can have some other lines in the configuration, but the &quot;0.0.0.0&quot; line (depending on the configuration it will be shown as &quot;default&quot;).&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Well, once you have the default route information, just connect to both networks, delete the default route, and add the route you want, in my case I do something like this:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;route del default&lt;br /&gt;
route add -net 10.10.8.0/23 gw 10.10.10.1 dev eth0&lt;br /&gt;
route add -net 10.11.0.0/16 gw 10.10.10.1 dev eth0&lt;br /&gt;
route add -net 10.12.50.0/24 gw 10.10.10.1 dev eth0&lt;br /&gt;
route add default gw 192.168.1.1 dev ppp0&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Where the first line delete the current default route, the 3 next lines add the routing to the nodes I need to have access in my work, and the other creates a default route for everything else to go through the 3G connection.&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Hope it helps you people! &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/867241260823093550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/867241260823093550?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/867241260823093550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/867241260823093550'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/connecting-to-multiple-networks.html' title='Connecting to Multiple Networks'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-8657118684158457059</id><published>2010-09-15T16:42:00.000-05:00</published><updated>2010-09-15T16:42:09.327-05:00</updated><title type='text'>Java Plugin 64bits</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;As someone may have already notice I am using this blog more as a way to remind myself some little things to do when I install a new Linux than any other thing.&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;And here is another small but importante detail: In the newer versions of Sun Java for 64bits environments there is already a native plugin for your browser, in debian you just need to do this to be happy:&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ln -s /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Since /usr/lib/jvm/java-6-sun is a link to the newest java-6 version, you will only need to change the link if you want to change the java from 6.x to 7.x (which is not likely to happen frequently), otherwise even in the usual java updates you won&#39;t need to worry about anything, except maybe a Firefox / Iceweasel messages saying that some plugins have been changed and it need to be restarted.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/8657118684158457059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/8657118684158457059?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8657118684158457059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8657118684158457059'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/java-plugin-64bits.html' title='Java Plugin 64bits'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-8904835132024045629</id><published>2010-09-15T16:30:00.001-05:00</published><updated>2010-09-15T16:32:11.678-05:00</updated><title type='text'>MS Office in Linux</title><content type='html'>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;In the newer versions of wine is incredible easy to install the versions of MS Office prior to 2007, but after doing that I had some little trouble on how to make KDE use the MS Office Applications to correctly open a MS Office&lt;/span&gt; document when I click on it.&lt;br /&gt;
&lt;br /&gt;
Well, the answer, as usually happens in Unixes, come as the form of a script.&lt;br /&gt;
&lt;br /&gt;
Actually, two scripts for each MS Office application, on when you call it via shell and the other to be used exclusively when it is called by KDE.&lt;br /&gt;
&lt;br /&gt;
Here is the one to be used by the KDE configuration, I usually place it under /usr/local/bin/winword-gui, and here are its contents:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#!/bin/bash&lt;br /&gt;
FILENM=$( basename &quot;$@&quot; )&lt;br /&gt;
UNXDIR=$( dirname &quot;$@&quot; )&lt;br /&gt;
WINDIR=$( echo $UNXDIR | sed &#39;s@\/@\\@g&#39; )&lt;br /&gt;
DOCPTH=&quot;Z:$WINDIR\\$FILENM&quot;&lt;br /&gt;
/usr/bin/wine &quot;C:\Program Files\Microsoft Office\Office12\WINWORD.EXE&quot; &quot;$DOCPTH&quot; &amp;amp;&lt;/div&gt;&lt;br /&gt;
After creating this file you just right click on some .doc file in KDE and go &quot;Open with -&amp;gt; Other&quot; and select the file you created.&lt;br /&gt;
&lt;br /&gt;
And, if you want to call it via shell, you can have this other script named /usr/local/bin/winword:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#!/bin/bash&lt;br /&gt;
/usr/bin/wine &quot;C:\Program Files\Microsoft Office\Office12\WINWORD.EXE&quot; &quot;$@&quot; &amp;amp;&lt;/div&gt;&lt;br /&gt;
Obviously depending on your wine configuration and office installation you need to change the last line of both scripts.&lt;br /&gt;
&lt;br /&gt;
It could also be done in just one script, but since I am so lazy I prefer to just let it like this.&lt;br /&gt;
&lt;br /&gt;
For the other MS Office applications, you create the same scripts but change the last line for the program you want (EXCEL.EXE, POWERPNT.EXE or whatever).</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/8904835132024045629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/8904835132024045629?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8904835132024045629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8904835132024045629'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/ms-office-in-linux.html' title='MS Office in Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-8295363623127804715</id><published>2010-09-15T16:19:00.000-05:00</published><updated>2010-09-15T16:19:41.586-05:00</updated><title type='text'>Ear phone not working in HP Pavillion</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Here is what I had do add to my /etc/modprobe.d/alsa-base.conf so my ear phones start working, without it when I plugged it nothing changes, the sound keep going out only by the speakers.&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Those are the magic lines:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;alias snd-card-0 snd-hda-intel&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;alias snd-card-1 snd-usb-audio&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;alias sound-slot-0 snd-hda-intel&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;options snd-hda-intel index=0 model=hp-dv5 enable-msi=1 position-fix=1&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;options snd-usb-audio index=1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Peace! &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/8295363623127804715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/8295363623127804715?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8295363623127804715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8295363623127804715'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/ear-phone-not-working-in-hp-pavillion.html' title='Ear phone not working in HP Pavillion'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-8628729910921592908</id><published>2010-09-15T16:16:00.000-05:00</published><updated>2010-09-15T16:16:44.046-05:00</updated><title type='text'>Things I usually add to my bashrc</title><content type='html'>Here are some little things I usually like to add to my bash configuration, since I used debian the file is /etc/bash.bashrc, but could also be ~/.bashrc:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;readonly HISTTIMEFORMAT=&quot;%d/%m/%Y at %T: &quot;&lt;br /&gt;
readonly HISTFILESIZE=5000&lt;br /&gt;
export HISTCONTROL=&quot;erasedups&quot;&lt;br /&gt;
readonly command_oriented_history=1&lt;br /&gt;
export HISTTIMEFORMAT HISTFILESIZE HISTCONTROL command_oriented_history&lt;br /&gt;
source /usr/bin/funcoeszz&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;shopt -s histappend&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;shopt -s cdspell&lt;br /&gt;
shopt -s dirspell&lt;br /&gt;
history -a&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;set -o vi&lt;br /&gt;
if [ -x /usr/games/fortune ]; then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/games/fortune -a&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo&lt;br /&gt;
fi&lt;/div&gt;&lt;br /&gt;
Much funnier than default!</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/8628729910921592908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/8628729910921592908?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8628729910921592908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8628729910921592908'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/things-i-usually-add-to-my-bashrc.html' title='Things I usually add to my bashrc'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-8777448430415127921</id><published>2010-09-13T17:51:00.002-05:00</published><updated>2010-09-13T17:59:46.821-05:00</updated><title type='text'>Backup Files Bigger than 4Gb in FAT Filesystems</title><content type='html'>Sometimes we need to copy files to Fat filesystem that are larger than 4Gb, which this filesystem do not support, if I need to do that just for some period (as backup), I use the following:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ rar a -m0 -v500M -R &amp;lt;rar-file-name&amp;gt; &amp;lt;original-file&amp;gt;&lt;/div&gt;&lt;br /&gt;
It won&#39;t compress the file (&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-m0&lt;/span&gt; parameter) and will divide the file into smaller 500M file (&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-v500M&lt;/span&gt; parameter).&lt;br /&gt;
&lt;br /&gt;
I already used it in a lot of situations where I really needed to free some space in a more decent filesystem (usually my XFS home or root partitions).&lt;br /&gt;
&lt;br /&gt;
Peace!</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/8777448430415127921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/8777448430415127921?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8777448430415127921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8777448430415127921'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/create-files-bigger-than-4gb-in-fat.html' title='Backup Files Bigger than 4Gb in FAT Filesystems'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-528539483615671451</id><published>2010-09-13T17:35:00.001-05:00</published><updated>2010-09-13T17:35:42.770-05:00</updated><title type='text'>Backup with rsync</title><content type='html'>Millions of years after the last post I decided to make it come to live again, lets see for how long.&lt;br /&gt;
&lt;br /&gt;
Simple, simple thing to start the new era, that&#39;s how I am usually making the backups from my work directory in my machine to the external disk:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;rsync -av --link-dest=/Backups/2010-09-07/ ~/Work/ /Backups//2010-09-08/&lt;/div&gt;&lt;br /&gt;
This way everything that already exists in the previous backup (2010-09-10 directory) will be hard linked to the new backup, so my space is not all wasted and I can keep track of what was changed from backup to backup.&lt;br /&gt;
&lt;br /&gt;
That&#39;s funny how the size is shown when you use those hard links:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ mkdir 1 2&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ dd if=/dev/zero of=./1/somefile bs=1k count=5120&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;5120+0 records in&lt;br /&gt;
5120+0 records out&lt;br /&gt;
5242880 bytes (5.2 MB) copied, 0.0218812 s, 240 MB/s&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ ls -lrth * &lt;br /&gt;
2:&lt;br /&gt;
total 0&lt;br /&gt;
&lt;br /&gt;
1:&lt;br /&gt;
total 5.0M&lt;br /&gt;
-rw-r--r-- 1 andre wheel 5.0M Sep 13 17:32 somefile&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ ln 1/somefile 2/somefile-hard-link&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ ls -lrth *&lt;br /&gt;
1:&lt;br /&gt;
total 5.0M&lt;br /&gt;
-rw-r--r-- 2 andre wheel 5.0M Sep 13 17:32 somefile&lt;br /&gt;
&lt;br /&gt;
2:&lt;br /&gt;
total 5.0M&lt;br /&gt;
-rw-r--r-- 2 andre wheel 5.0M Sep 13 17:32 somefile-hard-link&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ du -ksh * &lt;br /&gt;
5.0M&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;
0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ rm 1/somefile&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ ls -lrth * &lt;br /&gt;
2:&lt;br /&gt;
total 5.0M&lt;br /&gt;
-rw-r--r-- 1 andre wheel 5.0M Sep 13 17:32 somefile-hard-link&lt;br /&gt;
&lt;br /&gt;
1:&lt;br /&gt;
total 0&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ du -ksh * &lt;br /&gt;
0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;
5.0M&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/div&gt;&lt;br /&gt;
Nice, hm?</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/528539483615671451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/528539483615671451?isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/528539483615671451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/528539483615671451'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2010/09/backup-com-rsync.html' title='Backup with rsync'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-8571380095385094136</id><published>2008-02-13T07:41:00.006-06:00</published><updated>2008-02-13T07:48:25.651-06:00</updated><title type='text'>Configurando Nail para conta do Gmail</title><content type='html'>&lt;span style=&quot;font-family:arial;&quot;&gt;Complementando o e-mail anterior, segue descrição de como configurar o comando &lt;span style=&quot;font-family:courier new;&quot;&gt;&quot;nail&quot;&lt;/span&gt; para enviar e-mails através de uma conta do gmail.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Adicione as seguintes linhas no arquivo &lt;span style=&quot;font-family:courier new;&quot;&gt;~/.mailrc&lt;/span&gt; (dependendo da configuração do nail pode ser &lt;span style=&quot;font-family:courier new;&quot;&gt;~/.nailrc&lt;/span&gt;):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;account &lt;nome&gt;|NOME DA CONTA| {&lt;/nome&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;set imap-use-starttls&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;set smtp-use-starttls&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;set folder=imap://|SEU USUARIO|&lt;seu&gt;@gmail.com&lt;/seu&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;set smtp=smtp://smtp.gmail.com:587&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;set from=&quot;&lt;seu&gt;|SEU USUARIO|@gmail.com (&lt;descricao&gt;|SUA SENHA|)&quot;&lt;/descricao&gt;&lt;/seu&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;set smtp-auth=login&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;set smtp-auth-user=|SEU USUARIO|&lt;seu&gt;&lt;/seu&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;set smtp-auth-password=|SUA SENHA|&lt;br /&gt;set MBOX=~/.maildir&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Onde os valores entre &lt;span style=&quot;font-family:courier new;&quot;&gt;&quot;|&quot;&lt;/span&gt; são variáveis que devem ser alteradas com os dados particulares de cada um.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/8571380095385094136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/8571380095385094136?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8571380095385094136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8571380095385094136'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2008/02/configurando-nail-para-conta-do-gmail.html' title='Configurando Nail para conta do Gmail'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-1748809543853947378</id><published>2008-02-09T16:08:00.000-06:00</published><updated>2008-02-12T08:27:20.251-06:00</updated><title type='text'>getIP: Enviando seu IP via e-mail</title><content type='html'>Eu sempre acesso o meu micro remotamente. Sempre. Tenho IP dinâmico e uma conta no DynDns.org que o meu roteadorzinho está sempre atualizando, porém essa semana ele não atualizou o endereço, deu uma mensagem que não conseguiu e só! O router não é aberto o suficiente para que eu possa debugar melhor.&lt;br /&gt;&lt;br /&gt;Resultado, escrevi esse script para verificar meu ip no site http://whatismyip.com, e, se ele tiver sido alterado, ele envia um e-mail para mim com o novo IP.&lt;br /&gt;&lt;br /&gt;Bem simples, já devem ter milhares de scripts assim mundo afora.&lt;br /&gt;&lt;br /&gt;De qualquer forma deixo ele aqui para quem quiser.&lt;br /&gt;&lt;br /&gt;Pré Requisitos:&lt;br /&gt;   Navegador modo texto (recomendado: links)&lt;br /&gt;   E-mail modo texto (recomendado: nail)&lt;br /&gt;&lt;br /&gt;E aqui está o script:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;font-family:courier new;&quot; &gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;a href=&quot;http://www.dc.ufscar.br/%7Eandre_saunite/scripts/getIP.sh&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;http://www.dc.ufscar.br/~andre_saunite/scripts/getIP.sh&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/1748809543853947378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/1748809543853947378?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/1748809543853947378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/1748809543853947378'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2008/02/getip-enviando-seu-ip-via-e-mail.html' title='getIP: Enviando seu IP via e-mail'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-5970424983559636601</id><published>2008-01-11T14:40:00.000-06:00</published><updated>2008-01-11T14:41:12.091-06:00</updated><title type='text'>Engraçado...</title><content type='html'>Engraçado como ninguém quer morrer mas todos querem que as semanas passem rápido...</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/5970424983559636601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/5970424983559636601?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/5970424983559636601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/5970424983559636601'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2008/01/engraado.html' title='Engraçado...'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-9168070071866444149</id><published>2007-11-01T05:15:00.000-06:00</published><updated>2007-11-01T05:22:55.294-06:00</updated><title type='text'>&quot;Open With Vim&quot; no menu de contexto do Windows</title><content type='html'>Para adicionar uma entrada no menu de contexto do windows para &quot;Abrir com Vim&quot; adicione a seguinte entrada no registro:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://2.bp.blogspot.com/__egBYrxx1yQ/Rym17BVaEsI/AAAAAAAAAAM/FZnLsc_CLWE/s1600-h/openWithVim.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;http://2.bp.blogspot.com/__egBYrxx1yQ/Rym17BVaEsI/AAAAAAAAAAM/FZnLsc_CLWE/s320/openWithVim.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5127829676313154242&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Usei isso no windows 2k, não sei se em outros é igual.&lt;br /&gt;&lt;br /&gt;A tempo, para quem não sabe &quot;Menu de Contexto&quot; é o menu que aparece quando clicamos com o botão direito em cima de algum arquivo.</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/9168070071866444149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/9168070071866444149?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/9168070071866444149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/9168070071866444149'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2007/11/open-with-vim-no-menu-de-contexto-do.html' title='&quot;Open With Vim&quot; no menu de contexto do Windows'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/__egBYrxx1yQ/Rym17BVaEsI/AAAAAAAAAAM/FZnLsc_CLWE/s72-c/openWithVim.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-6381088234129477014</id><published>2007-08-07T23:49:00.000-05:00</published><updated>2007-08-08T08:41:38.649-05:00</updated><title type='text'>Configurações do xterm</title><content type='html'>Aqui vão algumas configurações legais que encontrei para o xterm, antigamente sempre utilizava essas opções através da linha de comando, porém colocar num arquivo de configurações facilita muito, não é?&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;# Tirar o negrito (bold)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*wideChars: false&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*boldMode: false&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*boldColors: false&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*colorBDMode: false&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*colorBD: yellow&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*font: 7x14&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*boldFont: 7x14&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;# Habillitar alt para utilizar corretamente os atalhos do bash ao invés de enviar caracteres estranhos&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*metaSendsEscape: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;# Deixar fundo negro e letras brancas&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*foreground: white&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*background: black&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;# A Shell sempre lê os scripts de login&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*loginShell: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;# Habilita a barra de rolagem&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*scrollBar: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;# Bell visual ao invés de &quot;bip&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*visualBell: true&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;# Número de linhas no buffer&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;XTerm*saveLines: 65500&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;Depois de salvo execute o seguinte comando:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;font-family:courier new;&quot; &gt;xrdb -merge .Xdefaults&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Esses arquivos podem ter as mais diversas configurações, não apenas do xterm, mas de várias aplicações do X.</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/6381088234129477014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/6381088234129477014?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/6381088234129477014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/6381088234129477014'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2007/08/configuraes-do-xterm.html' title='Configurações do xterm'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-8042311140935153348</id><published>2007-05-06T00:20:00.000-05:00</published><updated>2007-05-06T00:22:30.613-05:00</updated><title type='text'></title><content type='html'>Para mudar as fontes padrões do gvim:&lt;br /&gt;&lt;br /&gt;edite o arquivo &lt;span style=&quot;font-family: courier new;&quot;&gt;~/.gvimrc&lt;/span&gt; ou &lt;span style=&quot;font-family: courier new;&quot;&gt;/etc/vim/gvimrc&lt;/span&gt; e adicione/altere a linha:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;set guifont=Monospace\ 12&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para a fonte e tamanho que preferir!</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/8042311140935153348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/8042311140935153348?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8042311140935153348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8042311140935153348'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2007/05/para-mudar-as-fontes-padres-do-gvim.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-384176150123497289</id><published>2007-03-25T17:28:00.000-06:00</published><updated>2007-03-26T05:00:32.253-06:00</updated><title type='text'>Driver 1.0.9755 da NVidia com letras enormes</title><content type='html'>Atualizei meu driver da NVidia para a última versão (1.0.9755) e todas as letras ficaram muito grandes!&lt;br /&gt;&lt;br /&gt;Uma breve busca pelo google me revelou a &lt;a href=&quot;http://www.nvnews.net/vbulletin/showthread.php?t=88125&quot;&gt;solução&lt;/a&gt;: Inserir a seguinte linha na sessão &quot;Device&quot; do /etc/X11/xorg.conf:&lt;br /&gt;&lt;br /&gt;Option &quot;UseEDIDDpi&quot; &quot;FALSE&quot;&lt;br /&gt;&lt;br /&gt;Até!</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/384176150123497289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/384176150123497289?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/384176150123497289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/384176150123497289'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2007/03/driver-109755-da-nvidia-com-letras.html' title='Driver 1.0.9755 da NVidia com letras enormes'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-7228526196192214672</id><published>2007-03-25T16:02:00.000-06:00</published><updated>2007-03-25T16:25:02.447-06:00</updated><title type='text'>Convertendo Máquinas Reais em Virtuais com VMWare</title><content type='html'>Você prefere utilizar linux mas existem algumas aplicações do windows que você sempre precisa acessar?&lt;br /&gt;&lt;br /&gt;Está cansado dessa vida de reiniciar o computador sempre apenas para rodar uns poucos programas?&lt;br /&gt;&lt;br /&gt;Seus problemas acabaram!&lt;br /&gt;&lt;br /&gt;Crie uma máquina virtual do seu windows com o vmware converter:&lt;br /&gt;&lt;a href=&quot;http://www.vmware.com/products/converter/&quot;&gt;http://www.vmware.com/products/converter/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;E depois instale no seu linux o vmware player:&lt;br /&gt;&lt;a href=&quot;http://www.vmware.com/products/player/&quot;&gt;http://www.vmware.com/products/player/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;E pronto! Você tem um windows dentro do linux para poder acessar as (poucas) aplicações que não existem uma versão para linux!&lt;br /&gt;&lt;br /&gt;No meu caso eu tive um pequeno problema na hora de converter o windows para uma máquina virtual, precisei aumentar o tamanho do registro para que a conversão fosse feita,&lt;br /&gt;&lt;br /&gt;No momento da instalação do vmware ele pergunta sobre os diretórios rc.[0-6].d, caso a sua distribuição não use essa estrutura de diretórios pode-se enganar o instalador criando-os,&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# mkdir -p /opt/vmware/rc{1,2,3,4,5,6}.d&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Antes de se iniciar o vmware é necessário sempre que os modulos sejam carregados, isso pode ser feito &quot;na mão&quot;,&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# /opt/vmware/vmware start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(Considerando que o vmware foi instalado no diretório /opt/vmware)&lt;br /&gt;&lt;br /&gt;Ou pode-se adicionar o script vmware utilizado acima na inicialização do sistema, no caso do gentoo:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# ln -s /opt/vmware/vmware /etc/init.d/vmware&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# rc-update add vmware default&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;E pronto!</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/7228526196192214672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/7228526196192214672?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/7228526196192214672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/7228526196192214672'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2007/03/convertendo-mquinas-reais-em-virtuais.html' title='Convertendo Máquinas Reais em Virtuais com VMWare'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-1549256069274364868</id><published>2007-03-25T15:23:00.000-06:00</published><updated>2007-07-24T20:44:47.828-05:00</updated><title type='text'>Utilizando o Installwatch</title><content type='html'>Para quem usa Slackware, Debian ou RedHat um ótimo software para se usar na hora de instalar programas a partir do código fonte é o checkinstall, ele gera um pacote com o software sendo compilado para que depois possa ser instalado/desinstalado com facilidade,&lt;br /&gt;&lt;br /&gt;A maior utilidade desse software para mim é a facilidade de desinstalação.&lt;br /&gt;Porém agora estou utilizando o gentoo, pois foi a melhor distro que encontrei para 64 bits.&lt;br /&gt;&lt;br /&gt;Por causa disso descobri que o checkinstall é baseado em um outro software chamado installwatch, que faz toda a parte de gerenciamento dos arquivos que estão sendo instalados.&lt;br /&gt;Depois de muito tempo procurando pelo installwatch pela internet eu descobri que ele se encontra no próprio fonte do checkinstall,&lt;br /&gt;&lt;br /&gt;Então para se instalar façamos o seguinte:&lt;br /&gt;&lt;br /&gt;Baixe o checkinstall: &lt;a href=&quot;http://asic-linux.com.mx/%7Eizto/checkinstall/&quot;&gt;http://asic-linux.com.mx/~izto/checkinstall/&lt;/a&gt;&lt;br /&gt;E faça o seguinte:&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ tar xvfz checkinstall-1.6.0.tgz&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ cd checkinstall-1.6.0/installwatch-0.7.0beta4/&lt;br /&gt;$ make&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Agora crie os diretórios onde teremos informações dos pacotes instalados e removidos:&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# mkdir /var/{install,uninstall}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;E pronto, agora sempre que compilar um pacote, ao invés de utilizar o famoso &quot;make install&quot;, use:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# installwatch -o /var/install/NOME_DO_SOFTWARE&lt;/span&gt;&lt;nome_pacote&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;nome_software&gt; make install&lt;/nome_software&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;E pronto, será criado um arquivo em &lt;span style=&quot;font-family: courier new;&quot;&gt;/var/install&lt;/span&gt; com o nome do software instalado e informação de todos arquivos criados,&lt;br /&gt;&lt;br /&gt;Para facilitar o processo de instalação pode-se criar um alias:&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# alias iw=&#39;installwatch -o /var/install/$(basename $(pwd))&#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A linha acima pode ser adicionada ao arquivo &lt;span style=&quot;font-family: courier new;&quot;&gt;/etc/profile&lt;/span&gt;, para que tenhamos esse alias sempre que iniciarmos uma sessão, apenas note que o nome do arquivo que ficará no diretório &lt;span style=&quot;font-family: courier new;&quot;&gt;/var/install&lt;/span&gt; é o nome do diretório onde você se encontra, tome os devidos cuidados para não estar num diretório com o nome incorreto ou com o nome que pode sobrescrever a informação de outro pacote previamente instalado, particularmente eu tive apenas esse &quot;problema&quot; quando compilando pacotes cvs que tinham o diretório &quot;trunk&quot;.&lt;br /&gt;&lt;br /&gt;E ao invés de digitar toda a enorme linha acima para se instalar o pacote é só utilizar:&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# iw make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para se desinstalar podemos utilizar o script nuke da seguinte forma:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new;&quot;&gt;# nuke /var/install/NOME_DO_SOFTWARE&lt;/span&gt;&lt;nome_do_software\&gt;&lt;nome_software&gt;&lt;nome_do_pacote&gt;&lt;br /&gt;&lt;br /&gt;Segue um link para o script &lt;a href=&quot;http://www.dc.ufscar.br/%7Eandre_saunite/scripts/nuke&quot;&gt;nuke&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;feztaa@shaw.ca&gt;&lt;zenithlau@sniic.com&gt;&lt;install&gt;Um muito obrigado aos criadores desses softwares! Meu sistema estaria cheio de lixo sem eles!&lt;/install&gt;&lt;/zenithlau@sniic.com&gt;&lt;/feztaa@shaw.ca&gt;&lt;/nome_do_pacote&gt;&lt;/nome_software&gt;&lt;/nome_do_software\&gt;&lt;/nome_pacote&gt;</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/1549256069274364868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/1549256069274364868?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/1549256069274364868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/1549256069274364868'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2007/03/usando-o-installwatch.html' title='Utilizando o Installwatch'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-8861065401237873783</id><published>2007-03-25T15:02:00.002-06:00</published><updated>2007-06-30T19:54:27.997-05:00</updated><title type='text'>Kiba-dock no Gentoo</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;Update:&lt;/span&gt; Alguns passos foram atualizados em 16-06-2007 pois não compilava mais com os passos antigos e agora os pacotes dependem de &quot;gnome-desktop&quot; e &quot;libxml&quot;.&lt;br /&gt;&lt;br /&gt;Últimamente eu ando muito empolgado brincando com o meu gentoo, principalmente com o Beryl,&lt;br /&gt;&lt;br /&gt;Dai pra melhorar ainda mais meu desktop resolvi procurar um dock no estilo da do Mac OS, e achei o kiba-dock,&lt;br /&gt;&lt;br /&gt;Bom a instalação é deveras simples:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# emerge -a gnome-desktop dev-libs/libxml&lt;br /&gt;$ mkdir kiba-dock&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ cd kiba-dock/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ svn co http://svn.kiba-dock.org/akamaru/ akamaru&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ svn co http://svn.kiba-dock.org/kibadock/ kibadock&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ svn co http://svn.kiba-dock.org/kibaplugins/ kibaplugins&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ svn co http://svn.kiba-dock.org/gsetkiba/ gsetkiba&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ cd akamaru/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ ./autogen.sh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ make&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# iw make install&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ export PKG_CONFIG_PATH=&quot;$&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;PKG_CONFIG_PATH:&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;/usr/local/lib/pkgconfig/&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ cd ../kibadock/trunk/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ ./autogen.sh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ make&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;# iw make install&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ ../kibaplugins/trunk/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ ./autogen.sh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; $ make&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt; # iw make install&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ cd ../gsetkiba/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;$ ./autogen.sh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;  $ make&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;  # iw make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;E pronto! Antes de instalar o kibadock precisamos setar o &lt;span style=&quot;font-family:courier new;&quot;&gt;PKG_CONFIG_PATH&lt;/span&gt; apontando para onde estiver o arquivo &lt;span style=&quot;font-family: courier new;&quot;&gt;akamaru.pc&lt;/span&gt;, que é criado por default &lt;span style=&quot;font-family: courier new;&quot;&gt;/usr/local/lib/pkgconfig/&lt;/span&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Configurações avançadas podem ser feitas com o comando &lt;span style=&quot;font-family:courier new;&quot;&gt;kiba-settings&lt;/span&gt;.</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/8861065401237873783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/8861065401237873783?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8861065401237873783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/8861065401237873783'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2007/03/kiba-dock-no-gentoo.html' title='Kiba-dock no Gentoo'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1047534008909792748.post-3867980420089256753</id><published>2007-03-25T14:41:00.000-06:00</published><updated>2007-03-25T14:50:01.517-06:00</updated><title type='text'>Mais uma vez</title><content type='html'>Depois de muito tempo estou mais uma vez tentando criar um blog com um minimo de coisas interessantes,&lt;br /&gt;&lt;br /&gt;Bom, pretendo fazer dessa página algo mais voltado para computação, principalmente linux e open-source,&lt;br /&gt;&lt;br /&gt;Meus planos eram de criar um site totalmente meu, mas como não tenho nenhuma máquina para usar de servidor web estou criando esse site no blogspot,&lt;br /&gt;&lt;br /&gt;Vamos ver o resultado!</content><link rel='replies' type='application/atom+xml' href='http://saunite.blogspot.com/feeds/3867980420089256753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1047534008909792748/3867980420089256753?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/3867980420089256753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1047534008909792748/posts/default/3867980420089256753'/><link rel='alternate' type='text/html' href='http://saunite.blogspot.com/2007/03/mais-uma-vez.html' title='Mais uma vez'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>