What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

🐾 Idefix Terminal — an ultimate terminal in your ASUS-Merlin GUI

MegaMango

Occasional Visitor
Hello SNB Community,

After extensive testing and refinement, I am pleased to introduce Idefix Terminal—a browser-based console now available under Administration ā–ø Idefix Terminal in your router’s web interface.

This project is hosted on the GitHub

Releases: https://github.com/DanielLavrushin/asuswrt-merlin-idefix/releases

🐾 What do i get?

A real BusyBox/ash shell with colour, UTF-8 and scroll-back – no more juggling PuTTY. Works from any device: phone, tablet, even your TV’s browser.

1746823088314.png


1746823435962.png

1747687866789.png


🐾 Prerequisites​

* ASUS-WRT Merlin firmware (386 or 388)
* Entware (quickest route: run `amtm`, option `e`)

🐾 How to install​

Simply run this command:
Bash:
wget -O /tmp/idefix-install.sh \
  https://raw.githubusercontent.com/DanielLavrushin/asuswrt-merlin-idefix/refs/heads/main/install.sh \
  && chmod 0755 /tmp/idefix-install.sh \
  && /tmp/idefix-install.sh \
  && rm /tmp/idefix-install.sh

to uninstall:
Bash:
idefix uninstall

🐾 How to update/contriubute​

This is the first public release. It should run on most Broadcom & HND models but I only have an RT-BE88U to test on. If something breaks please open a GitHub issue or drop a note in this thread – log snippets, screenshots, anything helps.

As soon as I deploy a new release version you will get a modal window to porpose to update.
You always can check the latest changes in the bottom right corner of the screen clicking the version:
1746824140685.png

🐾 Any CLI?​

Oh yes, you can use the following CLI:
- idefix update - ubdate to latest version (it is possible to specify exact version, e.g. idefix update 1.1.4, usefull in a rollback cases)
- idefix start - start the idefix-server in a background
- idefix stop - stop all instances of the idefix server
- idefix uninstall - a complete uninsall process
- idefix remount_ui - helps to remount the gui menu

🐾 Issues​

- not able to connect under https (investigating)
 

Attachments

  • 1746823570143.png
    1746823570143.png
    225.6 KB · Views: 643
Last edited:
What gives?
1000006045.png

NVM, doesn't work over https.
 
What gives?
View attachment 65569
is all I get. Have you used default IPs rather than localhost - my main LAN is 10.0.0.0/27?
nice! First issue :D

Are you behind https?
what if you try to run the idefix-server manually?

first try to stop any instances:
Bash:
idefix stop

then
Code:
/opt/share/idefix/idefix-server

then try to connect - it should catch to the console the response...
 
nice! First issue :D

Are you behind https?
what if you try to run the idefix-server manually?

first try to stop any instances:
Bash:
idefix stop

then
Code:
/opt/share/idefix/idefix-server

then try to connect - it should catch to the console the response...
Code:
WebSocket PTY listening on :8787/ws
Then no further messages when trying to access in the GUI over https. Over http it's fine.
 
Excellent work! Btw, I love the paw 🄹

Some questions/suggestions:
- Change default path to be in line with the "regular" terminal (/tmp/home/root)
- Is it possible to increase the terminal vertical size? We have a big webpage with a small vertical terminal - 99% of the userscripts use more than that screen size, making them a PITA to use.
- version number - possibility to run a manual update check (by pressing the actual version number?). If possible, it should also check for MD5 changes. Right now I don't know when it checks for an update (when opening the webpage?)
- When using command "exit". Is it possible, somehow, to show a message saying "exited" or something like that? Right now it simply hangs and, after a moments, looses connection. (Am I being too picky? šŸ˜…)
- @thelonelycoder I think it's ready (IKWIM)

My greatest congratulations
 
I tried your latest release 1.1.4, but still a no go with https. All I get is a spinning wheel Connecting...
1746888123626.png
 
This looks real promising!

For consideration, like in MerlinAU, being able to also launch a session into the nodes?
@ExtremeFiretop may share how he gets the Node info and IPAddr - I think I've also seen it in NVRAM on the Router, but I don't remember the Variable
1746901519045.png


Edit:
Did a quick search of NVRAM, and the nodes showed up twice, one NVRAM entry had additional parameters you might not need
No wonder why I couldn't remember, one šŸ¤¦ā€ā™‚ļø
cfg_device_list
asus_device_list
 
Last edited:
This looks real promising!

