Below you will find pages that utilize the taxonomy term “Guide”
FreeBSD 7.1 PPPoE拨号上网指南
首先记录下网卡名称,如rl0。当然还需要ADSL用户名和密码。
ee /etc/ppp/ppp.conf
default节不要动,在最下面添加一个节,比如 ChinaTelecom
节设置输入如下内容(注意,这个文件对行首空格或tab是敏感的,每个节的内容需要在行首加上空格或tab):
set device /dev/net/rl0
set authname 用户名
set authkey 密码
set dial
set login
add default HISADDR
完成后保存,以root执行
ppp -ddial 节名称
如
ppp -ddial ChinaTelecom
完成后执行ifconfig,应该可以看到tun0中已经显示动态IP地址了。
DNS需要手动设置,在/etc/rc.conf中加入
nameserver 61.147.37.1
最多三个。
FreeBSD 7.1 下的 FlashPlayer9 安装方法
1.安装linux_base-f8
2.安装FireFox 3.0以上版本(2.x似乎不可以。反正我没搞定)
3.
<samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /usr/ports/www/nspluginwrappe</kbd>
<samp class="PROMPT">#</samp> <kbd class="USERINPUT">make install clean</kbd>
4.
<samp class="PROMPT">#</samp> <kbd class="USERINPUT"></kbd>cd /usr/ports/www/linux-flashplugin9
<samp class="PROMPT">#</samp> <kbd class="USERINPUT"></kbd>make install
在下载完后Ctrl-C打断。
5.
<samp class="PROMPT">#</samp> <kbd class="USERINPUT"></kbd>cp /usr/ports/distfiles/flashplugin/9.0r152/install_flash_player_9_linux.tar.gz /home/bear/
<samp class="PROMPT">#</samp> su bear
$ cd ~
<kbd class="USERINPUT">$ tar xvf </kbd>install_flash_player_9_linux.tar.gz
$ makedir <kbd class="USERINPUT">~/.mozilla/plugins</kbd>
$ cp ./install_flash_player_9_linux/<kbd class="USERINPUT">libflashplayer.so ~/.mozilla/plugins</kbd>/
<samp class="PROMPT">$</samp> <kbd class="USERINPUT">nspluginwrapper -v -a -i</kbd>
<samp class="PROMPT">$</samp> <kbd class="USERINPUT">nspluginwrapper -l</kbd>
6.启动Firefox即可
P.S.:理论上应该没问题,但是我没成功。.FireFox3.0里面始终不显示nspluginwrapper,但是显示FlashPlayer 9.0 r152.....进入Firefox的时候,控制台报错说找不到libdl.so.2。很郁闷
FreeBSD 7.1 RC1 下php环境架设方法
这篇文章讲的是如何搭建开发环境,不是服务器环境。如果你希望架设服务器,那么请用port安装。
1.去mysql.org下载mysql5.1.13的源码包。注意,不要下载for FreeBSD 6.1等其它版本的包。一定要和FreeBSD版本完全一致。否则会导致后面的失败。
2. tar xvf mysql-XXXXX
./configure –prefix=/home/bear/work/mysql5/
make
make install
编译大概需要15分钟左右。我的破机子花了20min。
3.常规方法编译apache2,下载源码包,
./configure –prefix=/home/bear/work/apache2
make
make install
4.编译php5
下载源码,执行
./configure –prefix=/home/bear/work/php5 –with-apxs2=/home/bear/work/apache2/bin/apxs –with-mysql=/home/bear/work/mysql5/
注意,如果你没有使用和FreeBSD版本相同的mysql的话,此处会报错的…
make
make install
5.进入mysql5安装目录,执行在scripts(可能记错了)下的install_db
6.执行./bin/mysqld_safe&启动mysql守护进程(无需root权限)
7.进入apache2安装目录,修改httpd.conf中的User和Group为你的用户名(如bear)。这样可以免去权限设置的麻烦。
同时按照php的README文件所述,加上php的文件类型。
8.执行./bin/apachectl start启动apache 守护进程(必须root权限)
9.一切ok
FreeBSD7安装 mysql5
下载下来,tar xvf之。
./scripts/mysql_install_db
./bin/mysqld_safe
一切ok