How To Install New Generation Optware

New Generation Optware is a modern package manager used for distribution of additional software packages on AsusWRT.
Works only on usb drives formatted as EXT2, EXT3 or EXT4 for Arm devices

1 - Download RMerlin firmware from here

2 - Go to firmware upgrade page and upload normally like a stock one

3 - Go to Advanced_System_Content, check  "Enable JFFS custom scripts and configs" & "Enable SSH", press Apply and Reboot

 

4 - After reboot, connect to router with putty terminal and type:

cd /tmp
wget -c -O optware-ngu-setup.sh http://goo.gl/d1o6oE
chmod +x ./optware-ngu-setup.sh
./optware-ngu-setup.sh
admin@RT-AC66U:/tmp/home/root# ./optware-ngu-setup.sh
Info: This script was created by ryzhov_al and modified by TeHashX.
Info: Thanks @alllexx88 for New Generation Optware
Info: and @Rmerlin for his awesome firmwares
Info: This script will guide you through the Optware-NG installation.
Info: Script modifies only "optware-ng" folder on the chosen drive,
Info: no other data will be touched. Existing installation will be
Info: replaced with this one. Also some start scripts will be installed,
Info: the old ones will be saved on partition where Optware-NG is installed
Info: like /tmp/mnt/sda1/jffs_scripts_backup.tgzInfo: Looking for available partitions...

[1] --> /tmp/mnt/sda1
=> Please enter partition number or 0 to exit
[0-1]:

5 - Choose a partition where Optware-NG should be installed, in this case is only [1] --> /tmp/mnt/sda1

1

Press ENTER

Info: /tmp/mnt/sda1 selected.
Info: Creating /tmp/mnt/sda1/optware-ng folder...
Info: Creating /tmp/opt symlink...
Info: Creating /jffs scripts backup...
tar: removing leading '/' from member names
Info: Modifying start scripts...
Info: Starting Optware-NG deployment....

--2015-08-16 16:59:31-- http://optware-ng.zyxmon.org/buildroot-mipsel/buildroot-mipsel-bootstrap.sh
Resolving optware-ng.zyxmon.org... 81.4.123.217
Connecting to optware-ng.zyxmon.org|81.4.123.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 329 [text/x-sh]
Saving to: 'buildroot-mipsel-bootstrap.sh'

buildroot-mipsel-bo 100%[=====================>] 329 --.-KB/s in 0s

2015-08-16 16:59:31 (3.00 MB/s) - 'buildroot-mipsel-bootstrap.sh' saved [329/329]

--2015-08-16 16:59:33-- http://optware-ng.zyxmon.org/buildroot-mipsel/ipkg-static_0.99.163-1_mipsel.ipk
Resolving optware-ng.zyxmon.org... 81.4.123.217
Connecting to optware-ng.zyxmon.org|81.4.123.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 160979 (157K) [text/plain]
Saving to: 'ipkg-static_0.99.163-1_mipsel.ipk'

ipkg-static_0.99.16 100%[=====================>] 157.21K 933KB/s in 0.2s

2015-08-16 16:59:33 (933 KB/s) - 'ipkg-static_0.99.163-1_mipsel.ipk' saved [160979/160979]

./data.tar.gz
./
./opt/
./opt/share/
./opt/share/ipkg/
./opt/share/ipkg/intercept/
./opt/share/ipkg/intercept/depmod
./opt/share/ipkg/intercept/ldconfig
./opt/share/ipkg/intercept/update-modules
./opt/bin/
./opt/bin/update-alternatives
./opt/bin/ipkg-static
./opt/bin/ipkg
./opt/etc/
./opt/etc/ipkg.conf
./opt/lib/
Info: init.d start/stop services scripts created
Info: updating packages...
Downloading http://optware-ng.zyxmon.org/buildroot-mipsel/Packages.gz
Inflating http://optware-ng.zyxmon.org/buildroot-mipsel/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/alllexx
Successfully terminated.
Installing findutils (4.2.32-1) to /opt/...
Downloading http://optware-ng.zyxmon.org/buildroot-mipsel/findutils_4.2.32-1_mipsel.ipk
Installing uclibc-opt (0.9.33.2-3) to /opt/...
Downloading http://optware-ng.zyxmon.org/buildroot-mipsel/uclibc-opt_0.9.33.2-3_mipsel.ipk
Installing libnsl (0.9.33.2-5) to /opt/...
Downloading http://optware-ng.zyxmon.org/buildroot-mipsel/libnsl_0.9.33.2-5_mipsel.ipk
Configuring findutils
update-alternatives: Linking //opt/bin/find to /opt/bin/findutils-find
update-alternatives: Linking //opt/bin/xargs to /opt/bin/findutils-xargs
Configuring libnsl
Configuring uclibc-opt
Successfully terminated.
Info: Optware-NG is installed successfully...
Info: Now install some packages, with ipkg install package_name,
Info: like nano text editor, type in terminal "ipkg install nano"
Info: Here is the list of installable packages
Info: http://optware-ng.zyxmon.org/buildroot-mipsel/Packages.html
Info: Enjoy...
admin@RT-AC66U:/tmp/mnt/sda1#

