<?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-2769708467331717473</id><updated>2025-11-06T07:22:30.031-03:00</updated><category term="Programação"/><category term="Dicas Rápidas"/><category term="Internet"/><category term="CakePHP"/><category term="PHP"/><category term="Ubuntu 8.04"/><category term="Kurumin"/><category term="Multimídia"/><category term="Shell Script"/><category term="Ubuntu 12.04"/><category term="Edição de Legendas"/><category term="Ubuntu 11.04"/><category term="Drupal"/><category term="Ubuntu 10.04"/><category term="Android"/><category term="BrOffice"/><category term="Firefox"/><category term="SublimeText"/><category term="Ubuntu 16.04"/><category term="Ubuntu 9.04"/><title type='text'>Linuxnomicro</title><subtitle type='html'>Dicas de Linux para Desktop</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-3880028576749074679</id><published>2018-01-01T21:54:00.001-02:00</published><updated>2018-01-01T21:56:36.358-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CakePHP"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><category scheme="http://www.blogger.com/atom/ns#" term="SublimeText"/><title type='text'>Usando o PHPCodeSniffer no SublimeText</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Em 2014 fiz um post explicando como instalar e configurar o PHPCodeSniffer no Eclipse (&lt;a href=&quot;http://linuxnomicro.blogspot.com.br/2014/11/php-codesniffer-validando-seu-estilo-de.html&quot;&gt;Php CodeSniffer validando seu estilo de código PHP no Eclipse&lt;/a&gt;), hoje vamos aprender como fazer o mesmo no SublimeText 3.&lt;/div&gt;
&lt;br /&gt;
&lt;h4&gt;
1. Instalação do Package Control&lt;/h4&gt;
A forma mais simples de instalar extensões no Sublime é através do Package Control, &lt;a href=&quot;https://packagecontrol.io/&quot;&gt;https://packagecontrol.io/&lt;/a&gt;, o gerenciador de pacotes do Sublime. Se você ainda não tem ele instalado, siga as instruções da página de instalação, &lt;a href=&quot;https://packagecontrol.io/installation&quot;&gt;https://packagecontrol.io/installation&lt;/a&gt;, que basicamente é copiar o comando de instalação de acordo com a versão do seu SublimeText no console do Sublime e aguardar o download e instalação. Depois de instalado, o item Pakage Control é adicionado ao menu Preferences.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhregxbuGjtml03gS0NWqJl00drKS_FlWGaHVCnrFnZPXyY-_aMf4BWzY66_yBS6EV8SIFUbtMU92kO-3ie8Q85W7wX4jAqfhZsNHgtnff4gaf5hFOF0dzK4-eCJlSjd5n3D_CmI9LZsuE/s1600/package_control.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;357&quot; data-original-width=&quot;388&quot; height=&quot;367&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhregxbuGjtml03gS0NWqJl00drKS_FlWGaHVCnrFnZPXyY-_aMf4BWzY66_yBS6EV8SIFUbtMU92kO-3ie8Q85W7wX4jAqfhZsNHgtnff4gaf5hFOF0dzK4-eCJlSjd5n3D_CmI9LZsuE/s400/package_control.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
2. Instalação do Plugin Phpcs - PHPCodeSniffer&lt;/h4&gt;
O plugin utilizado que faz o PHPCodeSniffer funcionar no SublimeText é o Phpcs, &lt;a href=&quot;https://packagecontrol.io/packages/Phpcs&quot;&gt;https://packagecontrol.io/packages/Phpcs&lt;/a&gt;, sua instalação é feita pelo Package Control.&lt;br /&gt;
&lt;br /&gt;
Clicando no item Package Control do menu Preferences, a tela do gerenciador de pacotes é aberta.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTYXOWOs2p6Go0pkSdKDAhgbbpOOjh9FoCn_ZDW4nGOsEPwKQlzUPxnNmYBP_xxTAYyG_QaQCJcwJXxhdvdhOb78cyTZvzlz1HEVEXPU4EkBzTlF43nZLcg93gLp3aVP4yMwISXqnBabI/s1600/install_pkg.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;493&quot; data-original-width=&quot;573&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTYXOWOs2p6Go0pkSdKDAhgbbpOOjh9FoCn_ZDW4nGOsEPwKQlzUPxnNmYBP_xxTAYyG_QaQCJcwJXxhdvdhOb78cyTZvzlz1HEVEXPU4EkBzTlF43nZLcg93gLp3aVP4yMwISXqnBabI/s400/install_pkg.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Ao clicar na opção Install Package, aparece uma caixa de seleção com os pacotes disponíveis para instalação. Basta escrever phpcs e clicar no item que o Package Control faz o resto.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBoRFhHBAwub5PibIr959KwAuyMIALpwN2r7kVsgQDVfVXQ25XM60zssnUa2V11W3fXtHeOUl-S9tULazRTBoyVO-x9a39svoUPLfvgK3hi7LMPv-qpmiwH1FG74NNQdVYfBE4zJeBVkU/s1600/instal_phpcs.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;463&quot; data-original-width=&quot;589&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBoRFhHBAwub5PibIr959KwAuyMIALpwN2r7kVsgQDVfVXQ25XM60zssnUa2V11W3fXtHeOUl-S9tULazRTBoyVO-x9a39svoUPLfvgK3hi7LMPv-qpmiwH1FG74NNQdVYfBE4zJeBVkU/s400/instal_phpcs.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
 3. Instalar o php-pear e o PHP_CodeSniffer&lt;/h4&gt;
