[{"data":1,"prerenderedAt":222},["ShallowReactive",2],{"wiki-page-/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi":3,"wiki-doc-items-/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi":176,"language-switcher-data-/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi":206,"wiki-i18n-paths-/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi":221},{"id":4,"title":5,"body":6,"canonicalPath":156,"chapter":157,"chapterSort":158,"date":159,"description":107,"docI18nKey":160,"docKey":161,"docRoot":162,"docTitle":163,"extension":164,"i18nKey":165,"isBlogPost":166,"isWikiDoc":167,"isWikiIndex":166,"layout":168,"legacyPath":168,"locale":169,"localeSlug":170,"meta":171,"navigation":167,"path":156,"seo":172,"sourcePath":173,"sourceStem":165,"stem":174,"wikiDepth":114,"__hash__":175},"content/_i18n/zh-hk/wiki/2021-09-16-OpenWrt编译教学/ch2-个性化配置.md","個性化配置",{"type":7,"value":8,"toc":150},"minimark",[9,23,33,43,48,82,94,97,101,118,125,129,143,146],[10,11,13,14,18,19,22],"h3",{"id":12},"修改默認主題進入路徑openwrtfeedslucicollectionsluci修改makefile適用於openwrt版本1907不同的版本會稍微不同","修改默認主題進入路徑",[15,16,17],"code",{},"openwrt/feeds/luci/collections/luci","，修改",[15,20,21],{},"Makefile","（適用於openwrt版本19.07，不同的版本，會稍微不同）：",[24,25,26,30],"ul",{},[27,28,29],"li",{},"將LUCI_DESCRIPTION中，bootstrap 替換為 argon",[27,31,32],{},"將LUCI_DEPENDS中，+luci-theme-bootstrap 替換為 +luci-theme-argon",[34,35,36,37],"p",{},"原文鏈接：",[38,39,40],"a",{"href":40,"rel":41},"https://blog.csdn.net/pyt1234567890/article/details/107442792",[42],"nofollow",[44,45,47],"h5",{"id":46},"個性化主題以-argon主題為例可編輯性強要更改openwrt源碼中的主題包括argon主題可以按照以下步驟操作","個性化主題以 \"argon\"主題為例，可編輯性強要更改OpenWrt源碼中的主題，包括Argon主題，可以按照以下步驟操作：",[49,50,51,58,65,72,75],"ol",{},[27,52,53,54,57],{},"進入",[15,55,56],{},"feeds/luci/themes/","目錄",[27,59,60,61,64],{},"找到Argon主題所在的目錄（一般為",[15,62,63],{},"luci-theme-argon","），並進入該目錄",[27,66,67,68,71],{},"打開",[15,69,70],{},"root/usr/share/luci/static/resources/view/themes/argon/header.htm","文件，該文件定義了Argon主題的頂部導航欄、LOGO等內容",[27,73,74],{},"在header.htm文件中找到需要修改的內容，並進行相應的編輯和保存。例如，將LOGO圖片路徑指向自己的圖片文件，或者調整導航欄的佈局和樣式",[27,76,77,78,81],{},"如果需要修改Argon主題的其他部分，例如底部導航欄、顏色方案等，可以在",[15,79,80],{},"root/usr/share/luci/static/resources/view/themes/argon/","目錄下找到對應的文件進行編輯",[44,83,85,86,89,90,93],{"id":84},"個性化主機名修改packagebase-filesfilesbinconfig_generate將openwrt替換","個性化主機名修改",[15,87,88],{},"package/base-files/files/bin/config_generate","，將",[15,91,92],{},"\"OpenWrt\"","替換",[44,95,96],{"id":96},"自定義默認密碼修改passwd文件",[44,98,100],{"id":99},"終端橫幅修改文件","終端橫幅修改文件：",[102,103,108],"pre",{"className":104,"code":105,"language":106,"meta":107,"style":107},"language-bash shiki shiki-themes github-light github-dark","./package/base-files/files/etc/banner\n","bash","",[15,109,110],{"__ignoreMap":107},[111,112,115],"span",{"class":113,"line":114},"line",1,[111,116,105],{"class":117},"sScJk",[34,119,120,121],{},"橫幅生成地址：",[38,122,123],{"href":123,"rel":124},"http://www.network-science.de/ascii/",[42],[44,126,128],{"id":127},"無線更改修改文件","無線更改修改文件：",[102,130,132],{"className":104,"code":131,"language":106,"meta":107,"style":107},"/package/kernel/mac80211/files/lib/wifi/mac80211.sh    # (ssid)\n",[15,133,134],{"__ignoreMap":107},[111,135,136,139],{"class":113,"line":114},[111,137,138],{"class":117},"/package/kernel/mac80211/files/lib/wifi/mac80211.sh",[111,140,142],{"class":141},"sJ8bj","    # (ssid)\n",[34,144,145],{},"修改自定義版本號：openwrt_release",[147,148,149],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":107,"searchDepth":151,"depth":151,"links":152},2,[153],{"id":12,"depth":154,"text":155},3,"修改默認主題進入路徑openwrt/feeds/luci/collections/luci，修改Makefile（適用於openwrt版本19.07，不同的版本，會稍微不同）：","/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","2",2000000,"2021-09-16","wiki/2021-09-16-openwrt-bian-yi-jiao-xue","zh-hk:2021-09-16-openwrt-bian-yi-jiao-xue","/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue","OpenWrt编译教学","md","wiki/2021-09-16-OpenWrt编译教学/ch2-个性化配置",false,true,null,"zh-HK","zh-hk",{},{"title":5,"description":107},"/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","_i18n/zh-hk/wiki/2021-09-16-OpenWrt编译教学/ch2-个性化配置","iThR1leTU2kHSBZE7k_JyQ5dAR_-bsCVxPvvJSX8U0Y",[177,183,184,190,196,202],{"path":178,"stem":179,"title":180,"date":159,"chapter":181,"chapterSort":182,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},"/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch1-bian-yi-huan-jing-zhun-bei","_i18n/zh-hk/wiki/2021-09-16-OpenWrt编译教学/ch1-编译环境准备","編譯環境準備","1",1000000,{"path":156,"stem":174,"title":5,"date":159,"chapter":157,"chapterSort":158,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},{"path":185,"stem":186,"title":187,"date":159,"chapter":188,"chapterSort":189,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},"/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch3-cha-jian-kai-fa","_i18n/zh-hk/wiki/2021-09-16-OpenWrt编译教学/ch3-插件开发","插件開發","3",3000000,{"path":191,"stem":192,"title":193,"date":159,"chapter":194,"chapterSort":195,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},"/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch4-bu-chong-gong-ju","_i18n/zh-hk/wiki/2021-09-16-OpenWrt编译教学/ch4-补充工具","補充工具","4",4000000,{"path":197,"stem":198,"title":199,"date":159,"chapter":200,"chapterSort":201,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":166},"/zh-hk/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch5-qi-ta-can-kao-zi-liao-tian-jia-usb-he-ying-pan-ge-shi-hai-you-wang-ka-jiao-cheng","_i18n/zh-hk/wiki/2021-09-16-OpenWrt编译教学/ch5-其他参考资料添加USB和硬盘格式还有网卡教程：","其他參考資料添加USB和硬盤格式還有網卡教程：","5",5000000,{"path":162,"stem":203,"title":204,"date":159,"chapter":168,"chapterSort":205,"docKey":161,"docRoot":162,"docTitle":163,"isWikiDoc":167,"isWikiIndex":167},"_i18n/zh-hk/wiki/2021-09-16-OpenWrt编译教学/index","OpenWrt編譯教學",0,{"variants":207},[208,211,214,215,218],{"path":209,"localeSlug":210,"i18nKey":165},"/en-us/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","en-us",{"path":212,"localeSlug":213,"i18nKey":165},"/zh-hant/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","zh-hant",{"path":156,"localeSlug":170,"i18nKey":165},{"path":216,"localeSlug":217,"i18nKey":165},"/zh-tw/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","zh-tw",{"path":219,"localeSlug":220,"i18nKey":165},"/zh-cn/wiki/2021-09-16-openwrt-bian-yi-jiao-xue/ch2-ge-xing-hua-pei-zhi","zh-cn",[209,173,212,173,156,173,216,173,219,173],1780671884444]