Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 57

Thread: [HowTo] Asus RT-N16 (Oleg) - optware the simple way

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by Hanspeter View Post
    Can help me somebody ??

    mount: mounting /dev/sda2 on /opt failed: Device or resource busy
    Try to figure out with mount and cat /etc/fstab commands why the mount fails.

    Have the format commands (mke2fs) run OK?

  2. #2
    I have copy all what i see on the terminal

    echo.pdf - 43.8 Kb

    thanks for help

  3. #3
    Quote Originally Posted by Hanspeter View Post
    I have copy all what i see on the terminal

    echo.pdf - 43.8 Kb

    thanks for help
    What's the capacity of the USB storage that you use (I have the feeling that it's too small as already creating of partitions fail)? It should be bigger than 2GB as 256M is used for swap and 1GB for /opt and the rest for /mnt.

    Btw I'll extend the tutorial to mention this.

  4. #4
    Quote Originally Posted by verjikd View Post
    In order to get SABnzbd running (which is installed also using this howto), I needed to do:

    ln -s /opt/lib/libreadline.so.6.1 /opt/lib/libreadline.so.5

    I suspect that for Zussaweb/Hellanzb this is needed as well.
    Thank you, I've added that line to the install script.

  5. #5

    rTorrent problem with memory

    I have RT-N16 with latest Oleg firmware (1.9.2.7-rtn-r2274).
    I did configuration follow to ecaddict's manual.

    But I have a problem with rtorrent: the error [File chunk write error: Cannot allocate memory.] after few minutes from start router.
    I only have a few torrents (less than 10).

    What is wrong and how do I fix it?

    Thanks,

    Slawek

  6. #6
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by SlawekW View Post
    But I have a problem with rtorrent: the error [File chunk write error: Cannot allocate memory.] after few minutes from start router.
    I only have a few torrents (less than 10).
    Sounds like a diskspace problem, if not:

    Do you have swap space?
    are you overclocking the router?

  7. #7
    Quote Originally Posted by wpte View Post
    Sounds like a diskspace problem, if not:

    Do you have swap space?
    are you overclocking the router?
    Rather, it is not a problem with the disc capacity:

    Code:
    [admin@Router ]$ df
    Filesystem           1K-blocks      Used Available Use% Mounted on
    rootfs                    5248      5248         0 100% /
    /dev/root                 5248      5248         0 100% /
    devfs                    63276         0     63276   0% /dev
    tmpfs                    63276       200     63076   1% /tmp
    /dev/sda3            479478544  50636612 404485788  12% /mnt
    /dev/sda2               988244    279236    658808  30% /opt
    so I swap space:
    Code:
    [admin@Router /]$ free
                 total       used       free     shared    buffers     cached
    Mem:        126552     124564       1988          0        540      96956
    -/+ buffers/cache:      27068      99484
    Swap:       257000        188     256812

    The router has a standard clock.

    Thanks
    Last edited by SlawekW; 20-11-2010 at 11:09.

  8. #8
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by SlawekW View Post
    Rather, it is not a problem with the disc capacity:

    Code:
    [admin@Router ]$ df
    Filesystem           1K-blocks      Used Available Use% Mounted on
    rootfs                    5248      5248         0 100% /
    /dev/root                 5248      5248         0 100% /
    devfs                    63276         0     63276   0% /dev
    tmpfs                    63276       200     63076   1% /tmp
    /dev/sda3            479478544  50636612 404485788  12% /mnt
    /dev/sda2               988244    279236    658808  30% /opt
    so I swap space:
    Code:
    [admin@Router /]$ free
                 total       used       free     shared    buffers     cached
    Mem:        126552     124564       1988          0        540      96956
    -/+ buffers/cache:      27068      99484
    Swap:       257000        188     256812

    The router has a standard clock.

    Thanks

    hmm... yes it seems fine.
    Do you also experience the same problem with just 1 torrent running?
    Maybe you could try transmission as well, for the RT-N16 it works just as fast as my pc

  9. #9
    Hello All,

    All I want to do with this router is setup my External HD to serve as a storage drive through this router.

    My external drive is made up of two 2TB drives running in Raid0. So the total storage is 4TB. I know I cannot setup NTFS as a 4TB partition with MBR, so I tried setting up one partition at 1.9TB with NTFS and MBR. Nothing. So I tried a 4TB NTFS partition with GPT. Still nothing. The router will mount and share my 8gb thumb drive, but not this drive.

    So I figured I would try another firmware and I flashed Oleg's firmware (RT-N16-1.9.2.7-rtn-r2274.trx) and tried this tutorial. But here's what it says when I enter this code:for i in `cat /proc/mounts | awk '/tmp\/mnt/{print($1)}'`;do umount $i; done
    mkswap /dev/sda1 && swapon /dev/sda1
    mke2fs -j /dev/sda2
    mke2fs -j /dev/sda3

    says something like "can't open ' /dev/sda1': No such file or directory" and "can't stat ' /dev/sda1': No such file or directory"

    I'm at my wits end here. I just want to be able to connect my hard drive to serve as a storage server for my home network. Why the heck is this so difficult?
    Last edited by Choujij; 14-12-2010 at 01:52.

  10. #10
    In order to get lighttpd working, I needed to change the following in /opt/etc/lighttpd/lighttpd.conf:

    # server.event-handler = "freebsd-kqueue" # needed on OS X

    in:

    server.event-handler = "select"

  11. #11
    Zussaweb is not included in the package one gets using this howto, but the Asus headstarts points to it.

    What I had to do:

    cd /opt/tmp
    wget http://download.sourceforge.net/sour...saweb03.tar.gz
    cd /opt/share/www
    tar -xzvf /opt/tmp/zussaweb03.tar.gz

    and edit settings.php in /opt/share/www/zussaweb

  12. #12
    Quote Originally Posted by ecaddict View Post
    If you have just changed to Oleg firmware and have no real experience with Linux, this short tutorial may help. It re-uses the excellent Wengi tutorial and Raas image.
    Note: This is for RT-N16 or WL routers with 2.6 kernel.
    The Oleg firmware can be downloaded from here now:
    ftp://core.dumped.ru/rt-n/

    Later on: http://code.google.com/p/wl500g/downloads/list

    You'll need either USB stick or USB HDD (at least 2GB, but bigger is better).
    Note: Do not store any data on the disk as when you start the disk has to be re-partitioned and everything will be lost.
    Connect only the disk that will contain the system!


    Do not change user name from admin. Some programs rely on that.

    After connecting USB storage, first reboot the router.
    Wait for 1 min. after rebooting the router to detect the USB storage.

    telnet/PuTTY (you have to enable it in web interface) to your router 192.168.1.1 username:admin, password what you use with web interface (change it from default!)

    copy the following lines as such (creates partition table)
    Note: all of your data in the stick/HDD will be lost
    Code:
    echo -e "o\nn\np\n1\n\n+256M\nn\np\n2\n\n+1024M\nn\np\n3\n\n\nt\n1\n82\nw" > /tmp/parttbl
    fdisk /dev/sda < /tmp/parttbl
    echo "" > /etc/fstab
    flashfs save && flashfs commit && flashfs enable
    reboot
    echo "Wait till reboot (terminal disconnect)"
    and paste it to the terminal (right click or what works with you mouse).
    Wait till the router reboots.

    Wait for 1 min. after rebooting the router to detect the USB storage.
    telnet/PuTTY again to the router
    copy the following lines as such and paste to the router (formats stick/HDD):
    Code:
    for i in `cat /proc/mounts | awk '/tmp\/mnt/{print($1)}'`;do umount $i; done
    mkswap /dev/sda1 && swapon /dev/sda1
    mke2fs -j /dev/sda2
    mke2fs -j /dev/sda3
    free
    You're now ready to install optware.
    Make sure that the router has a working internet connection (as image files are downloaded like Attachment 6579).
    You have to copy the following lines as such and paste to the terminal (telnet/PuTTY) you logged in to the router:

    Code:
    cd /tmp && wget -O flashf.tar.gz "http://wl500g.info/attachment.php?attachmentid=6579&d=1275990726" && cd / && tar -xvzf /tmp/flashf.tar.gz
    chmod +x /usr/local/sbin/*
    flashfs save && flashfs commit && flashfs enable
    [ "`awk '/SwapTotal/{print($2)}' /proc/meminfo`" -eq 0 ] && mkswap /dev/sda1 && swapon /dev/sda1
    mount -o noatime -t ext3 /dev/sda2 /opt && mount -o noatime -t ext3 /dev/sda3 /mnt
    [ -n "`mount | sed -n '/\/opt/p'`" ] && [ -n "`mount | sed -n '/\/mnt/p'`" ] && cd /mnt && wget http://files.wl500g.info/asus/custom/raas/v10/opt.tar.gz && cd / && tar -xvzf /mnt/opt.tar.gz && cd /opt && wget http://files.wl500g.info/asus/custom/raas/v10/mnt.tar.gz && cd / && tar -xvzf /opt/mnt.tar.gz
    ipkg update
    cd /mnt && wget http://rutorrent.googlecode.com/files/rutorrent-3.0.tar.gz && tar -xvzf rutorrent-3.0.tar.gz
    ipkg install readline && ln -s /opt/lib/libreadline.so.6.1 /opt/lib/libreadline.so.5
    [ -x /opt/etc/init.d/rc.unslung ] && /opt/etc/init.d/rc.unslung start
    #reboot
    Installation is completed in a few minutes.

    You can navigate to router's web interface, the best starting point is:
    http://192.168.1.1:8082/cms/
    username: admin
    password: asus
    Name:  Headstart_cms.jpg
Views: 24216
Size:  95.0 KB

    SWAT/Samba (file sharing, web like control)
    http://192.168.1.1:901/

    ADOS (http/ftp downloader, you may use fewgets as well, it's a bit simpler, N16 variant: Attachment 6570)
    http://192.168.1.1:8082/protected/WebUI/ados/
    You have to login second time to ADOS as well.
    username: admin
    password: logitech

    Transmission (torrent client) http://192.168.1.1:8082/cgi-bin/transmission.cgi
    Simply put your torrent files in /mnt/protected/Downloaders/Transmission/source and download should start in the background.
    Note: transmission program is started by scheduler that runs in every 30 min so it may take some time before transmission starts.
    You may try also the Transmission remote GUI:
    http://code.google.com/p/transmisson-remote-gui/

    If you prefer rtorrent over Transmission (like I do) you can install it via telnet/PuTTY:

    Code:
    ipkg update
    ipkg install rtorrent gnuplot
    mkdir -p /opt/share/torrent/session
    mkdir -p /mnt/protected/Downloaders/rtorrent
    /bin/sed -i -e 's#/opt/bin/bash#/bin/sh#' -e 's#"root"#"admin"#' -e 's#test -x /opt/bin/su.*##' -e 's#su -c \"##' -e 's#\" ${user}##' /opt/etc/init.d/S99rtorrent
    cd /opt/etc && /bin/sed -i 's#/opt/share/torrent/work/#/mnt/protected/Downloaders/rtorrent/#' rtorrent.conf
    [ -z "`/bin/sed -n '/scgi_port =/p' rtorrent.conf`" ] && echo "scgi_port = localhost:5000" >> rtorrent.conf
    echo "schedule = log,180,180,\"execute=/opt/etc/rtorrlog,\$get_down_rate=,\$get_up_rate=\"" >> rtorrent.conf
    cd /opt/etc/lighttpd/ && [ ! -f lighttpd.conf.raas ] && cp lighttpd.conf lighttpd.conf.raas
    [ -z "`/bin/sed -n '/^[^#].*mod_scgi/p' lighttpd.conf`" ] && /bin/sed -i 's/"mod_fastcgi",/"mod_fastcgi",\n\t\t\t\t"mod_scgi",/' lighttpd.conf
    LIN1=`echo -e "\nscgi.server   = (\"/RPC2\" =>\n\t\t ( \"127.0.0.1\" =>\n\t\t   (\n\t\t    \"host\" => \"127.0.0.1\",\n\t\t    \"port\" => 5000,\n\t\t    \"check-local\" => \"disable\"\n\t\t   )\n\t\t )\n\t\t)"`
    LIN2=`echo -e "SERVER[\"socket\"] == \":443\" {\nssl.engine\t= \"enable\"\nssl.pemfile\t= \"/opt/etc/lighttpd/lighttpd.pem\"\nserver.document-root\t= \"/mnt/\"\n  auth.require = ( \"\" =>\n\t\t (\n\t\t  \"method\"  => \"digest\",\n\t\t  \"realm\"   => \"RT-N16\",\n\t\t  \"require\" => \"user=admin\"\n\t\t )\n\t\t)\n}"`
    [ -z "`/bin/sed -n '/":443"/p' lighttpd.conf`" ] && echo -e "$LIN1\n\n\$$LIN2" >> lighttpd.conf
    cd /mnt && wget -O fewgets.tar.gz "http://wl500g.info/attachment.php?attachmentid=6570&d=1275768575" && cd / && tar -xvzf /mnt/fewgets.tar.gz
    flashfs save && flashfs commit && flashfs enable
    /opt/etc/init.d/S80lighttpd restart
    /opt/etc/init.d/S99rtorrent start
    mkdir -p /mnt/protected/ewget
    /bin/ps | grep lighttpd
    You can use it with nTorrent (http://code.google.com/p/ntorrent/), however there is a nice web front end to it, named ruTorrent (http://code.google.com/p/rutorrent/)
    Do not change lighttpd.conf any further until you're familiar with the system.
    ruTorrent web interface:
    http://192.168.1.1:8082/rutorrent/
    From internet: https://<your public IP|dyndns host name>/rutorrent/

    fewgets: http://192.168.1.1:8082/cgi-bin/fewgets.cgi

    Don't forget to change the web password in /opt/etc/lighttpd/.lighttpdpassword as the https port is also available from internet!



    Installing MediaTomb (optional):
    Code:
    cd /opt/share/file && mv magic magic.old
    ipkg install readline mediatomb
    mkdir -p /opt/etc/mediatomb
    mkdir -p /usr/local/root/.mediatomb
    flashfs save && flashfs commit && flashfs enable
    /bin/sed -i 's/MT_USER="root"/MT_USER="admin"/' /opt/etc/mediatomb.conf
    /bin/sed -i 's/MT_ENABLE=false/MT_ENABLE=true/' /opt/etc/default/mediatomb
    cd /opt/share/mediatomb
    cat sqlite3.sql | sqlite3 mediatomb.db
    mv mediatomb.db /opt/etc/mediatomb/
    /opt/etc/init.d/S90mediatomb start
    /bin/ps | grep mediatomb
    MediaTomb web interface: http://192.168.1.1:50500/

    You can learn more about MediaTomb: http://mediatomb.cc/

    Replacing Samba2 with Samba3 (optional):
    Code:
    killall smbd nmbd
    cd /opt/etc/samba && [ ! -f smb.conf.raas ] && cp smb.conf smb.conf.raas
    ipkg remove samba2 
    ipkg install samba samba3-swat
    sed -i 's/samba_active=0/samba_active=1/' /opt/etc/init.d/S08samba
    cd /mnt && wget -O smb.tar.gz "http://wl500g.info/attachment.php?attachmentid=6455&d=1274467707" && cd / && tar -xvzf /mnt/smb.tar.gz
    /opt/etc/init.d/S08samba start
    /bin/ps | grep smbd
    smb.tar.gz

    A few notes:
    - Don't upgrade the packages unless you know what you're doing as it may replace the working .conf files (save /opt/etc before doing so)
    - If you install the latest lighttpd with ipkg install lighttpd you have to change in /opt/etc/lighttpd/lighttpd.conf server.event-handler to this:
    server.event-handler = "poll"
    - You may need to restrict the memory usage of rtorrent in /opt/etc/rtorrent.conf, e.g. to 64 MB:
    max_memory_usage = 67108864
    for other configuration options see http://linux.die.net/man/1/rtorrent

    If it works, enjoy. It worked for me, but there is no guaranty. I shall not be liable of anything if something goes wrong. Use it at your own risk.

    Hi!
    I followed the instructions on the WL520GU and since then my USB flash drive does not work, or if your PC does not see it, does not detect!
    Always something with it, please!
    It bagr3210@seznam.cz mail
    Thank you!
    Moreover, as I do not work ..

  13. #13
    hi where can Ifind setting of transmission deamon? I would like to access web interface of transmision at port 9091 but all I recive is: "403: Forbidden

    Unauthorized IP Address.

    Either disable the IP address whitelist or add your address to it.

    If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.

    If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details."

  14. #14

    Scripts work also for 2.4 kernel routers as well now

    This post is just to announce the happy news that the scripts in the opening post have now been updated so that they work also with 2.4 kernel routers (WL500gPv1/v2, WL500W etc with non rt-n trx file) and installing the image created by Raas is easy for everyone now.

    (I don't know who the change the thread title to reflect this).
    While the basic install certainly works with 32MB routers, if you plan to install the additions (I've also updated recently) like rtorrent, mediatomb, transmission or openVPN 128MB router is highly recommended.
    I've tested the image install and it worked for me but if you have some issue please post it here. Even if I'm not able to help, maybe someone else can.

    Please don't quote the entire tutorial but rather the output of basic commands like:
    blkid (to show USB storage partitions)
    mount or df -h (to see mounted partitions)
    free (to see memory and if swap is used)
    ps or ps afx (to see running programs)
    ls -la /usr/local/sbin/ (ls -la to list the content of some directory)
    cat /usr/local/sbin/post-mount (cat is to show the content of some file)
    tail -n 20 /opt/var/log/syslog.log (to show the last 20 logs from syslog - sometimes messages)
    /opt/etc/init.d/S99rtorrent (to start some service in this case rtorrent)
    iptables-save -c (to see all of your firewall rules)
    dmesg (to see kernel issues)
    ifconfig (to see interfaces)
    nvram show | grep ifname (to see some nvram variable in this case interface names)
    robocfg show (to show switch/VLAN config and active ports)
    brctl show (to show bridge configurations)
    wl radio (to see if WiFi is enabled)

    Be careful with the last 4 commands as they allow changing essential parameters that can make you router unstable.
    Last edited by ecaddict; 22-11-2011 at 15:13. Reason: added iptables-save

  15. #15
    I just installed OLEG firmware from TomatoUSB.

    I was having a hard time setting up the USB HDD NFS and from google I came across this.

    I have a 500GB HDD and wish not to format it. Is there anyway to do your tutorials without formatting the HDD?

    I been using this HDD with TomatoUSB without needed to format.
    Thank you

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. [Howto] Install DLNA media servers for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 18
    Last Post: 06-06-2017, 07:40
  2. Replies: 220
    Last Post: 06-02-2016, 10:53
  3. Replies: 24
    Last Post: 05-05-2015, 07:42
  4. Replies: 6
    Last Post: 21-09-2012, 17:06
  5. [Howto] Install kernel modules for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 0
    Last Post: 05-12-2011, 16:18

Tags for this Thread

Posting Permissions

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