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.經過書面十幾這些教程和安裝和拆除這麼多不同的應用,我想,人們必須有更快的方式。 WiFi is far faster than Bluetooth and far more convenient than digging for a USB data cable. WiFi是遠快於藍牙和深遠更方便比挖一個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?我有一個計算機運行Linux ,我有一個無線網絡,並連接的N95通過WiFi為什麼不能運行的Apache只是我的電腦上點的N95在目錄中的電腦嗎?
I’m writing this tutorial using Fedora 9, but these instructions should be easily adaptable to just about any Linux distribution.我寫這本教程使用的Fedora 9 ,但這些指示,應該很容易適應的任何Linux發行。 Also, you can此外,您也可以 install Apache in Windows安裝Apache在Windows or或 OS X OS X的 , and follow along with the steps in this tutorial. ,並按照與步驟,在此教程。
- These instructions are almost completely command line based.這些指令幾乎完全基於命令行。 First, check if you already have Apache installed.首先,請檢查如果您已經有Apache的安裝。 There’sa chance you might already have it.還有機會,你可能已經擁有它。 For RedHat, Fedora and other RPM based Linux distributions:對於紅帽, Fedora的轉速和其他基於Linux的分佈:
[user@radon ~]# rpm -q httpd [用戶@氡〜 ] #更高的httpd
httpd-2.2.9-1.fc9.i386的httpd - 2.2.9 - 1.fc9.i386If you don’t, it’s as simple as the following:如果你沒有,它就是這麼簡單如下:
[user@radon ~]# sudo yum install httpd [用戶@氡〜 ] #須藤百勝安裝的httpd
Loaded plugins: changelog, downloadonly, fastestmirror, list-data, merge-conf,加載插件:更新, downloadonly , fastestmirror ,清單數據,合併置信,
: presto, refresh-packagekit :急,刷新packagekit
Setting up and reading Presto delta metadata建立和閱讀普雷斯托三角洲元
No Presto metadata available for atrpms沒有普雷斯托元供atrpms
No Presto metadata available for google沒有普雷斯托元可用於谷歌
No Presto metadata available for fedora沒有普雷斯托元可用於Fedora的
No Presto metadata available for adobe-linux-i386沒有普雷斯托元供土坯- Linux的i386
No Presto metadata available for updates-newkey沒有普雷斯托元用於更新, newkey
No Presto metadata available for updates沒有普雷斯托元用於更新
Loading mirror speeds from cached hostfile加載鏡像緩存的速度,從hostfile
* fedora: mirror.hmc.edu * Fedora的: mirror.hmc.edu
* updates-newkey: mirror.hmc.edu *更新, newkey : mirror.hmc.edu
* updates: mirror.hmc.edu *更新: mirror.hmc.edu
Finished成品
Setting up Install Process設置安裝過程
Parsing package install arguments分析軟件包安裝的論點
Resolving Dependencies解決屬地
–> Running transaction check -> “運行交易檢查
—> Package httpd.i386 0:2.2.9-1.fc9 set to be updated -> “包h ttpd.i3860 :2.2.9-1。 f c9將被更新
–> Finished Dependency Resolution -> “成品依賴問題解決Dependencies Resolved屬地分辨
==================================================
Package Arch Version Repository Size包拱版本庫大小
==================================================
httpd i386 2.2.9-1.fc9 updates-newkey 975 k i386 2.2.9的httpd - 1.fc9更新, newkey 975 kTransaction Summary交易綜述
==================================================
Install 1 Package(s)安裝一包(星期日)
Update 0 Package(s)更新0包(星期日)
Remove 0 Package(s)刪除0包(星期日)Total download size: 975 k總下載大小: 975 k
Is this ok [y/N]: y這是玉的[ y /否] :有無
Downloading Packages:下載軟件包:
Downloading DeltaRPMs:下載DeltaRPMs :
Rebuilding rpms from deltarpms從改造進去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運行rpm_check_debug
Running Transaction Test交易測試運行
Finished Transaction Test交易完成測試
Transaction Test Succeeded交易測試成功
Running Transaction辦學交易
Installing : httpd [1/1]安裝:的httpd [ 1 / 1 ]Installed: httpd.i386 0:2.2.9-1.fc9安裝: httpd.i386 0:2.2.9-1 。 fc9
Complete!完成!If your output looks slightly different that the above, don’t worry.如果你的輸出看起來略有不同,以上,請不要擔心。 I have a few extra repositories enabled as well as a few extra yum plugins.我有幾個額外的儲存功能,以及一些額外的百勝插件。 The important part is the line that says: Installed: httpd.i386 0:2.2.9-1.fc9 .的重要組成部分的線,說: 安裝: httpd.i386 0:2.2.9-1 。 fc9 。
- Start Apache:啟動Apache :
[user@radon ~]$ sudo /sbin/service httpd start [用戶@氡〜 ] $須藤/ sbin /服務的httpd啟動
Starting httpd: [ OK ]啟動的httpd : [確定] - Now test that it works.現在測試,它的作品。 Open a browser and visit http://127.0.0.1/ You should see something similar to the following:打開瀏覽器,並訪問http://127.0.0.1/您應該會看到類似以下內容:
- Lets find out the IP Address of the computer.可以找出IP地址的計算機。 We’ll need this when we connect from the phone.我們需要這種連接當我們從電話。
[user@radon ~]$ /sbin/ifconfig wlan0 [用戶@氡〜 ] $ / sbin / ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr AA:BB:CC:DD:EE:FF wlan0鏈路封裝:以太網HWaddr機管局:貝爾:氣候變化:差異:電子工程專輯:法郎
inet addr:192.168.20.2 Bcast:192.168.20.255 Mask:255.255.255.0 Inet電子地址: 192.168.20.2 Bcast : 192.168.20.255遮罩: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1廣播向上運行組播的MTU : 1500公制: 1
RX packets:206616 errors:0 dropped:0 overruns:0 frame:0接收的數據包: 206616錯誤: 0下跌: 0超支: 0畫面: 0
TX packets:161635 errors:0 dropped:0 overruns:0 carrier:0德克薩斯州包: 161635錯誤: 0下跌: 0超支: 0承運人: 0
collisions:0 txqueuelen:1000碰撞: 0 txqueuelen : 1000
RX bytes:251797632 (240.1 MiB) TX bytes:24504623 (23.3 MiB)接收字節: 251797632 ( 240.1貨款)德克薩斯州字節: 24504623 ( 23.3黑冰)Note the second line of the output where it says inet addr .請注意,第二條生產線的輸出說在Inet電子地址 。 Our IP Address is 192.168.20.4.我們的IP地址是192.168.20.4 。
On your phone, choose Menu -> Web .在您的手機上,選擇菜單 -> “網站。 Make sure you choose the correct Access Point, the name of your wireless network.請務必選擇正確的接入點的名字,您的無線網絡。 Now, choose Options -> Go To Web Address and enter the IP Address you discovered above.現在,選擇選項 -> “轉到網址,並輸入I P地址你發現以上。 You should see the Apache Test Page on your phone’s browser.您應該看到Apache的測試頁在您的手機上的瀏覽器。
- The default installation of Apache on Fedora 9 expects you to put your web pages in /var/www/html .默認安裝的Apache上的Fedora 9日預計,你把你的網頁在 / var / 的www /的HTML 。 I decided to create a separate directory at /home/shared and make that accessible via the 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.下面的命令創建目錄,然後改變其所有權轉讓給我的用戶名,然後創建一個符號鏈接到新的目錄低於預設的網頁根。
[user@radon ~]$ sudo mkdir /home/shared [用戶@氡〜 ] $須藤目錄/家庭/共享
[user@radon ~]$ sudo chown user: /home/shared [用戶@氡〜 ] $須藤chown用戶: /家庭/共享
[user@radon ~]$ sudo ln -s /home/shared/ /var/www/html/shared [用戶@氡〜 ] $須藤的ln -秒/家庭/共享/是/ var /的www /的HTML /共享Now visit http://127.0.0.1/shared/ in your browser and you should see an empty directory similar to the following:現在訪問http://127.0.0.1/shared/在您的瀏覽器,你應該會看到一個空目錄類似如下:
- Now visit http://192.168.20.4/shared on your phone, substituting the IP Address of your computer.現在訪問http://192.168.20.4/shared您的手機,代IP地址的計算機。
- Ok, now that the phone can see your shared directory, copy some installation files into it and choose Options -> Navigations Options -> Reload .好吧,現在的手機可以看到您的共享目錄,複製一些安裝文件到它,並選擇選項 -> “導航選項- >”重新載入。
- Simple click on one of the files and you are prompted to install it.簡單的點擊一個文件,並提示您安裝它。 I find this way a whole lot faster than installing applications via USB or Bluetooth.我覺得這種方式一大堆速度比安裝應用程序通過USB或藍牙。
- 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.如果您是要注意上述截圖,您會發現安裝文件,我用這個例子實際上是Apache的安裝文件。 Yes, you can run Apache on your N95.是的,你可以運行的Apache在您的N95型。 Watch for my upcoming tutorial on how to run Apache on the N95.觀察我國即將舉行的教程就如何運行的Apache的N95 。


































{ 0 comments… ( 0評論... add one now現在添加一個 } )
Leave a Comment發表您的評論