How can I switch LUCI theme from CLI (ssh)?

Hi,

I'm running fw 19.07.2 r10947-65030d81f3 and installed the Luci-Material and Luci-OpenWRT themes via the menu, however after installation, the system has switched to the "openwrt" theme I think by itself as the login screen is different, and once I log in everything is blank.

Is there a way to change to bootstrap from SSH? Wow, I'm dumbfounded that this has happened, sorry I'm a newb, but I thought these upgrades/updates had dependencies requirements and wouldn't hose stuff this way...in particular something like themes.

Help here would be appreciated.
TY

Can you not change your themes from LuCI.

  • System > System
  • select Language and Style
  • select theme from drop down
  • save/apply

No because once I log in there is no menu, there is nothing, just all white and blank...

After googling for about 20 mins I found a post which helped me issue the following commands via SSH and all is fine now... UGH that was annoying...

uci set luci.themes.Bootstrap=/luci-static/bootstrap
uci set luci.main.mediaurlbase=/luci-static/bootstrap
uci commit luci
1 Like

Looks like I hosed myself, no menus - now once I log in I'm at the software page automatically, no other menus at the top, seems somehow I've deleted the menus?
-if I try to reinstall LUCI and Bootstrap it tells me "installed in root is up to date"...

What am I missing here, seems like some menu package??

Have you already rebooted the router and cleared browser cache?

Didn't but just did now, both... same thing... login is there Bootstrap, looks normal, I log in and it just goes to the Software screen, no menus at the top, just the router host name...

Did you upgrade any packages or do any other software installations?

What is the output of:

ubus call system board

I installed the Material and OpenWRT themes, which started this whole mess... now I have uninstalled those 2 from the software menu.

Output below.

        "kernel": "4.14.171",
        "hostname": "BaBa",
        "system": "Atheros AR7161 rev 2",
        "model": "Meraki MR16",
        "board_name": "mr16",
        "release": {
                "distribution": "OpenWrt",
                "version": "19.07.2",
                "revision": "r10947-65030d81f3",
                "target": "ar71xx/generic",
                "description": "OpenWrt 19.07.2 r10947-65030d81f3"

What does
uci show luci return?

luci.main=core
luci.main.lang='auto'
luci.main.resourcebase='/luci-static/resources'
luci.main.mediaurlbase='/luci-static/bootstrap'
luci.flash_keep=extern
luci.flash_keep.uci='/etc/config/'
luci.flash_keep.dropbear='/etc/dropbear/'
luci.flash_keep.openvpn='/etc/openvpn/'
luci.flash_keep.passwd='/etc/passwd'
luci.flash_keep.opkg='/etc/opkg.conf'
luci.flash_keep.firewall='/etc/firewall.user'
luci.flash_keep.uploads='/lib/uci/upload/'
luci.languages=internal
luci.sauth=internal
luci.sauth.sessionpath='/tmp/luci-sessions'
luci.sauth.sessiontime='3600'
luci.ccache=internal
luci.ccache.enable='1'
luci.themes=internal
luci.themes.Bootstrap='/luci-static/bootstrap'
luci.themes.OpenWrt='/luci-static/openwrt.org'
luci.themes.Material='/luci-static/material'
luci.apply=internal
luci.apply.rollback='90'
luci.apply.holdoff='4'
luci.apply.timeout='5'
luci.apply.display='1.5'
luci.diag=internal
luci.diag.dns='openwrt.org'
luci.diag.ping='openwrt.org'
luci.diag.route='openwrt.org'

This version is EOL and unsupported. I'd highly recommend upgrading to 22.03 (latest as of this writing). The upgrade process will require that you reset to defaults, so there is a bit of extra work here, but given that you've got something going wrong that may require resetting anyway, now is a good time.

My recommendation is to follow this path:

  1. Make a backup
  2. Download the 21.02.5 (ath79) sysupgrade image.
  3. Install 21.02.5 -- there will be a warning that it is an unsupported image... just make sure that the checksum matches what you see on the website and then go ahead and foce it. be sure to uncheck the box for 'keep settings' -- you must not attempt to keep setings.
  4. Download the sysupgrade for 22.03.3 and apply that upgrade. Best practice it to also not keep settings here.
  5. reconfigure your device. Do it from scratch -- do not attempt to restorre your backup. You can use your backup as a human readable reference, if needed.

Then make a backup, and go ahead and download and install any additional packages that you need.

They still exist in the config

Did you commit the change.

Your symptoms are somewhat strange.
Looks like some LuCI core components would be missing or their permissions wrong or.... Those kind of errors should be fixed by reinstalling LuCI via opkg with --force-reinstall option. (And reboot...) But may be somewhat complicated.

Like psherman suggests, one possible cure is to install a current OpenWrt version, or at least the newest maintenance release from the 19.07 series. Your 19.07.2 is really ancient. 19.07.10 would be more than 2 years newer.

Thanks, appreciate your help here.
Wow ok this sucks, stupid me for trying to touch something that's not broken... I'll have to work on this tomorrow.

Just a couple of questions.
1.You mention download 21.02.5 but then say install 22.02.5... is that a typo? If yes, then I can jump from 21.02.5 to 22.03.3?

I guess I will need to reinstall SNMPd that I had (any way to find out which it is, I know there are a few versions, would like to install the same I have now)
2.Not sure how to backup, I don't have the menus anymore and I'm not sure how to backup otherwise...Would really like to get the power settings of my SSIDs that I had before...

Thanks

Yes... whoops... I'll correct that in a second. Install 21.02.5, then 22.03.3 later.

This should be easy... do a quick check of what's installed now with opkg list-installed | grep snmpd -- make a note of it and then you'll know which version you want to install later.

CLI backup instructions are here:

2 Likes

You've got a GUI to look at the "installed" tab and type in the package of choice.

I like @hnyman idea of using uci to force reinstall. But me being like a guy who loves breaking stuff; I'd probably search here on the "Installed" tab and screen shot the list of any thing LuCi first and perhaps even "Remove" there and then use uci to opkg update opkg install luci

2 Likes

Thank you.

In my head I was going, not so bad, just go to firmware upgrade... but menu isn't there anymore and noticed this: The image can be used with the LuCI web interface or the terminal.

So I will need to get this file into the unit and then run it from there? will it still prompt me to keep settings and complain about forcing?

Note that you seem to have somewhat complicated router regarding sysupgrade.

You might read https://openwrt.org/toh/meraki/mr16

(Note that moving forward from 19.07 requires the ar71xx to ath79 jump. Just a changed hardware description method, but requires re-config of network)

2 Likes

Download the image to your computer, then use scp to copy it to your router (copy it into the /tmp/ directory).

Then, the CLI sysupgrade will be:

sysupgrade -n /tmp/< filename >

If it refuses because of the architecture target change (from ar71xx > ath79), use the -F arguement.

Full details here:

1 Like

This is all the luci related stuffs

as well as the upgrades listed; but if I were to run upgrades (like core and compatibility), then wouldn't it wreck some other dependency, I imagine these upgrades aren't backwards compatible with 19.07?