ProFTPd

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:25, 10 July 2007 (edit)
ZuiYxt (Talk | contribs)
m
← Previous diff
Revision as of 21:56, 9 October 2007 (edit) (undo)
MeisterEder (Talk | contribs)
(Installing optware)
Next diff →
Line 19: Line 19:
[http://www.dd-wrt.com/wiki/index.php/Optware Installing optware ] [http://www.dd-wrt.com/wiki/index.php/Optware Installing optware ]
- 
-Make folder 'opt' in mmc: 
- 
-<pre>mkdir /mmc/opt</pre> 
- 
-Mounten von '/mmc/opt' with '/opt': 
- 
-<pre>mount -o bind /mmc/opt /opt</pre> 
- 
-Save script 'optware-pre-install.sh' to /opt, change rights to 755 
- 
-Starting Script: 
- 
-<pre>/opt/optware-pre-install.sh</pre> 
- 
-optware-pre-install.sh: 
-<pre>#!/bin/sh 
-# Optware pre-installation script, Leon Kos 2006 
-  
-REPOSITORY=http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable 
-TMP=/tmp 
-  
-PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin 
-unset LD_PRELOAD 
-unset LD_LIBRARY_PATH 
-  
-_check_config() 
-{ 
- echo "Checking system config ..." 
- GATEWAY=$(netstat -rn | 
- sed -n 's/^0.0.0.0[ \t]\{1,\}\([0-9.]\{8,\}\).*/\1/p' ) 
- if [ -n "${GATEWAY}" ]; then 
- echo "Using ${GATEWAY} as default gateway." 
- else 
- echo "Error: No default gateway set!" 
- exit 2 
- fi 
- if [ -s /etc/resolv.conf ]; then 
- echo "Using the following nameserver(s):" 
- if grep nameserver /etc/resolv.conf ; then 
- GATEWAY_SUBNET=$(echo "${GATEWAY}" | 
- sed 's/\.[0-9]\{1,3\}\.[0-9]\{1,3\}$//') 
- if [ "${GATEWAY_SUBNET}" = "192.168" ]; then 
- if grep -q ${GATEWAY} /etc/resolv.conf ; then 
- echo "Gateway ${GATEWAY} is also nameserver." 
- else 
- echo "Warning: local nameserver is different than gateway!" 
- echo "Check config or enter:" 
- if test -L /etc/resolv.conf ; then  
- echo " sed -i s/192.168.*/${GATEWAY}/ /tmp/resolv.conf" 
- else 
- echo " sed -i s/192.168.*/${GATEWAY}/ /etc/resolv.conf" 
- fi 
- echo "to correct this." 
- fi 
- fi 
- else 
- echo "Error: No nameserver specified in /etc/resolv.conf" 
- exit 5 
- fi 
- else 
- echo "Error: Empty or nonexistent /etc/resolv.conf" 
- exit 3 
- fi 
-  
- if mount | grep -q /opt ; then 
- [ -d /opt/etc ]</pre> 

Revision as of 21:56, 9 October 2007

by mcpat

Requirements

First be sure that you have enough memory free. Because of this I describe the installation on SD-cards (/mmc). Additionally this procedure will show how to install even the needed ipkg packages on the SD-card.

It is also possible to replace every occurances of (/mmc) with (/jffs) if you have it enabled.

Preparation

Install first optware!

Then install xinetd

Then install proftpd

Installing optware

Installing optware