Com o plugin do Sublime instalado, vamos instalar o &quot;motor&quot; para seu funcionamento. Em primeiro lugar, instalamos o gerenciador de pacotes pear do PHP&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo apt install php-pear&lt;/blockquote&gt;
Por padrão, o PHP Code Sniffer do SublimeText está configurado para trabalhar usando o padrão PSR2, &lt;a href=&quot;http://www.php-fig.org/psr/psr-2/&quot;&gt;http://www.php-fig.org/psr/psr-2/&lt;/a&gt;, que é o padrão atual usado pela maioria dos Frameworks PHP, inclusive o CakePHP 3. Desta forma, após a instalação PHP_CodeSniffer, o plugin do Sublime já estará funcionando.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo pear install PHP_CodeSniffer&lt;/blockquote&gt;
Criando um arquivo de teste e uma classe vazia, ao salvá-lo, podemos conferir que o phpcs já está trabalhando.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilkQRfbP-RTq4PO14pYLhT2rORA9KBfGvN377jvuphhwLeZ1BV1rAHIPvRIY-JVgojqJWWzKuRx0K7LF7UO1Pa4rF3jUHhaSB0ei0sgMt7x90Z8ZtrIGgGfhMPwUM4kVwNddQTyujFA3Q/s1600/phpcs_psr2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;348&quot; data-original-width=&quot;1041&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilkQRfbP-RTq4PO14pYLhT2rORA9KBfGvN377jvuphhwLeZ1BV1rAHIPvRIY-JVgojqJWWzKuRx0K7LF7UO1Pa4rF3jUHhaSB0ei0sgMt7x90Z8ZtrIGgGfhMPwUM4kVwNddQTyujFA3Q/s640/phpcs_psr2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;/h4&gt;
&lt;h4&gt;
&lt;/h4&gt;
&lt;br /&gt;
&lt;h4&gt;
4. PHP_CodeSniffer e CakePHP 2&lt;/h4&gt;
No artigo de 2014, acrescentei a instalação do pacote de estilos do CakePHP 2, que não segue a PSR2 e sim um padrão próprio do CakePHP. Hoje, se tentarmos instalar CakePHP_CodeSniffer com o pear depois do PHP_CodeSniffer já instalado, obtemos um erro informando que a versão do CakePHP_CodeSniffer é incompátivel com o PHP_CodeSniffer instalado&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
cakephp/CakePHP_CodeSniffer requires package &quot;pear/PHP_CodeSniffer&quot; (version &amp;gt;= 1.4, version &amp;lt;= 1.5), installed version is 3.2.2&lt;br /&gt;
No valid packages found&lt;br /&gt;
install failed&lt;/blockquote&gt;
Para quem ainda tem projetos usando o CakePHP 2, uma opção é deixar que o PHP_CodeSniffer seja instalado junto com o CakePHP_CodeSniffer deixando que o próprio pear resolva a questão das dependências e instale a versão 1.4 do PHP_CodeSniffer.&lt;br /&gt;
Então, se temos o PHP_CodeSniffer instalado, precisamos primeiro desinstalá-lo.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo pear uninstall PHP_CodeSniffer&lt;/blockquote&gt;
Depois podemos adicionar o canal do pear.cakephp.org, se ainda não o fizemos e instalar diretamente CakePHP_CodeSniffer.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo pear channel-discover pear.cakephp.org&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo pear install cakephp/CakePHP_CodeSniffer&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
5. Definindo o estilo padrão&lt;/h4&gt;
O plugin phpcs permite que o padrão de estilo possa ser trocado a qualquer momento.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq0OoB5F3ipTKpjoaNY3WgvJ4jnNtv5e3FeYWXAvfzJc0IHXCtNTAlrai0ZRXTiYQedB2mjvPmDPXgTEpE_TtKXZKUJQM-IlRZyN-F3uEnBMb7aA8XY13A1YzyF5_C4PEl0fVJloXCVq8/s1600/phpcs_set_style.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;317&quot; data-original-width=&quot;452&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq0OoB5F3ipTKpjoaNY3WgvJ4jnNtv5e3FeYWXAvfzJc0IHXCtNTAlrai0ZRXTiYQedB2mjvPmDPXgTEpE_TtKXZKUJQM-IlRZyN-F3uEnBMb7aA8XY13A1YzyF5_C4PEl0fVJloXCVq8/s400/phpcs_set_style.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvSoRuYs35B_HjuSJQTTFc0qLidsjPoZrJaob4MJy2QrkJbPH3h5Ecc9tOq0EzbQ1fyptzoJAJwAlMWvPUsIxdlSos6jnt0ZvxmfauOOhZ7jOaaj62qn72qvsHF_hUxqeJ94X456xyrHs/s1600/phpcs_set_style1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;336&quot; data-original-width=&quot;591&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvSoRuYs35B_HjuSJQTTFc0qLidsjPoZrJaob4MJy2QrkJbPH3h5Ecc9tOq0EzbQ1fyptzoJAJwAlMWvPUsIxdlSos6jnt0ZvxmfauOOhZ7jOaaj62qn72qvsHF_hUxqeJ94X456xyrHs/s400/phpcs_set_style1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Mas se quisermos alterar o estilo padrão do CodeSniffer, vamos em &lt;b&gt;Preferences -&amp;gt; PHP Cod Sniffer -&amp;gt; Settings - User&lt;/b&gt; e inserimos o padrão &lt;b&gt;CakePHP&lt;/b&gt; como valor standard.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCztP2B47CvrcsHmlj2fRJp33OtBd0pp-YdauNVDeAArgmBWBM-o9S61NBRhn1wFU5QVp3iXAcoghQpGFpa1xlZ3M3Ar3LD4UHBzexb-1oi6GDq54MZLdVnPfmEU9d2HE8Zgx126b13RU/s1600/phpcs_menu.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;424&quot; data-original-width=&quot;543&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCztP2B47CvrcsHmlj2fRJp33OtBd0pp-YdauNVDeAArgmBWBM-o9S61NBRhn1wFU5QVp3iXAcoghQpGFpa1xlZ3M3Ar3LD4UHBzexb-1oi6GDq54MZLdVnPfmEU9d2HE8Zgx126b13RU/s400/phpcs_menu.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLOfnwuaQfb4iwkEriulX0vhsjknCKXxT71jsV0nh-keeuklcwpo9eXBST2R4PbYwFt9h1eAwuirw4ELD4K5gpV0YfQSKwmM4OFHDx1SmbkxuMBqYXqwK4kZvtGVIMyN-wxP5Hjfgn0XY/s1600/phpcs_sett_default.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;267&quot; data-original-width=&quot;428&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLOfnwuaQfb4iwkEriulX0vhsjknCKXxT71jsV0nh-keeuklcwpo9eXBST2R4PbYwFt9h1eAwuirw4ELD4K5gpV0YfQSKwmM4OFHDx1SmbkxuMBqYXqwK4kZvtGVIMyN-wxP5Hjfgn0XY/s400/phpcs_sett_default.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Até mais...&lt;br /&gt;
&lt;b&gt;Francisco!&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/3880028576749074679/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/3880028576749074679' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/3880028576749074679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/3880028576749074679'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2018/01/usando-o-phpcodesniffer-no-sublimetext.html' title='Usando o PHPCodeSniffer no SublimeText'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhregxbuGjtml03gS0NWqJl00drKS_FlWGaHVCnrFnZPXyY-_aMf4BWzY66_yBS6EV8SIFUbtMU92kO-3ie8Q85W7wX4jAqfhZsNHgtnff4gaf5hFOF0dzK4-eCJlSjd5n3D_CmI9LZsuE/s72-c/package_control.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-480518640818588554</id><published>2017-08-07T21:32:00.001-03:00</published><updated>2017-08-07T21:32:21.892-03:00</updated><title type='text'>Ubuntu 17.10 Corrigindo erro ao instalar drivers extras da HP no SImple Scan</title><content type='html'>&lt;div&gt;
&lt;div&gt;
Hoje, ao tentar instalar os drivers necessários para o uso do Simple SCAN no Ubuntu 17.10 Alpha 2, o sistema apresentou o seguinte erro, depois não consegui mais atualizar ou instalar qualquer aplicativo.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
dpkg: erro ao processar o arquivo /var/cache/apt/archives/libperl5.24_5.24.1-7ubuntu1_i386.deb (--unpack):&lt;br /&gt;&amp;nbsp;a tentar sobreescrever &#39;/usr/share/doc/libperl5.24/changelog.Debian.gz&#39; partilhado, que é diferente de outras instâncias do pacote libperl5.24:i386&lt;br /&gt;Erros foram encontrados durante o processamento de:&lt;br /&gt;&amp;nbsp;/var/cache/apt/archives/libperl5.24_5.24.1-7ubuntu1_i386.deb&lt;br /&gt;E: Sub-process /usr/bin/dpkg returned an error code (1)&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Para corrigir, tive que forçar a instalação da biblioteca:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;sudo dpkg -i --force-overwrite /var/cache/apt/archives/libperl5.24_5.24.1-7ubuntu1_i386.deb&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Depois disso o sistema voltou ao normal, consegui realizar normalmente o update e upgrade.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/480518640818588554/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/480518640818588554' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/480518640818588554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/480518640818588554'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2017/08/ubuntu-1710-corrigindo-erro-ao-instalar.html' title='Ubuntu 17.10 Corrigindo erro ao instalar drivers extras da HP no SImple Scan'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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-2769708467331717473.post-5241032447433937189</id><published>2016-05-27T18:09:00.002-03:00</published><updated>2016-05-27T18:10:45.058-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 16.04"/><title type='text'>PhpPgAdmin - corrigindo erro na exportação de dados - Ubuntu 16.04</title><content type='html'>Observei que a função de exportar dados no PhpPgAdmin não está funcionando para as opções de COPY e SQL, a opção Download gera um arquivo vazio. Resolvi testar opção Exibir, mas apenas é mostrada uma página em branco, sem nenhuma pista do erro.&lt;br /&gt;
Procurei na internet por erros de dump no PhpPgAdmin, mas não obtive sucesso.&lt;br /&gt;
Buscando um pouco mais, esbarrei com um artigo que ensina instalar e configurar o PhpPgAdmin no &lt;a href=&quot;https://wiki.archlinux.org/index.php/PhpPgAdmin&quot; target=&quot;_blank&quot;&gt;ArchLinux&lt;/a&gt; e entre as explicações das configurações, uma me chamou a atenção, os arquivos de log. Então, seguindo o error.log do Apache vi que a última linha era exatamente um erro no pg_dump:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;/usr/lib/postgresql/9.5/bin/pg_dump: invalid option -- &#39;i&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Try &quot;pg_dump --help&quot; for more information.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
A minha chance de encontrar o erro no PhpPgAdmin ressurgiu, pesquisei um pouco mais e vi que no passado já houve casos de erros nas opções do pg_dump e que elas são carregadas no arquivo:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;/usr/share/phppgadmin/dbexport.php&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Abrindo o arquivo com o Gedit,&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;$ sudo &amp;nbsp;gedit /usr/share/phppgadmin/dbexport.php&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Encontrei o erro na linha 76 explicada na linha 75:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;// Build command for executing pg_dump. &amp;nbsp;&#39;-i&#39; means ignore version differences.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$cmd = $exe . &#39; -i&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Retirando a opção -i e deixando apenas a variável $exe, o erro desapareceu.&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$cmd = $exe;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Os dumps do PhpPgAdmin voltaram a funcionar normalmente.&lt;br /&gt;
&lt;br /&gt;
Para completar, pesquisando o a documentação do pg_dump, li que a opção -i foi marcada como deprecated na versão 9.1 do PostgreSQL (&lt;a href=&quot;https://www.postgresql.org/docs/9.1/static/app-pgdump.html&quot;&gt;https://www.postgresql.org/docs/9.1/static/app-pgdump.html&lt;/a&gt;) e na versão atual, 9.5, ela já não aparece mais. Por isso o motivo do erro.&lt;br /&gt;
&lt;br /&gt;
Francisco AC Lima&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/5241032447433937189/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/5241032447433937189' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5241032447433937189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5241032447433937189'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2016/05/phppgadmin-corrigindo-erro-na.html' title='PhpPgAdmin - corrigindo erro na exportação de dados - Ubuntu 16.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-2506140714399892523</id><published>2014-12-04T08:34:00.000-02:00</published><updated>2014-12-04T08:34:15.129-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CakePHP"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><title type='text'>Php CodeSniffer validando seu estilo de código PHP no Eclipse</title><content type='html'>Quando comecei a programar em 2008 não tinha nenhuma preocupação com o estilo de escrita dos meus códigos, se funcionassem já era uma grande vitória. Só que conforme você vai aprendendo e se aprimorando, chega um momento em que ter um código &quot;funcionando&quot; já não é mais o suficiente, você começa a se preocupar com padrões, estilos, etc.&lt;br /&gt;
Como tenho como hábito utilizar o CakePHP foi natural começar a seguir suas regras estilo de codificação (&lt;a href=&quot;http://book.cakephp.org/2.0/pt/contributing/cakephp-coding-conventions.html&quot;&gt;http://book.cakephp.org/2.0/pt/contributing/cakephp-coding-conventions.html&lt;/a&gt;).&lt;br /&gt;
Para mim estava tudo bem, seguia o estilo do CakePHP e estava satisfeito, mas nunca me preocupei em validar, checar se meus códigos realmente estavam seguindo o estilo corretamente.&lt;br /&gt;
O tempo passou mais um pouco e dois artigos me fizeram ver que podia melhorar um pouco mais:&lt;br /&gt;
&lt;a href=&quot;http://br.phptherightway.com/#guia_de_estilo_de_codigo&quot;&gt;http://br.phptherightway.com/#guia_de_estilo_de_codigo&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.fititnt.org/padrao/php-psr.html&quot;&gt;http://www.fititnt.org/padrao/php-psr.html&lt;/a&gt;&lt;br /&gt;
No segundo artigo mencionado acima, conheci o &lt;a href=&quot;http://pear.php.net/package/PHP_CodeSniffer/&quot; target=&quot;_blank&quot;&gt;PHP CodeSniffer&lt;/a&gt; que pode ser instalado como um plugin do Eclipse e com mais um pouco de pesquisa, encontrei um pacote de regras do &lt;a href=&quot;http://pear.cakephp.org/&quot; target=&quot;_blank&quot;&gt;CakePHP&lt;/a&gt; para ser usado no CodeSniffer.&lt;br /&gt;
&lt;h3&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;h3&gt;
Preparando o Terreno&lt;/h3&gt;
Para começar, precisamos do Eclipse instalado e configurado para uso com projetos PHP. Tenho um artigo explicando isso em &lt;a href=&quot;http://linuxnomicro.blogspot.com.br/2014/03/utilizando-o-cakephp-no-eclipse.html&quot; target=&quot;_blank&quot;&gt;http://linuxnomicro.blogspot.com.br/2014/03/utilizando-o-cakephp-no-eclipse.html&lt;/a&gt;. Nesse tutorial usei o Ubuntu 12.04 com o Eclipse Kleper, como troquei de notebook, preparei este novo tutorial com o Ubuntu 14.04 e a nova versão do Eclipse &quot;Luna&quot; já com o plugin PDT instalado &lt;a href=&quot;http://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr1&quot;&gt;http://www.eclipse.org/downloads/packages/eclipse-php-developers/lunasr&lt;/a&gt;.&lt;br /&gt;
Também temos que instalar o PHP-PEAR que vai baixar o pacote de estilos do CakePHP. Abrindo o gnome-terminal execute o comando:&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;$ sudo apt-get install php-pear &lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;br /&gt;&lt;/h3&gt;
&lt;h3&gt;
Instalando o Plugin Php_CodeSniffer no Eclipse&lt;/h3&gt;
&lt;div&gt;
O plugin responsável por habilitar o CodeSniffer para o Eclipse é o PHP Toll Integration (PTI) mantido pelo &lt;a href=&quot;http://www.phpsrc.org/&quot; target=&quot;_blank&quot;&gt;PHPsrc&lt;/a&gt;.&lt;/div&gt;
Começamos abrindo a janela de instalação de plugins do Eclipse:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRz3V-7e2ac2_2S9dTSt5ArEVsD1UIzR0cR0GJcyVn7TNfM5b1Mmnd2Bdiawg6M1VAv95ir40u3zRKUmVg1oS_zhoWbrXaZ6bh-hlhkp0LdtLbrDpEjHTQ_wSC1__FUzZHEtfYo8gISQ/s1600/eclipse+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Eclipse - Install New Software&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRz3V-7e2ac2_2S9dTSt5ArEVsD1UIzR0cR0GJcyVn7TNfM5b1Mmnd2Bdiawg6M1VAv95ir40u3zRKUmVg1oS_zhoWbrXaZ6bh-hlhkp0LdtLbrDpEjHTQ_wSC1__FUzZHEtfYo8gISQ/s1600/eclipse+1.png&quot; height=&quot;353&quot; title=&quot;Eclipse - Install New Software&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Em seguida adicionamos o repositório PTI &lt;a class=&quot;external&quot; href=&quot;http://www.phpsrc.org/eclipse/pti/&quot;&gt;http://www.phpsrc.org/eclipse/pti/&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlegKzsZHF2m09gdKpfmM56KQH-G4DyaFybI3Qw7cmGvdWLcHI4WdPsFzleZ5JUeAfNo5rJ3V0gRe8misYk5AosVtwvo13HHLjX23KUMm0v_czOiLqkWXBajVUp9RVM4uqfKLJYXWdXU4/s1600/eclipse+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Eclipse add pti&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlegKzsZHF2m09gdKpfmM56KQH-G4DyaFybI3Qw7cmGvdWLcHI4WdPsFzleZ5JUeAfNo5rJ3V0gRe8misYk5AosVtwvo13HHLjX23KUMm0v_czOiLqkWXBajVUp9RVM4uqfKLJYXWdXU4/s1600/eclipse+2.png&quot; height=&quot;538&quot; title=&quot;Eclipse add pti&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; Com o repositório PTI adicionado, marcamos a instalação do PHP CodeSniffer e a PHP PEARLibrary.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyH7nnVohdugH8shd5ptIlr8B9qmeGJhqD5CcWDOhrJRWy67yz0OwJBwyE88jD87GMTvWXdA0Q2opQQ0fB_Q-VlrHIaoBSQ4L29Jji8r-dC_SydBpKm5Z9xXZT6WMYehXaD0FfMC6GAKA/s1600/eclipse+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Install Pear Library e CodeSniffer&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyH7nnVohdugH8shd5ptIlr8B9qmeGJhqD5CcWDOhrJRWy67yz0OwJBwyE88jD87GMTvWXdA0Q2opQQ0fB_Q-VlrHIaoBSQ4L29Jji8r-dC_SydBpKm5Z9xXZT6WMYehXaD0FfMC6GAKA/s1600/eclipse+3.png&quot; height=&quot;538&quot; title=&quot;Install Pear Library e CodeSniffer&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Bom, agora é next, aceitar os termos e aguardar. No final o Eclipse&amp;nbsp; vai pedir um restart.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Instalando o CakePHP_CodeSniffer e habilitando no PHP_CodeSniffer do Eclipse&amp;nbsp;&lt;/h3&gt;
O plugin CodeSniffer do Eclipse já traz alguns pacotes de estilos instalados, nada nos impede de baixar o pacote &amp;nbsp;do CakePHP_CodeSniffer manualmente e acrescentar dentro da pasta do plugin, mas vou optar por mostrar a instalação seguindo o descrito no site do projeto &amp;nbsp;&lt;a href=&quot;http://pear.cakephp.org/&quot;&gt;http://pear.cakephp.org/&lt;/a&gt;&amp;nbsp;e depois cobfigurar o PEAR no Eclipse. Então, vamos abrir o terminal e seguir os passos indicados:&lt;br /&gt;
1. Registrar o canal&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;$ sudo &lt;code&gt;&lt;/code&gt;pear channel-discover pear.cakephp.org&lt;/span&gt;&lt;br /&gt;
2.&amp;nbsp; Listar os pacotes disponíveis&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;$ sudo pear remote-list -c cakephp&lt;/span&gt;&lt;br /&gt;
3. Instalar&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;$ sudo pear install cakephp/CakePHP_CodeSniffer&lt;/span&gt;&lt;br /&gt;
Se der tudo certo, você vai receber a mensagem install:ok no terminal.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ7nh8ptWDpkVEWdhzp9H6vT8pQnBbapR-Ub4g25A8T-ufOkweLFr5FiD7QHXLDYsN5dhF0KIYB_0DYrtd7fYStDIxqgcBCiU0WUoQkkeQv2YmMuWQK6Zs8DZ3fh4NPitX3ZOySRSuOos/s1600/terminal+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;CakePHP_CodeSniffer instalado&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ7nh8ptWDpkVEWdhzp9H6vT8pQnBbapR-Ub4g25A8T-ufOkweLFr5FiD7QHXLDYsN5dhF0KIYB_0DYrtd7fYStDIxqgcBCiU0WUoQkkeQv2YmMuWQK6Zs8DZ3fh4NPitX3ZOySRSuOos/s1600/terminal+1.png&quot; height=&quot;408&quot; title=&quot;CakePHP_CodeSniffer instalado&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Bom, agora vamos configurar alterar o PEAR no Eclipse para carregar o CakePHP_CodeSniffer. No Eclipse em &lt;span style=&quot;color: #274e13;&quot;&gt;Window - Preferences - PEAR&lt;/span&gt; clique em New.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggWFBKVrD9aeUVvvXAE7w0g09FMNIJKZGRNxabudtItCjc4uk_Ka6OfAeLHJMJ_rpghNCg6xg4BnuTaFrfDM3Swb_lcvRLGRPd4mTsthyphenhyphenj2eXxb0Bhcg006GZNU5S9SuYUB1yItrnwpAQ/s1600/eclipse+6.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PEAR Install&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggWFBKVrD9aeUVvvXAE7w0g09FMNIJKZGRNxabudtItCjc4uk_Ka6OfAeLHJMJ_rpghNCg6xg4BnuTaFrfDM3Swb_lcvRLGRPd4mTsthyphenhyphenj2eXxb0Bhcg006GZNU5S9SuYUB1yItrnwpAQ/s1600/eclipse+6.png&quot; height=&quot;523&quot; title=&quot;PEAR Install&quot; width=&quot;640&quot; /&gt;&lt;/a&gt; Escolha o diretório onde o PEAR está instalado, no Ubuntu fica em /usr/share/php.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYs8YDSkT-JSrTG_NCayVUbsA3sJcjzLCT67lwo4fF09vPi6MeByNjJdyvzaTsdsxtyuHeR9kaCodE9fq6R-XoeZklrJFhrSWlRpibCl-8XA5nzO2XS5SNmrHO4yIQZF0s_tWYK17F0qU/s1600/eclipse+7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;/usr/share/php&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYs8YDSkT-JSrTG_NCayVUbsA3sJcjzLCT67lwo4fF09vPi6MeByNjJdyvzaTsdsxtyuHeR9kaCodE9fq6R-XoeZklrJFhrSWlRpibCl-8XA5nzO2XS5SNmrHO4yIQZF0s_tWYK17F0qU/s1600/eclipse+7.png&quot; height=&quot;172&quot; title=&quot;/usr/share/php&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;Depois, é só aplicar.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin9LwZYhUfQb98iZd8Cgb_KhVEkgUi-ZA6itRg5fnAPbXImT6Pt9dnTcEfQ3xWPGzu3JvCUHv1BWuUe0UVBmznG-TZrUZCJaSieEBB59ZBmReBUgvn3k7oIcIYBhLPCt5R-4F9CbhLsrs/s1600/eclipse+8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PEAR - Apply&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin9LwZYhUfQb98iZd8Cgb_KhVEkgUi-ZA6itRg5fnAPbXImT6Pt9dnTcEfQ3xWPGzu3JvCUHv1BWuUe0UVBmznG-TZrUZCJaSieEBB59ZBmReBUgvn3k7oIcIYBhLPCt5R-4F9CbhLsrs/s1600/eclipse+8.png&quot; height=&quot;502&quot; title=&quot;PEAR - Apply&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;Para que o CodeSniffer funcione no Eclipse, você indicar também onde o seu PHP client está instalado. No Ubuntu /usr/bin/php5.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitJQ0iMzCIdtcT4xRgrznJWbwiQ9i1-rYx3lpb6k1KGVRuVA1NXurBi6A3qB5Xm1iNMwplJQARPcpMIbGd1efksJbLtFwEN23qB7RvMnnc4vOQkzkPiahWWQacagKG9vih_DQG5tGJ934/s1600/eclipse+9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;/usr/bin/php5&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitJQ0iMzCIdtcT4xRgrznJWbwiQ9i1-rYx3lpb6k1KGVRuVA1NXurBi6A3qB5Xm1iNMwplJQARPcpMIbGd1efksJbLtFwEN23qB7RvMnnc4vOQkzkPiahWWQacagKG9vih_DQG5tGJ934/s1600/eclipse+9.png&quot; height=&quot;440&quot; title=&quot;/usr/bin/php5&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Para terminar troque o PEAR interno do plugin CodeSniffer pelo PEAR que você acabou de configurar, aproveite para marcar também o executável do PHP, se não o CodeSniffer não vai funcionar dentro do Eclipse.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBBkeWdsHkJ2opqJKoHFCrPbkOzw03GvkoORRC9DYIgUSExm2CFc4R0LlscYf-ltVchXpWJZxgV8LE3GyXKxXDeGqv9vkV9Q74_5sxceMTQDrYC2rnTRbkyQXj8xfU31MD0lBEG-8SA-A/s1600/eclipse+10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Configurar PEAR e PHP no plugin&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBBkeWdsHkJ2opqJKoHFCrPbkOzw03GvkoORRC9DYIgUSExm2CFc4R0LlscYf-ltVchXpWJZxgV8LE3GyXKxXDeGqv9vkV9Q74_5sxceMTQDrYC2rnTRbkyQXj8xfU31MD0lBEG-8SA-A/s1600/eclipse+10.png&quot; height=&quot;502&quot; title=&quot;Configurar PEAR e PHP no plugin&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
É isso, está feito.&lt;br /&gt;
Vejam um exemplo em funcionamento. Criei um método chamado test() e deixei alguns erros: não indiquei o retorno do método na documentação e o CodeSniffer marcou um alerta(amarelo) e não usei o nome da variável new_Test corretamente e recebi uma marca de erro (vermelho).&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNHSx44k0P12NNFu6_BP2Kcc4Dx-gMFKTCZYRoROPIj3g2lIFSHMieoA_cNNhZdJZ4X4gLeRjAnQrotq0F7kdjew-_auGx3_q27IVdqX2hY7duopqk9ZyvFtEpYSUaA7yNM_GUD0HCyGU/s1600/eclipse+11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PHP CodeSniffer em funcionamento&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNHSx44k0P12NNFu6_BP2Kcc4Dx-gMFKTCZYRoROPIj3g2lIFSHMieoA_cNNhZdJZ4X4gLeRjAnQrotq0F7kdjew-_auGx3_q27IVdqX2hY7duopqk9ZyvFtEpYSUaA7yNM_GUD0HCyGU/s1600/eclipse+11.png&quot; height=&quot;390&quot; title=&quot;PHP CodeSniffer em funcionamento&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/2506140714399892523/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/2506140714399892523' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/2506140714399892523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/2506140714399892523'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2014/11/php-codesniffer-validando-seu-estilo-de.html' title='Php CodeSniffer validando seu estilo de código PHP no Eclipse'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMRz3V-7e2ac2_2S9dTSt5ArEVsD1UIzR0cR0GJcyVn7TNfM5b1Mmnd2Bdiawg6M1VAv95ir40u3zRKUmVg1oS_zhoWbrXaZ6bh-hlhkp0LdtLbrDpEjHTQ_wSC1__FUzZHEtfYo8gISQ/s72-c/eclipse+1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-2729253536169220522</id><published>2014-04-02T15:39:00.004-03:00</published><updated>2014-04-02T16:01:15.436-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CakePHP"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><title type='text'>Instalando o TCPDF no CakePHP 2.4</title><content type='html'>Existe várias formas de gerar arquivos PDF no PHP, uma delas é através do&amp;nbsp;&lt;a href=&quot;http://www.tcpdf.org/index.php&quot; target=&quot;_blank&quot;&gt;TCPDF&lt;/a&gt;. Neste artigo vou explicar como instalar o TCPDF no CakePHP 2.4. Como exemplo, vamos partir da instalação do Cake explicado em &amp;nbsp;&lt;a href=&quot;http://linuxnomicro.blogspot.com.br/2014/03/utilizando-o-cakephp-no-eclipse.html&quot; target=&quot;_blank&quot;&gt;Utilizando o CakePHP no Eclipse&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Após a instalação do Cake 2.4.6, estamos então com esta página:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRjL86XUxjuimH3t8VcNgoShW-AlIKb1bCT2Oh2B-x9NRDBk9rzVMoiLJ6D1dDQUXljOsR0iITllOWP8GeasriQ5-inZ3HOOGUte2q3tCzSpg5MgBc37cxRDe4jxNt8znFvOST2o4sdgA/s1600/tutorial+tcpdf.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;CakePHP Instalado&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRjL86XUxjuimH3t8VcNgoShW-AlIKb1bCT2Oh2B-x9NRDBk9rzVMoiLJ6D1dDQUXljOsR0iITllOWP8GeasriQ5-inZ3HOOGUte2q3tCzSpg5MgBc37cxRDe4jxNt8znFvOST2o4sdgA/s1600/tutorial+tcpdf.png&quot; height=&quot;388&quot; title=&quot;CakePHP Instalado&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
O TCPDF pode ser baixado em&amp;nbsp;&lt;a href=&quot;http://sourceforge.net/projects/tcpdf/files/&quot;&gt;http://sourceforge.net/projects/tcpdf/files/&lt;/a&gt;, a versão que está sendo usada neste artigo é a&amp;nbsp;6.0.062.&lt;br /&gt;
Depois do download, descompactamos o arquivo e copiamos a pasta tcpdf para&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;app/Vendor&lt;/span&gt;&lt;/b&gt; em nosso aplicativo.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKq9sifC7alN153sfmxSh1SOru4ISCe9kYgKd8n04edWPPsUJJ-iDZqXgtZ_ADogUCqFVZv166-hXw0RkBalMX7poNwYEhhPncpOQDPbk0zdnK2q3_PWHArywFsOMUrKNaQ3eMo73PbDw/s1600/tutorial+tcpdf-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img alt=&quot;app/Vendor/tcpdf&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKq9sifC7alN153sfmxSh1SOru4ISCe9kYgKd8n04edWPPsUJJ-iDZqXgtZ_ADogUCqFVZv166-hXw0RkBalMX7poNwYEhhPncpOQDPbk0zdnK2q3_PWHArywFsOMUrKNaQ3eMo73PbDw/s1600/tutorial+tcpdf-1.png&quot; height=&quot;181&quot; title=&quot;app/Vendor/tcpdf&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Para que os navegadores reconheçam que o arquivo gerado deva ser tratado como um PDF, escolhendo o tipo de aplicação correto, &amp;nbsp;vamos criar um layout em &lt;b&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;app/View/Layouts/pdf.ctp&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2rL8cqLw79vpYLLV7EqzWRtm4LksddtEsIn51ZO5xaWsvQwq_wCCNUO142Ipvtm66xrCOLXMrFA0bjXeEYOYHYzuNhCDiXdzqyuh4-qEcn_bd-8O05V-cpwej8DSJGn3DoVes8z6u8Ac/s1600/tutorial+tcpdf-2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Página pdf.ctp&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2rL8cqLw79vpYLLV7EqzWRtm4LksddtEsIn51ZO5xaWsvQwq_wCCNUO142Ipvtm66xrCOLXMrFA0bjXeEYOYHYzuNhCDiXdzqyuh4-qEcn_bd-8O05V-cpwej8DSJGn3DoVes8z6u8Ac/s1600/tutorial+tcpdf-2.png&quot; height=&quot;390&quot; title=&quot;Página pdf.ctp&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Para este teste vamos criar um arquivo em &lt;b&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;app/Controller&lt;/span&gt;&lt;/b&gt; chamado EtiquetasController.php e criar dois métodos:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4Q5REWpMON3CZ3FeEy3SQZWsUiRrxu55MBjATgV6_XTEIwF-0mBx6zZq0cp9B1Gncbg5Y08PoPwHrNQJg5BWimNX485IRssJxcVvjrYIj4747J3rVNzlb6igRYjX_3DmwfMI5-Xnp0pE/s1600/tutorial+tcpdf-3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;EtiquetasController&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4Q5REWpMON3CZ3FeEy3SQZWsUiRrxu55MBjATgV6_XTEIwF-0mBx6zZq0cp9B1Gncbg5Y08PoPwHrNQJg5BWimNX485IRssJxcVvjrYIj4747J3rVNzlb6igRYjX_3DmwfMI5-Xnp0pE/s1600/tutorial+tcpdf-3.png&quot; height=&quot;388&quot; title=&quot;EtiquetasController&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Agora as views para os métodos em a&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;b&gt;pp/View/Etiquetas&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIvEVGKKVn7GBoZXJ0t4fuDyhQsgkFCl0ravSX2a3Hg2z_aUEg5IGH6nJhyphenhyphenWYpePl2uaVZxzKBquJjTnc3tL5yeWdo41t1KhqIHyWyUdtoe7ru0m1sCrOyvyQrCyd0d7EN3F28Yd2ttBc/s1600/tutorial+tcpdf-4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;app/View/Etiquetas&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIvEVGKKVn7GBoZXJ0t4fuDyhQsgkFCl0ravSX2a3Hg2z_aUEg5IGH6nJhyphenhyphenWYpePl2uaVZxzKBquJjTnc3tL5yeWdo41t1KhqIHyWyUdtoe7ru0m1sCrOyvyQrCyd0d7EN3F28Yd2ttBc/s1600/tutorial+tcpdf-4.png&quot; height=&quot;181&quot; title=&quot;app/View/Etiquetas&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Em index.ctp, só precisamos de um link para a página viewPdf.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrKoT-di1-jT2-U5ZiHYyUulK0NE04xUB0uvEccqUKQyg1_2ZC88WEQOISX1bQ4uKGvygraPqpab12eRt-FJFhMZ1_-gyt2g0kOrJon5j9Fg_J1qO0GYNqa3UmAV5WSNyBExA34kWh5MA/s1600/tutorial+tcpdf-5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrKoT-di1-jT2-U5ZiHYyUulK0NE04xUB0uvEccqUKQyg1_2ZC88WEQOISX1bQ4uKGvygraPqpab12eRt-FJFhMZ1_-gyt2g0kOrJon5j9Fg_J1qO0GYNqa3UmAV5WSNyBExA34kWh5MA/s1600/tutorial+tcpdf-5.png&quot; height=&quot;390&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Bom, agora vamos criar nosso PDF.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
No método viewPdf() temos que indicar o layout e chamar a renderização da página.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 90%;&quot;&gt;  &lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;public function viewPdf() {
    $this-&amp;gt;layout = &#39;pdf&#39;;
   $this-&amp;gt;render();
 }       &lt;/code&gt;
 &lt;/pre&gt;
&lt;br /&gt;
E na view, carregamos o TCPDF e montamos o arquivo:&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); overflow: auto; padding: 5px; width: 587.6875px;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 12px; line-height: 14px;&quot;&gt;&lt;span style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace;&quot;&gt;&amp;lt;?php 
App::import(&#39;Vendor&#39;,&#39;tcpdf/tcpdf&#39;); 

//carrega o construtor do pdf
$Pdf = new TCPDF();

$Pdf-&amp;gt;setPrintHeader(false);

$Pdf-&amp;gt;setPrintFooter(false);

$Pdf-&amp;gt;SetMargins(10, 20, 0);

$Pdf-&amp;gt;AddPage(&#39;P&#39;,&#39;A4&#39;);

$html = &#39;
 &amp;lt;h1&amp;gt; PDF gerado pelo TCPDF&amp;lt;/h1&amp;gt;
 &amp;lt;p&amp;gt;As configurações para cabeçalho e rodapé foram zeradas&amp;lt;/p&amp;gt;&#39;;

$Pdf-&amp;gt;writeHTML($html);

echo $Pdf-&amp;gt;Output(&#39;etiqueta.pdf&#39;,&#39;I&#39;);&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 14px;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Neste exemplo, antes de adicionar uma nova página, desabilito o cabeçalho e rodapé padrão do TCPDF. E o resultado:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDKup2ibZ-N-sDe3ipZw_NVhzR8YyKShyJrPL9E6kG3vwNG5TR7r14gxK-5Hs92F-hdn2rQerGsbvNqQdsn61_2zWWVeekDoXWipbaLpeKThdK9TkxZ2UkS1nPoThb6jUogxzHAZE9Msw/s1600/tutorial+tcpdf-6.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDKup2ibZ-N-sDe3ipZw_NVhzR8YyKShyJrPL9E6kG3vwNG5TR7r14gxK-5Hs92F-hdn2rQerGsbvNqQdsn61_2zWWVeekDoXWipbaLpeKThdK9TkxZ2UkS1nPoThb6jUogxzHAZE9Msw/s1600/tutorial+tcpdf-6.png&quot; height=&quot;454&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
Na página do TCPDF há uma vasta &lt;a href=&quot;http://www.tcpdf.org/doc/code/annotated.html&quot; target=&quot;_blank&quot;&gt;documentação&lt;/a&gt; e &lt;a href=&quot;http://www.tcpdf.org/examples.php&quot; target=&quot;_blank&quot;&gt;exemplos&lt;/a&gt; de uso.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/2729253536169220522/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/2729253536169220522' title='4 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/2729253536169220522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/2729253536169220522'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2014/04/instalando-o-tcpdf-no-cakephp-24.html' title='Instalando o TCPDF no CakePHP 2.4'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRjL86XUxjuimH3t8VcNgoShW-AlIKb1bCT2Oh2B-x9NRDBk9rzVMoiLJ6D1dDQUXljOsR0iITllOWP8GeasriQ5-inZ3HOOGUte2q3tCzSpg5MgBc37cxRDe4jxNt8znFvOST2o4sdgA/s72-c/tutorial+tcpdf.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-4811002867090723901</id><published>2014-03-10T20:46:00.003-03:00</published><updated>2014-04-02T12:41:39.456-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CakePHP"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><title type='text'>Utilizando o CakePHP no Eclipse</title><content type='html'>&lt;h3&gt;
Introdução&lt;/h3&gt;
Sempre utilizei o &lt;a href=&quot;https://wiki.gnome.org/Apps/Gedit&quot; target=&quot;_blank&quot;&gt;Gedit&lt;/a&gt; ou o &lt;a href=&quot;http://www.geany.org/&quot; target=&quot;_blank&quot;&gt;Geany&lt;/a&gt;&amp;nbsp;(quando estou no Windows) para para criar e editar meus arquivos do &lt;a href=&quot;http://cakephp.org/&quot; target=&quot;_blank&quot;&gt;CakePHP&lt;/a&gt;, bem... às vezes começo meus os arquivos com o bake (disponível no CakePHP via terminal) que gera a estrutura básica, e até pouco tempo não pensava em trabalhar de outra forma.&lt;br /&gt;
Mas depois de usar o Eclipse num curso de Java da &lt;a href=&quot;https://www.google.com.br/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=3&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0CEUQtwIwAg&amp;amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdqL7cG4J6gI&amp;amp;ei=dOsdU_DFJcyPkAfa_oHoAQ&amp;amp;usg=AFQjCNHcPF_dJF03K0Zo2jVIu2RWZrdiYg&amp;amp;sig2=aIrXR28A_6JJbJb7NbS-MQ&amp;amp;bvm=bv.62578216,d.eW0&quot; target=&quot;_blank&quot;&gt;Universidade XTI&lt;/a&gt;&amp;nbsp;fiquei com vontade de experimentcom PHP, mas especificamente com o CakePHP.&lt;br /&gt;
O sistema e aplicativos usados neste tutorial são os seguintes:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Ubuntu 12.04 (32 bits)&lt;/li&gt;
&lt;li&gt;Apache 2.0&lt;/li&gt;
&lt;li&gt;PHP 5.3.10&lt;/li&gt;
&lt;li&gt;java 1.7.0_51&lt;/li&gt;
&lt;li&gt;PostgreSQL 9.1.12&lt;/li&gt;
&lt;li&gt;CakePHP 2.4.6&lt;/li&gt;
&lt;li&gt;Eclipse Standard 4.3.2&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;h3&gt;
Instalando o CakePHP e configurando um app básico&amp;nbsp;&lt;/h3&gt;
&lt;div&gt;
Para começar, vamos baixar o cakePHP daqui &lt;a href=&quot;https://github.com/cakephp/cakephp/tags&quot;&gt;https://github.com/cakephp/cakephp/tags&lt;/a&gt;, descompactar e copiar o diretório para a raiz do servidor e dar permissões de escrita para o diretório app/tmp. Neste teste o diretório do cake foi renomeado para cakephp-test, ao carregar a página temos uma tela como a abaixo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9uFXV_N91RDjr5c3pUMYxjGQDQescb9I4RB0ZDIvvGIqPFvTemCkonYkaxBINZiUKrOYps1F4vqipvfaXwCgg0gGF3AlEs56k4LJEJEmJKNbY3GdTABk_H-leHG5ywQ3M9Yzw-h7PsH8/s1600/cake+01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9uFXV_N91RDjr5c3pUMYxjGQDQescb9I4RB0ZDIvvGIqPFvTemCkonYkaxBINZiUKrOYps1F4vqipvfaXwCgg0gGF3AlEs56k4LJEJEmJKNbY3GdTABk_H-leHG5ywQ3M9Yzw-h7PsH8/s1600/cake+01.png&quot; height=&quot;387&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
Meste ponto o cakePHP está funcionando, mas dá para melhorar algumas coisas antes de continuar. Para começar, vamos criar um banco de dados &quot;cakephp_test&quot;, usando o phppgadmin.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj4ya69gi6X4jkIBWfJhEWZowL7xsjdbQOe6ZwGJ9nLRORqGRMMKpcJNBePRtlhCgqB8T6Hx9z1LSMOLQtHhkC8fZATCtuBeMovmfCe-HpQiruGNmjT_AY5BTjFWssl2KV6fpQULobs9U/s1600/phppgadmin.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj4ya69gi6X4jkIBWfJhEWZowL7xsjdbQOe6ZwGJ9nLRORqGRMMKpcJNBePRtlhCgqB8T6Hx9z1LSMOLQtHhkC8fZATCtuBeMovmfCe-HpQiruGNmjT_AY5BTjFWssl2KV6fpQULobs9U/s1600/phppgadmin.png&quot; height=&quot;253&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Agora, através do bake podemos arrumar as pendências da tela acima:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFsjgDZo5Otb44BwhSvGQfA8ZPymJH4LcOAsRYqnSOF932zXRyg9vYw3srDTo5xXYrO3_CqXMViwC3gGN4slhKSDuFiujuf50crzVEEgClixnoOcvNUo8dMaQ50Fej7NRJHnAC26QhrjM/s1600/cake+02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFsjgDZo5Otb44BwhSvGQfA8ZPymJH4LcOAsRYqnSOF932zXRyg9vYw3srDTo5xXYrO3_CqXMViwC3gGN4slhKSDuFiujuf50crzVEEgClixnoOcvNUo8dMaQ50Fej7NRJHnAC26QhrjM/s1600/cake+02.png&quot; height=&quot;320&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMLh-isPogm6u0F7tjKLKMisrUWb7jwiH0jpbZb7_tXaa_mIhZACBKYe6yStHez3_hUUYALQv1ZQiUAJM-x0c3Yk9lChC99nA6DXhwtyXauW6aaEiHcGfdKDF8NmpTrwrSKdn-7J-5CAE/s1600/cake+03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMLh-isPogm6u0F7tjKLKMisrUWb7jwiH0jpbZb7_tXaa_mIhZACBKYe6yStHez3_hUUYALQv1ZQiUAJM-x0c3Yk9lChC99nA6DXhwtyXauW6aaEiHcGfdKDF8NmpTrwrSKdn-7J-5CAE/s1600/cake+03.png&quot; height=&quot;98&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
A opção [P]roject faz os ajustes necessários no app/Config/core.php&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYIgGVmDgh1vLxJiX48d2Y-ZK8kyoOovMhbkSesgul3uuy9GaLXOKvG2KSufDWh5XuYWFAzTVT_QnDT4IYWXT8fqeo4V98q-MYDhX7G6SqdCa7Z4FI6QSKZWj2hRn9IpWgHi2CvjwNgv0/s1600/cake+04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYIgGVmDgh1vLxJiX48d2Y-ZK8kyoOovMhbkSesgul3uuy9GaLXOKvG2KSufDWh5XuYWFAzTVT_QnDT4IYWXT8fqeo4V98q-MYDhX7G6SqdCa7Z4FI6QSKZWj2hRn9IpWgHi2CvjwNgv0/s1600/cake+04.png&quot; height=&quot;218&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
Com a opção [D]atabase Configuration configuramos o banco de dados&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQaA9YRdXG-RVRfDReU5OokNR7QAv_Os_GjIlM6WPK5Rfuj8s6Dage-4RlATHAzkI0OaOkX-rdLnuAQEUfZlCEv1yB2eaPkUxADcqMvwC-eWJ-FI-sdaU7xBZbmB81fmP7u_KdEJXUN2A/s1600/cake+05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQaA9YRdXG-RVRfDReU5OokNR7QAv_Os_GjIlM6WPK5Rfuj8s6Dage-4RlATHAzkI0OaOkX-rdLnuAQEUfZlCEv1yB2eaPkUxADcqMvwC-eWJ-FI-sdaU7xBZbmB81fmP7u_KdEJXUN2A/s1600/cake+05.png&quot; height=&quot;400&quot; width=&quot;376&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Vejam que agora ficou bem melhor, só ficou faltando ativar o DebugKit, mas não faz diferença neste teste.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDruq1QemVfL_p0jHc9BUWjBJ7_JmbWovJzjg5VSd_8SjAjnEbTwg5Sg601BXtuRx-HaFDkMCP7MISw8Z82v0c6Yaj3Xfa8lry_MKSjeQyRYlNwBiLwX5Gily5G3TkA7D_Mqnh3z3jvF0/s1600/cake+06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDruq1QemVfL_p0jHc9BUWjBJ7_JmbWovJzjg5VSd_8SjAjnEbTwg5Sg601BXtuRx-HaFDkMCP7MISw8Z82v0c6Yaj3Xfa8lry_MKSjeQyRYlNwBiLwX5Gily5G3TkA7D_Mqnh3z3jvF0/s1600/cake+06.png&quot; height=&quot;408&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
Instalando o Eclipse e o Plugin PDT&lt;/h3&gt;
&lt;div&gt;
O Eclipse Standard 4.3.2 (Kleper) pode ser baixado em &lt;a href=&quot;https://www.eclipse.org/downloads/&quot;&gt;https://www.eclipse.org/downloads/&lt;/a&gt;,&amp;nbsp;a instalação é simples, basta descompactar o arquivo baixado.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5WxzRAEIFueM71PXzfO2Eyz8iaYgZYTli9KSJVF07Pfljv38LpNu971YJmx4BUv58k0mPKmRoYBzfEZt1UqPqKlMnfKrsqbEon5jNEl_pyzuh37Ocu35fePY2Ux7UoLS_hON6LMfqYxU/s1600/eclipse.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5WxzRAEIFueM71PXzfO2Eyz8iaYgZYTli9KSJVF07Pfljv38LpNu971YJmx4BUv58k0mPKmRoYBzfEZt1UqPqKlMnfKrsqbEon5jNEl_pyzuh37Ocu35fePY2Ux7UoLS_hON6LMfqYxU/s1600/eclipse.png&quot; height=&quot;326&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
A instalação do Plugin PDT para gerenciar projetos PHP também não é complexa, já que o plugin está disponível no próprio repositório do Kleper.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2wzRPTkLypfPryzXkS_wQw3BscIXXQNaKyTFoLpqJlsFRL2sBQltPi4mOAkkhDOxy5CHvmoliba9tSDNowyj0r9NXPRUB7qDiOCSBqn7Oifp9JDSjPsa9-f3DYP6PWi2gbjpy9lIyKEA/s1600/eclipse-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2wzRPTkLypfPryzXkS_wQw3BscIXXQNaKyTFoLpqJlsFRL2sBQltPi4mOAkkhDOxy5CHvmoliba9tSDNowyj0r9NXPRUB7qDiOCSBqn7Oifp9JDSjPsa9-f3DYP6PWi2gbjpy9lIyKEA/s1600/eclipse-1.png&quot; height=&quot;188&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6WBxSP3pqoC4kbOFsMcBo3Y96NAodyIXG8jZw8-VEiqcDUlKZonN0AFFFjE5cKB8XDMEi9lbi9Bdf3uvFIndwlhyphenhyphen6kXK_ednXtZE8TU_RK5NtqkQyfp1J0fUAMPPbkk09aaTVAFebeQE/s1600/eclipse-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6WBxSP3pqoC4kbOFsMcBo3Y96NAodyIXG8jZw8-VEiqcDUlKZonN0AFFFjE5cKB8XDMEi9lbi9Bdf3uvFIndwlhyphenhyphen6kXK_ednXtZE8TU_RK5NtqkQyfp1J0fUAMPPbkk09aaTVAFebeQE/s1600/eclipse-2.png&quot; height=&quot;176&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRC1m1rKYeBRPqJOp4cZvX_6ILW-ETInKko5sauXeilZsP4PsiK1O3Xcu2tVIcnr7u7q-NXmfBasxuL35elaRw1pjtkgy2UTVyKS3U2ogV3RPukV8c8p46mQj7soyXLBjv67ccnzJKK9M/s1600/eclipse-3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRC1m1rKYeBRPqJOp4cZvX_6ILW-ETInKko5sauXeilZsP4PsiK1O3Xcu2tVIcnr7u7q-NXmfBasxuL35elaRw1pjtkgy2UTVyKS3U2ogV3RPukV8c8p46mQj7soyXLBjv67ccnzJKK9M/s1600/eclipse-3.png&quot; height=&quot;310&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Depois é só clicar em Next, concordar com os termos de serviço e, após instalação do plugin, reiniciar o Eclipse.&lt;br /&gt;
&lt;br /&gt;
Para testar os recursos do PDT, podemos criar um projeto no Eclipse utilizando diretório onde instalamos o CakePHP.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlUERDqhoYAU0gFl2cZWb_Ha_Pp3Iqofixfz1-MrhTZSukoNtzOjy-BglKhsUlOm2nZKl7Wyj2nxRi2cxMhL1UAJyE3rFOxFsVpqcqzsrdrDLPke7yhi6bbkJJ64EPafOz8vgBI3s2IoA/s1600/eclipse-4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlUERDqhoYAU0gFl2cZWb_Ha_Pp3Iqofixfz1-MrhTZSukoNtzOjy-BglKhsUlOm2nZKl7Wyj2nxRi2cxMhL1UAJyE3rFOxFsVpqcqzsrdrDLPke7yhi6bbkJJ64EPafOz8vgBI3s2IoA/s1600/eclipse-4.png&quot; height=&quot;278&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT9Grk4g0U-xKLE6Uqm3mnQNHlmbHAYiuRIH_UJf9skJB79aSxo4VmdYy8jwWwwDdy8iT7GDA5vvPrp1i0jCQBepOab6L7iDfafRma38lE1KEiiuJSS3Znv5NxjtfvQZRcuJALTwxJ_T4/s1600/eclipse-5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT9Grk4g0U-xKLE6Uqm3mnQNHlmbHAYiuRIH_UJf9skJB79aSxo4VmdYy8jwWwwDdy8iT7GDA5vvPrp1i0jCQBepOab6L7iDfafRma38lE1KEiiuJSS3Znv5NxjtfvQZRcuJALTwxJ_T4/s1600/eclipse-5.png&quot; height=&quot;261&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7oWJyBm2Ynd_VRMuj1BcJ2BALntpDfThCuSXPBqmBxSTOxMzVm5lgDpIFeVMvzClVuyKbVaxcaqANYkM72eaKTdJZ9SOomS-TMbPKGkhoQk_aWSQAQ39-iI8tcd3eEwz3rmGV5wiClmg/s1600/eclipse-6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7oWJyBm2Ynd_VRMuj1BcJ2BALntpDfThCuSXPBqmBxSTOxMzVm5lgDpIFeVMvzClVuyKbVaxcaqANYkM72eaKTdJZ9SOomS-TMbPKGkhoQk_aWSQAQ39-iI8tcd3eEwz3rmGV5wiClmg/s1600/eclipse-6.png&quot; height=&quot;320&quot; width=&quot;263&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguj7Tc4EtTQ5A2dQE3Uml6ESHQzXqDSSWKWYmb-tJ5-Zr9k3VEg0UFGbsqqBTmRVpM04KGWUptcd5obPYtdbKv3-2ytnPdNXu05eMHDs-DdmpkiZcDaBH59bKzMq3ep4XDqoRt5olJXIg/s1600/eclipse-7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguj7Tc4EtTQ5A2dQE3Uml6ESHQzXqDSSWKWYmb-tJ5-Zr9k3VEg0UFGbsqqBTmRVpM04KGWUptcd5obPYtdbKv3-2ytnPdNXu05eMHDs-DdmpkiZcDaBH59bKzMq3ep4XDqoRt5olJXIg/s1600/eclipse-7.png&quot; height=&quot;320&quot; width=&quot;263&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;E aí está...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpjA4Y4DfCisFs3PjTup_om4CZzVyp2jgp22NpiSFIkoYDKLeDnmJqXhD4An8bYMXZ0jC1DhgiSTtQwUoHbVMXAb0Fv6cxJjlSd2hQ92JLzc6OQt9h39LfunrDNntS6jIjsobe_PuiqU8/s1600/eclipse-8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpjA4Y4DfCisFs3PjTup_om4CZzVyp2jgp22NpiSFIkoYDKLeDnmJqXhD4An8bYMXZ0jC1DhgiSTtQwUoHbVMXAb0Fv6cxJjlSd2hQ92JLzc6OQt9h39LfunrDNntS6jIjsobe_PuiqU8/s1600/eclipse-8.png&quot; height=&quot;400&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;O PDT já está trabalhando a nosso favor, métodos do controller estão sendo reconhecidos e a função autocompletar do Eclipse funcionando.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
Podemos também experimentar a geração automática de documentação. É só começar digitar /** e clicar em Enter.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9A1SFTiXcgV3KI7DIMdWoIS-95BTvkqAMUQdnTcZReZqrTX1To_T_4yVnCQhA8eEbGkXc4CCxmJzOBOQ8BLBLEeSoNb7KH3m3iim79N87HtGQzxtdKtLVps6mzbDWM5Ovf1hZIxSOP8U/s1600/eclipse-9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9A1SFTiXcgV3KI7DIMdWoIS-95BTvkqAMUQdnTcZReZqrTX1To_T_4yVnCQhA8eEbGkXc4CCxmJzOBOQ8BLBLEeSoNb7KH3m3iim79N87HtGQzxtdKtLVps6mzbDWM5Ovf1hZIxSOP8U/s1600/eclipse-9.png&quot; height=&quot;138&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmJRTd7Hqku5FTvgy15bcLjQT-wee2Rr4Kgw8ynSNhYIS_J_qFb9VYHgfusKu5UQjVoqE3zVYpnYbaFTDHlpVtbzPPNGQPs90H-ylwmgqlmsrFE5Hk9FeqSlJIgfkCsgMIsqlucAQSW90/s1600/eclipse-10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmJRTd7Hqku5FTvgy15bcLjQT-wee2Rr4Kgw8ynSNhYIS_J_qFb9VYHgfusKu5UQjVoqE3zVYpnYbaFTDHlpVtbzPPNGQPs90H-ylwmgqlmsrFE5Hk9FeqSlJIgfkCsgMIsqlucAQSW90/s1600/eclipse-10.png&quot; height=&quot;169&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3&gt;
Completando os reconhecimento do CakePHP&lt;/h3&gt;
&lt;div&gt;
Mais duas coisas ainda precisam ser feitas para valer a pena o uso do Cake no Eclipse:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;1º&lt;/b&gt; Fazer com que o Eclipse reconheça os arquivos .ctp como código PHP&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5ZP3_-Xh1k-21qA5rYidS5DfhjTyJcrugyVDxbl2xrqD1EesVynp_VIVHolBj7We4BoidsQ9a2rNdEx5QVXXAH0w85XAsN3oIVUSThxAXXe_ToUIGf4ilOfetXCWBh0iKbkeEKzK-9fw/s1600/eclipse-11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5ZP3_-Xh1k-21qA5rYidS5DfhjTyJcrugyVDxbl2xrqD1EesVynp_VIVHolBj7We4BoidsQ9a2rNdEx5QVXXAH0w85XAsN3oIVUSThxAXXe_ToUIGf4ilOfetXCWBh0iKbkeEKzK-9fw/s1600/eclipse-11.png&quot; height=&quot;285&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS66z3d0JFgErDrtGbO0br1EDpvYDrRoTWsyT_nRhZZSmpjmuCILg-M-3pvApB5R0Kf5mFE-ZNfhKH1NNQ3tea-ZKapduDsPahRjTB1_ruNhEV5QOBMWqwFqVG4_miqAX-YZjFWHY26jE/s1600/eclipse-12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS66z3d0JFgErDrtGbO0br1EDpvYDrRoTWsyT_nRhZZSmpjmuCILg-M-3pvApB5R0Kf5mFE-ZNfhKH1NNQ3tea-ZKapduDsPahRjTB1_ruNhEV5QOBMWqwFqVG4_miqAX-YZjFWHY26jE/s1600/eclipse-12.png&quot; height=&quot;312&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEap8s3s1eXy_zfrxg8jlTkqZTTbZUVNxoL2AolkMQ3fNSVyB-yyPAebPPTom-onvxJH-C9NjCytQ_e_AAAwcN9v2JNdGUbFBXXvfjUTaybpHagatJSvcUX94NbuN7-yzEfKfIfhcrPRc/s1600/eclipse-13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEap8s3s1eXy_zfrxg8jlTkqZTTbZUVNxoL2AolkMQ3fNSVyB-yyPAebPPTom-onvxJH-C9NjCytQ_e_AAAwcN9v2JNdGUbFBXXvfjUTaybpHagatJSvcUX94NbuN7-yzEfKfIfhcrPRc/s1600/eclipse-13.png&quot; height=&quot;166&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Adicionar os arquivos *.ctp aos tipos de conteúdo PHP é o suficiente. Vejam o arquivo Layouts/default.ctp&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj_P4MR-7-Z7l7NQShA2UiHpNFd4Bxws4BJaJC2oMTcX_ba2gyXlp26aENCPIXWHQ67zVeeT-k0MsAnFfo24NqolOsPpcMz3sH6tKJHhhEyj79akXS0mKBlyExtJTOScB3wDvoOsiayTY/s1600/eclipse-14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj_P4MR-7-Z7l7NQShA2UiHpNFd4Bxws4BJaJC2oMTcX_ba2gyXlp26aENCPIXWHQ67zVeeT-k0MsAnFfo24NqolOsPpcMz3sH6tKJHhhEyj79akXS0mKBlyExtJTOScB3wDvoOsiayTY/s1600/eclipse-14.png&quot; height=&quot;408&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2º Fazer com que o Eclipse reconheça os helpers do CakePHP nas views. Vejam que nada acontece se começarmos escrever um link ($this-&amp;gt;Html-&amp;gt;link) no cabeçalho da página default.ctp.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXYrs87aRTQdcCgmAJirQidsBH5XqdJWC3TIBQIgKqvaCIYDCeLayQvhd0yWE8oQHI3RJr_587QgMLBnXMqdspJjEi9XQUup6RZQIKzEbEQKqbitnIdJLL-p_eDO9bKoxIbEcMAlUhj4g/s1600/eclipse-15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXYrs87aRTQdcCgmAJirQidsBH5XqdJWC3TIBQIgKqvaCIYDCeLayQvhd0yWE8oQHI3RJr_587QgMLBnXMqdspJjEi9XQUup6RZQIKzEbEQKqbitnIdJLL-p_eDO9bKoxIbEcMAlUhj4g/s1600/eclipse-15.png&quot; height=&quot;90&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
A solução neste caso é criar um arquivo que mapeie o Helpers usados no nosso projeto, dentro do diretório app/View. Encontrei o código abaixo no &lt;a href=&quot;http://bakery.cakephp.org/articles/leoden/2012/03/28/eclipse_code_completion_in_views_using_this&quot; target=&quot;_blank&quot;&gt;bakery&lt;/a&gt; que funcionou de primeira.&lt;/div&gt;
&lt;div&gt;
Arquivo: &lt;b&gt;app/View/helper_complete.php&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0000bb; font-family: monospace;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000bb; font-family: monospace;&quot;&gt;A&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;pp&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;uses&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;AppHelper&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;Helper&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);
&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;/**&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&amp;nbsp;*&amp;nbsp;this&amp;nbsp;Helper
&lt;br /&gt;&amp;nbsp;*
&lt;br /&gt;&amp;nbsp;*&amp;nbsp;@property&amp;nbsp;Html&amp;nbsp;$Html
&lt;br /&gt;&amp;nbsp;*&amp;nbsp;@property&amp;nbsp;Session&amp;nbsp;$Session
&lt;br /&gt;&amp;nbsp;*&amp;nbsp;@property&amp;nbsp;Form&amp;nbsp;$Form
&lt;br /&gt;&amp;nbsp;*/
&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;class&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;this&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;extends&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;AppHelper
&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;{
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$Html&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$Session&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$Form&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;function&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;__contruct&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;()
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Html&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;HtmlHelper&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$View&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Session&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;SessionHelper&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$View&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Form&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;FormHelper&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$View&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&lt;br /&gt;}
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$this&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;();
&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
Conforme nosso projeto cresça e passemos a utilizar outros Helpers, é só ir atualizando este arquivo.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyzIHoysnTeSJokunuOJIOvM0mz_vBVyOM5hd9huFBUjlhV5msyO-y5csDv2KYZLeCrU-BCr8jqqQkiKlqm5mbRCDp6sMPKlebhmZcGIShvn2fh5NIxpsIYeHLh-cJCYyf__BjIpbQicg/s1600/eclipse-16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyzIHoysnTeSJokunuOJIOvM0mz_vBVyOM5hd9huFBUjlhV5msyO-y5csDv2KYZLeCrU-BCr8jqqQkiKlqm5mbRCDp6sMPKlebhmZcGIShvn2fh5NIxpsIYeHLh-cJCYyf__BjIpbQicg/s1600/eclipse-16.png&quot; height=&quot;408&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Bom, é isto. Podemos até usar o navegador do Eclipse para ver o código rodando.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsBCq37Bj2UwKZuG5HlUkrM-3T8RDxvl7YRQSe3dqTe1YiXgOM-H1OqGz3-eI54eF2wl688-HS0rbbpP06zppVJwnXSj7QuJV8DBdY5dv8pCs73wlDCmcbes9U2QVKEymgWMl7PxG4AW8/s1600/eclipse-17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsBCq37Bj2UwKZuG5HlUkrM-3T8RDxvl7YRQSe3dqTe1YiXgOM-H1OqGz3-eI54eF2wl688-HS0rbbpP06zppVJwnXSj7QuJV8DBdY5dv8pCs73wlDCmcbes9U2QVKEymgWMl7PxG4AW8/s1600/eclipse-17.png&quot; height=&quot;107&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM5nDUj0lefJePyKYghZcl1s4wetBJ1cU1cRuGCoEp96gSAQBpVFrXpdf2o7N6UkrpLNsV_mClgI8miAXhyphenhyphenys2OXUNsKbbCt458mqVtUfqJX3n7arUVJ-6m2fA3sY6c9yblXDV0sl8Q_0/s1600/eclipse-18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM5nDUj0lefJePyKYghZcl1s4wetBJ1cU1cRuGCoEp96gSAQBpVFrXpdf2o7N6UkrpLNsV_mClgI8miAXhyphenhyphenys2OXUNsKbbCt458mqVtUfqJX3n7arUVJ-6m2fA3sY6c9yblXDV0sl8Q_0/s1600/eclipse-18.png&quot; height=&quot;410&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/4811002867090723901/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/4811002867090723901' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/4811002867090723901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/4811002867090723901'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2014/03/utilizando-o-cakephp-no-eclipse.html' title='Utilizando o CakePHP no Eclipse'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9uFXV_N91RDjr5c3pUMYxjGQDQescb9I4RB0ZDIvvGIqPFvTemCkonYkaxBINZiUKrOYps1F4vqipvfaXwCgg0gGF3AlEs56k4LJEJEmJKNbY3GdTABk_H-leHG5ywQ3M9Yzw-h7PsH8/s72-c/cake+01.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-5572535595264624188</id><published>2013-10-15T19:23:00.001-03:00</published><updated>2013-10-16T18:44:05.537-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><title type='text'>Programar também é coisa de menina</title><content type='html'>&lt;p dir=ltr&gt;Vejam que interessante a hist&amp;#243;ria desta menina de apenas 9 anos.&lt;/p&gt;
&lt;p dir=ltr&gt;&lt;a href=&quot;http://br-linux.org/2013/01/alexandra-a-hacker-de-9-anos-que-criou-um-app-para-fazer-os-pais-levarem-os-filhos-para-brincar-com-os-colegas.html&quot;&gt;http://br-linux.org/2013/01/alexandra-a-hacker-de-9-anos-que-criou-um-app-para-fazer-os-pais-levarem-os-filhos-para-brincar-com-os-colegas.html&lt;/a&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/5572535595264624188/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/5572535595264624188' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5572535595264624188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5572535595264624188'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2013/10/programar-tambem-e-coisa-de-menina.html' title='Programar também é coisa de menina'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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-2769708467331717473.post-5364520340064774820</id><published>2013-03-18T12:29:00.002-03:00</published><updated>2014-03-16T13:25:13.884-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="CakePHP"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><title type='text'>AndroPhp - PHP e Mysql no Android</title><content type='html'>&lt;p&gt;J&amp;#225;&amp;#160;faz&amp;#160;algum&amp;#160;tempo&amp;#160;que&amp;#160;procuro&amp;#160;uma&amp;#160;ferramenta&amp;#160;que permita o desenvolvimento de aplicativos&amp;#160;PHP&amp;#160;no Android. Inicialmente tentei o projeto &lt;a href=&quot;http://phpforandroid.net/&quot;&gt;PhpForAndroid&lt;/a&gt; que usa&amp;#160; o Sl4a como base, mas n&amp;#227;o obtive sucesso no meu Tablet. Alias, consegui rodar via Sl4a Python, Lua e&amp;#160; BeanShell. O &amp;#250;nico que falhou foi o PHP.&lt;br&gt;
Bom, esta semana fui surpreendido com um app relativamente novo, o &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.ayansoft.androphp&quot;&gt;AndroPHP&lt;/a&gt;. &lt;br&gt;
At&amp;#233; o momento n&amp;#227;o consegui mais informa&amp;#231;&amp;#245;es sobre o projeto, mas j&amp;#225; nos primeiros testes ele me agradou. &lt;br&gt;
O AndroPHP atual, vers&amp;#227;o 1.2.0, vem com PHP 5.4.8, servidor lighttpd 1.4.29 - AndroPHP 1.2.0, mysql - 5.1.62 e sqlite 3.7.7.1. O diret&amp;#243;rio padr&amp;#227;o para os projetos &amp;#233; /mount/sdcard/www,&amp;#160; ent&amp;#227;o a primeira coisa que fiz, ap&amp;#243;s a instala&amp;#231;&amp;#227;o, foi criar este diret&amp;#243;rio e deixar um pequeno helloword nele. Ap&amp;#243;s iniciar o aplicativo, acessei http://localhos:8080 e al&amp;#233;m do meu pequeno script estava presente tamb&amp;#233;m o tradicional phpinfo. Ambos funcionando.&lt;br&gt;
Meu primeiro teste maior foi carregar e configurar o CakePHP nele. Baixei e descompactei a &amp;#250;ltima vers&amp;#227;o do CakePHP em /mount/sdcard/www. Al&amp;#233;m das configura&amp;#231;&amp;#245;es de praxe do Cake, tive que habilitar o uso do Cake sem o modo rewrite, que n&amp;#227;o est&amp;#225; ativo no AndroPHP,&amp;#160; na documenta&amp;#231;&amp;#227;o do CakePHP h&amp;#225; as instru&amp;#231;&amp;#245;es necess&amp;#225;rias para isto.&lt;/p&gt;
&lt;p&gt;E a&amp;#237; est&amp;#225;, o CakePHP funcionando dentro de um tablet com Android. &lt;/p&gt;
&lt;div class=&#39;separator&#39; style=&#39;clear: both; text-align: center;&#39;&gt; &lt;a href=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpLU7LTF5v6D7_GcyIItxV21oUf8zf2evJlW6Y7FFZzF0iTrjmNPHr8V9ULx30pU1Bp1ExrqfXOBuhZqhMkL-6jcgiBDX7zApyZU8AqTQfR2LTQusj_ruBz1gsz32RU_9HkgLIDp0zVqY/s1600/CakePHP_AndroPHP.png&#39; imageanchor=&#39;1&#39; style=&#39;margin-left: 1em; margin-right: 1em;&#39;&gt; &lt;img border=&#39;0&#39; src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpLU7LTF5v6D7_GcyIItxV21oUf8zf2evJlW6Y7FFZzF0iTrjmNPHr8V9ULx30pU1Bp1ExrqfXOBuhZqhMkL-6jcgiBDX7zApyZU8AqTQfR2LTQusj_ruBz1gsz32RU_9HkgLIDp0zVqY/s640/CakePHP_AndroPHP.png&#39; /&gt; &lt;/a&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/5364520340064774820/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/5364520340064774820' title='9 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5364520340064774820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5364520340064774820'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2013/03/androphp-php-e-mysql-no-android.html' title='AndroPhp - PHP e Mysql no Android'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpLU7LTF5v6D7_GcyIItxV21oUf8zf2evJlW6Y7FFZzF0iTrjmNPHr8V9ULx30pU1Bp1ExrqfXOBuhZqhMkL-6jcgiBDX7zApyZU8AqTQfR2LTQusj_ruBz1gsz32RU_9HkgLIDp0zVqY/s72-c/CakePHP_AndroPHP.png" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-8246455570215592884</id><published>2012-08-15T23:45:00.001-03:00</published><updated>2012-08-15T23:50:51.310-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dicas Rápidas"/><category scheme="http://www.blogger.com/atom/ns#" term="Multimídia"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 12.04"/><title type='text'>DeVeDe no Ubuntu 12.04</title><content type='html'>O &lt;a href=&quot;http://www.rastersoft.com/programas/devede.html&quot; target=&quot;_blank&quot;&gt;DeVeDe&lt;/a&gt;, da Raster Software Vigo, é um programa de autoria de DVD&#39;s muito simples de se utilizar. Para quem quer apenas juntar alguns filmes e montar seu dvd sem se preocupar com complexas estruturas de capítulos e menus ou com o formato dos vídeos utilizados, o DeVeDe é uma ótima escolha.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRghvSAjJfKqthEY_aOekEkCUraj7pqTsAcX_ptWnoWvBzdIEqCgxc0lTBv6e51yF8X1LoZBx9Vd40xdQS-rOIm0Q8cFZDFyHkZWsA_lP_oTSBr1cjEwssHLfLBipYD98HL_TsSQ8e8R4/s1600/devede.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;DeVeDe&quot; border=&quot;0&quot; height=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRghvSAjJfKqthEY_aOekEkCUraj7pqTsAcX_ptWnoWvBzdIEqCgxc0lTBv6e51yF8X1LoZBx9Vd40xdQS-rOIm0Q8cFZDFyHkZWsA_lP_oTSBr1cjEwssHLfLBipYD98HL_TsSQ8e8R4/s640/devede.png&quot; title=&quot;DeVeDe&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Para usá-lo no Ubuntu 12.04, não utilize o pacote disponível na Central de Programas, esta versão, a 3.21.0, está em conflito com o a biblioteca FFMPEG, responsável por algumas tarefas no processo da criação do dvd. No lugar do menu do dvd, temos apenas uma tela preta, sem nenhum link.&lt;br /&gt;
Felizmente, no site do DeVeDe, está disponível a &lt;a href=&quot;http://www.rastersoft.com/descargas/devede_3.22.0-1%7Erastersoft0_all.deb&quot; target=&quot;_blank&quot;&gt;versão 3.22.0&lt;/a&gt; onde este problema não acontece.&lt;br /&gt;
Faça o download através do link: &lt;a href=&quot;http://www.rastersoft.com/descargas/devede_3.22.0-1%7Erastersoft0_all.deb&quot;&gt;http://www.rastersoft.com/descargas/devede_3.22.0-1~rastersoft0_all.deb&lt;/a&gt;, abra-o na Central de Programas e, se você já estiver com a versão 3.21 instalada, clique em atualizar, se não, é só clicar em instalar, digite sua senha e, após a instalação, se diverta criando seus próprios dvd&#39;s.&lt;br /&gt;
&lt;br /&gt;
Espero que a dica tenha sido útil.&lt;br /&gt;
&lt;br /&gt;
Fonte: &lt;a href=&quot;http://ubuntuforum-br.org/index.php?topic=95198.msg528063#msg528063&quot;&gt;http://ubuntuforum-br.org/index.php?topic=95198.msg528063#msg528063&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/8246455570215592884/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/8246455570215592884' title='4 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/8246455570215592884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/8246455570215592884'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2012/08/devede-no-ubuntu-1204.html' title='DeVeDe no Ubuntu 12.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRghvSAjJfKqthEY_aOekEkCUraj7pqTsAcX_ptWnoWvBzdIEqCgxc0lTBv6e51yF8X1LoZBx9Vd40xdQS-rOIm0Q8cFZDFyHkZWsA_lP_oTSBr1cjEwssHLfLBipYD98HL_TsSQ8e8R4/s72-c/devede.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-1314998715916886842</id><published>2012-07-14T19:30:00.001-03:00</published><updated>2012-07-14T19:42:46.629-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dicas Rápidas"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 12.04"/><title type='text'>Ubuntu 12.04 e vídeo gma500 (poulsbo) Opções de boot</title><content type='html'>Um colega de trabalho pediu para eu atualizar o Ubuntu 10.04 do netbook ACER dele. Instalei o Ubuntu 12.04 num pen-drive e dei boot normalmente. Após a escolha do teclado e idioma, a imagem que vi foi a abaixo e em seguida o sistema congelou:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPpZh0S13p1wDj9knFIUXsTUb4Sf5BAHIMFgf0FKlcukOJQkIJ2rwa0arpQT3aLQxzcvcf04LqydivCr6MdosvIl-1zMiiSudbHgghpT63tc_YukaNLVko29rKnfOET3qoS1E1fmhiRcI/s1600/tela_erro.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPpZh0S13p1wDj9knFIUXsTUb4Sf5BAHIMFgf0FKlcukOJQkIJ2rwa0arpQT3aLQxzcvcf04LqydivCr6MdosvIl-1zMiiSudbHgghpT63tc_YukaNLVko29rKnfOET3qoS1E1fmhiRcI/s640/tela_erro.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
A Placa de vídeo do Netbook é uma Intel GMA500, que sempre precisou de alguns ajustes para funcionar. Pelo jeito isto não mudou. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;htmlBoxWrapper&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;gino1@netbook-acer:~$ lspci | grep VGA&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;00:02.0 VGA compatible controller: Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller (rev 07)&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
O truque é usar um código de inicialização modificado. Após a instalação do Ubuntu num pendrive, basta editar &quot;&lt;b&gt;syslinux.cfg&lt;/b&gt;&quot; e adicionar as seguintes opções de inicialização.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;quiet splash console=tty1 acpi_backlight=vendor acpi_osi=Linux acer_wmi.blacklist=yes mem=1920mb&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Sem esta alteração a área de trabalho começa distorcida. Se o boot está sendo feito por um CD ou DVD, uma solução é abrir um terminal puro com  ctrl-alt-F1 e executar o comando:&lt;/div&gt;
&lt;div class=&quot;htmlBoxWrapper&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;htmlBoxWrapper&quot; style=&quot;color: #274e13;&quot;&gt;
&lt;b&gt;$ sudo sudo service lightdm restart&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;htmlBoxWrapper&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;htmlBoxWrapper&quot;&gt;
Após a instalação, execute o procedimento acima no primeiro boot.&lt;/div&gt;
&lt;div class=&quot;htmlBoxWrapper&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;htmlBoxWrapper&quot;&gt;
Usando um editor altere o arquivo /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #274e13;&quot;&gt;
&lt;b&gt;$ sudo gedit /etc/default/grub&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Altere a linha – GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” para:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash console=tty1 acpi_backlight=vendor acpi_osi=Linux acer_wmi.blacklist=yes mem=1920mb”&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Após, atualize o grub&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #274e13;&quot;&gt;
&lt;b&gt;$ sudo update-grub&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #274e13;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
A última opção, &lt;b&gt;mem = 1920mb&lt;/b&gt; permite mais memória para o driver GMA500 e melhora, um pouco, o desempenho.  Se você tem 1 GB de RAM, &lt;b&gt;use&lt;/b&gt; &lt;b&gt;mem=&lt;/b&gt;&lt;b&gt;896MB&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;







  Soluções adicionais/correções &lt;/h2&gt;
&lt;h3&gt;







  Tela preta &lt;/h3&gt;
Usando qualquer editor, crie um arquivo &lt;b&gt;/etc/grub.d/01_915resolution&lt;/b&gt; e adicione em linhas&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;htmlBoxWrapper&quot;&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;echo insmod 915resolution&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;echo 915resolution 58 1366 768 32&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Marque o arquivo como executável:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;$ sudo chmod a+x /etc/grub.d/01_915resolution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;line862&quot;&gt;
Depois altere o arquico &lt;b&gt;/etc/default/grub&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
Atribua o valor 1366x768x32 para as variáveis GRUB_GFXPAYLOAD_LINUX: &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;GRUB_GFXPAYLOAD_LINUX=1366x768x32&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
atualize o grub&lt;br /&gt;
&lt;div style=&quot;color: #274e13;&quot;&gt;
&lt;b&gt;$ sudo update-grub&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #274e13;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;







  Tela preta após volta da Suspensão&lt;/h3&gt;
Abra um terminal e use os seguintes comandos: &lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;br /&gt;
$ sudo gedit / etc/pm/config.d/gma500&lt;/div&gt;
Adicione em um dos seguintes códigos e salve o arquivo (aparentemente 
um &quot;-&quot; funciona para uns e outros precisam de dois &quot;--&quot; na frente)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;code&quot;&gt;
ADD_PARAMETERS = &#39;-quirk-vbemode-restore &#39; &lt;/div&gt;
&lt;div class=&quot;code&quot;&gt;
ADD_PARAMETERS = &#39;--quirk-vbemode-restore &#39; &lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiQ0EZwV_BEdZ08luUo6wpDh44W0gDI-Ta7yWcYQVayp6zR3U8dLyZ5z1QH6EdatT9jIu5aCFEFj9c9etR1yutJn2Eydl23DEB-Ul-_lkVie4SA8NykmzvumeQSHIMlz7FwKJm70_QCPw/s1600/ubuntu12.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiQ0EZwV_BEdZ08luUo6wpDh44W0gDI-Ta7yWcYQVayp6zR3U8dLyZ5z1QH6EdatT9jIu5aCFEFj9c9etR1yutJn2Eydl23DEB-Ul-_lkVie4SA8NykmzvumeQSHIMlz7FwKJm70_QCPw/s640/ubuntu12.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fonte:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo&quot; style=&quot;color: blue;&quot;&gt;https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://linux-support.com/cms/ubuntu-developers-bodhi-zazen-ubuntu-12-04-gma500-poulsbo-boot-options/&quot; style=&quot;color: blue;&quot;&gt;http://linux-support.com/cms/ubuntu-developers-bodhi-zazen-ubuntu-12-04-gma500-poulsbo-boot-options/&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/1314998715916886842/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/1314998715916886842' title='8 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/1314998715916886842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/1314998715916886842'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2012/07/ubuntu-1204-gma500-poulsbo-boot-options.html' title='Ubuntu 12.04 e vídeo gma500 (poulsbo) Opções de boot'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPpZh0S13p1wDj9knFIUXsTUb4Sf5BAHIMFgf0FKlcukOJQkIJ2rwa0arpQT3aLQxzcvcf04LqydivCr6MdosvIl-1zMiiSudbHgghpT63tc_YukaNLVko29rKnfOET3qoS1E1fmhiRcI/s72-c/tela_erro.png" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-3256577216128870862</id><published>2012-05-01T15:45:00.000-03:00</published><updated>2012-05-01T16:16:15.689-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 12.04"/><title type='text'>Aplicativos e Configurações que uso no Ubuntu 12.04 - Parte 1</title><content type='html'>Na Quinta-feira passada, dia 26 de abril a Canonical disponibilizou sua nova versão do &lt;b&gt;Ubuntu, a 12.04&lt;/b&gt;. Como muitos, estou acompanhando o desenvolvimento deste lançamento desde a versão Alpha e mesmo nas primeiras versões de teste, algo me chamou a atenção: a quase ausência de &quot;travamentos&quot; nos aplicativos. Devido a isto e ao fato desta versão ter atualizações até 2017, decidi pela substituição do meu Ubuntu 10.04 no meu notebook, pelo&amp;nbsp;&lt;a href=&quot;http://www.ubuntu.com/download&quot; style=&quot;color: blue;&quot;&gt;Precise Pangolin&lt;/a&gt;&lt;span style=&quot;color: blue;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixK1eUbjRxTDrS2wmy0AYeYsfQbV_8FbS_EuxD2xZK-AmNzcZeS9_UFDeqsU1T4nEF9XXxdPbqPm7CAC0z_cCibqtIujesP7UEYZiU96IfQZCrfecXqvoZeImioI_gmRinBi6mMQddsLw/s1600/Captura+de+tela+de+2012-05-01+12:58:01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;ubuntu 12.04&quot; border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixK1eUbjRxTDrS2wmy0AYeYsfQbV_8FbS_EuxD2xZK-AmNzcZeS9_UFDeqsU1T4nEF9XXxdPbqPm7CAC0z_cCibqtIujesP7UEYZiU96IfQZCrfecXqvoZeImioI_gmRinBi6mMQddsLw/s640/Captura+de+tela+de+2012-05-01+12:58:01.png&quot; title=&quot;Ubuntu 12.04&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;Com o sistema instalado, é hora de colocá-lo para trabalhar:&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;











1. Configurando a placa de vídeo&lt;/h3&gt;
O menu notebook é um Novadata com placa de vídeo SIS, na instalação do Ubuntu a resolução padrão ficou como 1024x768, então o primeiro passo foi mudar isto para conseguir a resolução padrão de 1280x800.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtMsg2y0Oi_4-JpyATNUj02PMUWrqTBs3oKB09x9DRkhHHrd-QLk6JSGh1m3M-on-fShesFeOZpRZMB1ZMOl6C3_GtvBvgoiw6OrEWWfCnkkA5-SvKWu7JEHqXtUbUan-zzz32w1B5VNg/s1600/lspci+grep+VGA.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;lspci | grpe VGA&quot; border=&quot;0&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtMsg2y0Oi_4-JpyATNUj02PMUWrqTBs3oKB09x9DRkhHHrd-QLk6JSGh1m3M-on-fShesFeOZpRZMB1ZMOl6C3_GtvBvgoiw6OrEWWfCnkkA5-SvKWu7JEHqXtUbUan-zzz32w1B5VNg/s640/lspci+grep+VGA.png&quot; title=&quot;lspci | grep VGA&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;lspci | grep VGA&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&amp;nbsp; &lt;br /&gt;
Na versão Beta já havia testado a solução proposta pelo Hugo Bastos em&lt;br /&gt;
&lt;a href=&quot;http://diversosassuntosbrasil.blogspot.com.br/search?updated-min=2012-01-01T00:00:00-03:00&amp;amp;updated-max=2013-01-01T00:00:00-03:00&amp;amp;max-results=5&quot; style=&quot;color: blue;&quot;&gt;http://diversosassuntosbrasil.blogspot.com.br/search?updated-min=2012-01-01T00:00:00-03:00&amp;amp;updated-max=2013-01-01T00:00:00-03:00&amp;amp;max-results=5&lt;/a&gt;&lt;br /&gt;
Depois da instalação da versão final, na sexta, vi que já havia um driver compilado e pronto para instalar, disponibilizado pelo Leandro Galdino em&lt;br /&gt;
&lt;a href=&quot;http://www.vivaolinux.com.br/dica/Driver-para-SIS-671-717-no-Ubuntu-1204-LTS-%28Precise-Pangolin%29&quot; style=&quot;color: blue;&quot;&gt;http://www.vivaolinux.com.br/dica/Driver-para-SIS-671-717-no-Ubuntu-1204-LTS-%28Precise-Pangolin%29&lt;/a&gt;&amp;nbsp; &lt;br /&gt;
Acabei optando por seguir este caminho mais curto, mas o método do Hugo também funcionou perfeitamente.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;


2. Montando meu sistema de desenvolvimento&lt;/h3&gt;
Antes de mais nada tenho que deixar o Ubuntu pronto para o trabalho, no caso desenvolvimento Web com o&amp;nbsp;&lt;a href=&quot;http://cakephp.org/&quot; style=&quot;color: blue;&quot;&gt;CakePHP&lt;/a&gt;&lt;span style=&quot;color: blue;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Para começar, abrimos um terminal &lt;b&gt;(tecla super – terminal)&lt;/b&gt;, para mudar para administrador digitamos:&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo bash&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Após a senha, o prompt mudará para &lt;b&gt;#&lt;/b&gt; e estaremos logados como administrador.&lt;br /&gt;
&lt;br /&gt;
Para atualizar a lista de aplicativos disponíveis&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# apt-get update&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Instalar o servidor Web Apache:&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# apt-get install apache2&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Para Confirmar se o apache está rodando &lt;b&gt;(tecla super - firefox)&lt;/b&gt;&lt;br /&gt;
digitar &lt;a href=&quot;http://localhost/&quot; style=&quot;color: blue;&quot;&gt;http://localhost&lt;/a&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;na barra de localização&lt;br /&gt;
Se tudo estiver bem aparecerá a mensagem : &lt;b&gt;It works!&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Para tirar esta mensagem e ver a pasta raiz do apache, basta renomear ou excluir arquivo index.html em /var/www&lt;br /&gt;
&lt;br /&gt;
Ativar o modo rewrite do apache, necessário para o CakePHP trabalhar:&lt;b&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;# ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load&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;# gedit /etc/apache2/sites-available/default&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Libere as permissões &lt;b&gt;AllowOverride&lt;/b&gt; para a pasta www alterando a opção &lt;b&gt;none&lt;/b&gt; para &lt;b&gt;All&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;directory var=&quot;&quot; www=&quot;&quot;&gt;&lt;/directory&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Options Indexes FollowSymLinks MultiViews&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AllowOverride All&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order allow,deny&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow from all&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Instalar o PHP; PHP cliente; a extensão para o Postgresql e a extensão que habilita a manipulação de imagens:&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# apt-get install php5 php5-cli php5-pgsql php5-gd&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Para confirmar se o php está rodando crie o arquivo:&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# gedit /var/www/info.php&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Copiamos as linhas abaixo e salvamos o arquivo.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;lt;php&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; phpinfo();&lt;/span&gt;&lt;br style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Agora, vamos reiniciar o apache para testar o php:&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;b style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# /etc/init.d/apache2 restart&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Voltamos ao firefox e abrimos o link:&lt;br /&gt;
&lt;a href=&quot;http://localhost/info.php&quot; style=&quot;color: blue;&quot;&gt;http://localhost/info.php&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Se estiver tudo certo aparecerá a tela de informações do PHP&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg31o6LZ6RqSeGHJOQ4__8I5dTIFPh_hEMyRWfB922LaXY7ZGhuPkNlQuDHjDmWAeH7HlfaOqqVhMPTgYEaeVn_U1-PFxY4MKFpG3U-mOysaRNEqTJt3yP50zqtEk01S5TxsTDSeJVpYAI/s1600/php_info.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PHP Info&quot; border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg31o6LZ6RqSeGHJOQ4__8I5dTIFPh_hEMyRWfB922LaXY7ZGhuPkNlQuDHjDmWAeH7HlfaOqqVhMPTgYEaeVn_U1-PFxY4MKFpG3U-mOysaRNEqTJt3yP50zqtEk01S5TxsTDSeJVpYAI/s640/php_info.png&quot; title=&quot;PHP Info&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
No meu caso, na utilização do CakePHP, tenho alguns scripts, como o TCPDF que demoram 
mais tempo do que é permitido por padrão no PHP e algumas 
páginas de contabilidade extrapolam a memória de 128MB indicada. Para alterar estas configurações, temos que alterar o arquivo php.ini.&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# gedit /etc/php5/apache2/php.ini&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As linhas que devem ser alteradas são as abaixo:&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;max_execution_time = 300&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;memory_limit = 264M&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Instalar o PostgreSql&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# apt-get install postgresql postgresql-contrib postgresql-doc postgresql-client&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Instalar o PhpPgAdmin – para gerenciar o PostgreSql&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# apt-get install phppgadmin&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Num ambiente de testes, não há problemas em liberar o PhpPgAdmin para aceitar logon do usuário postgres, que vem desativado por padrão&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# gedit /etc/phppgadmin/config.inc.php&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Procure a linha:&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$conf[‘extra_login_security’] = true;&lt;/span&gt;&lt;br /&gt;
e troque o true por false&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$conf[‘extra_login_security’] = false;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Após a sua instalação, o PostgreSql adicionou 
automaticamente um usuário ao Sistema chamado “postgres” . Para que possamos acessar o SGBD, temos que indicar uma senha para este usuário. Fazemos isto com os comandos:&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# su postgres&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
O prompt muda para &lt;b&gt;$&lt;/b&gt;. Agora vamos abrir o terminal do postgresql&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ psql&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
O prompt muda para &lt;b&gt;=#&lt;/b&gt;.&lt;br /&gt;
Para criar ou mudar a senha:&lt;b&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;=#  \password postgres&lt;/code&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
No ambiente de testes, uso normalmente &lt;span style=&quot;color: red;&quot;&gt;postgres&lt;/span&gt;, digite e confirme.&lt;br /&gt;
Para sair do psql&lt;br /&gt;
&lt;b&gt;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;=# \q&lt;/code&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Para voltar prompt do root &lt;b&gt;#&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;code style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ exit&lt;/code&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Vamos agora testar o PhpPgAdmin – clique no link:&lt;br /&gt;
&lt;a href=&quot;http://localhost/phppgadmin/&quot; style=&quot;color: blue;&quot;&gt;http://localhost/phppgadmin/&lt;/a&gt;&lt;br /&gt;
No logon digitamos o usuário postgres e a senha postgres que definimos acima.&lt;br /&gt;
&lt;br /&gt;
Uma alternativa ao PhpPgAdmin para administrar o PostgreSql é o PgAdmin III. &lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# apt-get install pgadmin3&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Nas últimas versões fica o destaque para a criação de consultas em modo gráfico:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKg2mH2C3djZ4Cml8rojE8a4z5rFtF2Hd1lCmidSjNw0CvG8lTQ8OQ1ebCq46c6pgs11mcpdRGFlc5HuRS-kq7NCHzHMB1xyk6i7UwJ-XB0M3Pjr41YuaRQG_eEx3594BnFmvhHH70N-4/s1600/pgadmin3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;PgAdmin III&quot; border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKg2mH2C3djZ4Cml8rojE8a4z5rFtF2Hd1lCmidSjNw0CvG8lTQ8OQ1ebCq46c6pgs11mcpdRGFlc5HuRS-kq7NCHzHMB1xyk6i7UwJ-XB0M3Pjr41YuaRQG_eEx3594BnFmvhHH70N-4/s640/pgadmin3.png&quot; title=&quot;PgAdmin III&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
As configurações de conexão no PgAdmin III são:&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;nome: postgresql&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;máquina: localhost&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;usuário: postgres&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;senha: postgres&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Para encerrar e começar a trabalhar de verdade, falta apenas instalar o meu cliente Subversion favorito, o RapidSVN:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;b&gt;# apt-get install rapidsvn&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8n-7D-QeaoHknWTuyBysfJg9zeCEoRq_2p1F6lqVOVvN-Vntxj85VJNDe2x11KZOA8V7kKRBvuWy1h6P8iPV7-xDeQ73_8kutKeQUaMirE-k4lLp8x2ftBgzqQZnGUBz74OhRoTy7KWk/s1600/rapidsvn.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;RapidSvn&quot; border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8n-7D-QeaoHknWTuyBysfJg9zeCEoRq_2p1F6lqVOVvN-Vntxj85VJNDe2x11KZOA8V7kKRBvuWy1h6P8iPV7-xDeQ73_8kutKeQUaMirE-k4lLp8x2ftBgzqQZnGUBz74OhRoTy7KWk/s640/rapidsvn.png&quot; title=&quot;RapidSvn&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
No próximo Post, vou falar sobre minhas alterações habituais no Nautilus e no Gedit que expandem suas funcionalidades.&lt;br /&gt;
Até...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/3256577216128870862/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/3256577216128870862' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/3256577216128870862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/3256577216128870862'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2012/05/aplicativos-e-configuracoes-que-uso-no.html' title='Aplicativos e Configurações que uso no Ubuntu 12.04 - Parte 1'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixK1eUbjRxTDrS2wmy0AYeYsfQbV_8FbS_EuxD2xZK-AmNzcZeS9_UFDeqsU1T4nEF9XXxdPbqPm7CAC0z_cCibqtIujesP7UEYZiU96IfQZCrfecXqvoZeImioI_gmRinBi6mMQddsLw/s72-c/Captura+de+tela+de+2012-05-01+12:58:01.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-5634270430451575902</id><published>2012-03-02T11:59:00.001-03:00</published><updated>2012-03-02T12:18:09.845-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 12.04"/><title type='text'>Modem Olivetti Olicard 155 no Ubuntu 12.04</title><content type='html'>No ano passado, escrevi um tutorial de como utilizar o &lt;a href=&quot;http://linuxnomicro.blogspot.com/2011/05/no-ubuntu-11.html&quot;&gt;modem Olivetti Olicard 155 no Ubuntu 10.04&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Além do Ubuntu 10.04, instalado em meu Note, uso este mesmo modem no Ubuntu 11.04 64 bits no micro de casa, o modem dá uma congelada de alguns segundos no momento do reconhecimento, mas fora isso funciona bem.&lt;br /&gt;
&lt;br /&gt;
No Ubuntu 11.10, testei as duas versões 32 e 64 bits, em ambos o casos o modem funcionou diretamente do CD do Ubuntu, sem a necessidade de alterar nada no sistema.&lt;br /&gt;
&lt;br /&gt;
Bom, mas o caso é que acompanhando o desenvolvimento do Ubuntu 12. 04, que sai agora em abril, resolvi testar a versão Alpha2, que aliás está muito estável e bem acabada, o pessoal da Canonical está de parabéns, principalmente por ser uma versão de testes ainda tão nova.&lt;br /&gt;
&lt;br /&gt;
Conectei o modem e aguardei alguns instantes e nada aconteceu, dei uma olhada no lsusb&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;$ lsusb | grep Olivetti&lt;/b&gt;
&lt;br /&gt;
e o resultado foi: &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Bus 001 Device 007: ID 0b3c:c004 Olivetti Techcenter&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
O modem havia sido reconhecido corretamente, então adicionei o mesmo arquivo que utilizo no Ubuntu 10.04 e que funciona nele: &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;$ sudo gedit /etc/udev/rules.d/14-olicardmodules.rules&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
copiei e colei o texto abaixo:

&lt;blockquote class=&quot;tr_bq&quot;&gt;
SYSFS{idVendor}==&quot;0b3c&quot;,SYSFS{idProduct}==&quot;c004&quot;,RUN+=&quot;/sbin/modprobe usbserial vendor=0x0b3c product=0xc004&quot;&lt;br /&gt;
KERNEL==”ttyUSB[23]“,ACTION==”add”,SYSFS{idVendor}==”0b3c”,SYSFS{idProduct}==”c004″,RUN+=”/bin/sleep 2″&lt;/blockquote&gt;

Depois de salvo, reconectei o modem, mas mesmo assim não funcionou.&lt;br /&gt;
&lt;br /&gt;
Para confirmar se o NetworkManager estava funcionando corretamente, testei com meu celular, que sempre foi reconhecido sem problemas nos Ubuntu&#39;s e o celular foi ativado como modem corretamente.&lt;br /&gt;
&lt;br /&gt;
Uma conferida no Visualizador de Logs do Sistema, foi o suficiente para perceber que no momento que o arquivo da regra do udev foi salvo, o sistema levantou o seguinte erro:&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: red;&quot;&gt;
unknown key &#39;SYSFS{idVendor}&#39; in /etc/udev/rules.d/14-olicardmodules.rules:1&lt;/div&gt;
&lt;br /&gt;
Ou seja a regra não estava sendo reconhecida, uma busca na documentação do udev resolveu o problema, a regra correta segue abaixo:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;$ sudo gedit /etc/udev/rules.d/14-olicardmodules.rules&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
copie e cole:

&lt;blockquote class=&quot;tr_bq&quot;&gt;
ATTRS{idVendor}==&quot;0b3c&quot;,ATTRS{idProduct}==&quot;c004&quot;,RUN+=&quot;/sbin/modprobe usbserial vendor=0x0b3c product=0xc004&quot;&lt;br /&gt;
KERNEL==”ttyUSB[23]“,ACTION==”add”,ATTRS{idVendor}==”0b3c”,ATTRS{idProduct}==”c004″,RUN+=”/bin/sleep 2″&lt;/blockquote&gt;
Ao salvar o arquivo, não houve nenhum retorno de erro na regra e o modem foi ativado sem problemas.&lt;br /&gt;
&lt;br /&gt;
Bom... é isto. No Ubuntu 12.04, pelo menos na versão Alpha, para utilizar o modem Olicard, temos que incluir o texto acima num arquivo de regras do udev. &lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/5634270430451575902/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/5634270430451575902' title='16 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5634270430451575902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5634270430451575902'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2012/03/modem-olivetti-olicard-155-no-ubuntu.html' title='Modem Olivetti Olicard 155 no Ubuntu 12.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-6333376616079055820</id><published>2011-11-14T17:36:00.001-02:00</published><updated>2012-03-02T11:59:37.086-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dicas Rápidas"/><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 11.04"/><title type='text'>Nautilus Scripts Subversion -  Utililizando um cliente SVN diretamente no Nautilus</title><content type='html'>Gosto de utilizar no Ubuntu, como cliente Subversion o &lt;a href=&quot;http://rapidsvn.tigris.org/&quot;&gt;RapidSVN&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlBTgK2eXikiGLwezYhTN2Pxarjlz7B7yZD9r44f_z5ZPZGh5-s_YrSIP5b0GvndqK3mDrYle_yvQCclIJ-taKL2zpfaI_geKOr4tzYJLv3z1G2hyiezeQu0WOIMZPCAbBmQFyamcGw8A/s1600/rapidsvn003.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlBTgK2eXikiGLwezYhTN2Pxarjlz7B7yZD9r44f_z5ZPZGh5-s_YrSIP5b0GvndqK3mDrYle_yvQCclIJ-taKL2zpfaI_geKOr4tzYJLv3z1G2hyiezeQu0WOIMZPCAbBmQFyamcGw8A/s400/rapidsvn003.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ele tem me atendido muito bem já há alguns anos. Mas às vezes sinto falta de funções do SVN diretamente no Nautilus, como há no Dolphin do KDE, através do &lt;a href=&quot;http://kdesvn.alwins-world.de/&quot;&gt;KdeSvn&lt;/a&gt; ou no Explorer do Windows através &lt;a href=&quot;http://tortoisesvn.tigris.org/&quot;&gt;Tortoise SVN&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Na busca de algo semelhante para o Gnome encontrei o &lt;a href=&quot;http://www.rabbitvcs.org/&quot;&gt;RabbitVCS&lt;/a&gt;, que se integra no Nautilus simulando algo muito parecido com Tortoise, mas no fim achei que ainda não era o que estava procurando, queria algo mais simples.&lt;br /&gt;
&lt;br /&gt;
Daí pesquisando um pouco mais , me deparei com um pequeno conjunto de scripts:&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;
o nautilus-script-collection-svn, que é super simples, leve e atende bem à necessidade de ver rapidamente o estado de um arquivo dentro de um projeto, ou mesmo excluir, renomear ou adicionar um novo arquivo a seu projeto.&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOJNcrAxMHGQbPND7gtW9H4-yQzDyqb9GXaKfLKJzbn-WB6czSaqfEH3IyrXPR9ADADTWgpOrYvNvQfjGPaOHk-0_kOhiCrgpHl7nmJAuhwI30664mr1Mb5GBrbzEwBunRrwXQWTVaNu8/s1600/svn+script.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;464&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOJNcrAxMHGQbPND7gtW9H4-yQzDyqb9GXaKfLKJzbn-WB6czSaqfEH3IyrXPR9ADADTWgpOrYvNvQfjGPaOHk-0_kOhiCrgpHl7nmJAuhwI30664mr1Mb5GBrbzEwBunRrwXQWTVaNu8/s640/svn+script.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
A instalação é feita em dois passos:&lt;br /&gt;
&lt;br /&gt;
1) Instalar o pacote de scripts&lt;br /&gt;
&lt;br /&gt;
$ &lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;sudo apt-get install nautilus-script-collection-svn&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
2) copiar o script para o Nautilus do seu usuário&lt;br /&gt;
&lt;br /&gt;
$ &lt;b style=&quot;color: #38761d;&quot;&gt;cp -r /usr/share/nautilus-scripts/Subversion ~/.gnome2/nautilus-scripts/&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
O uso do svn no Nautilus não fez com que abandonasse o RapidSVN. Ele serve para mim como uma ferramenta auxiliar, na hora do commit ou update, ou mesmo para ver diferenças entre versões de um arquivo dentro do projeto, continuo usano o RapidSVN.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/6333376616079055820/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/6333376616079055820' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/6333376616079055820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/6333376616079055820'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2011/11/nautilus-scripts-subversion.html' title='Nautilus Scripts Subversion -  Utililizando um cliente SVN diretamente no Nautilus'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlBTgK2eXikiGLwezYhTN2Pxarjlz7B7yZD9r44f_z5ZPZGh5-s_YrSIP5b0GvndqK3mDrYle_yvQCclIJ-taKL2zpfaI_geKOr4tzYJLv3z1G2hyiezeQu0WOIMZPCAbBmQFyamcGw8A/s72-c/rapidsvn003.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-3279734221838015169</id><published>2011-10-01T14:34:00.001-03:00</published><updated>2011-10-01T14:45:46.198-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Multimídia"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 11.04"/><title type='text'>Devidify Extraindo Áudio de DVD</title><content type='html'>Sempre que precisei extrair áudios de dvd em Linux, utilizei scripts baseados no transcode, algo como abaixo:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;b&gt;$ transcode -i /dev/dvd -x null -a 0 -y null,wav -u 100 -T 01,01,01 -o nome_arquivo.wav&lt;/b&gt;&lt;/blockquote&gt;
No caso estou extraindo o do título 01 (-T), o capítulo 01, trilha de áudio 01.&lt;br /&gt;
Para saber onde estão os capítulos, uso o lsdvd&lt;br /&gt;
&lt;blockquote&gt;
&amp;nbsp; &lt;b&gt;$ lsdvd&lt;/b&gt;&lt;/blockquote&gt;
Bom, vasculhando um pouco na web dá para encontrar vários scripts prontos para automatizar esta tarefa.&lt;br /&gt;
Alias, foi pesquisando por estes scripts que acabei encontrando um pequeno programa em python, &lt;a href=&quot;http://www.mahnamahna.net/museyroom/devidify/devidify.shtml&quot;&gt;Devidify&lt;/a&gt;, que faz esta tarefa através de uma interface gráfica muito simples.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC5N5rfOU75QXwUqFL84zQN2vKRYNtKYwKxk-2xMGNQVxVDwd8I79UM9PFJeFK2EjCHbrO9QZF3GftwHk2J_UI7ZeWZik8GD4SWoIUjm4fUYBolzuuW_U3ZuQGiq9G3KA30XpzwwtphgY/s1600/devidify.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC5N5rfOU75QXwUqFL84zQN2vKRYNtKYwKxk-2xMGNQVxVDwd8I79UM9PFJeFK2EjCHbrO9QZF3GftwHk2J_UI7ZeWZik8GD4SWoIUjm4fUYBolzuuW_U3ZuQGiq9G3KA30XpzwwtphgY/s400/devidify.png&quot; width=&quot;236&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Bom, para usá-lo precisamos garantir que alguns requisitos em nosso sistema estejam satisfeitos. Se estamos no Ubuntu podemos checar se temos os aplicativos necessários com um:&lt;br /&gt;
&lt;blockquote&gt;
&lt;b&gt;$ sudo ap-get install mplayer lsdvd lame vorbis-tools&lt;/b&gt;&lt;/blockquote&gt;
&lt;code&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/code&gt;Após a instalação os aplicativos necessários, vamos partir para o Devidify. Baixe a última versão disponível em &lt;a href=&quot;http://code.google.com/p/devidify/downloads/list&quot;&gt;http://code.google.com/p/devidify/downloads/list&lt;/a&gt;&lt;br /&gt;
Após o download, &lt;b&gt;descompacte o arquivo&lt;/b&gt;, entre na pasta criada e execute o instalador&lt;br /&gt;
&lt;blockquote&gt;
&lt;b&gt;$ sudo  python setup.py install&lt;/b&gt;&lt;/blockquote&gt;
Após a instalação, será criado um novo item no menu:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvV81CJLqrj3M_pXJ7GFxXxYq_w1rWSRx7dL7IDp78Dm-8ZNpRCXM5zmpRpmo5Z4JcZvh430GLisvmDJ4u6zfy-R-jG8WT6JsUfCyb87vHU4ZYR8f2R1ztFsnLQxkcWTWlr8pWDb8fi-E/s1600/devidify2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvV81CJLqrj3M_pXJ7GFxXxYq_w1rWSRx7dL7IDp78Dm-8ZNpRCXM5zmpRpmo5Z4JcZvh430GLisvmDJ4u6zfy-R-jG8WT6JsUfCyb87vHU4ZYR8f2R1ztFsnLQxkcWTWlr8pWDb8fi-E/s400/devidify2.png&quot; width=&quot;290&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Na primeira vez que tentei usar o Devidify, no item de menu, simplesmente não aconteceu nada, mas chamando-o através da linha de comando:&lt;br /&gt;
&lt;blockquote&gt;
&lt;b&gt;$ devidify&lt;/b&gt;&lt;/blockquote&gt;
Recebi a seguinte mensagem:&lt;br /&gt;
&lt;blockquote&gt;
&amp;nbsp; &lt;span style=&quot;font-size: x-small;&quot;&gt;File &quot;/usr/local/bin/devidify&quot;, line 531, in &lt;module&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; prefs = Prefs()&lt;br /&gt;&amp;nbsp; File &quot;/usr/local/bin/devidify&quot;, line 402, in __init__&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.check()&lt;br /&gt;&amp;nbsp; File &quot;/usr/local/bin/devidify&quot;, line 468, in check&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; debug(&#39;&amp;nbsp; pref: dir is &#39; + self.dir)&lt;br /&gt;&amp;nbsp; AttributeError: Prefs instance has no attribute &#39;dir&#39;&lt;/module&gt;&lt;/span&gt;&lt;/blockquote&gt;
Parece que o instalador está com algum bug que o impede de criar o arquivo de configuração.&lt;br /&gt;
Encontrei a solução do problema em: &lt;a href=&quot;http://patatux.net/devidify-para-extraer-audio-de-un-dvd/&quot;&gt;http://patatux.net/devidify-para-extraer-audio-de-un-dvd/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Crie em seu diretório &lt;b&gt;home&lt;/b&gt; um arquivo chamado &lt;b&gt;.devidifyrc&lt;/b&gt; como o abaixo:&lt;br /&gt;
&lt;br /&gt;
[devidify]&lt;br /&gt;
ogg_quality = 6&lt;br /&gt;
mode = mp3&lt;br /&gt;
device = /dev/dvd&lt;br /&gt;
mp3_bitrate = 192&lt;br /&gt;
dir = /home/francisco/dvd2mp3&lt;br /&gt;
&lt;br /&gt;
Se precisar, você pode modificar estas opções mais tarde através da interface do Devidify&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3_pEwsZA2XaJbjpYCLxY2-Qve6eWO_ti9xF8yVyQR7YtQz8mnDJf2tHxvAuUGYOF6lw2t41S1_oF3pgk9ZoMS9RWX4hoQn4S7a3ej12_hNwd7UzR4MB-pJVUtdwAC9Nhv7xF7Z58GWqI/s1600/devidify3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3_pEwsZA2XaJbjpYCLxY2-Qve6eWO_ti9xF8yVyQR7YtQz8mnDJf2tHxvAuUGYOF6lw2t41S1_oF3pgk9ZoMS9RWX4hoQn4S7a3ej12_hNwd7UzR4MB-pJVUtdwAC9Nhv7xF7Z58GWqI/s320/devidify3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Bom, apesar deste problema com o instalador e da interface não estar totalmente traduzida, o Devidify faz seu trabalho com competência. Pretendo deixá-lo sempre a mão. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/3279734221838015169/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/3279734221838015169' title='3 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/3279734221838015169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/3279734221838015169'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2011/10/devidify-extraindo-audio-de-dvd.html' title='Devidify Extraindo Áudio de DVD'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC5N5rfOU75QXwUqFL84zQN2vKRYNtKYwKxk-2xMGNQVxVDwd8I79UM9PFJeFK2EjCHbrO9QZF3GftwHk2J_UI7ZeWZik8GD4SWoIUjm4fUYBolzuuW_U3ZuQGiq9G3KA30XpzwwtphgY/s72-c/devidify.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-8535710819724190329</id><published>2011-05-17T11:19:00.004-03:00</published><updated>2011-05-19T18:59:13.728-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 11.04"/><title type='text'>Utilizando modem Olivetti Olicard 155 no Ubuntu</title><content type='html'>Contratei nesta semana um plano 3G da Tim que veio com um modem Olivetti Olicard 155. Meu objetivo era usá-lo no Ubuntu 10.04, depois de algumas pesquisas no Google e graças ao &lt;a href=&quot;http://www.draisberghof.de/usb_modeswitch/&quot;&gt;usb_modeswitch&lt;/a&gt; de Josué Dietze o modem está funcionando muito bem, só preciso plugá-lo e alguns segundos depois estou navegando.&lt;br /&gt;
&lt;br /&gt;
Como a maioria dos modens 3G&#39;s atuais, ao ser conectado no micro, uma partição é aberta com os drives para instalação em Windows ou Mac; em alguns casos ao ejetar a partição aberta, o sistema já reconhece a presença do modem usb e a conexão fica disponível; este não é o caso do Olicard.&lt;br /&gt;
&lt;br /&gt;
Consultando através do comando lsusb&lt;br /&gt;
&lt;br /&gt;
$ lsusb&lt;br /&gt;
&lt;tt&gt;Bus 004 Device 002: ID 0b3c:f000 Olivetti Techcenter&amp;nbsp;&lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
Vi que o resultado era o mesmo do Olicard 145, então segui as instruções do tópico &lt;a href=&quot;http://forum.ubuntu-it.org/index.php?topic=401432.0%20&quot;&gt;installazione chiavetta olicard 145&lt;/a&gt; do fórum italiano do Ubuntu.&lt;br /&gt;
&lt;br /&gt;
Resumindo os passos que utilizei:&lt;br /&gt;
&lt;br /&gt;
Instalei o &lt;a href=&quot;http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.7.tar.bz2&quot;&gt;usb-modeswitch-1.1.7.tar.bz2&lt;/a&gt;  e o &lt;a href=&quot;http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20110227.tar.bz2&quot;&gt;usb-modeswitch-data&lt;/a&gt; direto do site do desenvolvedor, já que os pacotes deb&#39;s disponíveis para o Ubuntu 10.04 não suportam o Olicard.&lt;br /&gt;
A instalação foi simples, como já tenho instalado o pacote build-essential instalado, o procedimento foi simples, descompactei cada um dos arquivos, entrei nas pastas criadas e fiz a instalação em cada uma delas:&lt;br /&gt;
&lt;br /&gt;
$ sudo make install&lt;br /&gt;
&lt;br /&gt;
Ao conectar novamente o modem, o usb-modeswich já estava trabalhando. Não apareceu mais a partição e o resultado do lsusb foi:&lt;br /&gt;
&lt;br /&gt;
$ lsusb&lt;br /&gt;
&lt;tt&gt;Bus 004 Device 002: ID 0b3c:c004 Olivetti Techcenter &lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
O modem já estava ativo. O problema é que mesmo assim não foi reconhecido pelo NetworkManager, seguindo o restante do tutorial criei o seguinte arquivo:&lt;br /&gt;
&lt;br /&gt;
$ sudo gedit /etc/udev/rules.d/14-olicardmodules.rules&lt;br /&gt;
&lt;br /&gt;
e copiei o texto abaixo:&lt;br /&gt;
&lt;br /&gt;
SYSFS{idVendor}==&quot;0b3c&quot;,SYSFS{idProduct}==&quot;c004&quot;,RUN+=&quot;/sbin/modprobe usbserial vendor=0x0b3c product=0xc004&quot;&lt;br /&gt;
KERNEL==”ttyUSB[23]“,ACTION==”add”,SYSFS{idVendor}==”0b3c”,SYSFS{idProduct}==”c004″,RUN+=”/bin/sleep 2″&lt;br /&gt;
&lt;br /&gt;
Depois de salvo, foi só reconectar o modem e abrir novamente o NetworkManager e o modem já estava lá, prontinho para ser criado uma nova conexão.&lt;br /&gt;
&lt;br /&gt;
No Ubuntu 11.04, o usb_modeswitch já vem instalado por padrão, só foi necessário acrescentar a regra acima no udev.</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/8535710819724190329/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/8535710819724190329' title='12 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/8535710819724190329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/8535710819724190329'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2011/05/no-ubuntu-11.html' title='Utilizando modem Olivetti Olicard 155 no Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-6876195799086542814</id><published>2010-06-16T10:20:00.002-03:00</published><updated>2010-06-16T10:22:31.701-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dicas Rápidas"/><title type='text'>Mostrando a barra de endereços do Nautilus no Ubuntu 10.04</title><content type='html'>Para quem instalou o Ubuntu 10.04 e ficou perdido procurando a barra de endereços do Nautilus, e que, como eu, prefere digitar o endereço na mão, segue a dica:&lt;br /&gt;
&lt;b&gt;  ctrl + L&lt;/b&gt;&lt;br /&gt;
pode-se editar o gconf-edit&lt;br /&gt;
Use o &lt;b&gt;alt + F2&lt;/b&gt; e digite gconf-edit&lt;br /&gt;
Na telinha busque a chave&lt;br /&gt;
***app&lt;br /&gt;
*** nautilus&lt;br /&gt;
***   preferences&lt;br /&gt;
***     always_use_location_entry&lt;br /&gt;
*** Deixe True [x]&lt;br /&gt;
Só isto :-)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Fonte:&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.dicas-l.com.br/dicas-l/20100613.php&quot;&gt;http://www.dicas-l.com.br/dicas-l/20100613.php&lt;/a&gt;&lt;br /&gt;
Colaboração: Flavio Alexandre dos Reis&lt;br /&gt;
Data de Publicação: 13 de junho de 2010</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/6876195799086542814/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/6876195799086542814' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/6876195799086542814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/6876195799086542814'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2010/06/mostrando-barra-de-enderecos-do.html' title='Mostrando a barra de endereços do Nautilus no Ubuntu 10.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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-2769708467331717473.post-5941068734313387357</id><published>2010-04-17T20:34:00.002-03:00</published><updated>2012-03-02T12:00:48.296-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 10.04"/><title type='text'>Internet 2G da Embratel no Ubuntu 10.04 Lucid Lynx</title><content type='html'>Já a quase 2 anos uso a internet 2G da Embratel com o celular Nokia 2115 e cabo USB CA-42, na época escrevi um post sobre como usar este aparelho no Linux: &lt;a href=&quot;http://linuxnomicro.blogspot.com/2008/07/novo-servio-de-internet-da-embratel-no.html&quot;&gt;novo serviço de internet da embratel no Linux&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Agora, com a proximidade do Lançamento de mais um Ubuntu, o 10.04, faço esta revisão no post, mostrando como conectar o Livre no Lucid.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Uma observação: tenho usado este mesmo método com sucesso desde a versão 8.10 do Ubuntu.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
O método é simples, basta criar um novo tipo de conexão; &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Cliquem com o botão direito do mouse no ícone da rede&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihH2lyEzgh0c7WR3Ebq0abhtivjwWLeGd8Fel6c_qsto2QgPGMBBzPTGop-EaWgBHoQfHUY3m9HMpwfEJSrwycN7aYHVaIw5bfj-y2yOkdnQPvqDuAqseydcARAF8aLqb2bxu6WFmlxzs/s1600/giro_01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihH2lyEzgh0c7WR3Ebq0abhtivjwWLeGd8Fel6c_qsto2QgPGMBBzPTGop-EaWgBHoQfHUY3m9HMpwfEJSrwycN7aYHVaIw5bfj-y2yOkdnQPvqDuAqseydcARAF8aLqb2bxu6WFmlxzs/s200/giro_01.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Observem que o dispositivo foi reconhecido&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgME5MCzhAteuW-mKrgDYyAPUqKY1cExF32O0mzQPCaxXkjRMYsKsj_00pdoDxx0c13-acbls91WO_efz3kP8qZVVKu3buabdr-y7f3ULIW7F3YZFSnX4ECpwRjk5uLYUXPxRLnVbs6H_g/s1600/giro_02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;245&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgME5MCzhAteuW-mKrgDYyAPUqKY1cExF32O0mzQPCaxXkjRMYsKsj_00pdoDxx0c13-acbls91WO_efz3kP8qZVVKu3buabdr-y7f3ULIW7F3YZFSnX4ECpwRjk5uLYUXPxRLnVbs6H_g/s400/giro_02.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_xTt4Av_Leo5tZAZDN9Qch4PZQmtBQG84-Y1MfoabQKgaABqHAxgQcelUvClSTNCSvFVIBPBYUrhTNJnwnZXMAgZ95TahdKXhVF015LzhuopJ5ce64OpGfYWeYcephUnN85-2___rEBM/s1600/giro_03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_xTt4Av_Leo5tZAZDN9Qch4PZQmtBQG84-Y1MfoabQKgaABqHAxgQcelUvClSTNCSvFVIBPBYUrhTNJnwnZXMAgZ95TahdKXhVF015LzhuopJ5ce64OpGfYWeYcephUnN85-2___rEBM/s400/giro_03.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoKpny0Wlyplkbi0dvq5ldBvak_DU6H3m-1kyKf7jf9bCQ5rcR7Nc9OoTkK6OYIvVv3yRmuHWP9yFRZxDito33VLONd_jQoNxdAV4-iZamfXVhFdFpPg497BaPmXAazuXf7ph1HqU2ZJ0/s1600/giro_04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoKpny0Wlyplkbi0dvq5ldBvak_DU6H3m-1kyKf7jf9bCQ5rcR7Nc9OoTkK6OYIvVv3yRmuHWP9yFRZxDito33VLONd_jQoNxdAV4-iZamfXVhFdFpPg497BaPmXAazuXf7ph1HqU2ZJ0/s400/giro_04.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Notem as opções conectar automaticamente e disponível para todos os usuários&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGQ7eQneoQi1gKdWyV6TIDe4xbZg4t_fpjJeRAFzCN1hRFeJpTauEmJ9UAqRzYkKfAhKpWCaIAiOAWXNOzjD1dh8oWKpSUQ501ZsKp-wLPRGJ2Eza2BU9fg2jqjV3Z6e8IshuM_UTrMaU/s1600/giro_05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGQ7eQneoQi1gKdWyV6TIDe4xbZg4t_fpjJeRAFzCN1hRFeJpTauEmJ9UAqRzYkKfAhKpWCaIAiOAWXNOzjD1dh8oWKpSUQ501ZsKp-wLPRGJ2Eza2BU9fg2jqjV3Z6e8IshuM_UTrMaU/s320/giro_05.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Deixem todas as opções de compactação desabilitadas&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoRgwk7gPzQABEIMWXCexGIUgKv6d8uP18Pt3LFZbUTLm5hgJfRKSG18PMC-YtgVJPV4uUAP6n-aJfvO61QmUlrZI0AfADxiRIxH52BvDJfdEhC3g_VLvO7lzwe2rnpJLZh0YPe58DNd4/s1600/giro_06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoRgwk7gPzQABEIMWXCexGIUgKv6d8uP18Pt3LFZbUTLm5hgJfRKSG18PMC-YtgVJPV4uUAP6n-aJfvO61QmUlrZI0AfADxiRIxH52BvDJfdEhC3g_VLvO7lzwe2rnpJLZh0YPe58DNd4/s320/giro_06.png&quot; width=&quot;269&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Depois é só aplicar.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggnTJTnPw4n4Brc6kFO5-A4xEhnHpb6xZJNxFUTEE4U3pDL60LBykRD2h4ro12QXmh0Ditk7zuv2yULjRlw1sirlCJ4Dm2KVVxhTBhGGSsXs6I4DbQHN72OkZ33BGimRSlOlqHNJvDvdo/s1600/giro_07.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggnTJTnPw4n4Brc6kFO5-A4xEhnHpb6xZJNxFUTEE4U3pDL60LBykRD2h4ro12QXmh0Ditk7zuv2yULjRlw1sirlCJ4Dm2KVVxhTBhGGSsXs6I4DbQHN72OkZ33BGimRSlOlqHNJvDvdo/s320/giro_07.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;A conexão já estará presente como opção no ícone  de rede e pronta para uso. É só isto mesmo.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;Aproveitem os 150 Kbps de conexão que às vezes chega quase a 100 :-) &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/5941068734313387357/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/5941068734313387357' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5941068734313387357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5941068734313387357'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2010/04/internet-2g-da-embratel-no-ubuntu-1004.html' title='Internet 2G da Embratel no Ubuntu 10.04 Lucid Lynx'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihH2lyEzgh0c7WR3Ebq0abhtivjwWLeGd8Fel6c_qsto2QgPGMBBzPTGop-EaWgBHoQfHUY3m9HMpwfEJSrwycN7aYHVaIw5bfj-y2yOkdnQPvqDuAqseydcARAF8aLqb2bxu6WFmlxzs/s72-c/giro_01.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-5877433603143089576</id><published>2010-03-25T19:11:00.000-03:00</published><updated>2010-04-17T16:41:18.602-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 10.04"/><title type='text'>Ubuntu 10.04 (Lucid) Versão do Dia</title><content type='html'>Para quem está querendo testar o Ubuntu 10.04 (Lucid) e não sabe por onde começar, procure na página &lt;a href=&quot;http://cdimage.ubuntu.com/&quot;&gt;cdimage&lt;/a&gt; do Ubuntu pelo link &lt;a href=&quot;http://cdimage.ubuntu.com/daily-live/&quot;&gt;daily-live&lt;/a&gt; e você terá um liveCD que acabou de sair do forno.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixvJx0LczEEcePqtHa0I1A47uChzTdPzHd3oPYUV_VD2LeRJt3UxH8IdXzxujvVIQ95PbSoL4DevB7Z9fbU6jcjo13pRp1He1bicTpA9Z50moRf6ZXFgKHnRKKzjEfz75rS8F_sVmMZks/s1600/ubuntu_lucid.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixvJx0LczEEcePqtHa0I1A47uChzTdPzHd3oPYUV_VD2LeRJt3UxH8IdXzxujvVIQ95PbSoL4DevB7Z9fbU6jcjo13pRp1He1bicTpA9Z50moRf6ZXFgKHnRKKzjEfz75rS8F_sVmMZks/s400/ubuntu_lucid.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/5877433603143089576/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/5877433603143089576' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5877433603143089576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5877433603143089576'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2010/03/ubuntu-1004-lucid-versao-do-dia.html' title='Ubuntu 10.04 (Lucid) Versão do Dia'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixvJx0LczEEcePqtHa0I1A47uChzTdPzHd3oPYUV_VD2LeRJt3UxH8IdXzxujvVIQ95PbSoL4DevB7Z9fbU6jcjo13pRp1He1bicTpA9Z50moRf6ZXFgKHnRKKzjEfz75rS8F_sVmMZks/s72-c/ubuntu_lucid.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-8612499296192230637</id><published>2009-08-09T21:00:00.005-03:00</published><updated>2012-03-02T12:01:27.726-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet"/><category scheme="http://www.blogger.com/atom/ns#" term="Programação"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 9.04"/><title type='text'>Servidor Web com Postgresql e PHP no Ubuntu9.04</title><content type='html'>&lt;p&gt;&lt;i&gt;&lt;b&gt;Este tutorial abrange a instalação e configuração de um Servidor Web Apache, SGDB PostgreSql, Php5 e ferramentas de administração e manutenção do sistema, para uso com o CakePHP.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;Para testá-lo usei um Ubuntu 9.04 recém instalado.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;Para começarmos&lt;/b&gt;&lt;/i&gt;, vamos abrir um terminal (alt+F2 - &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;gnome-terminal&lt;/span&gt; - executar), para mudar para administrador digite:&lt;br /&gt;$ &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;sudo bash&lt;/span&gt;&lt;br /&gt;após a senha o prompt mudará para # e estaremos logados como administrador&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Instalar o apache &lt;/b&gt;&lt;/p&gt;#&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; apt-get install apache2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;i&gt;Confirmar se o apache está rodando&lt;/i&gt;&lt;br /&gt;reiniciar o apache&lt;br /&gt;# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;/etc/init.d/apache2 restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Alt+F2 - Firefox - executar&lt;br /&gt;&lt;br /&gt;digitar&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; &lt;a href=&quot;http://localhost/&quot;&gt;http://localhost&lt;/a&gt;&lt;/span&gt; na barra de localização&lt;br /&gt;Se tudo estiver bem aparecerá a mensagem : &lt;span style=&quot;font-size:130%;&quot;&gt;&lt;b&gt;It works!&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;i&gt;Para tirar esta mensagem e ver a pasta raiz do apache, basta renomear ou excluir arquivo index.html em /var/www&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Ativar o modo rewrite do apache&lt;/b&gt;&lt;/i&gt;, necessário para o CakePHP trabalhar&lt;br /&gt;&lt;p&gt;#&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load&lt;/span&gt;&lt;/p&gt;# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;gedit /etc/apache2/sites-available/default&lt;/span&gt;&lt;br /&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt;Libere as permissões AllowOverride para a pasta www mudando de none para All&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;directory&gt;   &lt;p style=&quot;margin-bottom: 0cm;&quot;&gt; &lt;/p&gt;&lt;/directory&gt;Options Indexes FollowSymLinks MultiViews&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;AllowOverride All   &lt;/span&gt;&lt;br /&gt;Order allow,deny&lt;br /&gt;allow from all&lt;br /&gt;&lt;br /&gt;Reiniciar o apache&lt;directory&gt;&lt;p style=&quot;margin-bottom: 0cm;&quot;&gt; &lt;/p&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;# &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; /etc/init.d/apache2 restart&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Instalar o PHP&lt;/b&gt;&lt;br /&gt;# &lt;span style=&quot;color: rgb(56, 118, 29);&quot;&gt;apt-get install php5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Instalar o Postgresql&lt;/b&gt;&lt;br /&gt;# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;apt-get install postgresql postgresql-contrib postgresql-doc postgresql-client&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;b&gt;Instalar o phppgadmin&lt;/b&gt; - para gerenciar o Postgresql&lt;br /&gt;&lt;p&gt;# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;apt-get install phppgadmin&lt;/span&gt; &lt;/p&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;Liberar o phppgadmin&lt;/b&gt;&lt;/i&gt; para aceitar logon do usuário postgres, vem desativado por padrão&lt;br /&gt;&lt;p&gt;# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;gedit /etc/phppgadmin/config.inc.php &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Procure a linha&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;$conf[&#39;extra_login_security&#39;] = true;&lt;/span&gt;&lt;br /&gt;e troque por false&lt;br /&gt;&lt;span style=&quot;color: rgb(153, 0, 0);&quot;&gt;$conf[&#39;extra_login_security&#39;] = false; &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;b&gt;&lt;i&gt;Alterar a senha do postgres&lt;/i&gt;&lt;/b&gt; - Após a instalação o Postgresql adicionou automaticamente um usuário ao Sistema chamado “postgres” . Para alterar a senha deste usuário podemos efetuar os comandos:&lt;br /&gt;# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;su postgres&lt;/span&gt;&lt;br /&gt;&lt;p&gt;o prompt muda para $ agora vamos abrir o terminal do postgresql&lt;br /&gt;$&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; psql&lt;/span&gt; &lt;/p&gt;o prompt muda para =#&lt;br /&gt;para criar ou mudar a senha:&lt;br /&gt;=#  &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;\password postgres&lt;/span&gt;&lt;br /&gt;neste exemplo, altere para &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;postgres&lt;/span&gt; e confirme&lt;br /&gt;Para sair do psql&lt;br /&gt;=# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;\q&lt;/span&gt;&lt;br /&gt;Para voltar prompt do root&lt;br /&gt;$ &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;exit&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;Testar o PhpPgAdmin&lt;/i&gt; - &lt;/b&gt;abra o firefox e digite na barra de localização&lt;br /&gt;&lt;a href=&quot;http://localhost/phppgadmin/&quot;&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;http://localhost/phppgadmin/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;No logon digitar usuário postgres, senha postgres&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Para liberar o phppgadmin para acesso a maquinas externas&lt;br /&gt;#&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; gedit /etc/phppgadmin/apache.conf&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Procure por:&lt;br /&gt;order deny,allow&lt;br /&gt;deny from all&lt;br /&gt;allow from 127.0.0.0/255.0.0.0&lt;br /&gt;&lt;br /&gt;Para:&lt;br /&gt;order deny,allow&lt;br /&gt;#deny from all (ficou em comentário)&lt;br /&gt;#allow from 127.0.0.0/255.0.0.0 (ficou em comentário)&lt;br /&gt;allow from all&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(255, 102, 0); font-weight: bold;&quot;&gt;*Se quiser restringir alguns Ips para terem acesso ao PhpPgAdmin - troque o all pelos números de Ips liberados&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;Pgadmin3 - uma opção interessante ao PhpPgAdmin para uso local&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;#&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; apt-get install pgadmin3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Instalar o Webmin - administrador de sistemas via Web&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Baixe a versão .deb do  Webmin da página de donwloads &lt;a href=&quot;http://www.webmin.com/download.html&quot;&gt;http://www.webmin.com/download.html&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Clique no pacote baixado, que será aberto pelo Gdebi, e depois clique em instalar; acrescente sua senha e aguarde o Gdebi baixar as dependências necessárias e fazer a instalação.Para acessar o Webmin - abra o firefox no endereço:&lt;br /&gt;&lt;a href=&quot;https://localhost:10000/&quot;&gt;https://localhost:10000&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(255, 102, 0); font-weight: bold;&quot;&gt;Atenção: Será necessário criar uma exceção para o firefox abrir o protocolo de segurança do Webmin.&lt;/span&gt;&lt;br /&gt;&lt;p&gt;Se o Firerox oferecer a exceção, é só aceitá-la, caso ele não ofereça. Vá em preferências - avançado - certificados - Na aba servidores, clique em adicionar exceção.&lt;/p&gt;&lt;br /&gt;&lt;b&gt;Configurações extras - não utilizei, mas a informação pode ser útil&lt;/b&gt;&lt;br /&gt;&lt;p&gt;A configuração padrão do PostgreSQL faz com que apenas conexões locais (via soquete UNIX) sejam permitidas. Vamos alterar Para que ele aceite conexões de outros micros da rede&lt;br /&gt;# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;gedit /etc/postgresql/8.32/main/postgresql.conf&lt;/span&gt;&lt;br /&gt;Edite o arquivo e procure a linha&lt;br /&gt;&lt;/p&gt;&lt;p&gt;listen_addresses = ‘localhost’&lt;br /&gt;altere para:&lt;br /&gt;listen_addresses = ‘*’&lt;br /&gt;&lt;br /&gt;Agora vamos editar o arquivo que controla quais hosts terão permissões de conexão, como os clientes se autenticam, quais usuários do PostgreSQL podem ser usados e que bancos de dados eles podem acessar.&lt;br /&gt;# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;gedit /etc/postgresql/8.3/main/pg_hba.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A sintaxe é a seguinte:&lt;br /&gt;host all all ip_do_servidor/32 md5&lt;br /&gt;&lt;br /&gt;Para o nosso objetivo não se precisou alterar nada no arquivo, bastou garantir as linhas padrões:&lt;br /&gt;&lt;br /&gt;# IPv4 local connections:&lt;br /&gt;host    all         all         127.0.0.1/32          md5&lt;br /&gt;&lt;/p&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;&lt;br /&gt;Criar um novo usuário&lt;/span&gt; para login com o phppgadmin&lt;br /&gt;&lt;p&gt;$ &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;su postgres&lt;/span&gt;&lt;br /&gt;o prompt muda para $&lt;br /&gt;abrir o terminal do postgresql&lt;br /&gt;$ &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;psql&lt;/span&gt;&lt;br /&gt;para criar um novo usuario chamado francisco&lt;br /&gt;=# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;CREATE ROLE francisco;&lt;/span&gt;&lt;br /&gt;para definir senha para usuario francisco&lt;br /&gt;=# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;\password francisco&lt;/span&gt;&lt;br /&gt;para dar permissões para o usuário francisco criar banco de dados&lt;br /&gt;=# &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;ALTER ROLE francisco CREATEROLE CREATEDB; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;FranciscoLima&lt;/span&gt;&lt;/p&gt;&lt;/directory&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/8612499296192230637/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/8612499296192230637' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/8612499296192230637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/8612499296192230637'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2009/08/servidor-web-com-postgresql-e-php-no.html' title='Servidor Web com Postgresql e PHP no Ubuntu9.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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-2769708467331717473.post-3937821477068715267</id><published>2008-07-29T23:27:00.004-03:00</published><updated>2008-08-07T00:23:15.916-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 8.04"/><title type='text'>Novo serviço de internet da Embratel no Linux</title><content type='html'>Há umas duas semanas, contratei o novo serviço de internet da Embratel que atualmente está disponível na Grande São Paulo, e que, segundo dizem, brevemente chegará ao interior de São Paulo.&lt;br /&gt;O sistema se chama Giro e usa o mesmo aparelho celular Nokia 2115, usado pelo Livre, sistema de telefonia da Embratel.&lt;br /&gt;Para quem usava a Internet Ilimitada da Telefônica, com uma conexão que não passava de 31 kbps e que atualmente estava quase impossível de se usar de fato, a notícia de uma internet de até 150 kbps por um preço menor me atraiu imediatamente.&lt;br /&gt;Na hora de fazer a aquisição do serviço, temos que informar se usamos Windows XP, ou Windows 2000, não há nenhuma outra opção. Bom..., mandei colocar na ficha Windows XP, só para não deixar em branco.&lt;br /&gt;&lt;br /&gt;Bom, nem preciso dizer que a conexão é bem melhor do que a antiga, mesmo que raramente chegue aos 150 kbps, consegue ficar por volta de uns 64kbps, o que já é o dobro do que tinha.&lt;br /&gt;Mas, vamos aos fatos...&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Como usar o &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt; celular, digo, &lt;/span&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;modem no Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Junto com o aparelho vem um USB, o CA-42, que faz a conexão do telefone com o micro.&lt;br /&gt;Fiz o teste no Ubuntu 8.04, Kurumin 7.0 e Fedora 8.0 e em todos a internet funcionou sem problemas e com poucas configurações.&lt;br /&gt;&lt;br /&gt;Basicamente, temos que incluir no final do arquivo &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;/etc/ppp/options&lt;/span&gt;,  &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;/span&gt; as linhas:&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;nobsdcomp&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;nodeflate&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#---&amp;lt;End of File&amp;gt;---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Estas duas opções desabilitam os recursos de compressão de dados que são padrões no ppp, mas que por algum motivo que desconheço travam a conexão quando estão habilitadas, ficando impossível de ser usada.&lt;br /&gt;&lt;br /&gt;No Ubuntu, se você não tiver instalado o &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;kppp&lt;/span&gt; ou &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;gnome-ppp&lt;/span&gt;, pode usar o wvdial, que é um bom discador para terminal.&lt;br /&gt;&lt;br /&gt;O modem USB, nos três sistemas foi reconhecido na porta &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;/dev/ttyACM0,&lt;/span&gt; se quiser confirmar use o wvdialconf.&lt;br /&gt;abra um terminal de sua preferência e digite:&lt;br /&gt;sudo wvdialconf &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;/etc/wvdial.conf&lt;/span&gt;&lt;br /&gt;O wvdialconf vai gravar as informações básicas do modem, no arquivo &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;/etc/wvdial.conf&lt;/span&gt;, o único trabalho que temos depois é editar este arquivo acrescentando o login e senha para acesso ao giro, deixando como abaixo:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;[Dialer Defaults]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Init1 = ATZ&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Init2 = ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Modem Type = USB Modem&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Baud = 230400&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;New PPPD = yes&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Modem = /dev/ttyACM0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;ISDN = 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Username = giro@giro.click21.com.br&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Password = giro&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Phone = #777&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Stupid Mode = 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Depois é só digitar &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;wvdial&lt;/span&gt; no terminal e sair navegando.&lt;br /&gt;&lt;br /&gt;No Kurumin 7.0, como o Wvdial não está instalado por padrão, podemos usar o kppp, preenchendo as informações como acima.&lt;br /&gt;Se o Kppp insistir em não conectar, limpe o arquivo de configuração dele. No meu caso, as configurações antigas, do meu slmodem, impediram a conexão. Você pode apagar o arquivo &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;kppprc&lt;/span&gt; em&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; ~/.kde/share/config/ou /root/&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;.kde/share/config/&lt;/span&gt;, segundo o caso. Com o kppprc apagado é só abrir o kppp e refazer a configuração. Atente principalmente ao&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt; init2&lt;/span&gt;, o kppp não inseriu a linha quando fiz a consulta ao modem (perguntar ao modem), tive que inserir manualmente, como também o caminho do modem (&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;/dev/ttyACM0&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;O Gnome-ppp se saiu melhor neste ponto, foi só usar o botão detectar que as configurações do modem foram carregadas.&lt;br /&gt;&lt;br /&gt;Como podem perceber, é algo muito simples. Basicamente é alterar o arquivo &lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;/etc/ppp/options&lt;/span&gt; e criar a conexão dial-up normal, como se faria com um outro modem qualquer.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;OBS:&lt;/span&gt; para que o meu win-modem não atrapalhasse no processo de auto-detecção do wvdial,  desativei ele via console; como uso um smartlink o comando foi:&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;sudo /etc/init.d/sl-modem-daemon stop&lt;/span&gt;&lt;br /&gt;Isto foi só para gerar o /etc/wvdial.conf, pois como os dois modens usam portas diferentes, um não atrapalha o outro.&lt;br /&gt;&lt;br /&gt;Qualquer dúvida que tenham é só postar, que procurarei ajudar da melhor forma possível.&lt;br /&gt;&lt;br /&gt;FranciscoLima</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/3937821477068715267/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/3937821477068715267' title='24 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/3937821477068715267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/3937821477068715267'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2008/07/novo-servio-de-internet-da-embratel-no.html' title='Novo serviço de internet da Embratel no Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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>24</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-5580862945753272979</id><published>2008-06-29T18:53:00.005-03:00</published><updated>2008-08-07T00:22:55.120-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet"/><category scheme="http://www.blogger.com/atom/ns#" term="Shell Script"/><title type='text'>Usando o apt-get offline (para quem usa conexão discada)</title><content type='html'>Nós que usamos conexão discada, às vezes passamos um aperto na hora de atualizar nosso sistema. Um dia desses, passei por isto. Após o update normal do apt-get, vi que teria que baixar quase 200MB para atualizar meu Ubuntu 8.04, como estava sem paciência de ficar esperando 2 dias para fazer as atualizações, resolvi usar um artigo que havia visto no LinuxDicas, sobre como usar o apt offline. Não lembrava onde estava o link, mas uma busca no Google e ficou tudo resolvido:&lt;br /&gt;&lt;a href=&quot;http://www.linuxdicas.com.br/article610.html&quot;&gt;http://www.linuxdicas.com.br/article610.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Realmente a dica é interessante, o uso do&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;content&quot; style=&quot;color: rgb(80, 80, 80);&quot;&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;apt-get -qq --print-uris upgrade &lt;/span&gt;&lt;/span&gt;facilitaria as coisas. O problema é que em uma parte do artigo, indicava alterar o arquivo gerado no Windows, usando comandos de DOS, e eu prefiro uma solução onde possa fazer a maior parte no Linux e só usar o Windows ou outro Linux para baixar os pacotes.&lt;br /&gt;&lt;br /&gt;Como gosto de Shell Script, resolvi fazer um programinha simples para automatizar a tarefa:&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;alt2&quot; style=&quot;border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 420px; height: 210px;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;#!/bin/bash&lt;br /&gt;#apt_off ---&gt; Script para utilizar o apt-get offline para quem tem conexão lenta&lt;br /&gt;&lt;br /&gt;#1º passo: gerar o arquivo com os links&lt;br /&gt;sudo apt-get -qq --print-uris dist-upgrade &gt;&gt; /tmp/$$apt&lt;br /&gt;&lt;br /&gt;#2º passo: deixar só os links e criar o arquivo&lt;br /&gt;cut -f2 -d\&#39; /tmp/$$apt &gt; ~/links.txt&lt;br /&gt;&lt;br /&gt;#3º passo: remover o arquivo temporário&lt;br /&gt;rm -f /tmp/$$apt&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Desta forma, após rodar o script, tenho a lista com os endereços dos arquivos que precisarei baixar. De posse desta lista entra em cena o wget, se você for usar a Internet Banda Larga de um amigo que já possui Linux, basta o comando abaixo dentro de uma pasta criada para guardar os pacotes:&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;wget - i links.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Se você for usar a internet na casa de um amigo que usa Windows ou num cibercafé, pode baixar o wget para Windows em um destes links:&lt;br /&gt;&lt;a href=&quot;http://superdownloads.uol.com.br/download/147/wget-windows/&quot;&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;http://superdownloads.uol.com.br/download/147/wget-windows/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.interlog.com/%7Etcharron/wgetwin-1_5_3_1-binary.zip&quot;&gt;http://www.interlog.com/~tcharron/wgetwin-1_5_3_1-binary.zip&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://gnuwin32.sourceforge.net/packages/wget.htm&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Eu fiz da seguinte forma:&lt;br /&gt;Após baixar o wget, descompactei numa pasta em meu pen-drive, onde copiei o arquivo links.txt, gerado pelo script. No ciber, coloquei o pen-drive, abri o emulador de terminal DOS no Windows, naveguei até o pendrive com um &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;d:&lt;/span&gt;, entrei na pasta com um &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;cd:&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;nome da pasta&lt;/span&gt; e digitei o comando como faria no Linux:&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;wget.exe - i links.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Os pacotes debian foram baixados no próprio pen-drive, em pouco mais de meia hora já estava em casa. Daí foi só copiar todos os pacotes para &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;/var/cache/apt/archives&lt;/span&gt; e atualizar o sistema com um &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;apt-get dist-upgrade&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Com um pouco de criatividade este pequeno script pode ser alterado para baixar aplicativos também.</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/5580862945753272979/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/5580862945753272979' title='4 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5580862945753272979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/5580862945753272979'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2008/06/usando-o-apt-get-offline-para-quem-usa.html' title='Usando o apt-get offline (para quem usa conexão discada)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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-2769708467331717473.post-4451720359278836698</id><published>2008-05-15T20:23:00.004-03:00</published><updated>2011-10-01T14:38:46.413-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Multimídia"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 8.04"/><title type='text'>Multimídia no Ubuntu 8.04</title><content type='html'>&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Mesmo sem trazer codecs proprietários&lt;/span&gt;, por questão de licenças, é muito fácil tocar um mp3 ou um vídeo no Ubuntu. Isto graças ao sistema de instalação automática de aplicativos.&lt;br /&gt;Por exemplo: Ao tentarmos abrir um arquivo mp3 no Reprodutor de Músicas (Rhythmbox), surge uma janela ofercendo-se para baixar o codec apropriado, como a abaixo.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj497F_BPSwAPO-Y7SzsS9bhvTqBwvHibV6lYGkHx-zfG2evfo1SESns5y-y3TMvvjgkACDhkNmpgDaaJpKptv1b55OS4MqLWOoCluUbcOmYeFR_Q5H8_MPnIjUusIPqgZ7hdPmxyMuKn8/s1600-h/multimida_ubuntu01.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj497F_BPSwAPO-Y7SzsS9bhvTqBwvHibV6lYGkHx-zfG2evfo1SESns5y-y3TMvvjgkACDhkNmpgDaaJpKptv1b55OS4MqLWOoCluUbcOmYeFR_Q5H8_MPnIjUusIPqgZ7hdPmxyMuKn8/s400/multimida_ubuntu01.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5203621780765495378&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Ao clicarmos em busca, o sistema oferece a instalação de dois pacotes de codecs: o GStreamer extra plugins e o GStreamer ffmpeg vídeo plugins.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOPH690_1dGZoM_ZBdGAqhWqvRhxf_oCxpXOl2xgvysCEzfzQj6KCD_SbyU8jr5xqWVkqbFNYGD9PJ5WeDcr5_ydwiGwa4EBYAYEP3oGUzcfGlmSV2zaYhJXFmOuW_rG-C0JOpN_bS4uA/s1600-h/multimida_ubuntu01a.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOPH690_1dGZoM_ZBdGAqhWqvRhxf_oCxpXOl2xgvysCEzfzQj6KCD_SbyU8jr5xqWVkqbFNYGD9PJ5WeDcr5_ydwiGwa4EBYAYEP3oGUzcfGlmSV2zaYhJXFmOuW_rG-C0JOpN_bS4uA/s400/multimida_ubuntu01a.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5203621785060462690&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;É só clicar em instalar e confirmar que o Synaptic baixa e instala os plugins.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHagBHmRTCW_AeP4pET9bIcgDMTCnZ4JIJYwi7jTqETODlBSWiy9H4F-w3ucvCesneI10o0eisOc3WX5ZadtrlrZJhSYcQIcWh7kpypgL2CAV_OTnA7khYiFJhrYYHWD-hp92HIoFk3Ng/s1600-h/multimida_ubuntu02.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHagBHmRTCW_AeP4pET9bIcgDMTCnZ4JIJYwi7jTqETODlBSWiy9H4F-w3ucvCesneI10o0eisOc3WX5ZadtrlrZJhSYcQIcWh7kpypgL2CAV_OTnA7khYiFJhrYYHWD-hp92HIoFk3Ng/s400/multimida_ubuntu02.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5203621789355430002&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Isto ocorre sempre que o sistema está diante de um arquivo de vídeo ou áudio que não consegue tocar.&lt;br /&gt;Para quem quer baixar todos os codecs e aplicativos de uma única vez e deixar o Ubuntu mais completo, vale a pena uma visita no &lt;a href=&quot;http://hamacker.wordpress.com/ubuntu-paradise/&quot;&gt;Ubuntu-Paradise&lt;/a&gt;, um guia muito bem montado para deixar seu Ubuntu &quot;tinindo&quot;&lt;br /&gt;&lt;br /&gt;----------------------------------------------------&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Outra dificuldade no Ubuntu é tocar DVDs&lt;/span&gt;, o Totem-GStreamer, que vem instalado por padrão no Ubuntu, não consegue lidar com menus e legendas em DVDs.&lt;br /&gt;Uma solução é instalar o Totem-xine. Abra o Adicionar/Remover aplicativos e procure por xine, como na figura abaixo.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyPSIpXVIBU_GRNI9THVmPunHbYylukdD49LreAMOaR-tBb61z7VEHtFdQTxQuATcaqvSw6SN5cmJQPXJMnQXkp64kzYOuU-KbWB0KXPwyIQ71Xfy1bMHfdn1V1XUsjFeqrG6RagnZBSI/s1600-h/multimida_ubuntu03.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyPSIpXVIBU_GRNI9THVmPunHbYylukdD49LreAMOaR-tBb61z7VEHtFdQTxQuATcaqvSw6SN5cmJQPXJMnQXkp64kzYOuU-KbWB0KXPwyIQ71Xfy1bMHfdn1V1XUsjFeqrG6RagnZBSI/s400/multimida_ubuntu03.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5203621789355430018&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Escolha o Movie Player Totem (xine backend) e clique em aplicar. Após o sistema baixar e instalar o Totem-xine, vamos configurá-lo para ser aberto automaticamente quando inserimos uma mídia de DVD.&lt;br /&gt;Abra um terminal (ir em &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Aplicações - Acessórios - Consola&lt;/span&gt; ou &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Alt+F2 - gnome-terminal&lt;/span&gt;).&lt;br /&gt;Para configurar o Totem para trabalhar com o Totem-xine e não o  Totem-gstreamer digite:&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;&lt;br /&gt;sudo update-alternatives --config totem&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;escolha o totem-xine - opção 2&lt;br /&gt;&lt;br /&gt;Depois disto os DVDs já serão abertos automaticamente com Menus e legendas&lt;br /&gt;&lt;br /&gt;Embora  tenha gostado do totem-xine para DVDs, ainda prefiro o Gstreamer para arquivos Xvid ou Dvix, acho que a legenda srt se comporta melhor nele. Por isto dexei ele habilitado no menu, se este for o seu caso, vá em &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Sistema - Preferências - Menu Principal&lt;/span&gt;, no item &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Som e vídeo&lt;/span&gt;, ative o &quot;Reprodutor de Filmes (Gstreamer)&quot;, que ele aparecerá no Menu.&lt;br /&gt;&lt;br /&gt;----------------------------------------------------&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Para assistir DVDs protegidos no Ubuntu&lt;/span&gt;, você precisa do pacote libdvdcss.deb. O aplicativo libdvdread3 faz este trabalho para você:&lt;br /&gt;&lt;br /&gt;abra um terminal, como indicado acima e digite:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;sudo /usr/share/doc/libdvdread3/install-css.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ao final do download aparece uma mensagem como esta:&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;20:48:45 (2.67 KB/s) - `/tmp/dvdcss-r18828/libdvdcss.deb&#39; Salvo [25178/25178]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A libdvdcss foi baixada dentro de uma pasta no diretório /tmp&lt;br /&gt;É só acessar a pasta como administrador  e clicar no pacote &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;libdvdcss.deb&lt;/span&gt;, o Gdebi faz o resto.&lt;br /&gt;&lt;br /&gt;Agora tanto DVDs protegidos ou não serão abertos pelo Totem-Xine&lt;br /&gt;&lt;br /&gt;----------------------------------------------------&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Extrair CDs de áudio em mp3&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;O Sound-Juicer, aplicativo usado no Ubuntu para extrair CDs de áudio trabalha com formato Ogg como padrão, para habilitá-lo para trabalhar com mp3, baixe o gstream0.10-plugins-ugly-multiverse, através do Synaptic ou abra um terminal e digite:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;sudo apt-get install gstreamer0.10-plugins-ugly-multiverse&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;----------------------------------------------------&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Instalar máquina virtual Java da Sun&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para instalar o Java da Sun, digite num terminal&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;sudo apt-get -y install sun-java6-bin sun-java6-fonts sun-java6-jre sun-java6-plugin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Se você tiver outra versão Java pode escolher qual será a padrão com o comando:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;sudo update-alternatives --config java&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----------------------------------------------------&gt;&gt;&gt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Instalar fontes TrueType&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para instalar fontes Truetype, como arial, times, times new roman e etc, baixe o msttcorefonts. Abara um terminal e digite&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;sudo apt-get install msttcorefonts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;OBSERVAÇÃO: Todos os comandos utilizando o sudo apt-get install podem ser substituídos pelo Synaptic, interface gráfica do apt-get.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/4451720359278836698/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/4451720359278836698' title='7 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/4451720359278836698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/4451720359278836698'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2008/05/multimdia-no-ubuntu-804.html' title='Multimídia no Ubuntu 8.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj497F_BPSwAPO-Y7SzsS9bhvTqBwvHibV6lYGkHx-zfG2evfo1SESns5y-y3TMvvjgkACDhkNmpgDaaJpKptv1b55OS4MqLWOoCluUbcOmYeFR_Q5H8_MPnIjUusIPqgZ7hdPmxyMuKn8/s72-c/multimida_ubuntu01.jpg" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-647476002037664208</id><published>2008-05-12T12:58:00.013-03:00</published><updated>2008-12-09T08:15:24.861-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 8.04"/><title type='text'>Instalando o Ubuntu 8.04</title><content type='html'>&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Para instalar o Ubuntu&lt;/span&gt;, como qualquer outro sistema operacional, o setup da máquina deve estar configurado para dar boot pelo drive de CD-ROM ou DVD, conforme o caso. Se o seu micro não está configurado para dar boot pelo CD e você não sabe como fazê-lo, dê uma olhada no link abaixo:&lt;br /&gt;&lt;a href=&quot;http://informatizado.wordpress.com/2007/04/29/configuracao-do-cmos-setup-parte-i/&quot;&gt;http://informatizado.wordpress.com/2007/04/29/configuracao-do-cmos-setup-parte-i/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Quando iniciamos o CD do Ubuntu&lt;/span&gt;, a primeira tela que vemos é a abaixo.&lt;br /&gt;Geralmente só precisamos escolher o idioma e teclar enter. No caso do sistema não iniciar por alguma incompatibilidade de hardware, o melhor local para fazer uma pesquisa e verificar se alguém teve um problema semelhante é no &lt;a href=&quot;http://ubuntuforum-br.org/&quot;&gt;Fórum do Ubuntu&lt;/a&gt;, há uma grande possibilidade de você encontrar a solução de seu problema lá.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;ATENÇÃO: No Ubuntu 8.04 necessita-se de 384MB de memória ram para a opção testar o sistema e 256MB para opção instalar o sistema.&#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZsyUlBBAwsgbQly0_SXF02MvUYvgN13OMRJ7FDijA-U7a8pG69NpWMCIPXb7lg8WQUMJqGowYtjnx9poQ6CaokyT4t4H74RuEkebQAyAbnV0P7Djykp_yolbXt3fEcLf-3lZOMuPmqmU/s1600-h/instala%C3%A7%C3%A3o.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZsyUlBBAwsgbQly0_SXF02MvUYvgN13OMRJ7FDijA-U7a8pG69NpWMCIPXb7lg8WQUMJqGowYtjnx9poQ6CaokyT4t4H74RuEkebQAyAbnV0P7Djykp_yolbXt3fEcLf-3lZOMuPmqmU/s400/instala%C3%A7%C3%A3o.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199525839399832706&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Se o boot ocorrer sem problemas,&lt;/span&gt; somos recebidos com uma tela como a abaixo; podemos testar o Ubuntu à vontade com ele rodando pelo CD, na hora que decidirmos instalá-lo é só clicar no ícone Instalar o sistema no computador e o programa de instalação é iniciado. São apenas 7 passos.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqAztOmFHCv37Y_GM3kKmj9OUDzWt2nLEWYqzcGN-liTbRSc8ZqbNtspBMPLp7tYK45o9LgIxO_y-NVAaOy7nvsRM5cHpzsZuP1kUpyE_CfqXy-axVfUqSHIM41vEX-2XsOXWxIIea-JE/s1600-h/instala%C3%A7%C3%A3o01.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqAztOmFHCv37Y_GM3kKmj9OUDzWt2nLEWYqzcGN-liTbRSc8ZqbNtspBMPLp7tYK45o9LgIxO_y-NVAaOy7nvsRM5cHpzsZuP1kUpyE_CfqXy-axVfUqSHIM41vEX-2XsOXWxIIea-JE/s400/instala%C3%A7%C3%A3o01.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199525852284734610&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;1º Passo&lt;/span&gt;: Escolher o idioma do sistema, se iniciamos o Ubuntu em Português, ele já estará pré-selecionado.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWQY7GzP2iT06qQm2CSqeIQwaZ2IyWDWyfeQVVA0RuFGDQhtLIxBczVDlxvmJw_E6P4IMCtoItOXGWOp_pSidbse1I-d3YOoN4Jbnrfwm_iNYNbkuqNtxYzSZHfrdgPE-JULy9x0D8XrQ/s1600-h/instala%C3%A7%C3%A3o03.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWQY7GzP2iT06qQm2CSqeIQwaZ2IyWDWyfeQVVA0RuFGDQhtLIxBczVDlxvmJw_E6P4IMCtoItOXGWOp_pSidbse1I-d3YOoN4Jbnrfwm_iNYNbkuqNtxYzSZHfrdgPE-JULy9x0D8XrQ/s400/instala%C3%A7%C3%A3o03.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199524714118401090&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;2º Passo&lt;/span&gt;: Localidade e fuso horário.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0oubEc_uflEH9Jbk6-FtIQrJsFVH38OneDE3LkMt0AUoOIB-TkVdZw6ILU-fz81Tg9GGxNUtfMotiXIoC7ZlLzQ8dvjXpwIJjFmYE7B0CpKl_0kGjUZjHZXV44BcPVfn25zlZQO9pvvk/s1600-h/instala%C3%A7%C3%A3o04.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0oubEc_uflEH9Jbk6-FtIQrJsFVH38OneDE3LkMt0AUoOIB-TkVdZw6ILU-fz81Tg9GGxNUtfMotiXIoC7ZlLzQ8dvjXpwIJjFmYE7B0CpKl_0kGjUZjHZXV44BcPVfn25zlZQO9pvvk/s400/instala%C3%A7%C3%A3o04.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199524718413368402&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;3º Passo&lt;/span&gt;: Layout do teclado. Se seu teclado é padrão ABNT, é só escolher Brazil - Brazil.&lt;br /&gt;Aproveite a caixa que há para testar o funcionamento das teclas, em caso de dúvida.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ74xgwSnynFxoHXK0O640oQSqHgJ3PDmpj7zYLvsgY2d2BWm9cV0saNqcqqC4Qmu4tzBLmguf5vTuqVAs5y59xOr_xqklkhyphenhyphennLfdFIL4zex_9zHOGSi90-zE9mgWeqIrC-oAZOmQ9HZA/s1600-h/instala%C3%A7%C3%A3o05.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ74xgwSnynFxoHXK0O640oQSqHgJ3PDmpj7zYLvsgY2d2BWm9cV0saNqcqqC4Qmu4tzBLmguf5vTuqVAs5y59xOr_xqklkhyphenhyphennLfdFIL4zex_9zHOGSi90-zE9mgWeqIrC-oAZOmQ9HZA/s400/instala%C3%A7%C3%A3o05.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199524727003303010&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;4º Passo&lt;/span&gt;: Normalmente o mais delicado, escolher o método de particionamento. Aqui cabe algumas ressalvas:&lt;br /&gt;&lt;br /&gt;1. Se você já possui outro sistema operacional (Windows ou Linux) ocupando toda a hd, provavelmente você vai optar pelo método guiado e diminuir o tamanho da partição do outro SO, embora isto não costume produzir erros, é sempre melhor e mais seguro ter Backup dos dados que estão na partição que será alterada.&lt;br /&gt;Outra observação: o Gparted que é o programa responsável por diminuir ou criar novas partições, tem como padrão não mexer em partições desfragmentadas, se você receber um aviso sobre isto, cancele a instalação e corrija isto no seu Sistema Operacional e depois tente novamente.&lt;br /&gt;&lt;br /&gt;2.Se sua hd está vazia, é só escolher o método assistido e usar o disco inteiro.&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;ATENÇÃO: Neste método o instalador vai apagar qualquer dado que você tiver na hd escolhida.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Se você já possui uma partição disponível para a instalação do Ubuntu, você deve escolher o método manual.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvFIad6ddlc41_Nf9EHHCNuwvKQ5nryE6pq2FpeopFXM9HDQut07Lk_Aer0GO3TSsQmJSfbgm9FyA1VmfQeYFeCiUh4s5JrZVp1tDWa82hfHl0QqEJ21uTAdt9-CPkxeyMQQbsqp-qME4/s1600-h/instala%C3%A7%C3%A3o06.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvFIad6ddlc41_Nf9EHHCNuwvKQ5nryE6pq2FpeopFXM9HDQut07Lk_Aer0GO3TSsQmJSfbgm9FyA1VmfQeYFeCiUh4s5JrZVp1tDWa82hfHl0QqEJ21uTAdt9-CPkxeyMQQbsqp-qME4/s400/instala%C3%A7%C3%A3o06.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199524727003303026&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;No caso deste exemplo, como tenho uma partição que será utilizada para instalação do sistema, vou mostrar o método manual.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj842n8JsDMxmZObE765HjUX0CpR2d7c0OScMlHpWeZP9PTa33VCsW-ZnBurgatl1611TSx3Bi-0ERhj-yy2h9w40DeFJXdfrzF0dVFi4vCdbemv2WQxHXH2Qr7YoesC2kicW8XP9nEUqc/s1600-h/instala%C3%A7%C3%A3o07.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj842n8JsDMxmZObE765HjUX0CpR2d7c0OScMlHpWeZP9PTa33VCsW-ZnBurgatl1611TSx3Bi-0ERhj-yy2h9w40DeFJXdfrzF0dVFi4vCdbemv2WQxHXH2Qr7YoesC2kicW8XP9nEUqc/s400/instala%C3%A7%C3%A3o07.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199523382678539250&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Na próxima tela são mostradas as partições que possuo, no caso vou instalar o sistema na primeira partição da minha hd sda (partição sda1). É só clicar na partição e ir em editar.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgau7y-g2QamnJulEiv7H_WEhZn0OM9Smpl68L1EPd2udgeOtwN8NfDZpiZHr18Y9H-VrM37MtFw0NL4EC33pjZPQuv7INeO6ni7IzFEGY4aMRx76CD65rM19Vj3Bm92p_XK0mFGfw0N9I/s1600-h/instala%C3%A7%C3%A3o07b.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgau7y-g2QamnJulEiv7H_WEhZn0OM9Smpl68L1EPd2udgeOtwN8NfDZpiZHr18Y9H-VrM37MtFw0NL4EC33pjZPQuv7INeO6ni7IzFEGY4aMRx76CD65rM19Vj3Bm92p_XK0mFGfw0N9I/s400/instala%C3%A7%C3%A3o07b.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199523386973506562&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Na janela de edição da partição, escolho o sistema de arquivos (ext3), formatar a partição e como  ponto de montagem a raiz do sistema, o &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;/&lt;/span&gt; como mostrado na figura abaixo.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjILmf1h4_zAqY2MNrTZ4NHLml16gPXPMls07Ugp4f3VKZ6oFbCIUuiyQlYv7f5fV6e6Hvp7lodfDgA26TxJSTmPnZ0pT0JUwldqDqKpjfUcslMoH7izjCYJk-jHMAYGFUImrnXT79tB8g/s1600-h/instala%C3%A7%C3%A3o08.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjILmf1h4_zAqY2MNrTZ4NHLml16gPXPMls07Ugp4f3VKZ6oFbCIUuiyQlYv7f5fV6e6Hvp7lodfDgA26TxJSTmPnZ0pT0JUwldqDqKpjfUcslMoH7izjCYJk-jHMAYGFUImrnXT79tB8g/s400/instala%C3%A7%C3%A3o08.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199523391268473874&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Clicando em&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; OK&lt;/span&gt;, voltamos a tela anterior e vamos em &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;AVANÇAR&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;5° Passo:&lt;/span&gt; Criar o usuário padrão para acesso ao sistema.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiweY7shLCS_hTdMWCdHwMFvBPpAVo3F3ZaivvhG85SErBAxBhIoXkCXoq8INzEdrA1O1kTGSsA_iRZ1cLrYB6ofp63RYVc0mv0rEKSVoyc1F2SbxwucmvW-dj4NPU0EzjcZEDCX6C2GJM/s1600-h/instala%C3%A7%C3%A3o09.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiweY7shLCS_hTdMWCdHwMFvBPpAVo3F3ZaivvhG85SErBAxBhIoXkCXoq8INzEdrA1O1kTGSsA_iRZ1cLrYB6ofp63RYVc0mv0rEKSVoyc1F2SbxwucmvW-dj4NPU0EzjcZEDCX6C2GJM/s400/instala%C3%A7%C3%A3o09.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199523395563441186&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;6° Passo:&lt;/span&gt; Migrar documentos e contigurações. Se você já possui outro sistema na máquina, pode migrar dados de seu usuário para o que está sendo criado.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyqZuWikGpHdUUGdOC7Bx-UsPnfPwAsFPK-ES9sfTrlGtmmnYH-6KlQ06gUlP9oSOg1i8KJXNCAUZJU4N0qKfw1DOQgUS-bHPy482vHXPkdtaRMyTo-Pbg6MA8OxL3p9sHprLHtgM32gc/s1600-h/instala%C3%A7%C3%A3o10.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyqZuWikGpHdUUGdOC7Bx-UsPnfPwAsFPK-ES9sfTrlGtmmnYH-6KlQ06gUlP9oSOg1i8KJXNCAUZJU4N0qKfw1DOQgUS-bHPy482vHXPkdtaRMyTo-Pbg6MA8OxL3p9sHprLHtgM32gc/s400/instala%C3%A7%C3%A3o10.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199522742728412130&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;7° Passo:&lt;/span&gt; Informações de como vai ser a instação e instalação em si.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSJv_A4yrdahCoilxURvrzAVcIoT74CdGEORrxGu4IGeKYXg5aTLceJCRHAZP7Fx_sPCPSQn8Zwncx2fAUmQf4XaIONvKJbJ3fXLmsATd3tEka8mE54hFrsr2j8PCuN3JzR7cZBWSkkys/s1600-h/instala%C3%A7%C3%A3o11.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSJv_A4yrdahCoilxURvrzAVcIoT74CdGEORrxGu4IGeKYXg5aTLceJCRHAZP7Fx_sPCPSQn8Zwncx2fAUmQf4XaIONvKJbJ3fXLmsATd3tEka8mE54hFrsr2j8PCuN3JzR7cZBWSkkys/s400/instala%C3%A7%C3%A3o11.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199522231627303890&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Neste momento você pode ainda alterar onde o gerenciador de boot será instalado. A opção padrão é instalar o Grub, gerenciador de boot, na MBR, 1º setor de sua hd. Se você já usa outro gerenciador de boot, tem a opção de instalar o Grub no 1º setor da partição onde será instalado o sistema e não na MBR. Para fazer isto clique em&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; Avançado...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Na janela que se abre, escolha onde instalar o gerenciador do boot.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDpyIa7EAU-HOXHrm3gWarbEqsTQJC3DtAiyU0r7kjMkwiE0NyHp1SN4PA9BQnqPW3R_GLG2j8ZihmZK5TAY0KFf9qS_xwUof_OwsFHKYr_BKTMmgHsKZldpd8ve50lr4Y7pO6AsXBiqQ/s1600-h/instala%C3%A7%C3%A3o12.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDpyIa7EAU-HOXHrm3gWarbEqsTQJC3DtAiyU0r7kjMkwiE0NyHp1SN4PA9BQnqPW3R_GLG2j8ZihmZK5TAY0KFf9qS_xwUof_OwsFHKYr_BKTMmgHsKZldpd8ve50lr4Y7pO6AsXBiqQ/s400/instala%C3%A7%C3%A3o12.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199522223037369282&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Após o &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;OK&lt;/span&gt; e clicar em &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;instalar&lt;/span&gt; na tela anterior, começa a cópia e configurações do Ubuntu.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguMoTexkAfJyg_DELWbNKEitB0GpK6_cka1C6ewQkY8WiZFN_OP0GBnri77uirAXuvrw4FNRsqFhNTHvHGXcuXzJ9Vz260iRhsGRlgghjOEJZCTWRtCuKt4UbIe9Xq5kpIWSWkr0Npafc/s1600-h/instala%C3%A7%C3%A3o13.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguMoTexkAfJyg_DELWbNKEitB0GpK6_cka1C6ewQkY8WiZFN_OP0GBnri77uirAXuvrw4FNRsqFhNTHvHGXcuXzJ9Vz260iRhsGRlgghjOEJZCTWRtCuKt4UbIe9Xq5kpIWSWkr0Npafc/s400/instala%C3%A7%C3%A3o13.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5199522205857500082&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Ao final é só reiniciar o micro e estaremos com o Ubuntu 8.04 instalado em nossa máquina.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Para saber mais&lt;/span&gt;...&lt;br /&gt;&lt;br /&gt;Wiki Ubuntu - como instalar o Ubuntu:&lt;br /&gt;&lt;a href=&quot;http://wiki.ubuntu-br.org/GuiaIntrodutorio/LinuxIniciando/ExperimenteLinux&quot;&gt;http://wiki.ubuntu-br.org/GuiaIntrodutorio/LinuxIniciando/ExperimenteLinux&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ubuntu Brasil&lt;br /&gt;&lt;a href=&quot;http://www.ubuntubrasil.org/&quot;&gt;http://www.ubuntubrasil.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ubuntu - requerimentos do sistema&lt;br /&gt;&lt;a href=&quot;https://help.ubuntu.com/community/Installation/SystemRequirements&quot;&gt;https://help.ubuntu.com/community/Installation/SystemRequirements&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/647476002037664208/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/647476002037664208' title='3 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/647476002037664208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/647476002037664208'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2008/05/instalando-o-ubuntu-804.html' title='Instalando o Ubuntu 8.04'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZsyUlBBAwsgbQly0_SXF02MvUYvgN13OMRJ7FDijA-U7a8pG69NpWMCIPXb7lg8WQUMJqGowYtjnx9poQ6CaokyT4t4H74RuEkebQAyAbnV0P7Djykp_yolbXt3fEcLf-3lZOMuPmqmU/s72-c/instala%C3%A7%C3%A3o.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-8880659512482912738</id><published>2008-05-04T21:27:00.006-03:00</published><updated>2008-12-09T08:15:25.092-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 8.04"/><title type='text'>Preparando o Ubuntu para o dia a dia</title><content type='html'>&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Um clique&lt;/span&gt;&lt;br /&gt;A primeira coisa que normalmente faço quando entro no Gnome é configurar o Desktop para clique único, como sou usuário antigo do Kde, perdi o hábito do 2 cliques. Se isto serve para você, o caminho é:&lt;br /&gt;abrir o &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Nautilus - ir em editar - Preferência - aba comportamento&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUFqdt5nU3kTshEkfIrzu1ICB6R8QzOoLin84iRKZuCjHiZVpiHX48RQ3v77gvKxYlmNWuqbHLcy2skZq22P409l6KWrZ0IH9XVfVvQ9Eayb2PDLnVErbcJnJx_9slsox_3NhMdV_5gEE/s1600-h/clique_unico.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUFqdt5nU3kTshEkfIrzu1ICB6R8QzOoLin84iRKZuCjHiZVpiHX48RQ3v77gvKxYlmNWuqbHLcy2skZq22P409l6KWrZ0IH9XVfVvQ9Eayb2PDLnVErbcJnJx_9slsox_3NhMdV_5gEE/s400/clique_unico.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5196684476868406354&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Criando novos usuários&lt;/span&gt;&lt;br /&gt;Em casa, somos 2 pessoas que usamos o computador e normalmente deixo um usuário para a “sobrinhada” brincar a vontade.&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Sistema – Administração – Usuários e Grupos&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Clicar em desbloquear – senha – inserir novos usuários&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Agora só falta configurar o GDM para entrar automaticamente com o usuário de minha esposa, assim ela nem sequer precisa por senha, legal né? :).&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Sistema – Administração – Janela de início de sessão – senha&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Na aba Segurança&lt;/span&gt; – clique em permitir início programado e diminua o tempo para 10 segundos ou, caso seja o único usuário, clique em habilitar início automático de Sessão.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF-fvw9TbXJUhHGhdLbEv1L38SD3fUzF6n87UJpE8GYss8lxfPbOHH9oGS_i48DhC71-_AR11DviGhpXw50R4IVhrxubx6tkIS3twA3w6iV8BU823ZJ21cUOMYSdAthyF4yYbt7WWZMW0/s1600-h/configurar_gdm.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF-fvw9TbXJUhHGhdLbEv1L38SD3fUzF6n87UJpE8GYss8lxfPbOHH9oGS_i48DhC71-_AR11DviGhpXw50R4IVhrxubx6tkIS3twA3w6iV8BU823ZJ21cUOMYSdAthyF4yYbt7WWZMW0/s400/configurar_gdm.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5196685198422912098&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Instalar modem, mais precisamente win-modem&lt;/span&gt;&lt;br /&gt;Bom, não dá nem para pensar no uso de Linux, sem acesso à internet, mesmo que seja discada e com win-modem.&lt;br /&gt;&lt;br /&gt;No meu caso tenho um modem Intel compatível com o driver da Smarlink - Slmodem.&lt;br /&gt;&lt;br /&gt;O Primeiro passo é baixar o pacote desenvolvido pelo Alarcon no fórum do Ubuntu, clique no link abaixo e siga as instruções:&lt;br /&gt;&lt;a href=&quot;http://ubuntuforum-br.org/index.php/topic,4204.msg203442.html#msg203442&quot;&gt;http://ubuntuforum-br.org/index.php/topic,4204.msg203442.html#msg203442&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;link direto no source-forge:&lt;br /&gt;&lt;a href=&quot;http://ufpr.dl.sourceforge.net/sourceforge/projeto-messias/modem-arquivos-v23.tar.gz&quot;&gt;http://ufpr.dl.sourceforge.net/sourceforge/projeto-messias/modem-arquivos-v23.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Com o arquivo “baixado”, copie para o Ubuntu, descompacte o pacote e siga as instruções do &lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;guia_instalação.pdf.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;É algo relativamente simples.&lt;br /&gt;&lt;br /&gt;Insira o CD do Ubuntu, abra um terminal, navegue até o arquivo descompactado e digite:&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;sudo su&lt;/span&gt; (para virar administrador)&lt;br /&gt;e depois&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;./install-modem_Gnome&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Se tudo ocorrer bem, no final seu modem estará funcionando.&lt;br /&gt;Preste atenção às mensagens. Qualquer erro, dê uma olhada no tópico acima, do fórum do Ubuntu.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;OBS:&lt;/span&gt;Como o CD foi montado pelo apt, ele não pode ser ejetado clicando no ícone no Desktop. Para retirá-lo, abra o gnome-terminal e digite:&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;sudo umount /dev/cdrom&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Acrescentando repositórios&lt;/span&gt;&lt;br /&gt;Um repositório que acrescentei no sistema foi o partner, via synaptic.&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Sistema – Administração – Gerenciador de Pacotes Synaptic&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Configurações – repositórios – Programas de terceiros&lt;/span&gt; – clicar em hardy Partner&lt;br /&gt;&lt;br /&gt;Neste repositório está o Navegador Ópera.&lt;br /&gt;&lt;br /&gt;Outro repositório que acrescentei foi para instalação do &lt;span style=&quot;font-style: italic;&quot;&gt;Cinelerra – um poderoso editor de vídeos para Linux.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Abra o gnome-terminal e digite ou cole os comandos abaixo:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;sudo wget http://repository.akirad.net/dists/hardy.list -O /etc/apt/sources.list.d/akirad.list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;wget -q http://repository.akirad.net/dists/akirad.key -O- | sudo apt-key add -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Abra novamente o Synapitc e clique em recarregar, para atualizar todos os repositórios.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Monitor de Sistema - Mini-aplicativo para o Painel&lt;/span&gt;&lt;br /&gt;Na barra de tarefas do Ubuntu podemos acrescentar vários mini-aplicativos, um que gosto muito é o monitor de sistema, além de mostrar como está a utilização do processador e memória; com um clique sobre ele, tenho acesso a informações detalhadas do sistema, processos e recursos sendo utilizados.&lt;br /&gt;&lt;br /&gt;Para habilitá-lo ou qualquer outro mini-aplicativo, clique com o botão direito do mouse na barra de tarefas e em Adicionar ao Painel. Aí é só escolher qual mini-aplicativo você quer habilitar.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Driver de vídeo – Nvídia&lt;/span&gt;&lt;br /&gt;Para ativar a aceleração da placa de vídeo é muito simples. É só ir em&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Sistema – Preferências – Aparência&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Na aba Efeitos Visuais, clique em normal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;O sistema avisa que para habilitar estes efeitos ele precisa do driver da Nvídia.&lt;br /&gt;O Synaptic entra em ação, baixa e instala o driver e pede para o sistema ser reiniciado&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Passar o OpenOffice para português do Brasil&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;O OpenOffice, no Ubuntu, não vem por padrão em português, porque o pacote de idiomas sistema não está completamente instalado.&lt;br /&gt;&lt;br /&gt;Também é muito fácil corrigir isto:&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Sistema – Administração – Suporte a Idiomas&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt;Procure Português&lt;/span&gt; – você verá que ele está com um tracinho (-) clique para selecioná-lo e vá em aplicar.&lt;br /&gt;&lt;br /&gt;Novamente o Synaptic entra em ação, baixa e instala os pacotes faltantes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Com estas configurações o sistema fica mais amigável, podemos partir para a instalação dos aplicativos em “si”.</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/8880659512482912738/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/8880659512482912738' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/8880659512482912738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/8880659512482912738'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2008/05/preparando-o-ubuntu-para-o-dia-dia.html' title='Preparando o Ubuntu para o dia a dia'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUFqdt5nU3kTshEkfIrzu1ICB6R8QzOoLin84iRKZuCjHiZVpiHX48RQ3v77gvKxYlmNWuqbHLcy2skZq22P409l6KWrZ0IH9XVfVvQ9Eayb2PDLnVErbcJnJx_9slsox_3NhMdV_5gEE/s72-c/clique_unico.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2769708467331717473.post-2597306538363470562</id><published>2008-05-04T18:14:00.006-03:00</published><updated>2008-12-09T08:15:25.232-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu 8.04"/><title type='text'>Ubuntu 8.04 – Começando a usá-lo...</title><content type='html'>&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Após o boot do sistema&lt;/span&gt;, somos recebidos pelo GDM (Gnome Desktop Manager). É só digitar o usuário e senha cadastrados durante a instalação e a senha e você estará neste limpo desktop:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5yNKIYGTqSnckHZaYV41t3I1tQaCRF7BKCdDs6HaNw3wPJFdwX9KWruGGhmzDppR9D4NKYit2_3r5PDML6yLCvlWvpj7aFFozhfyxadD-hBSI_98ZtGHg07NoZanYTMrYiLbvsY_Q_Cw/s1600-h/desktop.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5yNKIYGTqSnckHZaYV41t3I1tQaCRF7BKCdDs6HaNw3wPJFdwX9KWruGGhmzDppR9D4NKYit2_3r5PDML6yLCvlWvpj7aFFozhfyxadD-hBSI_98ZtGHg07NoZanYTMrYiLbvsY_Q_Cw/s400/desktop.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5196644013981510706&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;No menu aplicaçõe&lt;/span&gt;s&lt;/span&gt; encontramos, entre outros, o OpenOffice em sua versão 2.4 (sem suporte para o português do Brasil); o Firefox 3.0 Beta5; o pacote gnome-games; o Transmission para Bittorrent, o Brasero que facilita muito na hora de gravarmos nossos CDs e DVDs; a ferramenta de pesquisas Tracker; o Gimp em sua ótima versão 2.4.5 além do xsane para digitalizar imagens.&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;No menu Sistema&lt;/span&gt;, configuramos nossas preferências e configuramos o sistema.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;O Ubuntu tem uma forma diferente de lidar com os privilégios de administrador&lt;/span&gt;, no terminal, para “invocar” o administrador, usamos o sudo junto com o comando que queremos, como em&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;sudo bash&lt;/span&gt;&lt;/span&gt; para o terminal ganhar privilégios de administrador, ou&lt;span style=&quot;color: rgb(0, 102, 0);&quot;&gt; &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;sudo gedi&lt;/span&gt;t&lt;/span&gt; para abrir o editor de textos; já para chamar direto pelo executar &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;(Alt+F2)&lt;/span&gt; usamos &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;gksudo ou gksu&lt;/span&gt; seguido do comando, como em &lt;span style=&quot;color: rgb(204, 0, 0);&quot;&gt;gksu nautilus&lt;/span&gt; para abrir o gerenciador de arquivos como administrador; em todos os casos o sistema pede a senha do usuário (no caso a sua senha), que será válida por 15 minutos, depois se precisarmos “invocar” novamente o administrador, o sistema pedirá novamente a senha.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://picasaweb.google.com.br/faclsp/Linuxnomicro/photo?authkey=QuPsmMIcbw4#5196645830752676930&quot;&gt;&lt;img src=&quot;http://lh3.ggpht.com/faclsp/SB4x2Z2HLEI/AAAAAAAAAD8/8btT9AfdByI/s800/gksu.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Isto é algo que normalmente os novos usuários do Ubuntu estranham muito, pois nas outras Distribuições Linux sempre se pede logo no início a senha do administrador e a de um usuário sem maiores privilégios.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Até que dá para fazer bastante coisa com o Ubuntu&lt;/span&gt; em sua instalação pura, mas para usá-lo no dia a dia podemos personalizá-lo bastante.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Vou passar nesta e nas próximas postagens&lt;/span&gt; as minhas personalizações do Ubuntu; os aplicativos que instalei, as configurações, a instalação do KDE (Kubuntu-desktop) para minha esposa não estranhar o Gnome :-). É claro que não espero que estas personalizações sirvam para todos, mas para aqueles que de repente não saibam nem por onde começar podem ser úteis.</content><link rel='replies' type='application/atom+xml' href='http://linuxnomicro.blogspot.com/feeds/2597306538363470562/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2769708467331717473/2597306538363470562' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/2597306538363470562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2769708467331717473/posts/default/2597306538363470562'/><link rel='alternate' type='text/html' href='http://linuxnomicro.blogspot.com/2008/05/ubuntu-804-comeando-us-lo.html' title='Ubuntu 8.04 – Começando a usá-lo...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/10667160814787561417</uri><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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5yNKIYGTqSnckHZaYV41t3I1tQaCRF7BKCdDs6HaNw3wPJFdwX9KWruGGhmzDppR9D4NKYit2_3r5PDML6yLCvlWvpj7aFFozhfyxadD-hBSI_98ZtGHg07NoZanYTMrYiLbvsY_Q_Cw/s72-c/desktop.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>