Chinaunix首页 | 论坛 | 博客
  • 博客访问: 424032
  • 博文数量: 53
  • 博客积分: 2746
  • 博客等级: 少校
  • 技术积分: 829
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-14 10:41
文章分类

全部博文(53)

文章存档

2016年(2)

2013年(1)

2012年(7)

2011年(10)

2010年(5)

2009年(20)

2008年(8)

我的朋友

分类: LINUX

2010-02-12 11:11:50

Okay, optware up and running:
Telnet in, first remount /:
Code:
mount / -o remount,rw
Then install bootstrap. ipkg-cl is extrated by someone on another forum from the xtreamer firmware
Code:
mkdir /opt
mkdir /opt/tmp
mkdir /opt/tmp/ipkg

cd /opt/tmp

wget 
tar -xvf ipkg-cl.tgz
mv /opt/tmp/ipkg-cl /usr/local/bin/
rm ipkg-cl.tgz

wget 
ipkg-cl install uclibc-opt_0.9.28-13_mipsel.ipk

wget 
ipkg-cl install ipkg-opt_0.99.163-10_mipsel.ipk

rm *.ipk

/opt/bin/ipkg update
Ok that's it. Now, any package can be installed like: "/opt/bin/ipkg install mc"
Furthermore to make some room for the packages, and since i'm not chinese , remove those big (total +/- 30MB) fonts:

Code:
cd /usr/local/bin/Resource/
cp arial.ttf CHI.ttf
cp arial.ttf JPN.ttf
cp arial.ttf cwheib.ttf
cp arial.ttf cwyen.ttf

Before 92.5/203.6 MB free (55% used), after 126.6/203.6 free (38% used), thats better!
That's it for now. So to answer CrashX's question: Optware is working...

./ipkg list

FTP Server
安装指令
/opt/bin/ipkg install proftpd

配置方法:
安装过后,在/opt/etc里面会生成proftpd.conf文件
有几处需要修改的地方:
ServerType    后面要改成    standalone


AuthUserFile /opt/passwd
这里改为/opt/passwd,而不是/etc/passwd


# Set the user and group under which the server will run.
User                         root
Group                         root
这里,两个都改成root


# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
为了安全起见,删掉DefaultRoot前面的#号,把每个用户锁在自己的专粑募 ?br>


如果不想要匿名访问 梢栽贕roup前面加# 注释掉,否则这段可以不用修改
# A basic anonymous configuration, no upload directories.   If you do not
# want anonymous users, simply delete this entire section.

User     ftp
# Group    ftp

保存后,退回到telnet界面,打入
cp /etc/passwd /opt
然后编辑
/opt/passwd
会看到类似于:
root:xxxxxxxxxxxxx:0:0:Root User,,,:/opt/share/www/ftp:/bin/sh
的一行或几行
将第一个冒号前面的名字由root改成你想要起的用户名,
XXXXX的地方是经过hash的密码,如何获得呢?你可以更改进入dd-wrt的界面的密码,然后从/etc/passwd里面root那一行里拷贝过来就行啦        如果需要设置密码为admin可以把XXXXXX改为bJz7PcC1rCRJQ
/opt/share/www/ftp是这个用户登陆以后所在的默认目录,当然要挂到U盘上

最后,退到telnet界面
输入
cp /opt/doc/proftpd/S58proftpd /opt/etc/init.d
        chmod +x   /opt/etc/init.d/S58proftpd

       就行啦

启动指令是/opt/etc/init.d/S58proftpd 之后别的电脑就可以访问FTP服务了

【新增FTP被动 PASV指令支持方法】
在proftp.conf第一行添加
PassivePorts 60000 60050
然后在web界面端口群转发里面添加从60000到60050的端口到192.168.1.1
重启FTP进程就行了
这样别人用FTP软件连接你的FTP,就可以选择使用被动模式Passive Mode了

阅读(2171) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~