Page 2 of 11 FirstFirst 1234 ... LastLast
Results 11 to 20 of 109

Thread: My take on setup ipkg on box office device

  1. #11
    Join Date
    Jan 2010
    Posts
    11

    Default

    hmm gives a readonly filesystem again...
    looks like either you know how to or dont

  2. #12
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,036

    Default

    When do you get a read only file when you try to save the inetd.conf file ?? Make sure that you have a vsftpd (the bin file) and a vsftpd.conf file in the directory you specify in the inetd file. Let me look into it a little deeper I am obviously missing something. I will try on my box see what I get.
    Last edited by snappy46; 02-27-2010 at 07:35 PM.

  3. #13
    Join Date
    Dec 2009
    Location
    San Diego,CA
    Posts
    15

    Default ln: /opt: Cannot allocate memory

    when i try
    Code:
    mkdir /tmp/hdd/root/opt
    mount -o remount,rw /
    
    # then 
    ln -sf /tmp/hdd/root/opt /opt
    this error happens:
    Code:
    ln: /opt: Cannot allocate memory
    maybe caused by no room on / ?
    Code:
    / # df -h
    Filesystem                Size      Used Available Use% Mounted on
    /dev/root                63.1M     63.1M         0 100% /
    /dev/mtdblock/3          40.0M      1.2M     38.8M   3% /usr/local/etc
    /dev/rd/0                40.0k     40.0k         0 100% /mnt/rd
    /dev/scsi/host0/bus0/target0/lun0/part1    465.3G    454.9G     10.4G  98% /tmp/hdd/volumes/HDD1
    /dev/scsi/host0/bus0/target0/lun0/part3    151.9M     11.6M    132.5M   8% /tmp/hdd/root
    Any suggestion to solve this?
    Last edited by robfantini; 02-27-2010 at 10:39 PM.

  4. #14

    Default

    you can try to run as standalone ftp server,

    # cat /opt/etc/vsftpd.conf
    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

    # mkdir -p /opt/var/log
    # /opt/sbin/vsftpd /opt/etc/vsftpd.conf &

    Login:
    ftp venus
    User: anonymous
    Pass: whatever@whatever.com

  5. #15
    Join Date
    Dec 2009
    Posts
    129

    Default

    Quote Originally Posted by Amowagou View Post
    Hopefully, the experts here may compose a tutorial “ipkg for Dummies” and show us how to install and use some basic packages like vsftpd and transmission from scratch.
    Agreed. We Dummies need guidance
    1080p = High Definition

  6. #16
    Join Date
    Jan 2010
    Posts
    130

    Default

    Agreed!! A tutorial would be GREATLY appreciated. All I want to do is transfer files faster from my PC to PBO, and its seems that FTP might be the way to go.

    But I know virtually nothing of Linux. I think I installed ipkg onto my PBO - I followed exactly the instructions, but how is one to know?

    And how does one obtain/install/use vsftpd? My search on the Internet for USEFUL information came up with nothing - every site assumes Linux literacy.

    Any step-by-step instructions would be most appreciated!!

  7. #17
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,036

    Default

    Ok so I install transmission just because I prefer that client more then the one offered in the PBO. I also seem to be getting a faster transfer rate... probably my imagination.

    This is still at the experimental stage and many complication may arise. First off transmission will not start automatically the way I have it setup so still need some work. I need to edit the inetd.config file in the /etc/ directory but that is still giving me a headache. I think I have to create a symbolic link to the hdd to be able to edit it so that transmission can start automatically. This requires to make the root partition readable and writable "mount -o remount,rw /" and then to create a symbolik link to the hdd so that it can be edited something like ln -sf /tmp/hdd/root/etc /etc. So far I have not been able to do that when I try to create the symbolik link for the /etc directory I get can't "allocate memory". I actually got that when I try to create the symbolik link for ipkg but after a few tries it took. Anyhow back to transmission.

    Ok first step after install ipkg (see first post)


    1) cd /tmp/hdd/root/opt/bin "Telnet and go to where ipkg bin file is located this step is not necessary if you have a path setup."

    2) ./ipkg install transmission "Install transmission"

    3) after installation is complete enter:

    ./transmission-daemon -a (ip address of computer) -w /tmp/btdownload ex: ./transmission-daemon -a 192.168.0.100 -w /tmp/btdownload.

    A few explanation here: ip address of the computer must be the IP address of the computer you will use to access transmission thru the web interface not the IP adress of the PBO. The -w only makes sure that the torrent is saved in the bt directory of your PBO. Now all those setting can be set in the transmission.config file but I was not able to locate it. The -a add this IP to the whitelist (list that says who can access the interface). This list can also be disable but as I mentioned I cannot find the config file for transmission.

    4) Finally go to your favorite web browser and enter the following in the address bar:

    Your PBO IP address:9091 ex: 192.168.0.102:9091 "9091 is the port used by transmission for it's web interface.

    If everything when ok you should now see the web interface of transmission in your web page. Just open a torrent file and go crazy. The torrent will be downloaded to the usual directory /BT. Now that being said this is work in progress and I did lock up my PBO a few times while the torrent was downloading. At least it's a starting point for those of you that like to experiment.

    EDIT: Forgot to mention that if you want to stop transmission server just enter the following: "killall transmission-daemon"
    Last edited by snappy46; 03-01-2010 at 03:16 AM.

  8. #18
    Join Date
    Jan 2010
    Posts
    130

    Default

    As a non-Linux person, this has been a MAJOR learning curve for me. Help would be most appreciated.

    I extracted vsftpd.gar.tz to a directory (/tmp/vsftpd), and then copied the vsftpd.conf file within it to opt/etc/ and reconfigured it as noted a couple posts above.

    Then when I restarted PBO, the vsftpd directory was gone! (The moved .conf file was still intact). Wha' happened?

    Should I have extracted it to somewhere else? No post indicates a specific directory.

  9. #19

    Default

    Quote Originally Posted by jamaroney View Post
    As a non-Linux person, this has been a MAJOR learning curve for me. Help would be most appreciated.

    I extracted vsftpd.gar.tz to a directory (/tmp/vsftpd), and then copied the vsftpd.conf file within it to opt/etc/ and reconfigured it as noted a couple posts above.

    Then when I restarted PBO, the vsftpd directory was gone! (The moved .conf file was still intact). Wha' happened?

    Should I have extracted it to somewhere else? No post indicates a specific directory.
    ===============================
    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
    secure_chroot_dir=/tmp/hdd/volumes/HDD1 (add this line if you have bootcode .16, thanks to jamaroney)

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

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

    4. start vsftpd
    # /opt/sbin/vsftpd /opt/etc/vsftpd.conf &
    ***note: thank jamaroney pointed out, it should be /opt/sbin/vsftpd

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

    /opt/sbin/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.
    Last edited by supergizboy; 03-05-2010 at 04:51 PM.

  10. #20

    Default

    Quote Originally Posted by xun1234 View Post
    I just bought a box office device, I would like to share the my steps to install ipkg on box office, once you have ipkg setup, you can install loads of software on box office to make it a multifunctional server.

    telnet to box office, login as root. There is no root password in there, so you might want to edit /usr/local/etc/passwd to give it a root password.

    Code:
    mkdir /tmp/hdd/root/opt
    mount -o remount,rw /
    ln -sf /tmp/hdd/root/opt /opt
    mount -o remount,r /
    mkdir /opt/tmp
    cd /opt/tmp
    wget  http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
    ipkg-cl install uclibc-opt_0.9.28-13_mipsel.ipk
    wget  http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
    ipkg-cl install ipkg-opt_0.99.163-10_mipsel.ip
    rm *.ipk
    so far ipkg is installed.
    Enjoy your box office and have fun.

    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.

Posting Permissions

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