1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

amtm step-by-step install guide - L&LD

Discussion in 'Asuswrt-Merlin' started by L&LD, Apr 21, 2019.

  1. CaptainSTX

    CaptainSTX Part of the Furniture

    Joined:
    May 2, 2012
    Messages:
    2,256
    Having created a problem installing Entware after amtm and then having to recover my router it might be prudent include a just in case something goes wrong section. The problems I had were a factory reset from the GUI didn't reset everything, a hardware reset would not resolve all the issues either.
    1. Have a copy of ASUS recovery tool downloaded and installed and know how to use it.
    2. Have a fresh copy of router firmware available.
    3. Based on my experience if something goes wrong pull the USB drive(s) and reformat them NTFS and start the installation process over. Do not try reinstalling scripts or swap files a second time on the same USB drive without reformatting it.

    While most people should have no issues following this excellent tutorial things do happen.
     
    a5m, Grisu, QuikSilver and 2 others like this.
  2. Zastoff

    Zastoff Senior Member

    Joined:
    Nov 21, 2017
    Messages:
    374
    Awesome ;) @L&LD
    Mini Tool Partition Wizard a free program for windows to format (usb) drives (EXT2,EXT3 & EXT4)
    I like SmarTTY feels easy to edit scripts/files and backup (for ssh)
    Followed this guide when i first set it all up
     
    Last edited: Dec 19, 2019
    L&LD, Dave Parker and SaveMyRouter like this.
  3. L&LD

    L&LD Part of the Furniture

    Joined:
    Dec 9, 2013
    Messages:
    10,271

    Thank you for the suggestions! The Word file (my notes) that I used to create this guide is almost 145 pages long. :)

    A single guide to cover all possible aspects of getting an Asus/RMerlin/amtm + scripts powered router humming along would not be welcome or useful in a forum format. And, not too many people would be willing to read a book when a quick, but complete, guide is needed for the beginning first few steps. :)

    I am still considering the best way forward to put all, or at least as much as possible, of the information needed to have this level of control over Asus routers in an easily digestible format so that even beginners could set up, troubleshoot and expand their network control with at least some basic level of competence. I know that a few short years ago, it took me a very long time to even consider flashing RMerlin firmware on my RT-N66U. ;)

    I have reserved the first few posts to add information as needed, but which right now I cannot foresee. These suggestions will be fully considered when the time comes to use those reserved posts.

    I hope to share a few more guides and will try to inter-link them together as well as I can.

    Thank you for your suggestions. Please keep them coming. :)
     
    ^Tripper^, #TY and martinr like this.
  4. L&LD

    L&LD Part of the Furniture

    Joined:
    Dec 9, 2013
    Messages:
    10,271
    Thank you. :)

    The links you've posted will prove helpful. I'll be sure to use them in the not too distant future (in one of the currently reserved posts). :)

    And that guide by @JaimeZX was also useful when I needed a quick sanity check too. ;)
     
    Zastoff and #TY like this.
  5. CaptainSTX

    CaptainSTX Part of the Furniture

    Joined:
    May 2, 2012
    Messages:
    2,256
    I can understand your wanting to keep the guide as concise as possible as evidenced by the chatter about file types in earlier posts where people either didn't read or understand that you you had covered this topic in your opening post.

    The only other reason I could offer for including a bail out is that some people who do read your guide read /speak English as a second language. Google translator does a good job but if something is lost in translation someone could find themselves up the creek without the proverbial paddle.

    Again great job.
     
    faria, Grisu and L&LD like this.
  6. L&LD

    L&LD Part of the Furniture

    Joined:
    Dec 9, 2013
    Messages:
    10,271
    I'm sure you have noticed by now that I changed that, as requested. Please have a quick peek if you haven't to be sure, thank you.

    If amtm and Diversion install Entware in the same way/method (or same install 'options'), what is the reason that the amtm 'ew' command on the main screen still asks to use the Diversion menu and 'ep' option instead, when Diversion is installed? Not an issue, just curious, more than anything else right now. :)
     
    martinr likes this.
  7. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,160
    Location:
    Switzerland
    If pixelserv-tls has an update, the Entware installer replaces the startscript which will not work without modifying it.
    If done through Diversion, that file is replaced by the customized file for Diversion. amtm cannot do that.
     
    martinr and L&LD like this.
  8. heysoundude

    heysoundude Very Senior Member

    Joined:
    Sep 20, 2016
    Messages:
    590
    Good work here.

    I've been around this place for a while, and this is the best/clearest guide I've seen yet.

    back before amtm, when Diversion was Ab-solution and the scripts now in amtm were all written and maintained by individuals rather than a crew working together, you needed a bunch of study to apply the scripts correctly...and even then you may have had to ask for help/clarifications from the people who wrote them, as they were learning too. now it's seemingly mostly worked out and the script devs talk much more freely with each other and Rmerlin...and this is all VERY good, because they're pulling towards the finish line (wherever that may be) TOGETHER in a cohesive way.

    However, I'd like to point one thing out: FreshJR's QoS script doesn't need entware. you can put that on BEFORE amtm as your script-virginity abandonment exercise just to prove that this stuff works in the "Wow, does it ever!" way. that can be your gateway drug, after Merlin's firmware awakens you to possibilities.

    ok...that said, now that we're in a REALLY GREAT place, what I'd like everyone to be able to do is wrap their heads around HOW all of this works and fits together and WHY it's good.
    as in, "I've set up Stubby's DoT, which encrypts my DNS lookups to the cloudflare (or whatever) server, but that doesn't mean the response is encrypted...(or does it?) so THAT's why I need a VPN if I'm privacy-conscious" or "what are the benefits of using pixelserv...in language I can understand? those pesky certificates create more problems than they solve! how do I make it EASY?"

    anyone feel me on this?
     
    L&LD likes this.
  9. L&LD

    L&LD Part of the Furniture

    Joined:
    Dec 9, 2013
    Messages:
    10,271
    Thank you. While I can't script (yet!), I am hoping that I can lead people into this new world with some easy to follow guides, which are basically the notes I've been keeping for myself as I fumble with these new concepts myself.

    I would love to have a resource like what you envision. Maybe these guides can be the first step? :)

    With the FreshJR QOS script, yes, I do know that Entware does not need to be installed and have mentioned that a few times in my replies on the forum. :)

    I'm going to be busy for the next few days, but I will be expanding this thread soon enough. Thank you for the kudos and the suggestions too.
     
  10. heysoundude

    heysoundude Very Senior Member

    Joined:
    Sep 20, 2016
    Messages:
    590
    A pleasure.

    I hope these guides ARE the first step. I'm sure I'm not the only one who's sat in front of their computer wondering "And now what's this dnsmasq that I have to take into consideration as well?" or DNSSEC or whatever. the rabbit hole is deep and dark for most of us, and the majority of the most of us would more likely throw in the towel than find a torch, especially if that torch has fairly technical and relatively unfamiliar terms/directions that aren't used in everyday parlance.
    Further, a model-specific setup guide for after flashing with Merlin, but before installing amtm or any script may be the better place to start. "Hardware Acceleration? IPv6? wha what now?" but you may already have that covered in your M&M config doc...
    It's at the point now that there's a need for a "...for Dummies" book that encompasses all of these.


    Sent from my iPhone using Tapatalk
     
    Last edited: Apr 23, 2019
  11. StefanoN

    StefanoN Regular Contributor

    Joined:
    Dec 31, 2017
    Messages:
    56
    For L&LD
    to avoid mistakes: is your advice to connect the ssd disk to the usb2 port? I have an ac86u and a 500gb ssd disk of type usb3.

    Thanks
     
  12. L&LD

    L&LD Part of the Furniture

    Joined:
    Dec 9, 2013
    Messages:
    10,271
    With the USB Mode set to 2.0, it shouldn't matter. :)
     
    QuikSilver and heysoundude like this.
  13. doczenith1

    doczenith1 Very Senior Member

    Joined:
    Sep 19, 2014
    Messages:
    585
    Location:
    MI
    Someone will correct if I'm wrong but I thought it was mentioned on this site that formatting the usb drive with a Windows based computer will cause the amtm disk check tool to not work properly. For the tool to work properly the usb drive needs to be formatted in a Linux environment which can be accomplished using the amtm format utility.
     
  14. EmeraldDeer

    EmeraldDeer Very Senior Member

    Joined:
    Dec 22, 2017
    Messages:
    551
    Location:
    Massachusetts
    A Linux environment is not inherently better for partitioning and formatting a USB drive than a Windows environment.

    It was GPT partition structure (as opposed to MBR) which amtm disk check was not compatible with. Disk check relied upon partition label to determine filesystem type. The GPT partition table visible in MBR mode is not helpful in this regard.

    The router firmware already has more sophisticated ways to determine filesystem type, so @ColinTaylor solved the problem by having this information passed from the firmware by a new argument. The new amtm disk check was included with amtm 2.0 but requires at least 384.11 alpha 3.

    I actually recommend a disk partition which amtm does not support (the creation of, using is fine). Amtm only creates a one partition, one filesystem USB drive.
    • 1 GB ent partition for Entware
    • 1 GB swp partition for 512 MB swap file created by amtm
    • Remaining GB smb partition for Samba or anything else
    • All partitions formatted ext4 with journaling
    • I will be using GPT rather than MBR from now on
     
    Last edited: Apr 23, 2019
    thelonelycoder and L&LD like this.
  15. XIII

    XIII Very Senior Member

    Joined:
    Feb 27, 2014
    Messages:
    957
    What’s the rationale behind creating 2x the space needed?
     
  16. Grisu

    Grisu Part of the Furniture

    Joined:
    Aug 28, 2014
    Messages:
    2,835
    I think because memory lasts longer if there is a spare.
     
  17. Zastoff

    Zastoff Senior Member

    Joined:
    Nov 21, 2017
    Messages:
    374
    Works fine here with usb drive formated in Mini Tool Partition Wizard
    But really nice to have the tool in amtm, Next time i will try that one ;)
    Code:
     Wed Apr 24 08:38:19 DST 2019 Probing ext4 on device /dev/sda1
     Wed Apr 24 08:38:19 DST 2019 Running disk check (v2.2) 'e2fsck -p' on /dev/sda1
     Zastoff: clean, 593/3752784 files, 663871/7505408 blocks
     
    Last edited: Apr 24, 2019
  18. EmeraldDeer

    EmeraldDeer Very Senior Member

    Joined:
    Dec 22, 2017
    Messages:
    551
    Location:
    Massachusetts
    • A 1 GB swap file cannot fit in a 1 GB partition with a filesystem
    • Does anyone know off hand the % full threshold beyond which an e2fsck will fail?
    • Currently have a 1 GB swap file within a filesystem within a 2 GB partition and it is 57% used
    • You could try 0.6 or 0.7 GB if you like
     
    XIII and L&LD like this.
  19. Cubyc

    Cubyc Occasional Visitor

    Joined:
    Apr 25, 2019
    Messages:
    12
    Hello
    I followed these instructions to make `properly` install but somehow i can not access pixelserv-tls ca.crt certificate from other devices, I was able to download from other devices before following this tutorial but now i can not download to other devices.

    Does anyone know why? is there any particular reason for this? as I said certificate was downloaded before without any problem on all my devices before, I have Asus RT-AC3200 with firmware 384.10_2, AMTM with Diversion, Skynet and Stubby and same firmware before this, now I just wanted to make a proper reinstall because my processor was working above normal and not pixelserv-tls certificate can`t be downloaded on other devices, but why can be downloaded on my laptop(this was used to update router)? this is really weird...
    I will start again to install everything from scratch on Sunday but I`m looking to avoid this in meantime if anyone could help.

    edit: Just found that when I try to access my router from other device and is not possible, so might be a LAN issue but not sure where as I did not made changes to devices or wireless.


    - Thank you all guys who created these tools, I will make donation to each developer once I get my salary;)
     
    Last edited: Apr 25, 2019
  20. L&LD

    L&LD Part of the Furniture

    Joined:
    Dec 9, 2013
    Messages:
    10,271
    Welcome to the forums. :)

    How are you trying to access the pixelserv-tls certificate? What error is shown?

    Before following this guide, was your router in a good/known state. Meaning, was it stable and performed as expected?

    Do you know what IP address the router is on? And pixelserv-tls? Are Diversion and pixelserv-tls running?

    If your router is not as stable as it could be, following this guide will not make it any more stable, as is stated in the 'assumptions' in the first post.

    If you need to get your router to a good/known state, please follow my M&M Config guide. The link is in my signature below.