If you get some errors, reboot router and continue from step 4

6 - The script will create a directory named "optware-ng" or "optware-ng.arm" in the selected partition, type cd /opt

cd /opt
admin@RT-AC66U:/tmp/mnt/sda1# cd /opt
admin@RT-AC66U:/tmp/mnt/sda1/optware-ng#

7 - Now Optware New Generation is installed on your asuswrt router, it's time to install some packages, ex. nano text editor:

ipkg install nano
admin@RT-AC66U:/tmp/mnt/sda1/optware-ng# ipkg install nano
Installing nano (2.3.6-2) to /opt/...
Downloading http://optware-ng.zyxmon.org/buildroot-mipsel/nano_2.3.6-2_mipsel.ipk
Installing ncurses (5.7-3) to /opt/...
Downloading http://optware-ng.zyxmon.org/buildroot-mipsel/ncurses_5.7-3_mipsel.ipk
Installing zlib (1.2.8-2) to /opt/...
Downloading http://optware-ng.zyxmon.org/buildroot-mipsel/zlib_1.2.8-2_mipsel.ipk
Installing file (5.12-1) to /opt/...
Downloading http://optware-ng.zyxmon.org/buildroot-mipsel/file_5.12-1_mipsel.ipk
Configuring file
Configuring nano
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring zlib
Successfully terminated.

 

 

SWAP FILE is created automatically by latest optware-ng script but if you want to enable it manually, follow the next steps:

cd /opt
dd if=/dev/zero of=swap bs=1024 count=524288
mkswap swap
chmod 0600 swap
swapon swap

To enable swap file when router booting, modify /jffs/scripts/post-mount script with

nano /jffs/scripts/post-mount

Paste this line at the end of the script

swapon /opt/swap

 Save with CTRL-O / Enter / and exit with CTRL-X
To unmount swap modify /jffs/scripts/services-stop script with
nano /jffs/scripts/services-stop

Paste this line at the end of the script

swapoff /opt/swap

Save with CTRL-O / Enter / and exit with CTRL-X
Make scripts executable
chmod +x /jffs/scripts/*

You can install packages from here: ARM, Mipsel

Thanks @alllexx for this modern Optware port and @ryzhov_al for initial scripts

  • Kerkung

    I got this message

    login as: admin
    admin@192.168.1.1's password:

    ASUSWRT-Merlin RT-AC88U 380.65-4 Wed Mar 29 0404 UTC 2017
    admin@RT-AC88U-B020:/tmp/home/root# cd /tmp
    admin@RT-AC88U-B020:/tmp# wget -c -O entware-ngu-setup.sh?http://goo.gl/hshQkA
    wget: missing URL
    Usage: wget [OPTION]... [URL]...

    Try `wget --help' for more options.
    admin@RT-AC88U-B020:/tmp# login as: admin
    Password:

    when I tried to install OPT Ware.

    What's wrong? T_T

    My system
    380.65_4 merlin firmware
    Use external hdd 2 tb format ext4

    • wget -c -O optware-ngu-setup.sh http://goo.gl/d1o6oE
      Is the right link

      • Kerkung

        Oh..fast response...thx u I will try

        • Kerkung

          admin@RT-AC88U-B020:/tmp/home/root# cd /tmp
          admin@RT-AC88U-B020:/tmp# wget -c -O optware-ngu-setup.sh http://goo.gl/d1o6oE
          wget: missing URL
          Usage: wget [OPTION]... [URL]...

          Try `wget --help' for more options.
          admin@RT-AC88U-B020:/tmp# wget -c -O optware-ngu-setup.sh http://goo.gl/d1o6oE
          wget: missing URL
          Usage: wget [OPTION]... [URL]...

          Try `wget --help' for more options.
          admin@RT-AC88U-B020:/tmp#

          Missing URL again

          • Leave a space between ...setup.sh and http

          • Kerkung

            Yeah....I copy it from this page and pass it in putty but still got message Missing URL

          • Did you installed wget?
            ipkg install wget

          • Kerkung

            I found that error, I just copy only.... wget -c -O optware-ngu-setup.sh... in the table then copy... http://goo.gl/d1o6oE.... from your reply to someone since 8 months ago
            it work,

  • Boris

    Thanks for the tutorial! Any idea why this happens?

    debian stop
    Stopping chroot'ed Debian services...
    umount: can't forcibly umount /tmp/mnt/ext4/optware-ng.arm/debian/dev/pts: No such file or directory
    Done.

  • Владимир Сидоров

    Info: init.d start/stop services scripts created
    ./optware-ngu-setup.sh: line 432: can't create /opt/bin/services: nonexistent di rectory
    chmod: /opt/bin/services: No such file or directory
    Info: updating packages...
    ./optware-ngu-setup.sh: line 456: ipkg: not found
    ./optware-ngu-setup.sh: line 457: ipkg: not found

    So I can't install Optware on my asus rt-ac68u...

    • Which firmware?

      • Владимир Сидоров

        asuswrt-Merlin, 380.64_2

        • Reboot router and try again

  • Matthew

    Hi. I have install optware-ng just fine per your instructions on my Asus RT-AC68U and was at one point able to install freeradius 3.0.10-2 but now am having issues with running 3.0.10-4 with the following error message:

    Starting FreeRADIUS:/tmp/mnt/sda2/optware-ng.arm/sbin/radiusd: can't load library 'libreadline.so.6'

    I'm hoping this is just a matter of manually installing the dependency from another package. Unfortunately, I can't find 3.0.10-2, as ipkg forces me to get the most current and non-working vrsion. Any help would be much appreciated!

    • Did you tried installing readline?
      ipkg install readline libcap

      • Matthew

        no, I did not...until now :) This was exactly the information I was looking for! So, now I now have a new bug saying "Segmentation fault" when trying to run freeradius. But I feel like I'm almost there now. I had tried ipkg remove freeradius and then ipkg install freeradius, but am still getting that error. Thank you so much!

        • Matthew

          I just thought of an idea: can I select the version of optware-ng that I can install? I realized that the segmentation fault issue wasn't reported as an issue at around June 2016 and discovered that someone had already tried installing an older version of freeradius 3.0.10-2 that had worked for her/him but still is getting segmentation fault error messages. Thank you.

  • Mario

    Hello, I have installed opteware-ng with ligttpd php mysql but php does
    not recognize mysql_connect but if you know mysqli_conec, is it possible
    to enable the mysql_connect function for my db to work again?

  • McGarnigal

    Help pls!
    Trying to install Merlin 380.62 and my DSL-AC68U (running latest 3.0.0.4.380_4026 FW) spat the dummy stating the Merlin FW was invalid or not correct for this device.
    I confirmed Merlin's hash, I rebooted and then factory reset the modem, but it still won't take it. Any one have anything I can try? Cheers!

    • TeHashX

      Your device is not supported :(

      Supported devices are:
      * RT-N66U
      * RT-AC66U
      * RT-AC56U
      * RT-AC68U & RT-AC68P
      * RT-AC87U
      * RT-AC3200
      * RT-AC88U
      * RT-AC3100
      * RT-AC5300
      * RT-AC1900 & RT-AC1900P (use the RT-AC68U firmware)

      Devices that are no longer officially supported:
      * RT-N16

      http://www.mediafire.com/file/5xjvzzxlaehe49q/README-merlin.txt

      • McGarnigal

        LOL! Argh Thanks Man! I feel like such a dope.
        I thought the RT-AC68U was my modem.
        Oh well. No OwnCloud for me.
        Thanks again!

  • Useprime

    Has anyone been successful getting Optware or Plex to work on an Asus RT-AC88U?

    So far I have come to a wall with ./optware-ngu-setup.sh. " *** Error: Please "Enable JFFS partition" from "Administration > System ".
    All of my research has yet to show that anyone was able to get this to work on an RT-AC88U. Some have made their JFFS completely unusable troubleshooting their own issues and Asus wont take it back because it has been modified.

    • Useprime

      Update.

      Installing on an RT-AC88U with an 8TB USB3 external drive (Seagate steb8000100) is possible. I have done it.

      The problem with these instructions and my router start at Step 3: It shows that you need to enable "JFFS custom scripts and configs" and shows "Format JFFS partition at next boot" then to Reboot the router. Upton rebooting the router from this, the JFFS partition will not mount, no matter what I have tried I can't get it to come back up in this state after selecting FORMAT JFFS PARTITION.

      The fix: Reset router to factory defaults first. I would set everything up on the router and not load a saved config. This will allow the JFFS to be mounted under the Tools > Sysinfo tab. Follow all instructions but be careful to NOT select the "Format JFFS partition at next boot" as shown in image for Step 3.

      I have installed OptwareNG, chroot Debian, and Plex server using this setup.

      • TeHashX

        You only need to format jffs partition only if wasn't enabled before.
        If you check "Format JFFS partition at next boot" and after reboot is not mounted, reboot router one more time but now without enabling "Format JFFS partition at next boot" and should be ok.

        • Useprime

          Thanks for your response. That was exactly what I thought. Upon rebooting, when I was troubleshooting the problem, no matter what I tried I could not get the JFFS partition to remount at all. Even on many subsequent reboots it would not mount. It was basically invisible to the router in a terminal and nothing could resurrect it, save completely reinstalling Merlin. I was not the only one that was experiencing this issue with this particular router. I just wanted others to know where it went wrong for me to help others, and how I got it to work.

  • Toufiq Ibna Mustafiz

    after optware intallation the SAMBA share seems to be turned off. cant access the local share [USB HDD on router]

    • TeHashX

      Add to /jffs/scripts/init-start
      #!/bin/sh

      sleep 30
      service start_samba

      • Toufiq Ibna Mustafiz

        sorry the share drive is not accessible. if i remove the optware drive then it can be accessible again

        • TeHashX

          Install optware/entware on the same drive with media files

          • Toufiq Ibna Mustafiz

            the RT-AC87u dissapear from the network drive after installing optware. so that drive is also not accessable. only AiCloud is working via android/ windows

  • Toufiq Ibna Mustafiz

    Connecting to files.hqt.ro|2a01:b1c1:2:4000::123:10|:80... failed: Network is unreachable.

  • Richard Budd

    I've gone thru the steps twice and I keep getting the same errors.

    nter your choice [ 1 - 4 ] 2
    Info: Creating a 1024MB swap file...
    Info: This could take a while, be patient...
    1048576+0 records in
    1048576+0 records out
    Setting up swapspace version 1, size = 1073737728 bytes
    UUID=e4588449-b358-435f-a633-d4fabeec28cc
    Press [Enter] key to continue...
    Info: init.d start/stop services scripts created
    ./optware-ngu-setup.sh: line 432: can't create /opt/bin/services: nonexistent directory
    chmod: /opt/bin/services: No such file or directory
    Info: updating packages...
    ./optware-ngu-setup.sh: line 456: ipkg: not found
    ./optware-ngu-setup.sh: line 457: ipkg: not found
    Info: New Generation OPTWARE installed successfully...
    Info: Now install some packages, with "ipkg install package_name",
    Info: like nano text editor, type in terminal "ipkg install nano"
    Info: List of installable mipsel packages
    Info: http://ipkg.nslu2-linux.org/optware-ng/buildroot-mipsel-ng/Packages.html
    Info: List of installable arm packages
    Info: http://ipkg.nslu2-linux.org/optware-ng/buildroot-armeabi-ng/Packages.html
    Info: Thanks @ryzhov_al for initial script,
    Info: Thanks @alllexx88 for New Generation Optware,
    Info: Thanks @Rmerlin for awesome firmwares.
    Info: Brought to you by TeHashX!!!
    Info: Enjoy...
    admin@NETGEAR-7000:/tmp#

    Any help would be appreciated!

  • Csaba Benesch
    • TeHashX

      It's up and running, just click on the link you posted

  • zboq

    Hi, recently I tried to upgrade optware-ng and i showed me an error about no space left.
    So i did df-h and noticed that /dev/root/ is full. Any ideas why ?
    Rourt Asus RT-N66U with 380.58 firmware
    zboq@N66U:/tmp/mnt/OPTNG/optware-ng/etc# df -h
    Filesystem Size Used Available Use% Mounted on
    /dev/root 20.5M 20.5M 0 100% /
    tmpfs 117.0M 484.0K 116.6M 0% /tmp
    devfs 117.0M 0 117.0M 0% /dev
    /dev/mtdblock4 9.5M 520.0K 9.0M 5% /jffs
    /dev/sdc1 14.2G 800.4M 13.2G 6% /tmp/mnt/OPTNG

    • TeHashX

      Mine RT-AC68U is full too but no error when updating, reboot router and try again

      admin@RT-AC68U:/tmp/home/root# df -h
      Filesystem Size Used Available Use% Mounted on
      /dev/root 28.3M 28.3M 0 100% /

      • zboq

        This is what I get:
        zboq2116@N66U:/tmp/mnt/OPTNG/DLNA# ipkg upgrade
        Upgrading ffmpeg on /opt/ from 2.5.4+git20150217-rev075178-1 to 2.5.4+git20150217-rev075178-4...
        Upgrading file on /opt/ from 5.12-1 to 5.25+git20160111-1...
        Upgrading gettext on /opt/ from 0.19.6-1 to 0.19.6-2...
        Upgrading libjpeg on /opt/ from 8d-1 to 8d-2...
        Upgrading libnsl on /opt/ from 1.0.9-1 to 1.0.13-1...
        Upgrading openssl on /opt/ from 1.0.2d-1 to 1.0.2f-1...
        Upgrading sqlite on /opt/ from 3.8.1-1 to 3.8.1-2...
        Upgrading transmission on /opt/ from 2.84-2 to 2.84-5...
        Upgrading uclibc-opt on /opt/ from 1.0.9-2 to 1.0.13-1...
        Nothing to be done
        Successfully terminated.
        Collected errors:
        Only have 0 available blocks on filesystem /, pkg ffmpeg needs 19068
        Only have 0 available blocks on filesystem /, pkg file needs 5792
        Only have 0 available blocks on filesystem /, pkg gettext needs 20376
        Only have 0 available blocks on filesystem /, pkg libjpeg needs 504
        Only have 0 available blocks on filesystem /, pkg libnsl needs 12
        Only have 0 available blocks on filesystem /, pkg openssl needs 3016
        Only have 0 available blocks on filesystem /, pkg sqlite needs 1340
        Only have 0 available blocks on filesystem /, pkg transmission needs 7944
        Only have 0 available blocks on filesystem /, pkg uclibc-opt needs 1300

        • TeHashX

          Did you reboot the router?

          • zboq

            Yes

          • TeHashX

            Dunno why you get this errors, probably /tmp is full, try to install optware-ng from scratch then restore config files from automatically backup created by installer.

          • TeHashX

            When did you updated last time? Maybe you have the old link, post here:
            cat /opt/etc/ipkg.conf

          • zboq

            zboq@N66U:/tmp/mnt/OPTNG/optware-ng/etc/minidlna# cat /opt/etc/ipkg.conf
            src/gz alllexx http://ipkg.nslu2-linux.org/optware-ng/buildroot-mipsel-ng
            dest /opt/ /

          • TeHashX
          • zboq

            Ok, thanks for Your help. I have succesfully reinstalled optware-ng and restored my config files for transmission and minidlna.

          • zboq

            Is it possible that it has something to do with optware-ng installed on sd card in router ?

            Also ipkg upgrade didn't work so I found on optware-ng page this:

            Optware-ng feeds have moved to http://ipkg.nslu2-linux.org/optware-ng. Please run this command to update ipkg configuration if you installed Optware-ng prior to this announcement:

            sed -i -e 's|optware-ng\.zyxmon\.org/|ipkg.nslu2-linux.org/optware-ng/|' /opt/etc/ipkg.conf

            After this command I've entered:

            ipkg -force-reinstall install ipkg list_installed|cut -d ' ' -f1

            And it also gave me errors about no space left

  • Ivan

    has error

    --2016-03-06 01:00:37-- http://optware-ng.zyxmon.org/buildroot-mipsel/buildroot-mipsel-bootstrap.sh
    Resolving optware-ng.zyxmon.org... 81.4.123.217
    Connecting to optware-ng.zyxmon.org|81.4.123.217|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2016-03-06 01:00:37 ERROR 404: Not Found.

    sh: can't open './buildroot-mipsel-bootstrap.sh'

    I've checked path and there is no build root-mipsel folder

  • TeHashX

    Yes, you can request package here https://github.com/Optware/Optware-ng/issues

  • Csaba Benesch

    I get the following error:

    [criton@rt-ac87u root]$ ipkg update
    Downloading http://optware-ng.zyxmon.org/buildroot-armeabi-ng/Packages.gz
    An error ocurred, return value: 1.
    Collected errors:
    ipkg_download: ERROR: Command failed with return value 8: `wget -q -P /opt/ipkg-uOGUhw http://optware-ng.zyxmon.org/buildroot-armeabi-ng/Packages.gz'

    • TeHashX

      Optware maintainer Allexx has changed url, read here https://github.com/Optware/Optware-ng
      Reinstall Optware-NG from scratch or run
      sed -i -e 's|optware-ng\.zyxmon\.org/|ipkg.nslu2-linux.org/optware-ng/|' /opt/etc/ipkg.conf
      ipkg update

  • User22

    Works great, thank you very much!!!

  • Danny_Donuts

    After select the swap file size I receive this error:

    Router model RT-AC3200-4AF0
    ---------
    SWAP FILE
    ---------
    Choose swap file size (Highly Recommended)
    1. 512MB (recommended)
    2. 1024MB
    3. 2048MB (recommended for MySQL Server)
    4. Skip this step, I already have a swap file / partition
    or I don't want to create one right now
    Enter your choice [ 1 - 4 ] 3
    Info: Creating a 2048MB swap file...
    Info: This could take a while, be patient...
    92521+0 records in
    92520+0 records out
    ./optware-ngu-setup.sh: line 266: can't fork

    I've tried formating scripts, rebooting, and resetting to factory defaults. How do I install this?

  • djxwolf

    I installed optware-ng successfully. Thanks !
    Now I installed gcc and tried to compile a simple helloworld.
    helloworld.c as following:

    #include
    int main()
    {
    printf("Hello World!n");
    return 0;
    }

  • user

    i get an error "Please "Enable JFFS partition" from "Administration > System"
    i am sure already enabled jffs.
    please help! thank you!

    • If you are sure jffs partition is enabled, reboot router and try again

      • user

        thnak you! work fine!
        i try to manual install rtorrent,can not start rtorrent,

        RT-AC68U:/tmp/home/root# /opt/etc/init.d/S99rtorrent start
        -sh: /opt/etc/init.d/S99rtorrent: not found
        is any easy install script?

  • Jm

    How can I completely remove Optware NG? I see that there is a file with previous jffs content backup but I can't find the procedure.

    • Remove optware-ng or optware-ng.arm folder from /mnt/sda1/, then remove post-mount, services-start and services-stop from /jffs/scripts/

  • RyanAir

    why the installation script does not write the line

    swapoff /opt/swap

    into /jffs/scripts/services-stop ?

    • Which router, firmware?
      Post the rest of the script

      • RyanAir

        Asus RT-AC87U, latest Merlin 380.57. Sorry, didn't understand, which rest of the script?

        • RyanAir

          #!/bin/sh

          /opt/etc/init.d/rc.unslung stop

          swapoff /opt/swap

          Without the last line even

          • Sorry, didn't understand first time, /jffs/scripts/services-stop is only for stopping services not to unmount swap file, so it's ok like that :)

          • RyanAir

            Ok... in which script then the swap removed before shutdown?

          • It's unmounted automatically before shutdown

          • If you want to be sure, create /jffs/scripts/unmount with

            #!/bin/sh
            swapoff /opt/swap

            And make it executable
            chmod a+rx /jffs/scripts/unmount

            Here are all available jffs scripts https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts

          • RyanAir

            Thanks!

  • RyanAir

    Does it make sense to install the OPTWARE-NG on a flash drive connected to USB2 and to use a HDD connected to USB3 as a data partition? Is it an issue to have the swap file on a flash drive? Probably better to install all together on the HDD? Thank you in advance for a hint!

    Regards

    • I recommend all on HDD, will be only one folder named optware-ng or optware-ng.arm and swap file will be inside.

      • RyanAir

        Thanks!

  • Incognito Psytrancer

    Огромное Вам спасибо!

    • Should I use google translate? :)

      • Incognito Psytrancer

        Thank you very much!

  • user

    I have installed entware, how can I switched to optware-ng?

    my old repo is http://qnapware.zyxmon.org/binaries-armv7/Packages.html
    thank you in advance!

  • Csaba Benesch

    Do you have updated the install script?

    • Yes, try it and leave feedback

      • Csaba Benesch

        download link?

      • Csaba Benesch

        working great now, thanks :)

  • Csaba Benesch

    I found the issue with not starting. The generated post-mount script was not 100%, because "ln -nsf $1/optware-ng.arm" is not available, the sricpt created optware-ng and not optware-ng.arm . Please correct this. Iam on arm device.

    • Nothing wrong on installer script, please post output from:
      uname -m

      • Csaba Benesch

        Linux rt-ac87u 2.6.36.4brcmarm #2 SMP PREEMPT Thu Dec 24 14:06:59 EST 2015 armv7 l GNU/Linux

        after the install in the postmount script was "optware-ng.arm" but optware-ng is installed.

        • I only need
          uname -m

          • Csaba Benesch

            armv7l

          • Should be ok, I asked because you posted output from uname -a and was "armv7 l" with a space betwen 7 & l.
            The script will cat output from uname -m and if is armv7l will create symlink ...optware-ng.arm in post-mount script and if is mips, will be optware-ng
            I will post another script to test

          • Csaba Benesch

            the script is ok for arm, only in the post-mount should remove the .arm , and now its working. for example, for me was the default and with this after the reboot optware is not working:

            #!/bin/sh
            if [ "$1" = "/tmp/mnt/sda5" ] ; then
            ln -nsf $1/optware-ng.arm /tmp/opt
            fi
            if [ -f /opt/swap ]
            then
            echo -e "Mounting swap file..."
            swapon /opt/swap
            else
            echo -e "Swap file not found or /opt is not mounted..."
            fi

            and now with this post-mount its all OK.

            #!/bin/sh
            if [ "$1" = "/tmp/mnt/sda5" ] ; then
            ln -nsf $1/optware-ng /tmp/opt
            fi
            if [ -f /opt/swap ]
            then
            echo -e "Mounting swap file..."
            swapon /opt/swap
            else
            echo -e "Swap file not found or /opt is not mounted..."
            fi

            why have the installer script created only optware-ng and not optware-ng.arm?

          • You have an old scripts probably, try this steps and should be ok
            cd /tmp
            rm ./optware-ngu-setup.sh
            wget -c -O optware-ngu-setup.sh http://goo.gl/d1o6oE
            chmod +x ./optware-ngu-setup.sh
            ./optware-ngu-setup.sh

            Now you should have /mnt/sda5/optware-ng.arm folder and symlink ln -nsf $1/optware-ng.arm /tmp/opt in port-mount jffs script

          • Csaba Benesch

            how can I clean install it? Should I re-format the hdd?

          • No, just run commands I posted previously

          • Csaba Benesch

            still optware-ng

            criton@rt-ac87u:/tmp/mnt/sda5/optware-ng# cat /jffs/scripts/post-mount
            #!/bin/sh

            if [ "$1" = "/tmp/mnt/sda5" ] ; then
            ln -nsf $1/optware-ng.arm /tmp/opt
            fi

            if [ -f /opt/swap ]
            then
            echo -e "Mounting swap file..."
            swapon /opt/swap
            else
            echo -e "Swap file not found or /opt is not mounted..."
            fi
            criton@rt-ac87u:/tmp/mnt/sda5/optware-ng# cd /tmp/mnt/sda5
            criton@rt-ac87u:/tmp/mnt/sda5# ls -l
            -rw-rw-rw- 1 criton root 29 Jan 3 12:00 jffs_scripts_backup_2016-01-03_12-00.tgz
            drwx------ 2 criton root 16384 Jan 3 11:33 lost+found
            drwxrwxr-x 9 criton root 4096 Jan 3 12:04 optware-ng

          • I just tried on an arm router and it's all ok, I wonder why not on yours...

          • I'm online right now, you can use live chat

          • Csaba Benesch

            but if I remove .arm in the post-mount, it working perfect....

  • Csaba Benesch

    If I install it on the newest Merlin on ac87u then after router reboot I have no optware.....I install it on WD 1TB usb hdd with ext4

    • Csaba Benesch

      ok, ca 3times new(re)installed optware re-formated the hdd, jffs is ok, but optware not starting and swap is not there... no idea why.....

  • Zaphod Beelebrox

    Im getting the same problem when I try either optware-ng or entware-ng on my ac66u. cat: write error: No space left on device.
    Ive tried to reformat the usb memory and have used the reformat JFFS partition at next boot, but to no avail.
    I would appreciate if someone can help.

    thanks

    • Which firmware?
      Post output from:
      df

      • Zaphod Beelebrox

        RT-AC66U_380.57_0.zip

        df gives

        Filesystem 1K-blocks Used Available Use% Mounted on
        udev 4011352 0 4011352 0% /dev
        tmpfs 805964 9964 796000 2% /run
        /dev/dm-1 712036048 470936476 204907112 70% /
        tmpfs 4029812 288 4029524 1% /dev/shm
        tmpfs 5120 4 5116 1% /run/lock
        tmpfs 4029812 0 4029812 0% /sys/fs/cgroup
        /dev/sda2 241965 167301 62172 73% /boot
        /dev/sda1 523248 3456 519792 1% /boot/efi
        cgmfs 100 0 100 0% /run/cgmanager/fs
        tmpfs 805964 52 805912 1% /run/user/1000

        I have a 64GB sd card with a ext3 partition on it.

        • Zaphod Beelebrox

          FYI ------ RT-AC66U_380.57_0.zip firmware has enware-setup.sh included which installs entware-ng with none of the issues I have had using this scripted method.

        • Did you manage to install at the end?

  • Csaba Benesch

    optware-ng or entware-ng for asus ac87u?

    • Which one you want, I use optware-ng

  • Now installer script is universal, will detect the right cpu arch

  • Zdeněk Mašek

    JFFS is allowed (both options), ssh as well. but even I`ve reloaded several times my router (ASUS RT-AC56U) script is still not progressing and always ended up with error message (to enable JFFS and reload the box). when I connect through ssh to the router I see folder asus_jffs (with 775 permissions). any hint? should I change script to use asus_jffs folder?

    Before I`ve installed merlin`s asuswrt there was already installed download master (uninstalled) but as it is based on optware I would expect it is not a problem. even on attached USB disk (2TB) there was already folder asusware.arm (permissions 777).

    thanks for comments/hints

    • Are you on RMerlin firmware?
      Type in terminal
      mkdir -p /jffs/scripts

      And try again

      • Zdeněk Mašek

        I`ve Merlin firmware (http://asuswrt.lostrealm.ca/) latest version. but as I can see I cannot create /jffs/scripts folder. got info it is read only system only :-( when I`ve tried to create the folder

        • Try to format manually, type in terminal

          mtd-erase -d jffs2

          And reboot 2 times

          • Zdeněk Mašek

            finally got to try it. but unfortunately even this is not helpint. after I`ve tried the command feedback is this > "-sh: mtd-erase: not found" btw when I try to list jffs from NVRAM this is what I see (no idea if this is helping anyhow ;-) as jffs2 seems to be enabled but anyway not really working)

            admin@RT-AC56U-0018:/# nvram show | grep jff

            jffs2_on=1
            jffs2_exec=
            jffs2_enable=1
            size: 49871 bytes (15665 left)
            jffs2_format=1
            jffs2_scripts=1

  • cippa

    installing BASH create many error like /usr/bin/env: '/opt/lib/libc.so.1' library contains unsupported TLS

    /usr/bin/env: can't load library 'libc.so.1'

  • David Taylor

    Why might one choose Optware-NG over Entware or vice versa? If it is purely a matter of preference, is usage of one or the other more similar to package management in RedHat, Mint, or Raspbian? Trying to make my first choice a good one, for AsusWRT-Merlin on RT-87U... (deleted and re-added this post to a more relevant article).

    • In this moment I recomand optware-ng, it's newer.
      I read somewhere, entware new generation is coming :)

      • Lippa

        and now? that entware-ng is out? what you recomand?

        • Stay on Optware-NG for now, Entware-NG is quite new so expect some issues

          • Lippa

            especially consider the upcoming optware-ng java and bubbleupnp package support.

  • Mazum

    If I have the optware previous version, not the ng, must I uninstall it?

    • The installer script will backup your existing optware. You have to remove Asus Download Master if is installed.

      • Mazum

        Remove Asus DM from sda1, just delete it. Now it is not necessary to install Asus DM to install optware and Transmission

  • Modified scripts to install latest Optware-NG version with new feeds that use uClibc-ng-1.0.6
    Latest optware-ng install script will create a 512MB swap file automatically

  • Latest optware-ng install script will create a 512MB swap file automatically

  • Michal Wheelq

    Which one is now recommended? First it was Optware, then Entware and now...is is still Entware or Optware-NG?

    • Optware-NG is brand-new and some initial bugs are expected but look at packages available on both sides and choose witch one you like more.

      • White_Knight

        I have the same question but additional, could i ask you about packages Scheduled updates , and of course main Optware-NG system Frequently updated or not ?
        If that optware is better then Entware i transfer to that system

        • Dunno which one is better but I'm sure optware-ng is frequently updated and if you need a new package just request here https://github.com/alllexx88/Optware-ng/issues
          You can try installing and test, script will backup entware installation and can be restored later if you are not satisfied

          • White_Knight

            Hello TeHashX,
            Thank you for quick reply !
            I try to install on another Flash Drive and make decision.

  • PC

    There is an error message, perhaps the link has changed:

    --2015-08-25 09:14:33-- http://optware-ng.zyxmon.org/buildroot-armeabi/ipkg-static_0.99.163-1_arm.ipk
    Resolving optware-ng.zyxmon.org (optware-ng.zyxmon.org)... 81.4.123.217
    Connecting to optware-ng.zyxmon.org (optware-ng.zyxmon.org)|81.4.123.217|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2015-08-25 09:14:33 ERROR 404: Not Found.

    tar (child): ipkg-static_0.99.163-1_arm.ipkr: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): data.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now

    • No, it's working fine, I just check, reboot router and try again.
      How do you connect to internet? pppoe, static ip address?... your router is set as a repeater? router model and firmware version?...

Get Email Notification When a Server or Port is Unreachable
SoftEther VPN Running on AsusWRT Routers
Minidlna UPnP Media Server through Debian Jessie Arm
How to Mount Samba Shares inside Chrooted Debian
Minidlna UPnP Media Server through Debian Jessie Arm
How to Mount Samba Shares inside Chrooted Debian
Spreed WebRTC server and web client
Asterisk VoIP Server running on AsusWRT Routers
Get Email Notification When a Server or Port is Unreachable
SoftEther VPN Running on AsusWRT Routers
NZBGet through Entware
Minidlna UPnP Media Server through Debian Jessie Arm

SUBSCRIBE

To be notified by email when a new tutorial is posted :)

Thanks for Subscribing! I'll keeping you up-to-date with latest tutorials!

Something went wrong, try again...