How to install applications on your N95 from a local web server Kā instalēt programmas savā N95 no vietējā interneta servera

by Ken Murray on October 21, 2008 by Ken Murray gada oktobrī 21, 2008

Symbian

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. Pēc rakstīšanas vairāk nekā duci šīs konsultācijas un uzstādīšanā un izņemšanā tik daudz dažādu programmu, es nodomāju, ka tagad ir taisnākais ceļš. WiFi is far faster than Bluetooth and far more convenient than digging for a USB data cable. WiFi ir daudz ātrāk nekā Bluetooth un daudz ērtāk nekā rakt USB datu kabeli. 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? Man ir dators ar Linux operētājsistēmu, man ir bezvadu tīkls, un N95 savieno, izmantojot WiFi tā, kāpēc ne tikai darbināt Apache uz manu datoru un norādiet N95 pie direktorija datoru?

I'm writing this tutorial using Fedora 9, but these instructions should be easily adaptable to just about any Linux distribution. Es rakstu šo pamācību, izmantojot Fedora 9, bet šie norādījumi ir viegli pielāgot, lai tikai par jebkuru Linux distribution. Also, you can Jūs varat arī install Apache in Windows uzstādīt Apache Windows or vai OS X OS X , and follow along with the steps in this tutorial. , Un izsekot ar šo pamācību soļiem.

  1. These instructions are almost completely command line based. Šie norādījumi ir gandrīz pilnīgi komandrindas pamatā. First, check if you already have Apache installed. Pirmkārt, pārbaudiet, vai jums jau ir Apache uzstādīta. There's a chance you might already have it. Pastāv iespēja, jūs, iespējams, jau ir tā. For RedHat, Fedora and other RPM based Linux distributions: Uz RedHat, Fedora un citi RPM pamatā Linux sadali:

    [user@radon ~]# rpm -q httpd [User @ radons ~] # rpm-q httpd
    httpd-2.2.9-1.fc9.i386 httpd-2.2.9-1.fc9.i386

    If you don't, it's as simple as the following: Ja jums nav, tas ir tik vienkārši, kā šādi:

    [user@radon ~]# sudo yum install httpd [User @ radons ~] # sudo yum install httpd
    Loaded plugins: changelog, downloadonly, fastestmirror, list-data, merge-conf, Loaded plugins: changelog, downloadonly, fastestmirror, saraksta datus, sapludinātu-conf,
    : presto, refresh-packagekit : PRESTO, refresh-packagekit
    Setting up and reading Presto delta metadata Izveidi un lasīšana Presto delta metadati
    No Presto metadata available for atrpms Nē Presto metadati pieejams atrpms
    No Presto metadata available for google Nē Presto metadati pieejams google
    No Presto metadata available for fedora Nē Presto metadati pieejams Fedora
    No Presto metadata available for adobe-linux-i386 Nē Presto metadati pieejams Adobe-linux-i386
    No Presto metadata available for updates-newkey Nē Presto metadati pieejami atjauninājumi, newkey
    No Presto metadata available for updates Nē Presto metadati pieejami atjauninājumi
    Loading mirror speeds from cached hostfile Loading spogulis ātrumu no cached hostfile
    * fedora: mirror.hmc.edu * Fedora: mirror.hmc.edu
    * updates-newkey: mirror.hmc.edu * Atjauninājumi-newkey: mirror.hmc.edu
    * updates: mirror.hmc.edu * Atjauninājumi: mirror.hmc.edu
    Finished Pabeigtie
    Setting up Install Process Setting up Install Process
    Parsing package install arguments Analizējot paketes instalēt argumenti
    Resolving Dependencies Atrisināt atkarīgās teritorijas
    –> Running transaction check -> Running darījumu pārbaude
    —> Package httpd.i386 0:2.2.9-1.fc9 set to be updated -> Package httpd.i386 0:2.2.9-1. Fc9 kas jāatjaunina
    –> Finished Dependency Resolution -> Pabeigtie Dependency Resolution

    Dependencies Resolved Atkarības Izlēma

    ================================================== ==================================================
    Package Arch Version Repository Size Package Arch Version Repository Size
    ================================================== ==================================================
    httpd i386 2.2.9-1.fc9 updates-newkey 975 k httpd i386 2.2.9-1.fc9 atjauninājumi-newkey 975 k

    Transaction Summary Transaction Summary
    ================================================== ==================================================
    Install 1 Package(s) Instalēt 1 iepakojums (s)
    Update 0 Package(s) Update 0 Package (s)
    Remove 0 Package(s) Noņemt 0 Package (s)

    Total download size: 975 k Kopā Lejupielādes lielums: 975 k
    Is this ok [y/N]: y Tas ir ok [y / N]: y
    Downloading Packages: Downloading Packages:
    Downloading DeltaRPMs: Lejupielāde DeltaRPMs:
    Rebuilding rpms from deltarpms Pārbūves RPMs no 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 Running rpm_check_debug
    Running Transaction Test Running Transaction Test
    Finished Transaction Test Pabeigtie Transaction Test
    Transaction Test Succeeded Darījums Test Pēctecis
    Running Transaction Running Darījums
    Installing : httpd [1/1] Instalēšana: httpd [1 / 1]

    Installed: httpd.i386 0:2.2.9-1.fc9 Uzstādīti: httpd.i386 0:2.2.9-1. Fc9
    Complete! Pabeigta!

    If your output looks slightly different that the above, don't worry. Ja jūsu produkcija izskatās nedaudz atšķirīgas, ka iepriekš, nav jāuztraucas. I have a few extra repositories enabled as well as a few extra yum plugins. Man ir daži papildu krātuves iespējota kā arī dažas papildu Yum plugins. The important part is the line that says: Installed: httpd.i386 0:2.2.9-1.fc9 . Svarīga daļa ir līnija, kas saka: Installed: httpd.i386 0:2.2.9-1. Fc9.

  2. Start Apache: Start Apache:

    [user@radon ~]$ sudo /sbin/service httpd start [User @ radons ~] $ sudo / sbin / pakalpojumu httpd sākums
    Starting httpd: [ OK ] Starting httpd: [OK]

  3. Now test that it works. Tagad pārbaudīt, vai tā darbojas. Open a browser and visit http://127.0.0.1/ You should see something similar to the following: Atvērtu pārlūku un apmeklēt http://127.0.0.1/ Jums vajadzētu redzēt kaut ko līdzīgu tekstu:

  4. click to enlarge Uzklikšķiniet, lai palielinātu

  5. Lets find out the IP Address of the computer. Ļauj uzzināt IP datora adresi. We'll need this when we connect from the phone. Mums būs nepieciešama šī, kad mēs savienojumu no tàlruña.

    [user@radon ~]$ /sbin/ifconfig wlan0 [User @ radons ~] $ / 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 DARBĪBAS multicast MTU: 1500 Metric: 1
    RX packets:206616 errors:0 dropped:0 overruns:0 frame:0 RX packets: 206.616 errors: 0 dropped: 0 overruns: 0 frame: 0
    TX packets:161635 errors:0 dropped:0 overruns:0 carrier:0 TX packets: 161.635 errors: 0 dropped: 0 overruns: 0 carrier: 0
    collisions:0 txqueuelen:1000 collisions: 0 txqueuelen: 1000
    RX bytes:251797632 (240.1 MiB) TX bytes:24504623 (23.3 MiB) RX bytes: 251797632 (240,1 MiB) TX bytes: 24.504.623 (23.3 MiB)

    Note the second line of the output where it says inet addr . Atzīmēt otrajā rindā izejas, kur ir teikts, inet adr. Our IP Address is 192.168.20.4. Mūsu IP adrese ir 192.168.20.4.

    On your phone, choose Menu -> Web . Jūsu tālruni, izvēlieties Izvēlne -> Web. Make sure you choose the correct Access Point, the name of your wireless network. Pārliecinieties, ka jūs izvēlaties pareizo Access Point, nosaukumu jūsu bezvadu tīklā. Now, choose Options -> Go To Web Address and enter the IP Address you discovered above. Tagad, izvēlieties Iespējas -> Iet uz Web adresi un ievadiet IP adresi atklāta iepriekš. You should see the Apache Test Page on your phone's browser. Jums vajadzētu redzēt Apache Pārbaudes lapa no sava tālruņa pārlūkā.



  6. The default installation of Apache on Fedora 9 expects you to put your web pages in /var/www/html . Noklusējuma uzstādot Apache gada 9 Fedora sagaida jūs, lai jūsu tīmekļa lapas in / var / www / html. I decided to create a separate directory at /home/shared and make that accessible via the web. Es nolēmu izveidot atsevišķu directory at / home / dalīta un padarīt šo pieejams internetā. 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. Šādas komandas izveidot direktoriju, tad mainīt savu īpašumtiesību uz manu lietotāja vārdu, tam izveidot simbolisko saiti uz jaunu direktoriju zem noklusējuma Web root.

    [user@radon ~]$ sudo mkdir /home/shared [User @ radons ~] $ sudo mkdir / home / shared
    [user@radon ~]$ sudo chown user: /home/shared [User @ radons ~] $ sudo chown user: / home / shared
    [user@radon ~]$ sudo ln -s /home/shared/ /var/www/html/shared [User @ radons ~] $ sudo ln-s / home / shared / / var / www / html / shared

    Now visit http://127.0.0.1/shared/ in your browser and you should see an empty directory similar to the following: Tagad apmeklēt http://127.0.0.1/shared/ jūsu pārlūkprogrammā un jums vajadzētu redzēt tukšs katalogs līdzīgi šādi:


  7. click to enlarge Uzklikšķiniet, lai palielinātu

  8. Now visit http://192.168.20.4/shared on your phone, substituting the IP Address of your computer. Tagad apmeklēt http://192.168.20.4/shared uz jūsu tālruni, aizstājot IP datora adresi.
  9. Ok, now that the phone can see your shared directory, copy some installation files into it and choose Options -> Navigations Options -> Reload . Ok, tagad, ka tālruni var redzēt jūsu kopīgi directory, kopēt dažus instalācijas failus, un izvēlēties Iespējas -> Navigations Options -> Pārlādēt.

  10. Simple click on one of the files and you are prompted to install it. Vienkāršā uzklikšķiniet uz vienu failu un jums tiek piedāvāts instalēt. I find this way a whole lot faster than installing applications via USB or Bluetooth. Es uzskatu, ka tas tā visai daudz ātrāk nekā ierīkošanas pieteikumu, izmantojot USB vai Bluetooth.
  11. 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. Ja Jums ir pievērst uzmanību iepriekš ekrānšāviņi, jūs ievērosiet, ka instalācijas failus es izmantoju Šajā piemērā faktiski Apache instalācijas failus. Yes, you can run Apache on your N95. Jā, jūs varat palaist Apache jūsu N95. Watch for my upcoming tutorial on how to run Apache on the N95. Skatīties uz manu nākamo pamācību par to, kā darbojas Apache uz N95.
Related Posts: Related Posts:
  • How to remotely access your MySQL in a secure manner Kā attālināti piekļūt savam MySQL drošā veidā
  • How to upload a website built with iWeb to a non .mac/MobileMe account Kā augšupielādēt mājas lapā izveidota ar iWeb, lai bez .mac / MobileMe kontu
  • How to recursively copy files from an FTP server with Linux Kā rekursīvi kopēt failus no FTP serveri ar Linux
  • How to SSH to your remote server without entering a password every time Kā SSH jūsu attālajā serverī neievadot paroli katru reizi
  • How to set the date on your Linux machine Kā noteikt datumu jūsu Linux mašīna
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! Get Simple Palīdzība konsultācijas tāpat kā šo vienu savā e-pastā ik dienas - bez maksas! Just enter your email address below: Vienkārši ievadiet savu e-pasta adresi:

    You can always opt out of this email subscription at any time. Jūs vienmēr varat atteikties no šīs e-pasta abonementu jebkurā laikā.

    { 0 comments… (0 comments ... add one now pievienot vienu tagad } )

    Leave a Comment Leave Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Jūs varat izmantot šos HTML tagus un atribūtus: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>