Page 3 of 11 FirstFirst 12345 ... LastLast
Results 21 to 30 of 109

Thread: My take on setup ipkg on box office device

  1. #21
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,035

    Default

    Quote Originally Posted by supergizboy View Post
    xun1234, i was trying to install the Mediatomb last night, but couldnt' find the libstdc++ package in repos, it's a dependency, do you happen to know where i can get it? thanks.
    Cool, let me know how you make out; I was going to try that next. Have you tried to load one of the static build for embedded devices instead of using ipkg. See the following link: http://mediatomb.cc/pages/download I must admit however that I have no idea which one of those build would be appropriate for the PBO. There are absolutely no dependencies on external packages, the binaries are statically linked and have no dependencies.

    Anyhow I would like to wait for next version since version 0.11 of mediatomb does not work properly to stream apple trailer and You tube which is mainly what I want mediatomb for. I had to use the latest SVN and compiled on Ubuntu to be able to stream apple trailer and Youtube properly to the PBO via my PC. Version 0.12 should be out soon and hopefully they will have some compiled version for the embedded devices.

    Good luck and let us know how it turns out.

  2. #22

    Default

    Quote Originally Posted by snappy46 View Post
    Cool, let me know how you make out; I was going to try that next. Have you tried to load one of the static build for embedded devices instead of using ipkg. See the following link: http://mediatomb.cc/pages/download I must admit however that I have no idea which one of those build would be appropriate for the PBO. There are absolutely no dependencies on external packages, the binaries are statically linked and have no dependencies.

    Anyhow I would like to wait for next version since version 0.11 of mediatomb does not work properly to stream apple trailer and You tube which is mainly what I want mediatomb for. I had to use the latest SVN and compiled on Ubuntu to be able to stream apple trailer and Youtube properly to the PBO via my PC. Version 0.12 should be out soon and hopefully they will have some compiled version for the embedded devices.

    Good luck and let us know how it turns out.
    Not yet. i've had it for a week only and been dealing with support for the faulty shipped wifi adapter issue. mediatomb might be the app i want the most on my pbo. will look into it when i have some free time.

  3. #23
    Join Date
    Jan 2010
    Posts
    130

    Default

    Quote Originally Posted by supergizboy View Post
    ===============================
    User ipkg-cl to install vsftpd.

    1. install ipkg (first post)
    2. run these cmds.

    # cd /opt/tmp
    # wget http://ipkg.nslu2-linux.org/feeds/op...2-1_mipsel.ipk
    # ipkg-cl install vsftpd_2.2.2-1_mipsel.ipk
    # rm vsftpd_2.2.2-1_mipsel.ipk

    3. edit vsftpd.conf

    # cd /opt/etc
    # mv vsftpd.conf vsftpd.conf.ori
    # touch vsftpd.conf
    # vi vsftpd.conf
    (press i for insert, then copy and paste following lines)

    anonymous_enable=YES
    local_enable=YES
    write_enable=YES
    local_umask=022
    anon_upload_enable=YES
    anon_mkdir_write_enable=YES
    dirmessage_enable=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    vsftpd_log_file=/opt/var/log/vsftpd.log
    ascii_upload_enable=YES
    ascii_download_enable=YES
    ftpd_banner=Welcome to My PBO.
    ls_recurse_enable=YES
    listen=YES
    ftp_username=nobody

    (then press ESC and type :wq! to exit vi editor)

    added: make the log directory
    # mkdir -p /opt/var/log

    4. start vsftpd
    # /opt/bin/vsftpd /opt/etc/vsftpd.conf &

    5. auto start vsftpd at boot
    add this line to the end of /usr/local/etc/rcS

    /opt/bin/vsftpd /opt/etc/vsftpd.conf &

    6. login
    from DOS:
    c:\> ftp venus
    user: anonymous
    password: anything@anything.com

    or use any ftp client you like. (FireFTP is a nice Firefox extension)

    Note:
    1. you need to have the internal hard disk installed for all this.
    2. above is installed vsftpd as a standalone ftp server with anonymous enabled, you might modify vsftpd.conf to enable login.
    3. i wrote this out of my memory, could be typo there, let me know if you have any trouble following.
    Thanks for the details. However, after doing all this, when I type "ftp venus" in DOS command window, it says "Connected to Venus", but then almost immediately afterward (less than 2 seconds) it says "Connection closed by remote host". It does not ask for username or password. If I try to connect via WS_FTP, it does not connect at all.

  4. #24

    Default

    Quote Originally Posted by jamaroney View Post
    Thanks for the details. However, after doing all this, when I type "ftp venus" in DOS command window, it says "Connected to Venus", but then almost immediately afterward (less than 2 seconds) it says "Connection closed by remote host". It does not ask for username or password. If I try to connect via WS_FTP, it does not connect at all.
    if you get "Connection closed by remote host", means the vsftpd is not running, try using ip address instead of hostname venus first, then check if vsftpd is running form command line by " ps -ef|grep vsftp", you should see a line with pid associated, if not run it again "/opt/bin/vsftpd /opt/etc/vsftpd.conf &" if there's error, copy and paste it here.
    Last edited by supergizboy; 03-02-2010 at 01:23 PM.

  5. #25
    Join Date
    Jan 2010
    Posts
    130

    Default

    Quote Originally Posted by supergizboy View Post
    if you get "Connection closed by remote host", means the vsftpd is not running, try using ip address instead of hostname venus first, then check if vsftpd is running form command line by " ps -ef|grep vsftp", you should see a line with pid associated, if not run it again "/opt/bin/vsftpd /opt/etc/vsftpd.conf &" if there's error, copy and paste it here.
    1) How does one type in the "|" symbol in telnet? I couldn't do it, so I went on to the next step:

    2) When I run "/opt/bin/vsftpd /opt/etc/vsftpd.conf &" it then states:
    -sh: /opt/bin/vsftpd: not found
    [1] + Done<127> /opt/bin/vsftpd /opt/etc/vsftpd.conf

    3) So I did a search, and found vsftpd in /opt/sbin. So I revised the above command to "/opt/sbin/vsftpd /opt/etc/vsftpd.conf &". It then stated:
    -sh: /opt/sbin/vsftpd: Permission denied
    [1] + Done<126> /opt/sbin/vsftpd /opt/etc/vsftpd.conf

    Why was permission denied?

  6. #26

    Default

    Quote Originally Posted by jamaroney View Post
    1) How does one type in the "|" symbol in telnet? I couldn't do it, so I went on to the next step:

    2) When I run "/opt/bin/vsftpd /opt/etc/vsftpd.conf &" it then states:
    -sh: /opt/bin/vsftpd: not found
    [1] + Done<127> /opt/bin/vsftpd /opt/etc/vsftpd.conf

    3) So I did a search, and found vsftpd in /opt/sbin. So I revised the above command to "/opt/sbin/vsftpd /opt/etc/vsftpd.conf &". It then stated:
    -sh: /opt/sbin/vsftpd: Permission denied
    [1] + Done<126> /opt/sbin/vsftpd /opt/etc/vsftpd.conf

    Why was permission denied?
    First of all, my apology. it was my typo, should be /opt/sbin/vftpd. been corrected on 1st post.

    did you create the log directory? also the "|" key is the same key as "\".

    make sure your /opt/etc/vsftpd.conf has these lines,

    anonymous_enable=YES
    local_enable=YES
    write_enable=YES
    local_umask=022
    anon_upload_enable=YES
    anon_mkdir_write_enable=YES
    dirmessage_enable=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    vsftpd_log_file=/opt/var/log/vsftpd.log
    ascii_upload_enable=YES
    ascii_download_enable=YES
    ftpd_banner=Welcome to My PBO.
    ls_recurse_enable=YES
    listen=YES
    ftp_username=nobody
    Last edited by supergizboy; 03-02-2010 at 07:33 PM.

  7. #27
    Join Date
    Jan 2010
    Posts
    130

    Default

    Quote Originally Posted by snappy46 View Post
    1) Telnet to your PBO.
    2) cd /etc
    3) vi inetd.conf (read up on vi (text editor) to learn the various editing options)
    4) add the line requested (ftp stream tcp nowait root /opt/sbin/vsftpd /opt/etc/vsftpd.conf) after the other lines; you will see one for the http server (www) and telnet already there just add at the end of that.
    5) save the inetd.conf file.
    6) Reboot the PBO then try the ftp server it should be already running.

    Hopefully this will work for you. I haven't add the time to play with this yet but intend to do so.

    Good luck
    I'm having trouble editing inetd.conf because it's read-only. How can I work around that?

  8. #28
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,035

    Default

    Quote Originally Posted by jamaroney View Post
    I'm having trouble editing inetd.conf because it's read-only. How can I work around that?

    You are quite correct in that statement you will not be able to edit the inetd.conf since it actually sits in the flash memory. That was my mistake for assuming that the PBO worked like any other Linux system. To start vsftp on boot up see this post http://www.patriotmem.com/forums/sho...7&postcount=13.

    Sorry about the confusion.

  9. #29
    Join Date
    Jan 2010
    Posts
    130

    Default To supergizboy

    I get the following messages when I attempt to ftp (via DOS command window) via vsftpd:

    "Connected to venus.
    500 OOPS: vsftpd: not found: directory given in 'secure_chroot_dir':/usr/share/empty
    500 OOPS: child died
    Connection closed by remote host."

    So I tried to create the above directory: "mkdir -p /usr/share/empty"
    I get the message: "mkdir: Cannot create directory `/usr/share/empty': Read-only file system"

    Also, as you suggested, at the end of /usr/local/etc/rcS I inserted the line to auto start vsftpd at boot: /opt/sbin/vsftpd /opt/etc/vsftpd.conf &
    But it didn't auto start. I then had to type it in manually to start vsftpd.

  10. #30

    Default

    jamaroney,
    that's pretty strange, message means you're connected, but trying to jail "chroot" you into /usr/share/empty which doesn't exist. in the /opt/etc/vsftpd.conf make sure you don't have the line "chroot_list_enable=YES". do this from pbo command line,

    # grep -v '^#' /opt/etc/vsftpd.conf (paste the output here)
    # ipkg-cl list (paste output here)

    i have the line "/opt/sbin/vsftpd /opt/etc/vsftpd.conf &" at the end of the rcS file, works fine for me, vsftpd can be auto start from somewhere else too, but don't worry about it for now, get it working from manual start before thinking of it.

    btw, are you at the latest firmware?
    Last edited by supergizboy; 03-04-2010 at 01:48 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •