Openwrt安装软件的方法
转自:http://blog.csdn.net/jk110333/article/details/8753825
web软件:
Naken Web
Openwrt安装软件
简介
Openwrt是个很自由的开源路由器系统,软件包支持几千个,功能很强大!
安装的方法主要有两种,telnet或者ssh连接后台安装和 页面安装。
下面的所有步骤的前提是当前的路由器已经联网!
telnet或ssh
原始的openwrt默认是没有密码的,只开启了telnet没有开启ssh,当第一次配置完用户名和密码后,关闭了telnet开启了ssh,用户可以随时连上路由器,下面我用ssh连接的。
Openwrt管理软件包的命令是opkg,下面是命令的帮助
- root@Jack:/tmp/opkg-lists# opkg--help
- opkg:unrecognized option `--help'
- opkgmust have one sub-command argument
- usage:opkg [options...] sub-command [arguments...]
- wheresub-command is one of:
- PackageManipulation:
- update 升级 Update list ofavailable packages
- upgrade <pkgs> 升级某一个软件 Upgrade packages
- install <pkgs> 安装某一个软件 Install package(s)
- configure <pkgs> 配置某一个软件 Configure unpacked package(s)
- remove <pkgs|regexp> 删除软件 Remove package(s)
- flag <flag> <pkgs> Flag package(s)
- <flag>=hold|noprune|user|ok|installed|unpacked (one perinvocation)
- InformationalCommands:
- list 列出openwrt所有支持的软件包 List availablepackages
- list-installed 列出本机已经安装的软件包 List installed packages
- list-upgradable 列出可以升级的软件包 ist installed and upgradable packages
- list-changed-conffiles List user modified configuration files
- files <pkg> List files belonging to<pkg>
- search <file|regexp> List package providing <file>
- find <regexp> List packages whose name ordescription matches <regexp>
- info[pkg|regexp] 显示软件包的信息 Display all info for <pkg>
- status [pkg|regexp] 显示软件包的状态 Display all status for <pkg>
- download<pkg> 下载一个软件包到当前目录 Download<pkg> to current directory
- compare-versions <v1> <op><v2>
- compare versionsusing <= < > >= = << >>
- print-architecture List installable package architectures
- depends [-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
- --nocase 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 tftp
- atftp- 0.7-1 - TFTP client
- atftpd- 0.7-1 - TFTP server
- erlang-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 - tftp
- tftp-hpa- 0.48-3 - An enhanced version of the BSD TFTP client
- tftpd-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即可。见下图

Openwrt安装软件的方法的更多相关文章
- Ubuntu不支持rpm安装软件解决方法
Ubuntu不支持rpm安装软件解决方法 以前经常使用的是RedHat Linux,习惯使用rpm方法安装软件.最近发现Ubuntu系统居然不支持rpm方法安装软件,提示信息如下: root@root ...
- 源代码安装-非ROOT用户安装软件的方法
0. 前言 如果你没有sudo权限,则很多程序是无法使用别人编译好的文件安装的. 还有时候,没有对应你的主机配置的安装包,这时候需要我们自己下载最原始的源代码,然后进行编译安装. 这样安装的程序 ...
- ubuntu .deb .tar.gz .tar.bz2 .rmp 和命令方式安装软件的方法
今天在Ubuntu11.10中安装Google chrome浏览器是遇到了问题,下载好的".deb"格式的安装文件google-chrome-stable.deb双击后或者右键快捷 ...
- linux中安装软件的方法
1. apt-get 安装方法ubuntu 世界有许多软件源,在系统安装篇已经介绍过如何添加源, apt-get 的基本软件安装命令是: sudo apt-get install 软件名 2. 编译安 ...
- Openwrt 安装软件到U盘或硬盘
http://blog.licess.org/openwrt-install-software-to-udisk-harddisk/ 运行一个多月的DDNAS被结婚来玩的小孩给关了,于是趁机更新了一下 ...
- Linux 查找已安装软件的方法
1.rpm 注意rpm区分大小写 查询已安装的以mysql开头的包 rpm -qa mysql* 查询已安装的mysql 包 rpm -qa|grep mysql rpm的方法有时候也所有已安装的包 ...
- linux下安装软件的方法
1. 区分 rpm -qi -qf -ql -qa四个不同选项组合的作用?rpm -qi //查询已经安装的某个RPM软件包的信息rpm -qf //查询某个程序文件是由哪个RPM软件包安装的rpm ...
- linux下安装软件的方法(mariadb)
一.方式 1. rpm (不推荐使用) 2. yum 安装(非常方便快捷) 3. 编译安装(需要自定制的时候才使用) 二.技术栈 #闭源收费的技术栈: svn + java + apache(web服 ...
- Mac安装软件新方法:Homebrew-cask
Homebrew是Ruby社区极富想象力的一个作品,使得Mac下安装Mysql等常用包不再困难.那么,是否也可以通过brew install mysql这样简单的方式来安装chrome浏览器? 近期, ...
随机推荐
- 百度ECHARTS 饼图使用心得 处理data属性
做过CRM系统的童鞋应该都或多或少接触过hicharts或者echarts等数据统计插件.用过这两款,个人感觉echarts的画面更好看.至于功能,只有适合自己的才是最好的. 今天来说说我使用echa ...
- div+css实现各种形状(精心整理)
1.正方形.div {width: 100px;height: 100px;background: red;} 2.矩形.div {width: 200px;height: 100px;backgro ...
- [leetcode 23]Merge k Sorted Lists
1 题目 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexi ...
- CentOS下 pycharm开发环境搭建之无穷无尽的问题
在上一篇的环境搭建中,表面上以为已经升级好python,安装好pycharm,并且可以用上了django框架,谁知道,谁知道,又是一断被虐的经历,我都要快恼羞成怒了. 在些记录一下我的经历. 1.首先 ...
- ORACLE之ASM学习
ASM(Automatic Storage Management)是Oracle10g R2中为了简化Oracle数据库的管理而推出来的一项新功能,这是Oracle自己提供的卷管理器,主要用于替代操作 ...
- 使用NHibernate(8)-- 延迟加载
1,延迟加载. 延迟加载,即用到的时候再加载数据.这种机制是非常有情怀的,比如一篇中的用户实体有标签.问题等导航属性,如果只是用到用户名去查询整个实体,则把相关的标签和问题也都加载,性能会比较低.而有 ...
- EmberJs之Ember-Data
写在前面 最近比较忙,换了新工作还要学习很多全新的技术栈,并给自己找了很多借口来不去坚持写博客.常常具有讽刺意味的是,更多剩下的时间并没有利用而更多的是白白浪费,也许这就是青春吧,挥霍吧,这不是我想要 ...
- 团队项目—编写项目的Spec
一.Spec的目标 spec又叫Specification, 有两种.第一种是functional spec, 软件功能说明书, 主要用来说明软件的外部功能, 和用户的交互情况.第二种technica ...
- jenkins和docker 在docker里运行jenkins
在docker里运行jenkins server. 文章来自:http://www.ciandcd.com文中的代码来自可以从github下载: https://github.com/ciandcd ...
- 浅谈Entity Framework中的数据加载方式
如果你还没有接触过或者根本不了解什么是Entity Framework,那么请看这里http://www.entityframeworktutorial.net/EntityFramework-Arc ...