找回密码
 立即注册
img_loading
智能检测中

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
glinet
查看: 3926|回复: 0

[Debian] WRTSL54GS动手玩 之 Debian篇 - DebianWRT debootstrap Howto

[复制链接]
发表于 2009-11-14 14:38 | 显示全部楼层 |阅读模式
欢迎到我的Blog捧场

http://hi.baidu.com/myeyre/blog/ ... eae42ccffca3d3.html

-------------------------------------------------------------------

WRTSL54GS动手玩 之 Debian篇

DebianWRT debootstrap Howto:

Refer to:
http://wiki.debian.org/DebianWRT
http://wiki.debian.org/Debootstrap
http://www.lucas-nussbaum.net/blog/?p=228

1) on a Linux PC:

#Debian and Ubuntu Rock. zypper or yum etc should do the trick too.
apt-get update
apt-get install debootstrap

#Mirrors located in China seemed to badly synced: missing archs, wrong files, outdated ...
#Pity for this GREAT GREAT country.

#Choose a primary mirror near you. TW, JP mirrors should be fine. There's even a KR mirror.

#To locate a mirror near you, see the list of Debian worldwide mirror sites.
#http://www.debian.org/mirror/list

cd ~; mkdir ~/debian-wrt
##lenny on DD-WRT v24 preSP2: FATAL: kernel too old
#debootstrap --arch mipsel --foreign lenny ~/debian-wrt http://ftp.tw.debian.org/debian/
debootstrap --arch mipsel --foreign etch ~/debian-wrt http://ftp.tw.debian.org/debian/

tar -czf debian-wrt.tar.gz debian-wrt/

#cp it to WRTSL54GS using Samba, ssh or ftp.

2) on DD-WRT:

tar -xzf debian-wrt.tar.gz

##
#mount -t proc proc ~/proc

chroot ./debian-wrt /bin/bash
mount -t proc proc /proc
ls /proc

/debootstrap/debootstrap --second-stage


##reload init, I'd rather not to.
#init q


3) Post-install config:

echo "nameserver 192.168.10.1" > /etc/resolv.conf

#null sources.list??
echo "deb http://ftp.tw.debian.org/debian/ etch main contrib non-free" > /etc/apt/sources.list

apt-get update
apt-get install hello

hello

#Good!!


4) LAMP:

apt-get install lighttpd php5 php5-cgi mysql-server php5-mysql phpmyadmin


#vi /etc/lighttpd/lighttpd.conf
server.port                 = 81

#10-fastcgi.conf: php4 >> php5
lighty-enable-mod fastcgi

/etc/init.d/lighttpd start


cat > /var/www/i.php
<?php
        phpinfo();
?>
^D



##mysql
##use mysql;
##delete from user where user = '';
##update user set password = password('xxxzzz') where user='root';
##
##flush privileges;


5) Wordpress:

Still suffer from bad performence.


#try to run php as apache module.
Still sucks.

#try to run on 7231-4p 64M mod??
tbd.

#try to run spawn-fcgi on another WRT??
tbd.
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛

只谈技术、莫论政事!切勿转播谣言!为了你也为了他人。
只谈技术、莫论政事!(点击见详情) 切记不要随意传播谣言,把自己的日子过安稳了就行,为了自己好也为了大家好。 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。

查看 »

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2025-5-24 07:47

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表