[solved] Disable tabs in luci

I use some devices as access points, and I don't need the hostname, firewall, DHCP and DNS tabs. Is it possible to disable some tabs in the luci interface?

Firewall, DHCP (DNS intergrated in DHCP-server [dnsmasq]) can be removed. Just remove the corresponding luci-app-xxxx packages and they will be gone.

Removing the hostname does not bring any advantage I suppose. Also this is basic functionally of Linux and is therefor hard to remove anyway..

please note that if you're running a squash-filesystem you will not gain any additional storage (it will even take more) unless you use LEDE's imagebuilder.

1 Like

It seems there is no packages named luci-app-dnsmasq, and removing luci-app-firewall give the following error:

opkg remove luci-app-firewall
No packages removed.
Collected errors:
 * print_dependents_warning: Package luci-app-firewall is depended upon by packages:
 * print_dependents_warning: 	luci
 * print_dependents_warning: These might cease to work if package luci-app-firewall is removed.

 * print_dependents_warning: Force removal of this package with --force-depends.
 * print_dependents_warning: Force removal of this package and its dependents
 * print_dependents_warning: with --force-removal-of-dependent-packages.

So I'm not sure this won't break anything.

I'm not really searching to remove those packages, just to hide them from the web ui.

Please read my disclaimer:
Does it really matter to have those tabs there? Given your current level of expertise I don't think it's wise to continue down this road. Because I can guide you in the right direction, but unfortunately I don't have the time to give you a step-by-step instruction booklet. If anyone volunteers, be my guest :slight_smile: so you have to discover some things on your own.

The actual reply:
that's because you have the meta-package luci installed. you can either force luci-app-firewall to be removed. Or remove LuCI entirely and install only packages you need.

This is the meta package you have installed now:

Package: luci
Version: git-17.315.61305-a9bddc4-1
Depends: libc, libssp, uhttpd, uhttpd-mod-ubus, luci-mod-admin-full, luci-theme-bootstrap, luci-app-firewall, luci-proto-ppp, libiwinfo-lua, luci-proto-ipv6
Section: luci
Architecture: all
Installed-Size: 105
Filename: luci_git-17.315.61305-a9bddc4-1_all.ipk
Size: 879
SHA256sum: 44f2da57d50e6a8444a40641f4f9e2bc2c26fef0a5952dcc61057edc4b7c55b5
Description:  Standard OpenWrt set including full admin with ppp support and the default Bootstrap theme

So remove LuCI and install (without luci-app-firewall):

libc, libssp, uhttpd, uhttpd-mod-ubus, luci-mod-admin-full, luci-theme-bootstrap, luci-proto-ppp, libiwinfo-lua, luci-proto-ipv6

But as far as I'm aware there is no method on safely removing DHCP related stuff from LuCI. You can however remove dnsmasq. But then expect some errors within LuCI because of missing dependencies.

Use something like Page Eraser...

@Timeless, I was searching for a clean way to do that, and I accept your solution.
@jwoods, I didn't know that extension, could be useful.