After writing more than a dozen of these tutorials and installing and removing so many different applications, I thought to myself, there has got to be a faster way. Após ter escrito mais de uma dúzia desses tutoriais e instalação e remoção de tantos diversas aplicações, eu pensei comigo mesmo, aí tem que ser um caminho mais rápido. WiFi is far faster than Bluetooth and far more convenient than digging for a USB data cable. WiFi é muito mais rápido do que o Bluetooth e muito mais conveniente do que cavar para um cabo de dados USB. I have a computer running Linux, I have a wireless network, and the N95 connects via WiFi so why not just run Apache on my computer and point the N95 at a directory on the computer? Tenho um computador executando o Linux, eu tenho uma rede sem fios, o N95 e se conecta via WiFi mas porque é que não basta executar o Apache em meu computador e aponte o N95 em um diretório no computador?
I’m writing this tutorial using Fedora 9, but these instructions should be easily adaptable to just about any Linux distribution. Estou escrevendo este tutorial utilizando o Fedora 9, mas essas instruções deve ser facilmente adaptável para apenas cerca de qualquer distribuição Linux. Also, you can Além disso, você pode install Apache in Windows instalar Apache no Windows or ou OS X OS X , and follow along with the steps in this tutorial. , E segue junto com os passos deste tutorial.
- These instructions are almost completely command line based. Essas instruções são quase completamente da linha de comando baseado. First, check if you already have Apache installed. Primeiro, verifique se você já tiver instalado Apache. There’sa chance you might already have it. Existe uma chance que você já poderia tê-la. For RedHat, Fedora and other RPM based Linux distributions: Para RedHat, Fedora e outras distribuições Linux baseados RPM:
[user@radon ~]# rpm -q httpd [usuário @ radão ~] # rpm-q httpd
httpd-2.2.9-1.fc9.i386If you don’t, it’s as simple as the following: Se não fizer isso, é tão simples como as seguintes:
[user@radon ~]# sudo yum install httpd [usuário @ radão ~] # sudo yum instalar httpd
Loaded plugins: changelog, downloadonly, fastestmirror, list-data, merge-conf, Plugins carregados: changelog, downloadonly, fastestmirror, lista de dados, fundir-conf,
: presto, refresh-packagekit : Presto, refrescar-packagekit
Setting up and reading Presto delta metadata Criação e leitura Presto delta metadados
No Presto metadata available for atrpms Presto n º metadados disponíveis para atrpms
No Presto metadata available for google Presto n º metadados disponíveis para google
No Presto metadata available for fedora Presto n º metadados disponíveis para o Fedora
No Presto metadata available for adobe-linux-i386 Presto n º metadados disponíveis para adobe-linux-i386
No Presto metadata available for updates-newkey Presto n º metadados disponíveis para atualizações-newkey
No Presto metadata available for updates Presto n º metadados disponíveis para atualizações
Loading mirror speeds from cached hostfile Carregando espelho de velocidades em cache hostfile
* fedora: mirror.hmc.edu * Fedora: mirror.hmc.edu
* updates-newkey: mirror.hmc.edu * Atualiza-newkey: mirror.hmc.edu
* updates: mirror.hmc.edu * Actualizações: mirror.hmc.edu
Finished Concluídos
Setting up Install Process Configuração de processo instale
Parsing package install arguments Analisando pacote instalar argumentos
Resolving Dependencies Resolver Dependências
–> Running transaction check -> Running transação check
—> Package httpd.i386 0:2.2.9-1.fc9 set to be updated -> Pacote httpd.i386 0:2.2.9-1. FC9 programado para ser atualizado
–> Finished Dependency Resolution -> Finished Dependência ResoluçãoDependencies Resolved Resolvido dependências
==================================================
Package Arch Version Repository Size Pacote Arch versão repositório tamanho
==================================================
httpd i386 2.2.9-1.fc9 updates-newkey 975 k httpd i386 2.2.9-1.fc9 updates-newkey 975 kTransaction Summary Transaction Summary
==================================================
Install 1 Package(s) Instale 1 Pacote (s)
Update 0 Package(s) Pacote de atualização 0 (s)
Remove 0 Package(s) Retire 0 Package (s)Total download size: 975 k Total de baixar tamanho: 975 k
Is this ok [y/N]: y Isto é ok [y / N]: y
Downloading Packages: Baixando Pacotes:
Downloading DeltaRPMs: Baixando DeltaRPMs:
Rebuilding rpms from deltarpms Recriar a partir de rpms deltarpms
httpd-2.2.9-1.fc9.i386.rpm | 975 kB 00:24 httpd-2.2.9-1.fc9.i386.rpm | 975 kB 00:24
Running rpm_check_debug Correndo rpm_check_debug
Running Transaction Test Correndo transação teste
Finished Transaction Test Acabados transação teste
Transaction Test Succeeded Transação teste bem-sucedido
Running Transaction Running Transaction
Installing : httpd [1/1] Instalando: httpd [1 / 1]Installed: httpd.i386 0:2.2.9-1.fc9 Instalado: httpd.i386 0:2.2.9-1. FC9
Complete! Completa!If your output looks slightly different that the above, don’t worry. Se a sua saída parece um pouco diferente do que precede, não se preocupe. I have a few extra repositories enabled as well as a few extra yum plugins. Eu tenho uns permitiu que repositórios extra, bem como alguns extras yum plugins. The important part is the line that says: Installed: httpd.i386 0:2.2.9-1.fc9 . A parte importante é a linha que diz: Instalado: httpd.i386 0:2.2.9-1. FC9.
- Start Apache: Inicie o Apache:
[user@radon ~]$ sudo /sbin/service httpd start [usuário @ radão ~] $ sudo / sbin / serviço httpd start
Starting httpd: [ OK ] Iniciando httpd: [OK] - Now test that it works. Agora prova de que funciona. Open a browser and visit http://127.0.0.1/ You should see something similar to the following: Abra um navegador e acesse http://127.0.0.1/ Você deve ver algo semelhante ao seguinte:
- Lets find out the IP Address of the computer. Permite descobrir o endereço IP do computador. We’ll need this when we connect from the phone. Faremos isto quando temos necessidade de ligar o telefone.
[user@radon ~]$ /sbin/ifconfig wlan0 [usuário @ radão ~] $ / sbin / ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr AA:BB:CC:DD:EE:FF wlan0 Link encap: Ethernet HWaddr AA: BB: CC: DD: EE: FF
inet addr:192.168.20.2 Bcast:192.168.20.255 Mask:255.255.255.0 inet addr: 192.168.20.2 Bcast: 192.168.20.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 UP BROADCAST multicast RUNNING MTU: 1500 Metric: 1
RX packets:206616 errors:0 dropped:0 overruns:0 frame:0 Pacotes RX: 206616 erros: 0 baixaram: 0 derrapagens: 0 frame: 0
TX packets:161635 errors:0 dropped:0 overruns:0 carrier:0 Pacotes TX: 161635 erros: 0 baixaram: 0 derrapagens: 0 carrier: 0
collisions:0 txqueuelen:1000 colisões: 0 txqueuelen: 1000
RX bytes:251797632 (240.1 MiB) TX bytes:24504623 (23.3 MiB) RX bytes: 251797632 (240,1 MiB) TX bytes: 24504623 (23,3 MiB)Note the second line of the output where it says inet addr . Observe a segunda linha de produção, onde se lê inet end. Our IP Address is 192.168.20.4. Nosso Endereço IP é 192.168.20.4.
On your phone, choose Menu -> Web . Em seu telefone, escolha Menu -> Web. Make sure you choose the correct Access Point, the name of your wireless network. Certifique-se de escolher o Access Point correto, o nome da sua rede sem fio. Now, choose Options -> Go To Web Address and enter the IP Address you discovered above. Agora, escolha Opções -> Ir p / endereço web e digite o endereço IP que você descobriu anteriormente. You should see the Apache Test Page on your phone’s browser. Você deverá ver a página de teste Apache no navegador do seu telefone.
- The default installation of Apache on Fedora 9 expects you to put your web pages in /var/www/html . A instalação padrão do Apache no Fedora 9 espera-lo a colocar suas páginas em / var / www / html. I decided to create a separate directory at /home/shared and make that accessible via the web. Decidi criar um diretório em / home / compartilhado e que tornam acessível através da web. The following commands create the directory, then change its ownership to my user name, then create a symbolic link to the new directory below the default web root. Os seguintes comandos criar o diretório, em seguida, altere sua propriedade para o meu nome de usuário, então criar um link simbólico para o novo diretório abaixo da raiz da Web padrão.
[user@radon ~]$ sudo mkdir /home/shared [usuário @ radão ~] $ sudo mkdir / home / partilhado
[user@radon ~]$ sudo chown user: /home/shared [usuário @ radão ~] $ sudo chown usuário: / home / partilhado
[user@radon ~]$ sudo ln -s /home/shared/ /var/www/html/shared [usuário @ radão ~] $ sudo ln-s / home / compartilhado / / var / www / html / partilhadoNow visit http://127.0.0.1/shared/ in your browser and you should see an empty directory similar to the following: Agora visita http://127.0.0.1/shared/ no seu navegador e você verá um directório vazio semelhante ao seguinte:
- Now visit http://192.168.20.4/shared on your phone, substituting the IP Address of your computer. Agora http://192.168.20.4/shared visita em seu telefone, substituindo o endereço IP do seu computador.
- Ok, now that the phone can see your shared directory, copy some installation files into it and choose Options -> Navigations Options -> Reload . Ok, agora que o telefone pode ver seu diretório compartilhado, copiar alguns arquivos de instalação dentro dele e escolha Opções -> Opções navegações -> Recarregar.
- Simple click on one of the files and you are prompted to install it. Simples clique em um dos arquivos e você será solicitado a instalá-la. I find this way a whole lot faster than installing applications via USB or Bluetooth. Considero esta uma maneira muito mais rápida do que todo instalando aplicações via USB ou Bluetooth.
- If you are paying attention to the above screenshots, you will notice that the installation files I am using in this example are actually the Apache installation files. Se você está prestando atenção às telas acima, você notará que os arquivos de instalação no Estou usando este exemplo, na verdade, o Apache arquivos de instalação. Yes, you can run Apache on your N95. Sim, você pode executar o Apache no seu N95. Watch for my upcoming tutorial on how to run Apache on the N95. Olho para o meu próximo tutorial sobre como executar o Apache sobre o N95.

click to enlarge Clique na imagem para ampliar






click to enlarge Clique na imagem para ampliar



























{ 0 comments… (0 comentários ... add one now adicionar um agora } )
Leave a Comment Deixe um comentário