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发表您的评论