OpenWRT通过SSH 安装LUCI

OpenWRT

安装完OpenWRT的基本系统后,是无法通过WEB来进行管理的,需要安装LUCI才可以

建议将新路由器WAN口连接到一个已经联网的路由器下,然后电脑LAN口连接新路由,通过以下方法开安装LUCI

$ ssh [email protected]            #默认密码为空
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
RSA key fingerprint is SHA256:UElnmEDlnbdNWutb3J8IjXbBMxbdOJYzHNYYp9lTYKw.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts.


BusyBox v1.30.0 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r9028-75fdf3b
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
[email protected]:~# opkg update    #更新软件源
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.91-1-26f5ed44a4b010654f5ec58e94ee7c46/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.91-1-26f5ed44a4b010654f5ec58e94ee7c46/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
[email protected]:~# opkg install luci     #安装luci
Installing luci (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci_git-19.013.40861-80ac438-1_all.ipk
Installing uhttpd (2018-11-28-cdfc902a-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/uhttpd_2018-11-28-cdfc902a-1_mipsel_24kc.ipk
Installing liblua (5.1.5-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/liblua_5.1.5-1_mipsel_24kc.ipk
Installing lua (5.1.5-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/lua_5.1.5-1_mipsel_24kc.ipk
Installing luci-lib-nixio (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-lib-nixio_git-19.013.40861-80ac438-1_mipsel_24kc.ipk
Installing luci-lib-ip (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-lib-ip_git-19.013.40861-80ac438-1_mipsel_24kc.ipk
Installing rpcd (2018-11-28-3aa81d0d-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/rpcd_2018-11-28-3aa81d0d-1_mipsel_24kc.ipk
Installing libubus-lua (2018-10-06-221ce7e7-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libubus-lua_2018-10-06-221ce7e7-1_mipsel_24kc.ipk
Installing luci-lib-jsonc (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-lib-jsonc_git-19.013.40861-80ac438-1_mipsel_24kc.ipk
Installing liblucihttp (2018-05-18-cb119ded-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/liblucihttp_2018-05-18-cb119ded-1_mipsel_24kc.ipk
Installing liblucihttp-lua (2018-05-18-cb119ded-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/liblucihttp-lua_2018-05-18-cb119ded-1_mipsel_24kc.ipk
Installing luci-base (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-base_git-19.013.40861-80ac438-1_mipsel_24kc.ipk
Installing libiwinfo (2018-12-25-dd508af4-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages/libiwinfo_2018-12-25-dd508af4-1_mipsel_24kc.ipk
Installing libiwinfo-lua (2018-12-25-dd508af4-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages/libiwinfo-lua_2018-12-25-dd508af4-1_mipsel_24kc.ipk
Installing luci-mod-status (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-status_git-19.013.40861-80ac438-1_mipsel_24kc.ipk
Installing luci-mod-system (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-system_git-19.013.40861-80ac438-1_all.ipk
Installing luci-mod-network (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-network_git-19.013.40861-80ac438-1_all.ipk
Installing luci-mod-admin-full (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-admin-full_git-19.013.40861-80ac438-1_all.ipk
Installing luci-theme-bootstrap (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-theme-bootstrap_git-19.013.40861-80ac438-1_all.ipk
Installing luci-app-firewall (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-app-firewall_git-19.013.40861-80ac438-1_all.ipk
Installing luci-app-opkg (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-app-opkg_git-19.013.40861-80ac438-1_all.ipk
Installing luci-proto-ppp (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-proto-ppp_git-19.013.40861-80ac438-1_all.ipk
Installing luci-proto-ipv6 (git-19.013.40861-80ac438-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-proto-ipv6_git-19.013.40861-80ac438-1_all.ipk
Installing rpcd-mod-rrdns (20170710) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/rpcd-mod-rrdns_20170710_mipsel_24kc.ipk
Configuring luci-app-opkg.
Configuring rpcd.
Configuring liblua.
Configuring luci-lib-ip.
Configuring libubus-lua.
Configuring libiwinfo.
Configuring libiwinfo-lua.
Configuring lua.
Configuring luci-lib-nixio.
Configuring luci-lib-jsonc.
Configuring liblucihttp.
Configuring liblucihttp-lua.
Configuring luci-base.
Configuring luci-mod-system.
Configuring luci-theme-bootstrap.
Configuring luci-mod-status.
Configuring luci-app-firewall.
Configuring luci-proto-ppp.
Configuring luci-mod-network.
Configuring luci-mod-admin-full.
Configuring luci-proto-ipv6.
Configuring uhttpd.
Configuring rpcd-mod-rrdns.
Configuring luci.
[email protected]:~#                #安装完成,重启即可

重启后,就可以通过访问192.168.1.1来进行web端管理了,root默认密码为空,记得添加密码咯!

0

微信扫一扫,分享到朋友圈

OpenWRT通过SSH 安装LUCI
返回顶部

显示

忘记密码?

显示

显示

获取验证码

Close