1.转换镜像格式,资料:http://www.zxmls.lol/

    ./img2kvm openwrt-23.05.5-x86-64-generic-ext4-combined-efi.img 100 vm-100-disk-1

    2.修改默认用户名

      2.1 /etc/passwd

      root:x:0:0:root:/root:/bin/ash
      name:x:0:0:root:/root:/bin/ash

      2.2/etc/shadow

      root:$1$CUZfPWNP$jl8w3/uwU/qtjjBfa.urF/:18216:0:99999:7:::
      name:$1$CUZfPWNP$jl8w3/uwU/qtjjBfa.urF/:18216:0:99999:7:::

      2.3 /usr/lib/lua/luci/controller/admin/index.lua

      page.sysauth = {“root”}
      page.sysauth = {“username”}

      2.4 /etc/config/rpcd

      option username 'root'
      option password '$p$root'
      
      option username 'name'
      option password '$p$name'

      2.5 /usr/lib/lua/luci/view/sysauth.htm

      <input class="cbi-input-text" type="text" name="luci_username" value="<%=duser%" />
      <input class="cbi-input-text" type="text" name="luci_username" value="" />

      3.修改argon主题:

      https://github.com/jerrykuku/luci-theme-argon/releases/download/v2.2.9.4/luci-theme-argon-master_2.2.9.4_all.ipk

      4.修改密码:passwd命令

      参考:https://blog.csdn.net/szembed/article/details/142357096


      评论

      发表回复

      您的邮箱地址不会被公开。 必填项已用 * 标注