<?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-637945618682202933</id><updated>2024-09-22T22:55:50.355-03:00</updated><category term="Linux"/><category term="PHP"/><category term="ruby"/><title type='text'>Passo Digital - mais um blog sobre tecnologia</title><subtitle type='html'>dicas, curiosidades e tutorais dos mais variados assuntos sobre Linux, Php e Ruby (Ruby on Rails)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.passodigital.com.br/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.passodigital.com.br/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Filipe Ricardo</name><uri>http://www.blogger.com/profile/00968210582148901593</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>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-637945618682202933.post-1874721016565911850</id><published>2019-10-12T12:56:00.000-03:00</published><updated>2019-10-12T12:59:15.383-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Criando atalho para conexões SSH no Linux (Ubuntu)</title><content type='html'>Criando os atalhos SSH é possível diminuir consideravelmente o tamanho dos comandos, e quem usa diariamente ssh para se conectar em servidores, pode economizar um bom tempo com essa dica.&lt;br /&gt;
&lt;br /&gt;
Edite ou Crie o arquivo &lt;b&gt;~/.ssh/config&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Inclua o texto a seguir e salve (preencha de acordo com suas configurações):&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Host front&lt;br /&gt;
&amp;nbsp; User user&lt;br /&gt;
&amp;nbsp; HostName dominiofront.com.br&lt;br /&gt;
&amp;nbsp; Port 1234&lt;br /&gt;
&amp;nbsp; IdentityFile ~/.chave.pem&lt;br /&gt;
&lt;br /&gt;
Host db&lt;br /&gt;
&amp;nbsp; User ubuntu&lt;br /&gt;
&amp;nbsp; HostName dominiodb.com.br&lt;br /&gt;
&amp;nbsp; Port 4321&lt;br /&gt;
&amp;nbsp; Password senha1234&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Para se conectar:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Com atalho&lt;/u&gt;&lt;br /&gt;
ssh front&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Sem atalho &lt;/u&gt;&lt;br /&gt;
ssh -i ~/.chave.pem -p 1234 user@dominiofront.com.br&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Com atalho&lt;/u&gt;&lt;br /&gt;
ssh db&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Sem atalho &lt;/u&gt;&lt;br /&gt;
ssh -p 4321 user@dominiodb.com.br (depois precisará informar a senha do usuário)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Para transmitir um arquivo via scp: &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Com atalho&lt;/u&gt;&lt;br /&gt;
scp file.txt front:/home/user&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Sem atalho&lt;/u&gt; &lt;br /&gt;
scp file.txt -i ~/.chave.pem -P 1234 user@dominiodb.com.br:/home/user&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Com atalho&lt;/u&gt; &lt;br /&gt;
scp example.sql db:/home/user&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Sem atalho&lt;/u&gt;&lt;br /&gt;
scp example.sql -P 4321 user@dominiodb.com.br:/home/user (depois precisará informar a senha do usuário)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Entendendo cada linha:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;User:&lt;/u&gt; (usuário do seu servidor ao qual pretende se logar) &lt;br /&gt;
&lt;u&gt;HostName:&lt;/u&gt; (endereço do servidor, domínio ou ip)&lt;br /&gt;
&lt;u&gt;Port:&lt;/u&gt; 1234 (porta do SSH, a porta padrão é 22, só inclua essa linha se no seu caso a porta for diferente)&lt;br /&gt;
&lt;u&gt;IdentityFile:&lt;/u&gt; (localização da chave privada, caso sua conexão seja feita através de uma) &lt;br /&gt;
&lt;u&gt;Password:&lt;/u&gt; (senha do usuário, caso a conexão não seja feita através de chave privada)&lt;br /&gt;
&lt;br /&gt;
Testado no Ubuntu 16.04 e 18.04.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.passodigital.com.br/feeds/1874721016565911850/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://blog.passodigital.com.br/2019/10/criando-atalho-para-conexoes-ssh-no.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/1874721016565911850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/1874721016565911850'/><link rel='alternate' type='text/html' href='http://blog.passodigital.com.br/2019/10/criando-atalho-para-conexoes-ssh-no.html' title='Criando atalho para conexões SSH no Linux (Ubuntu)'/><author><name>Filipe Ricardo</name><uri>http://www.blogger.com/profile/00968210582148901593</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-637945618682202933.post-5137916522945504128</id><published>2014-11-15T19:57:00.003-02:00</published><updated>2014-11-15T19:59:36.538-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Começando a programar com PHP (primeiros passos)</title><content type='html'>&lt;b&gt;- Breve Introdução&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
O &lt;b&gt;PHP&lt;/b&gt; &quot;(&lt;b&gt;P&lt;/b&gt;ersonal Home Page) &lt;b&gt;H&lt;/b&gt;ypertext &lt;b&gt;P&lt;/b&gt;reprocessor&quot; é uma &quot;linguagem interpretada&quot;, utilizada para gerar conteúdo dinâmico para web.&lt;br /&gt;
&lt;br /&gt;
Dado o fato de ser uma linguagem de fácil aprendizado e de código aberto (livre), o PHP é a liguagem mais usada na web. &lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
Para poder testar suas aplicações em PHP, é preciso ter o APACHE + PHP instalado em sua máquina, caso não tenha, segue abaixo o link de um pequeno tutorial (apenas para usuários Linux)&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://passodigital.blogspot.com.br/2012/03/configurar-ambiente-lamp-no-ubuntu-1010.html&quot;&gt;http://passodigital.blogspot.com.br/2012/03/configurar-ambiente-lamp-no-ubuntu-1010.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Se você for usuário Windows, na internet encontrará uma infinidade de tutoriais.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;- Colocando a mão na massa&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Com um editor de texto simples (bloco de notas) ou se preferir um editor HTML, crie um arquivo na pasta raiz do apache com o nome de &lt;b&gt;testando.php&lt;/b&gt;, feito isso, sua aplicação estará disponível no endereço &lt;b&gt;http://localhost/testando.php&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
O código PHP pode ficar misturado junto ao código HTML, porém, tudo que tiver dentro das tags &amp;lt;?php ?&amp;gt; é que será processado pelo PHP. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;- Escrevendo na Tela&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
O comando &quot;echo&quot; ou &quot;print&quot; é usado para escrever.&lt;br /&gt;
Edite o arquivo &lt;b&gt;testando.php&lt;/b&gt; com o código abaixo,:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVCEAVM5fFjBso8P4-mH0Zf0ar69XaHALkngKtWl036VY9uG0lSuR3A9p7bvk2vKL01rxjCkZKmsCnHuvikjdrxqBLqwFBihQoK-cyq8dvdGMD0Lun8K8ZMR1l1rn2JdoBOByalUYcU7c/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;?php&lt;/span&gt;

