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主题:
4.修改密码:passwd命令
发表回复