Skip to content

Wiki

Personalized Configuration

About 3 min read

Existing English translations were reused. 1 current source blocks remain in Simplified Chinese, without triggering paid translation.

1.Modify the default theme entry pathopenwrt/feeds/luci/collections/luci,modifyMakefile (applicable to OpenWrt version 19.07; different versions may vary slightly):

  • In LUCI_DESCRIPTION, replace bootstrap with argon
  • In LUCI_DEPENDS, replace +luci-theme-bootstrap with +luci-theme-argon

Original link:https://blog.csdn.net/pyt1234567890/article/details/107442792

1.1.Personalized themes: taking the "argon" theme as an example, for strong editability, to change a theme in the OpenWrt source code, including the Argon theme, you can follow the steps below:
  1. Enterfeeds/luci/themes/directory
  2. Locate the directory where the Argon theme is installed (usuallyluci-theme-argon), and enter that directory
  3. Open theroot/usr/share/luci/static/resources/view/themes/argon/header.htmfile, which defines the Argon theme's top navigation bar, LOGO, and other content
  4. Find the content to modify in the header.htm file, then edit and save it accordingly. For example, point the LOGO image path to your own image file, or adjust the layout and style of the navigation bar
  5. If you need to modify other parts of the Argon theme, such as the bottom navigation bar, color scheme, etc., you can find and edit the corresponding files in theroot/usr/share/luci/static/resources/view/themes/argon/directory
1.2.Personalized hostname modificationpackage/base-files/files/bin/config_generate, replace "OpenWrt" with
1.3.Customize default password modification passwd file
1.4.Terminal banner modification file:
./package/base-files/files/etc/banner

Banner generation address:http://www.network-science.de/ascii/

1.5.Wireless change modification file:
/package/kernel/mac80211/files/lib/wifi/mac80211.sh    # (ssid)

修改自定义版本号:openwrt_release