echo &lt;span style=&quot;color: orange;&quot;&gt;&quot;meu primeiro código PHP&quot;&lt;/span&gt;;

&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&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/AVvXsEgt6WpvFINqHM-gTZJJcf_tCqUgF1jCofEKkCacG3xrk_cVu7NB50DdO2fo2sfzyptPdcCmEPPewNIcNEUm_2GOtbXbADdVAYrXuGTdl9B7DKMFE0tHuRYmzWn1MBxBfNR7n03nGlMbpso/s1600/msg1.jpg&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/AVvXsEgt6WpvFINqHM-gTZJJcf_tCqUgF1jCofEKkCacG3xrk_cVu7NB50DdO2fo2sfzyptPdcCmEPPewNIcNEUm_2GOtbXbADdVAYrXuGTdl9B7DKMFE0tHuRYmzWn1MBxBfNR7n03nGlMbpso/s1600/msg1.jpg&quot; style=&quot;border: 2px solid #cccccc;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;- Variáveis&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
As variáveis servem para guardar um determinado dado, ex: (texto, número, data, etc...), o &lt;b&gt;$&lt;/b&gt; (cifrão) determina que aquilo é uma variável e vem antes do nome. O nome da variável não pode começar com número, Errado: &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;$1cor&lt;/span&gt; &lt;/b&gt;Certo:&lt;b&gt; $uma_cor&lt;/b&gt;, ou conter caracteres especiais e espaços, Errado: &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;$time de coração&lt;/b&gt;&lt;/span&gt; Certo: &lt;b&gt;$time_de_coracao&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVCEAVM5fFjBso8P4-mH0Zf0ar69XaHALkngKtWl036VY9uG0lSuR3A9p7bvk2vKL01rxjCkZKmsCnHuvikjdrxqBLqwFBihQoK-cyq8dvdGMD0Lun8K8ZMR1l1rn2JdoBOByalUYcU7c/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;?php&lt;/span&gt;

$cor &lt;span style=&quot;color: magenta;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orange;&quot;&gt;&quot;verde&quot;&lt;/span&gt;;