For consideration, like in MerlinAU, being able to also launch a session into the nodes?
@ExtremeFiretop may share how he gets the Node info and IPAddr

I remember implementing that... The trick is lots of blood, sweat, and tears. :D

Edit:
Did a quick search of NVRAM, and the nodes showed up twice, one NVRAM entry had additional parameters you might not need
No wonder why I couldn't remember, one šŸ¤¦ā€ā™‚ļø
cfg_device_list
asus_device_list

Can confirm these NVRAM keys are accurate.
If I remember correctly; the way we use the keys is cfg_device_list more "dynamic" and as nodes come online and offline those values should update within a reasonable time-frame.
While asus_device_list is more of a permanent list of all "paired" devices whether they are reachable or not at that time.
 
Last edited:
This looks real promising!

For consideration, like in MerlinAU, being able to also launch a session into the nodes?
@ExtremeFiretop may share how he gets the Node info and IPAddr - I think I've also seen it in NVRAM on the Router, but I don't remember the Variable
View attachment 65577

Edit:
Did a quick search of NVRAM, and the nodes showed up twice, one NVRAM entry had additional parameters you might not need
No wonder why I couldn't remember, one šŸ¤¦ā€ā™‚ļø
cfg_device_list
asus_device_list
Interresting idea - will have a look, thanks!
Excellent work! Btw, I love the paw 🄹

Some questions/suggestions:
- Change default path to be in line with the "regular" terminal (/tmp/home/root)
- Is it possible to increase the terminal vertical size? We have a big webpage with a small vertical terminal - 99% of the userscripts use more than that screen size, making them a PITA to use.
- version number - possibility to run a manual update check (by pressing the actual version number?). If possible, it should also check for MD5 changes. Right now I don't know when it checks for an update (when opening the webpage?)
- When using command "exit". Is it possible, somehow, to show a message saying "exited" or something like that? Right now it simply hangs and, after a moments, looses connection. (Am I being too picky? šŸ˜…)
- @thelonelycoder I think it's ready (IKWIM)

My greatest congratulations

Thanks for your feedback, really appreciate it.

I just pushed a new version (1.1.6). I will implement your other suggestions a bit later next week, as I don't have much time for now, unfortunatelly.
- FIXED: Resolved an issue that prevented the web-terminal from connecting over HTTPS.
- ADDED: Expand button — lets you toggle the terminal into a wider overlay. (experimental; may still show minor layout glitches).
- ADDED: The session now closes automatically when the user enters the `exit` command.
it s possible to update with 'idefix update' command.
 
Hello SNB Community,

After extensive testing and refinement, I am pleased to introduce Idefix Terminal—a browser-based console now available under Administration ā–ø Idefix Terminal in your router’s web interface.

This project is hosted on the GitHub

Releases: https://github.com/DanielLavrushin/asuswrt-merlin-idefix/releases

🐾 What do i get?

A real BusyBox/ash shell with colour, UTF-8 and scroll-back – no more juggling PuTTY. Works from any device: phone, tablet, even your TV’s browser.

Nice work - know how hard this can be - esp with security contexts...

Bit of a challenge - as one can do things on the terminal, and they're not reflected later on with WebUI.
 
just pushed a new version (1.1.6).
I can't get this version to load over http or https now. šŸ˜•

*edit* Had to remove/reinstall, but everything is fine now.
 
Last edited:
Congrats @MegaMango, very useful little add-on!
Working well for me on an RT-BE86U.
 
I finally installed Idefix v1.1.6 this morning. Slick little utility that appears to work great with an http seesion, but it does not connect (spins for a second or two, and then the RECONNECT button appears). Might this have anything to do with using an alternate ssh port (available in nvram variable sshd_port)? Is there any log (I see nothing in syslog)?
 
Last edited:
Awesome tool!
Installed IDEFIX Version1.1.6 on a RT-AX92U running 3004.388.8_4-gnuton1 firmware.
Non-default port for SSH and Dynamic DNS on port 8443
Using https for router access and so far all is working great.
 
Last edited:
I finally installed Idefix v1.1.6 this morning. Slick little utility that appears to work great with an http seesion, but it does not connect (spins for a second or two, and then the RECONNECT button appears). Might this have anything to do with using an alternate ssh port (available in nvram variable sshd_port)? Is there any log (I see nothing in syslog)?
Yes I am also just getting the quick reconnect and I am using an alternative SSH port
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top
āœ–