luci在openwrt上可以直接通过ipk包的方式安装,这里不做详细介绍。
ubuntu中安装完整LUCI过程:
1.安装
apt-get install lua5.1 liblua5.1-0-dev make cmake git subversion
git clone https://github.com/openwrt/luci.git
cd luci
git checkout luci-0.12
git checkout 89678917~1 contrib/package/luci/Makefile
git checkout 89678917~1 modules/admin-full/src/luci-bwc.c
svn info svn://svn.openwrt.org/openwrt/branches/backfire/package/uhttpd/src
make runuhttpd
2.运行
cd luci
build/hostenv.sh /home/用户名/luci/host /usr/lib/lua /usr/lib/lua "/home/用户名/luci/host/usr/sbin/uhttpd -p 8080 -h /home/*******/luci/host/www -f"
3.访问
通过浏览器打开 http://127.0.0.1:8080/ 端口就应该可以看的熟悉的luci界面了