$time &lt;span style=&quot;color: magenta;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: orange;&quot;&gt;&quot;palmeiras&quot;&lt;/span&gt;;

echo &lt;span style=&quot;color: orange;&quot;&gt;&quot;minha cor preferida é &quot;&lt;/span&gt; . $cor . &lt;span style=&quot;color: orange;&quot;&gt;&quot; e eu meu time de coração é o &quot;&lt;/span&gt; .&amp;nbsp; $time;

&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
resultado:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 2px solid #cccccc; padding: 5px;&quot;&gt;
&amp;nbsp;minha cor preferida é verde e eu meu time de coração é o palmeiras&lt;/div&gt;
&lt;br /&gt;
O PHP é uma linguagem de programação dentre muitas outras, caso queira se aprofundar em programação, precisará aprender muitas outras coisas, segue algumas delas:&lt;br /&gt;
&lt;br /&gt;
operadores lógicos;&lt;br /&gt;
estrutura de repetição;&lt;br /&gt;
array e hash;</content><link rel='replies' type='application/atom+xml' href='http://blog.passodigital.com.br/feeds/5137916522945504128/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://blog.passodigital.com.br/2014/11/comecando-programar-com-php-primeiros.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/5137916522945504128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/5137916522945504128'/><link rel='alternate' type='text/html' href='http://blog.passodigital.com.br/2014/11/comecando-programar-com-php-primeiros.html' title='Começando a programar com PHP (primeiros passos)'/><author><name>Filipe Ricardo</name><uri>http://www.blogger.com/profile/00968210582148901593</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/AVvXsEgt6WpvFINqHM-gTZJJcf_tCqUgF1jCofEKkCacG3xrk_cVu7NB50DdO2fo2sfzyptPdcCmEPPewNIcNEUm_2GOtbXbADdVAYrXuGTdl9B7DKMFE0tHuRYmzWn1MBxBfNR7n03nGlMbpso/s72-c/msg1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-637945618682202933.post-6972046346499243384</id><published>2014-11-14T20:41:00.000-02:00</published><updated>2014-11-15T19:58:27.595-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>Brincando com Ruby - Array - Parte 1</title><content type='html'>Ruby é a linguagem de programação que eu mais admiro e atualmente tem sido a que mais utilizo também.&lt;br /&gt;
&lt;br /&gt;
Fiz uma pequena abordagem sobre o Array na linguagem Ruby, segue abaixo alguns exemplos do que pode ser feito com ela.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNVCEAVM5fFjBso8P4-mH0Zf0ar69XaHALkngKtWl036VY9uG0lSuR3A9p7bvk2vKL01rxjCkZKmsCnHuvikjdrxqBLqwFBihQoK-cyq8dvdGMD0Lun8K8ZMR1l1rn2JdoBOByalUYcU7c/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; &lt;span style=&quot;color: #666666;&quot;&gt;# Formas de criar uma Array&lt;/span&gt;  
   
 arr &lt;span style=&quot;color: magenta;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #38761d;&quot;&gt;Array&lt;/span&gt;.new  
 arr &lt;span style=&quot;color: magenta;&quot;&gt;=&lt;/span&gt; []  
   
 &lt;span style=&quot;color: #666666;&quot;&gt;# Converter um Range em Array&lt;/span&gt;  
   
 arr &lt;span style=&quot;color: magenta;&quot;&gt;=&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;1&lt;/span&gt;..&lt;span style=&quot;color: blue;&quot;&gt;10&lt;/span&gt;).to_a  
   
 &lt;span style=&quot;color: #666666;&quot;&gt;# Interação simples pela Array&lt;/span&gt;  
   
 arr.each &lt;span style=&quot;color: magenta;&quot;&gt;do&lt;/span&gt; |n|  
   p n  
 &lt;span style=&quot;color: magenta;&quot;&gt;end&lt;/span&gt;  
   
 &lt;span style=&quot;color: #666666;&quot;&gt;# Interação pela Array mostrando o índice do elemento&lt;/span&gt;  
   
 arr.each_with_index &lt;span style=&quot;color: magenta;&quot;&gt;do&lt;/span&gt; |n,index|  
   p n  
   p index  
 &lt;span style=&quot;color: magenta;&quot;&gt;end&lt;/span&gt;  
   
 &lt;span style=&quot;color: #666666;&quot;&gt;# Interação pela Array com for&lt;/span&gt;  
   
 &lt;span style=&quot;color: magenta;&quot;&gt;for&lt;/span&gt; n &lt;span style=&quot;color: magenta;&quot;&gt;in&lt;/span&gt; arr  
  p n  
 &lt;span style=&quot;color: magenta;&quot;&gt;end&lt;/span&gt;  
   
 &lt;span style=&quot;color: #666666;&quot;&gt;# Comandos úteis de usar na interação da Array&lt;/span&gt;  
   
 arr.each &lt;span style=&quot;color: magenta;&quot;&gt;do&lt;/span&gt; |n|  
   p n  
   &lt;span style=&quot;color: magenta;&quot;&gt;next&lt;/span&gt;     &lt;span style=&quot;color: #666666;&quot;&gt;# pula para a próxima interação&lt;/span&gt;  
   &lt;span style=&quot;color: magenta;&quot;&gt;redo&lt;/span&gt;     &lt;span style=&quot;color: #666666;&quot;&gt;# volta para a interação anterior&lt;/span&gt;  
   &lt;span style=&quot;color: magenta;&quot;&gt;break&lt;/span&gt;    &lt;span style=&quot;color: #666666;&quot;&gt;# sai da interação da Array&lt;/span&gt;  
 &lt;span style=&quot;color: magenta;&quot;&gt;end&lt;/span&gt;  
   
 p arr.first   &lt;span style=&quot;color: #666666;&quot;&gt;# Primeiro elemento do Array&lt;/span&gt;  
   
 p arr.last    &lt;span style=&quot;color: #666666;&quot;&gt;# Último elemento do Array&lt;/span&gt;  
   
 p arr.size    &lt;span style=&quot;color: #666666;&quot;&gt;# Tamanho da Array&lt;/span&gt;  
   
 p arr.join(&lt;span style=&quot;color: orange;&quot;&gt;&quot;,&quot;&lt;/span&gt;)   &lt;span style=&quot;color: #666666;&quot;&gt;# Juntar elementos da Array separando elementos com vírgula em forma de String&lt;/span&gt;  
   
 p &lt;span style=&quot;color: orange;&quot;&gt;&quot;12-12-2012&quot;&lt;/span&gt;.split(&lt;span style=&quot;color: orange;&quot;&gt;&quot;-&quot;&lt;/span&gt;) &lt;span style=&quot;color: #666666;&quot;&gt;# Criar uma Array com elementos separados por traço&lt;/span&gt;   
