Notices


Reply
Thread Tools
Posts: 242 | Thanked: 269 times | Joined on Mar 2010
#71
PLEEEEEEEAAAAAASSSSE HELP!!!

I've tried everything. I looked at the ubuntu forums too. I've spent two days on this, guys... and I just can't get it to work. It either closes terminal or gives an "error on line... ".

I just want a freaking working ftp server, by this point I don't care if it's only anonymous login, if 3000 connections can be made.... really, I just want to be able to ftp into my N900.

Can someone PLEASE give me instructions on how to do this. Seriously, if I can get OS8 working on the tablet, I should be able to get this working. But I can't.

Any suggestions?
 
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#72
busybox-power includes an "ftpd" command in busybox (for the newbs - busybox is a program that provides most of the shell commands on embedded systems like the N900).

I haven't used it, but you all might find it easier.
 
Posts: 133 | Thanked: 16 times | Joined on Sep 2010 @ Balzan Malta
#73
I can't get this to start. I edited the conf file but I can not start proftpd? Can some one tell me the exact commands to make it start??
__________________
My life is now much easier with my N900!!
 
Posts: 262 | Thanked: 206 times | Joined on May 2010
#74
STEP BY STEP MAKING PROFTPD WORK ON N900

You will be able to login with the default user ONLY
to change the password for the default user type :
Code:
sudo gainroot
passwd user
and enter your new password

Step 1 : Enable extras-devel repository and install proftpd

after installing :

Step 2 : in xterm type
Code:
sudo apt-get install nano-opt
Step 3 :
Code:
sudo gainroot
nano /opt/etc/proftpd.conf
Step 4 : use this config :

Code:
ServerName                      "Your FTP server name"
ServerType                      standalone
DefaultServer                   on

# Port 21 is the standard FTP port.
Port                            21

# Don't use IPv6 support by default.
UseIPv6                         off

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances                    8

# Set the user and group under which the server will run.
User                            nobody
Group                           nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite          on

# to list hidden files too
ListOptions                     "-a"
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

<Limit LOGIN>
        AllowGroup ftp
        DenyAll
</Limit>
Step 5 : create a group to carry ftp users (if you want to make more than one user later with specific directories and stuff)

Code:
groupadd ftp
Step 6 : Add 'user' to the ftp group

Code:
usermod -a -G ftp user
Step 7 : the start/stop script :
Code:
nano /etc/init.d/proftpd
then user this code (thanks for who wrote it but it's buggy a lil bit)
Code:
#!/bin/sh

  # ProFTPD files
  FTPD_BIN=/opt/sbin/proftpd
  FTPD_CONF=/opt/etc/proftpd.conf
  PIDFILE=/home/opt/var/proftpd/proftpd.pid

  # If PIDFILE exists, does it point to a proftpd process?

  if [ -f $PIDFILE ]; then
   pid=`cat $PIDFILE`
  fi

  if [ ! -x $FTPD_BIN ]; then
    echo "$0: $FTPD_BIN: cannot execute"
    exit 1
  fi

  case $1 in

    start)
      if [ -n "$pid" ]; then
        echo "$0: proftpd [PID $pid] already running"
        exit
      fi

      if [ -r $FTPD_CONF ]; then
        echo "Starting proftpd..."

        $FTPD_BIN -c $FTPD_CONF
         ps -ef | pgrep -x proftpd | awk 'NR>1{exit};1' > $PIDFILE

      else
        echo "$0: cannot start proftpd -- $FTPD_CONF missing"
      fi
 ;;

    stop)
      if [ -n "$pid" ]; then
        echo "Stopping proftpd..."
         rm $PIDFILE
        kill -TERM $pid

      else
        echo "$0: proftpd not running"
        exit 1
      fi
      ;;

    restart)
      if [ -n "$pid" ]; then
        echo "Rehashing proftpd configuration"
        kill -HUP $pid

      else
        echo "$0: proftpd not running"
        exit 1
      fi
      ;;

    *)
      echo "usage: $0 {start|stop|restart}"
      exit 1
      ;;

  esac

  exit 0
*hint , to save the texts use ctrl+o , to exit nano use ctrl+x

if you want to use xterm to start and stop the ftp server :
Start :
Code:
sudo /etc/init.d/proftpd start
Stop :
Code:
sudo /etc/init.d/proftpd stop
ReStart :
Code:
sudo /etc/init.d/proftpd restart
Thats all , Enjoy !

If you plan to use something like queen beccon to stat the FTP server , its preferred you do this : (as a root , sudo gainroot)

Code:
chmod 777 /etc/init.d/proftpd
nano /etc/init.d/proftpd_start
and paste this :
Code:
#!/bin/sh
# proftpd-toggle
if pgrep -x proftpd > /dev/null; then
sudo rm /home/opt/var/proftpd/proftpd.pid
sudo killall proftpd
echo Stopped
else
echo Started
sudo /etc/init.d/proftpd start
fi
exit 0
then finally
Code:
chmod 777 /etc/init.d/proftpd_start
no in queen beecon , create a custom command and let it be
Code:
/etc/init.d/proftpd_start
this will toggle the proftpd on/off

Last edited by teamer; 2012-01-15 at 13:30.
 

The Following User Says Thank You to teamer For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:22.