OPENWRT 入门( opkg, uci, luci )
来源:互联网 发布:手机短信软件 编辑:程序博客网 时间:2024/05/22 10:39
目錄:
安裝
- Download
- First Login
- UCI (Unified Configuration Interface)
- SSH(Dropbear)
- uHTTPd
- OPKG(Package Manager)
- 救機(password reset)
- 系統升級
- mtd (Memory Technology Device)
- LuCI
- version
安裝
如果 Hardware 的版本與 firmware 版本不同, 千萬不要硬上 !!
因為變磚了就煩了 ..
查看 Hardware 的版本:
Download
下載: http://downloads.openwrt.org/snapshots/trunk/ar71xx/
openwrt--generic--<硬件版本>-<格式>-<用圖>
Example:
openwrt-ar71xx-generic-tl-wr740n-v1-squashfs-factory.bin
openwrt-ar71xx-generic-tl-wr740n-v1-jffs2-factory.bin
openwrt-ar71xx-generic-tl-wr740n-v1-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-tl-wr740n-v1-jffs2-sysupgrade.bin
Firmware 常見的3種格式 TRX, TRX2, BIN
First Login:
當 router 安裝完 openwrt 後, 它只有 telnet 被啟動,
只有設置好root 的 pw 後, 我們才可以 ssh 它 ~
首先我們要 telnet 入去 router
telnet 192.168.1.1
設定它的 password
passwd
UCI (Unified Configuration Interface)
uci 是 openwrt 的中央設定工具, 我們可以透過它設定 router 上的一切一切
Default 是有安裝的, 除非人手刪了~
所需的packages:
- uci(/sbin/uci)
- libuci(/lib/libuci.so )
所有設定值保存放在
/etc/config/xxx
常用 config file:
- /etc/config/dhcp
- /etc/config/dropbear
- /etc/config/firewall
- /etc/config/network
- /etc/config/system
- /etc/config/timeserver
- /etc/config/wireless
格式:
package 'example'config 'example' 'test' option 'string' 'some value' option 'boolean' '1' list 'collection' 'first item' list 'collection' 'second item'
Usage: uci [arguments]
command:
commit 把修改設定值寫入 flash, 並且套用(包括 uci 及 人手修改)
show [[.
[.转自 :http://blog.chinaunix.net/uid-26675482-id-4634216.html
- OPENWRT 入门( opkg, uci, luci )
- openwrt - 入门( uHTTPd, opkg, uci, luci, mtd等)
- 为什么openwrt要使用Luci (lua + uci)
- openwrt中的luci界面采用JavaScript回调uci接口函数
- OpenWRT 之LuCI 入门开发
- 我的openwrt学习笔记(三十五):Openwrt 之luci-lua调用uci的测试
- OpenWrt配置opkg.conf
- openwrt opkg.conf
- openwrt luci
- [UCI] OpenWrt-uci命令系统
- [UCI] OpenWrt-uci命令系统
- Luci之uci API函数
- openwrt uci常用命令
- openwrt uci的使用
- Openwrt UCI System命令
- OpenWrt-uci命令系统
- OpenWrt-uci脚本命令
- OpenWrt uci 命令详解
- 浏览器渲染页面
- Just a Numble模拟除法的运算
- 自定义ScrollView实现gallery3D效果,3D相册效果
- iOS开发-C语言-进制的转换
- 常规服务器命令
- OPENWRT 入门( opkg, uci, luci )
- 搭建 Linux 下 GitLab 服务器
- JsonLib 简单入门
- 运行CMD 查看端口命令及端口功能详解
- nginx error
- Matlab高级绘图
- U3D学习笔记(9)
- 简化AWS CLI操作的jungle
- Nginx开启Gzip压缩