首页天道酬勤openwrt怎么安装插件,openwrt怎么安装

openwrt怎么安装插件,openwrt怎么安装

张世龙 05-12 08:18 123次浏览

Openwrt安装软件

请查看我的网站获得更新的数据

http://www.openwrtdl.com/wordpress/openwrt-install-software

简介Openwrt是一个自由的开源路由器系统,支持数千个软件包,功能强大!

安装方法主要有两种: telnet或ssh连接后台安装和页面安装。

下面的所有步骤的前提是当前的路由器已经联网!

默认情况下,telnet或ssh的原始openwrt没有密码。 只是打开了telnet,没有打开ssh。 首次设置用户名和密码后,可以关闭telnet并打开ssh,用户可以随时连接到路由器。 以下,通过ssh连接。

Openwrt管理软件包的命令是opkg,下面是命令帮助

root @ jack :/tmp/opkg-lists # opkg-- helpopkg 3360 unrecognized option `-- help ' opkgmusthaveonesub-commmandargug were sub-commandisoneof :包管理更新升级updatelistofavailablepackagesupgradepkgs升级单个软件安装软件安装软件包(s )配置pkgs以移除软件配置未打包的软件包(s ) s | 配置regexp删除软件删除包(s )的flagflagpkgsflagpackage(s ) flag=hold=no prune用户确定InformationalCommands: list包括openwrt支持的所有listavailablepackageslist-installed软件包, 本机安装的软件包listinstalledpackageslist -列出可以升级到upgradable的软件包listinstalledandupgradabledpackageslist-chadable fiedconfigurationfilespkglistfilesbelongingtopkgskgskg打包regexplistpackageprovidingfilefindregexplistpackageswhosenameoragskg 显示info [ pkg ]软件包信息的displayallinfoforpkgstatus [ pkg ] 显示软件包状态的displayallstatusforpkgdownloadpkg将软件包下载到当前目录downloadpkgtocurrentdirectorycompare-versions v1 op v2 comparrent s nt-architecturelistinstallablepackagearchitecturesdepends [-a ] [ pkgname|pat ]

whatdepends [-A] [pkgname|pat]+ whatdependsrec [-A] [pkgname|pat]+ whatrecommends[-A] [pkgname|pat]+ whatsuggests[-A] [pkgname|pat]+ whatprovides [-A] [pkgname|pat]+ whatconflicts [-A] [pkgname|pat]+ whatreplaces [-A] [pkgname|pat]+ Options: -A Query all packages not just thoseinstalled -V[<level>] Set verbosity level to <level>. --verbosity[=<level>] Verbosity levels: 0errors only 1normal messages (default) 2informative messages 3 debug 4 debuglevel 2 -f <conf_file> Use <conf_file> as the opkgconfiguration file --conf <conf_file> --cache <directory> Use a package cache -d <dest_name> Use <dest_name> as the the rootdirectory for --dest <dest_name> package installation, removal, upgrading. <dest_name>should be a defined dest name from theconfiguration file, (but can also be a directory namein a pinch). -o <dir> Use <dir> as the rootdirectory for --offline-root <dir> offline installation of packages. --add-arch<arch>:<prio> Registerarchitecture with given priority --add-dest<name>:<path> Registerdestination with given path ForceOptions: --force-depends Install/remove despite faileddependencies --force-maintainer Overwrite preexisting config files --force-reinstall Reinstall package(s) --force-overwrite Overwrite files from other package(s) --force-downgrade Allow opkg to downgrade packages --force-space Disable free space checks --force-postinstall Run postinstall scripts even in offlinemode --force-remove Remove package even if prerm script fails --noaction No action -- test only --download-only No action -- downloadonly --nodeps Do not follow dependencies --优雅的小丸子 Perform case insensitivepattern matching --force-removal-of-dependent-packages Remove packageand all dependencies --autoremove Remove packages that were installed automaticallyto satisfy dependencies -t Specify tmp-dir. --tmp-dir Specify tmp-dir. regexp could be something like 'pkgname*''*file*' or similar e.g. opkg info 'libstd*' or opkg search'*libop*' or opkg remove 'libncur*'root@Jack:/tmp/opkg-lists#

如果你想要安装一个软件,但是不知道什么具体的名字,可以用命令获取到软件包的名字(opkg list |grep 软件名),然后安装,比如我想要安装tftp

root@Jack:/tmp/opkg-lists# opkg list|grep tftpatftp- 0.7-1 - TFTP clientatftpd- 0.7-1 - TFTP servererlang-inets- 5.8 - Erlang/OTP is a general-purpose programming language and runtimeenvironment. Erlang has built-in support for concurrency, distribution and fault tolerance. . This Erlang/OTPpackage provides a container for Internet clients and servers. Currently a FTP client, a HTTPclient and server, and a tftp client andserver have been incorporated in Inets.iputils-tftpd- 20101006-1 - Program tftpd from iputils Trivial File Transfer Protocolserver.kmod-ipt-nathelper- 3.7.10-1 - Default Netfilter (IPv4) Conntrack and NAT helpers Includes: - ftp- irc - tftptftp-hpa- 0.48-3 - An enhanced version of the BSD TFTP clienttftpd-hpa- 0.48-3 - An enhanced version of the BSD TFTP server

通过上面的命令我找到我想要的tftp服务器的名字为tftpd-hpa,这样就可以先用

#opkgdownload tftpd-hpa

下载软件包,然后用

#opkginstall tftpd-hpa

来安装。也可以直接用

#opkg installtftpd-hpa

会直接先下载再自动安装。最后用

#opkglist-installed |grep tftpd-hpa

来查看是不是已经安装上了!

 

页面安装

进入页面system->software

在filter里面输入“tftpd”,点击“find package”,在下面的框中就显示出当前openwrt支持的软件包,找到需要的,点击install即可。见下图


开机弹出boot menu,boot是什么意思 openwrt关闭usb3,n1 u盘启动openwrt