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 升级某一个软件 Upgrade packages

install 安装某一个软件 Install package(s)

configure 配置某一个软件 Configure unpacked package(s)

remove 删除软件 Remove package(s)

flag Flag package(s)

=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 List files belonging to

search List package providing

find List packages whose name ordescription matches

info[pkg|regexp] 显示软件包的信息 Display all info for

status [pkg|regexp] 显示软件包的状态 Display all status for

download 下载一个软件包到当前目录 Download to current directory

compare-versions

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[] Set verbosity level to .

--verbosity[=] Verbosity levels:

0errors only

1normal messages (default)

2informative messages

3 debug

4 debuglevel 2

-f Use as the opkgconfiguration file

--conf

--cache Use a package cache

-d Use as the the rootdirectory for

--dest package installation, removal, upgrading.

should be a defined dest name from

theconfiguration file, (but can also be a

directory namein a pinch).

-o

--offline-root

--add-arch: Registerarchitecture with given priority

--add-dest: 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即可。见下图

作者:jk110333 发表于2013-4-2 23:31:51 原文链接

阅读:0 评论:0 查看评论

openwrt安装oracle,Openwrt安装软件的方法-tomcat 随笔小记-install ubuntu 12.04 in virtualbox_169IT.COM...相关推荐

  1. Windows XP硬盘安装Ubuntu 12.04双系统图文详解

    按照下文的方法,自己在winXP上面装Ubuntu12.04双系统,准确说是winXP+win7+Ubuntu三系统:正在安装,稍后将自己安装截图发出来.. 修改计算机名: sudo gedit /e ...

  2. Win7下硬盘安装Ubuntu 12.04.4 LTS双系统

    Win7下硬盘安装Ubuntu 12.04.4 LTS双系统 71158992014年4月13日 Heepo银牌会员 本帖最后由 Heepo 于 2014-04-12 18:31 编辑 小菜上次在论坛 ...

  3. Windows XP硬盘安装Ubuntu 12.04双系统

    Windows XP硬盘安装Ubuntu 12.04双系统 一.下载文件 需要下载的东西有两个,一个是grub4dos,另一个是Ubuntu 12.04 LTS的镜像文件,具体下载地址如下: 1.Gr ...

  4. 制作U盘启动盘将Ubuntu 12.04升级为14.04的方法

    1 介绍 在周六的下午,我决定想高速浏览一下书籍[1].看看这个关于Ubuntu的圣经到底在讲什么东东. 感觉讲的不错,当我看到介绍文件标记语言-TeX和LaTeX的时候,该书作者推荐在Ubuntu上 ...

  5. ubuntu oracle 10g 安装,Ubuntu 12.04 安装Oracle 10g 全过程(完美)及问题解决办法

    PS:Ubuntu 12.04 安装Oracle 10g 全过程(完美)及问题解决办法正常情况下,完美无错..如果遇到问题,也有解决办法 1.安装前准备工作 1.1 到oracle官网下载适合自己电脑 ...

  6. vsftpd使用方法小结、Linux安装JDK出现“NoClassDefFoundError: /Object”的解决方案、ubuntu 12.04安装jdk

    vsftpd使用方法小结 vsftpd 是一个 UNIX 类操作系统上运行的服务器的名字,它可以运行在诸如 Linux, BSD, Solaris,HP-UX 以及 IRIX 上面.它支持很多其他的 ...

  7. Ubuntu 12.04安装firefox 26中的flash plugin方法

    Ubuntu 12.04 64bit中安装firefox 26中的flash player插件的方法 昨天, 有最新的firefox 26更新了,可是我在软件更新中无法下载到ubuntu官方源中的fl ...

  8. Ubuntu 12.04下安装Oracle Express 11gR2

    Ubuntu 12.04下安装Oracle Express 11gR2 [我的笔记] 参考1:http://www.linuxidc.com/Linux/2012-09/71382.htm 参考2:h ...

  9. Ubuntu 12.04(32位)安装Oracle 11g(32位)全过程以及几乎所有问题的解决办法

    这两天在Ubuntu上安装Oracle把人折腾毁了,即使照着网上的教程来,还是出了很多问题.好在最后终于搞定了.写出来总结一下,免得以后忘了. 标题注明32位是因为网上教程几乎全是以64位安装为例的, ...

最新文章

  1. MySQL中interactive_timeout和wait_timeout的区别
  2. mysql 添加用户_mysql创建用户与授权
  3. 专访刘伟:软件开发人员的内功修炼之道
  4. python queue的用法_python Queue模块使用
  5. 【HTML+CSS网页设计与布局 从入门到精通】第6章-标题h1,h1字体格式的设置方式
  6. “fatal: refusing to merge unrelated histories” Git error
  7. java配环境变量_用于 Java 开发的配置工具 Simple Configuration Facade
  8. 小爱同学app安卓版_小爱同学app下载安卓版|语音助手下载_最火软件站
  9. 楚留香pc端无法获取服务器信息,楚留香手游PC端无响应解决方法
  10. 【淘宝静态页面HTML部分】
  11. 小程序梦想贩卖机v2-1.0.88-带4插件(2022.9.8更新)
  12. 8.5.3耳麦拔插事件调用流程分析
  13. 多种方法进行去基线处理
  14. 2023年考研计算机数学考什么?
  15. SQL Server添加MDW性能监控报表
  16. Tencent后台开发Java岗二面:Java中高级核心知识全面解析
  17. 如何使用DEV-C++(超详细)
  18. 产品人应该点亮哪些技能树?如何夯实产品基本功?
  19. mix3刷魔趣(简记)
  20. 基于java+mysql的Swing+MySQL物业收费系统(java+gui+文档)

热门文章

  1. 来跟我一起分享技术、传递价值:阿里云MVP全球招募,火热启动!
  2. 面试:ArrayList哪种遍历效率最好?
  3. python做logistic回归_用Python做Logistic回归
  4. 【SpringCloud】Ribbon:负载均衡
  5. 追求极致:Repvgg重参数化对YOLO工业落地的实验和思考
  6. Failed to load the native TensorFlow runtime.
  7. torch.mean
  8. python画人脸关键点
  9. python打印表情
  10. win32thread.c:(.text+0x60):对‘_beginthreadex’未定义的引用