&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.passodigital.com.br/feeds/6972046346499243384/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://blog.passodigital.com.br/2014/11/brincando-com-ruby-array-parte-1.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/6972046346499243384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/6972046346499243384'/><link rel='alternate' type='text/html' href='http://blog.passodigital.com.br/2014/11/brincando-com-ruby-array-parte-1.html' title='Brincando com Ruby - Array - Parte 1'/><author><name>Filipe Ricardo</name><uri>http://www.blogger.com/profile/00968210582148901593</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-637945618682202933.post-7843031771141399460</id><published>2012-05-18T22:24:00.001-03:00</published><updated>2012-05-18T22:24:59.743-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Instalando o emulador Dolphin (Game Cube / Wii) no Ubuntu 12.04</title><content type='html'>Muitos acham o &lt;b&gt;Linux&lt;/b&gt; um sistema operacional pobre de games, mas esquecem do poder dos emuladores que conseguem emular com grande perfeição os principais videos-games e de certa forma resolvem um pouco dessa escassez.&lt;br /&gt;
&lt;br /&gt;
Neste pequeno tutorial vou mostrar como instalar o&amp;nbsp;&lt;b&gt;Dolphin&lt;/b&gt;,&amp;nbsp;o emulador do &lt;b&gt;Game Cube&lt;/b&gt; e &lt;b&gt;Nintendo Wii&lt;/b&gt; no &lt;b&gt;Ubuntu 12.04&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Primeiro passo é adicionar o repositório do emulador na sua lista de repositórios:&lt;br /&gt;
&lt;b&gt;sudo sh -c “echo \”deb http://ppa.launchpad.net/glennric/dolphin-emu/ubuntu precise main\” &amp;gt;&amp;gt; /etc/apt/sources.list”&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Depois de adicionar o repositório pelo terminal é necessário atualizar as listas:&lt;br /&gt;
&lt;b&gt;sudo apt-get update&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Após ter feito os passos anteriores, o &lt;b&gt;dolphin&lt;/b&gt; já estará disponível para ser instalado via aptude. E finalizando sua instalação segue o comando.&lt;br /&gt;
&lt;b&gt;sudo apt-get install dolphin-emu-master&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Pronto, agora você já tem um &lt;b&gt;Game Cube&lt;/b&gt; e um&lt;b&gt; Nintendo Wii&lt;/b&gt; disponível no seu Ubuntu, boa diversão.&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/AVvXsEgqxYDKNiAnZPHGjNgste-4x88MjWucZsMH_eoSYG3pEsy8XXCgOUgn6O5xIEhkR1VOhIT9gShSb2SUTZTosvXvMKJ6d2dBHDmF2hBzkZxsEUEOfJcskS7XJjbHA5Lq8gCqXKfoI3l2Nug/s1600/dolphin.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqxYDKNiAnZPHGjNgste-4x88MjWucZsMH_eoSYG3pEsy8XXCgOUgn6O5xIEhkR1VOhIT9gShSb2SUTZTosvXvMKJ6d2dBHDmF2hBzkZxsEUEOfJcskS7XJjbHA5Lq8gCqXKfoI3l2Nug/s400/dolphin.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Para não infringir a lei de direitos autorais, é preciso possuir o Console (Vídeo-Game) e as Roms (Jogos) originais, fica a dica.&lt;br /&gt;
&lt;br /&gt;
Vale lembrar que existe um gerenciador de pastas com o nome de &lt;b&gt;dolphin&lt;/b&gt;, então não cometam o erro abaixo, ao menos que queiram realmente instalar este programa.&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;sudo apt-get install dolphin&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.passodigital.com.br/feeds/7843031771141399460/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://blog.passodigital.com.br/2012/05/instalando-o-emulador-dolphin-game-cube.html#comment-form' title='1 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/7843031771141399460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/7843031771141399460'/><link rel='alternate' type='text/html' href='http://blog.passodigital.com.br/2012/05/instalando-o-emulador-dolphin-game-cube.html' title='Instalando o emulador Dolphin (Game Cube / Wii) no Ubuntu 12.04'/><author><name>Filipe Ricardo</name><uri>http://www.blogger.com/profile/00968210582148901593</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/AVvXsEgqxYDKNiAnZPHGjNgste-4x88MjWucZsMH_eoSYG3pEsy8XXCgOUgn6O5xIEhkR1VOhIT9gShSb2SUTZTosvXvMKJ6d2dBHDmF2hBzkZxsEUEOfJcskS7XJjbHA5Lq8gCqXKfoI3l2Nug/s72-c/dolphin.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-637945618682202933.post-5215142947858784223</id><published>2012-03-17T12:02:00.000-03:00</published><updated>2012-03-17T12:22:16.683-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Instalação e Configuraração do ambiente LAMP no Ubuntu 10.10 (Linux)</title><content type='html'>Olá pessoal,&lt;br /&gt;
&lt;br /&gt;
no meu primeiro artigo, vou ensinar como instalar e configurar APACHE + MySQL + PHP no Ubuntu 10.10.&lt;br /&gt;
&lt;br /&gt;
Para quem não sabe o significado de LAMP, são as siglas de (Linux, Apache, MySQL e Php).&lt;br /&gt;
&lt;br /&gt;
Existem muitos outros tutoriais abordando este assunto, porém, pouquíssimos com riqueza em alguns detalhes.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DICA&lt;/b&gt;&lt;br /&gt;
há diferentes maneiras de instalar, a forma mais simples é instalando o phpMyAdmin, porque ele precisa de todo o ambiente LAMP para poder funcionar, e você vai usar apenas uma linha de comando para fazer isso.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1º PASSO&lt;/b&gt;&lt;br /&gt;
abra o terminal e digite:&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;sudo apt-get install apache2 php5 php5-mysql mysql-server phpmyadmin&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
no decorrer da instalação é preciso definir uma senha para o mysql, conforme a figura abaixo:&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/AVvXsEig2vvPYkFVKwudKuSIEqOGP-GvXNNyifr4NQ8xEioUwEYoRYVRWEHgEBJTSfOJeuOa-nJJyVxHNYqP9NIlJG1JklDwj-85yVrfUaf5T64sp96ZwB_uolrrWeOQCu418qNyVUhrd14YOv0/s1600/msg1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;135&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEig2vvPYkFVKwudKuSIEqOGP-GvXNNyifr4NQ8xEioUwEYoRYVRWEHgEBJTSfOJeuOa-nJJyVxHNYqP9NIlJG1JklDwj-85yVrfUaf5T64sp96ZwB_uolrrWeOQCu418qNyVUhrd14YOv0/s320/msg1.jpg&quot; width=&quot;320&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
em seguida vai pedir para repetir ela,&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;
depois desse ponto, inexplicavelmente sempre vai dar erro, na 1ª vez escolha a opção &quot;retry&quot;, e na 2ª vai na opção &quot;ignore&quot;.&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;
&lt;b&gt;2º PASSO&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
terminado a instalação, terá todo o ambiente funcionando, agora é preciso configurá-lo.&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;
abra o navegador de sua preferência e entre no endereço &lt;b&gt;http://localhost/phpmyadmin&lt;/b&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;
se você estava esperançoso em ver a tela inicial do PHPMyadmin, quebrou a cara, ainda falta mais um pequeno detalhe.&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;
por padrão, a pasta local que apache serve é &lt;b&gt;/var/www &lt;/b&gt;e o phpmyadmin após sua instalação ficará na pasta &lt;b&gt;/usr/share/phpmyadmin, &lt;/b&gt;para contornar isso é preciso criar um link simbólico, digite o comando abaixo no terminal:&lt;b&gt;&amp;nbsp;&lt;/b&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;
&lt;b&gt;ln -s /usr/share/phpmyadmin ~/www&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
reinicie o apache:&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;
&lt;b&gt;sudo /etc/init.d/apache2 restart &lt;/b&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;
agora sim abra o navegador de sua preferência e entre no endereço &lt;b&gt;http://localhost/phpmyadmin&lt;/b&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: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0OPHSasQd9NJ81rvAlowCYCXIDJfrXOVaYrnGLSYntgz9wUlX8ZljuwEZAaLFRfAhOdH-1avrWTkfDhoE5yLYtmLKvl7SDDQMItfKwlQIoBA-NTnqTz1bxeV-5HLvnSzqnwKEw7QlO2w/s1600/msg2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0OPHSasQd9NJ81rvAlowCYCXIDJfrXOVaYrnGLSYntgz9wUlX8ZljuwEZAaLFRfAhOdH-1avrWTkfDhoE5yLYtmLKvl7SDDQMItfKwlQIoBA-NTnqTz1bxeV-5HLvnSzqnwKEw7QlO2w/s320/msg2.jpg&quot; width=&quot;320&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;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
pronto, agora terá um ambiente LAMP, poderá rodar suas aplicações em PHP e utilizar o banco de dados MySQL&lt;b&gt;.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;DICA 2&lt;/b&gt;&lt;br /&gt;
se tiver problema para se logar no phpmyadmin, algumas vezes é preciso redefinir senha do root, no terminal digite os seguintes comandos:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;mysql -u root mysql&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;(quando pedir senha dê um &quot;ENTER&quot;)&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;bash plain&quot;&gt;mysql&amp;gt; UPDATE user SET Password=PASSWORD(&lt;/code&gt;&lt;code class=&quot;bash string&quot;&gt;&#39;nova_senha&#39;&lt;/code&gt;&lt;code class=&quot;bash plain&quot;&gt;) WHERE User=&lt;/code&gt;&lt;code class=&quot;bash string&quot;&gt;&#39;root&#39;&lt;/code&gt;&lt;code class=&quot;bash plain&quot;&gt;;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;bash plain&quot;&gt;mysql&amp;gt; FLUSH PRIVILEGES;&lt;/code&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.passodigital.com.br/feeds/5215142947858784223/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://blog.passodigital.com.br/2012/03/configurar-ambiente-lamp-no-ubuntu-1010.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/5215142947858784223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/637945618682202933/posts/default/5215142947858784223'/><link rel='alternate' type='text/html' href='http://blog.passodigital.com.br/2012/03/configurar-ambiente-lamp-no-ubuntu-1010.html' title='Instalação e Configuraração do ambiente LAMP no Ubuntu 10.10 (Linux)'/><author><name>Filipe Ricardo</name><uri>http://www.blogger.com/profile/00968210582148901593</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/AVvXsEig2vvPYkFVKwudKuSIEqOGP-GvXNNyifr4NQ8xEioUwEYoRYVRWEHgEBJTSfOJeuOa-nJJyVxHNYqP9NIlJG1JklDwj-85yVrfUaf5T64sp96ZwB_uolrrWeOQCu418qNyVUhrd14YOv0/s72-c/msg1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>