转自: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,下面是命令的帮助

  1. root@Jack:/tmp/opkg-lists# opkg--help
  2. opkg:unrecognized option `--help'
  3. opkgmust have one sub-command argument
  4. usage:opkg [options...] sub-command [arguments...]
  5. wheresub-command is one of:
  6. PackageManipulation:
  7. update           升级       Update list ofavailable packages
  8. upgrade <pkgs>     升级某一个软件     Upgrade packages
  9. install <pkgs>     安装某一个软件     Install package(s)
  10. configure <pkgs>    配置某一个软件    Configure unpacked package(s)
  11. remove <pkgs|regexp>  删除软件  Remove package(s)
  12. flag <flag> <pkgs>      Flag package(s)
  13. <flag>=hold|noprune|user|ok|installed|unpacked (one perinvocation)
  14. InformationalCommands:
  15. list       列出openwrt所有支持的软件包   List availablepackages
  16. list-installed     列出本机已经安装的软件包     List installed packages
  17. list-upgradable  列出可以升级的软件包  ist installed and upgradable packages
  18. list-changed-conffiles  List user modified configuration files
  19. files <pkg>             List files belonging to<pkg>
  20. search <file|regexp>    List package providing <file>
  21. find <regexp>           List packages whose name ordescription matches <regexp>
  22. info[pkg|regexp]    显示软件包的信息   Display all info for <pkg>
  23. status [pkg|regexp]   显示软件包的状态  Display all status for <pkg>
  24. download<pkg> 下载一个软件包到当前目录 Download<pkg> to current directory
  25. compare-versions <v1> <op><v2>
  26. compare versionsusing <= < > >= = << >>
  27. print-architecture      List installable package architectures
  28. depends [-A] [pkgname|pat]+
  29. whatdepends [-A] [pkgname|pat]+
  30. whatdependsrec [-A] [pkgname|pat]+
  31. whatrecommends[-A] [pkgname|pat]+
  32. whatsuggests[-A] [pkgname|pat]+
  33. whatprovides [-A] [pkgname|pat]+
  34. whatconflicts [-A] [pkgname|pat]+
  35. whatreplaces [-A] [pkgname|pat]+
  36. Options:
  37. -A            Query all packages not just thoseinstalled
  38. -V[<level>]       Set verbosity level to <level>.
  39. --verbosity[=<level>]   Verbosity levels:
  40. 0errors only
  41. 1normal messages (default)
  42. 2informative messages
  43. 3 debug
  44. 4 debuglevel 2
  45. -f <conf_file>          Use <conf_file> as the opkgconfiguration file
  46. --conf <conf_file>
  47. --cache <directory>     Use a package cache
  48. -d <dest_name>          Use <dest_name> as the the rootdirectory for
  49. --dest <dest_name>      package installation, removal, upgrading.
  50. <dest_name>should be a defined dest name from
  51. theconfiguration file, (but can also be a
  52. directory namein a pinch).
  53. -o <dir>                Use <dir> as the rootdirectory for
  54. --offline-root <dir>    offline installation of packages.
  55. --add-arch<arch>:<prio>        Registerarchitecture with given priority
  56. --add-dest<name>:<path>        Registerdestination with given path
  57. ForceOptions:
  58. --force-depends         Install/remove despite faileddependencies
  59. --force-maintainer      Overwrite preexisting config files
  60. --force-reinstall       Reinstall package(s)
  61. --force-overwrite       Overwrite files from other package(s)
  62. --force-downgrade       Allow opkg to downgrade packages
  63. --force-space           Disable free space checks
  64. --force-postinstall     Run postinstall scripts even in offlinemode
  65. --force-remove  Remove package even if prerm script fails
  66. --noaction              No action -- test only
  67. --download-only No action -- downloadonly
  68. --nodeps                Do not follow dependencies
  69. --nocase                Perform case insensitivepattern matching
  70. --force-removal-of-dependent-packages
  71. Remove packageand all dependencies
  72. --autoremove            Remove packages that were installed
  73. automaticallyto satisfy dependencies
  74. -t                      Specify tmp-dir.
  75. --tmp-dir               Specify tmp-dir.
  76. regexp could be something like 'pkgname*''*file*' or similar
  77. e.g. opkg info 'libstd*' or opkg search'*libop*' or opkg remove 'libncur*'
  78. root@Jack:/tmp/opkg-lists#

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

  1. root@Jack:/tmp/opkg-lists# opkg list|grep tftp
  2. atftp- 0.7-1 - TFTP client
  3. atftpd- 0.7-1 - TFTP server
  4. 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.
  5. iputils-tftpd- 20101006-1 - Program tftpd from iputils Trivial File Transfer Protocolserver.
  6. kmod-ipt-nathelper- 3.7.10-1 - Default Netfilter (IPv4) Conntrack and NAT helpers Includes: - ftp- irc - tftp
  7. tftp-hpa- 0.48-3 - An enhanced version of the BSD TFTP client
  8. tftpd-hpa- 0.48-3 - An enhanced version of the BSD TFTP server

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

  1. #opkgdownload tftpd-hpa

下载软件包,然后用

  1. #opkginstall tftpd-hpa

来安装。也可以直接用

  1. #opkg installtftpd-hpa

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

  1. #opkglist-installed |grep tftpd-hpa

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

页面安装

进入页面system->software

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

Openwrt安装软件的方法的更多相关文章

  1. Ubuntu不支持rpm安装软件解决方法

    Ubuntu不支持rpm安装软件解决方法 以前经常使用的是RedHat Linux,习惯使用rpm方法安装软件.最近发现Ubuntu系统居然不支持rpm方法安装软件,提示信息如下: root@root ...

  2. 源代码安装-非ROOT用户安装软件的方法

    0.    前言 如果你没有sudo权限,则很多程序是无法使用别人编译好的文件安装的. 还有时候,没有对应你的主机配置的安装包,这时候需要我们自己下载最原始的源代码,然后进行编译安装. 这样安装的程序 ...

  3. ubuntu .deb .tar.gz .tar.bz2 .rmp 和命令方式安装软件的方法

    今天在Ubuntu11.10中安装Google chrome浏览器是遇到了问题,下载好的".deb"格式的安装文件google-chrome-stable.deb双击后或者右键快捷 ...

  4. linux中安装软件的方法

    1. apt-get 安装方法ubuntu 世界有许多软件源,在系统安装篇已经介绍过如何添加源, apt-get 的基本软件安装命令是: sudo apt-get install 软件名 2. 编译安 ...

  5. Openwrt 安装软件到U盘或硬盘

    http://blog.licess.org/openwrt-install-software-to-udisk-harddisk/ 运行一个多月的DDNAS被结婚来玩的小孩给关了,于是趁机更新了一下 ...

  6. Linux 查找已安装软件的方法

    1.rpm 注意rpm区分大小写 查询已安装的以mysql开头的包 rpm  -qa mysql* 查询已安装的mysql 包 rpm -qa|grep mysql rpm的方法有时候也所有已安装的包 ...

  7. linux下安装软件的方法

    1. 区分 rpm -qi -qf -ql -qa四个不同选项组合的作用?rpm -qi //查询已经安装的某个RPM软件包的信息rpm -qf //查询某个程序文件是由哪个RPM软件包安装的rpm ...

  8. linux下安装软件的方法(mariadb)

    一.方式 1. rpm (不推荐使用) 2. yum 安装(非常方便快捷) 3. 编译安装(需要自定制的时候才使用) 二.技术栈 #闭源收费的技术栈: svn + java + apache(web服 ...

  9. Mac安装软件新方法:Homebrew-cask

    Homebrew是Ruby社区极富想象力的一个作品,使得Mac下安装Mysql等常用包不再困难.那么,是否也可以通过brew install mysql这样简单的方式来安装chrome浏览器? 近期, ...

随机推荐

  1. 轻易实现基于linux或win运行的聊天服务端程序

    对于不了解网络编程的开发人员来说,编写一个良好的服务端通讯程序是一件比较麻烦的事情.然而通过EC这个免费组件你可以非常简单地构建一个基于linux或win部署运行的网络服务程序.这种便利性完全得益于m ...

  2. Fragment之间的通信

    在本节中,你会学到 1.定义接口 2.实现接口 3.将消息传递给fragment 为了重用Fragment UI 组件,在设计中你应该通过定义每一个fragemnt自己的layout和行为,让frag ...

  3. Web API 简单示例

    一.RESTful和Web API Representational State Transfer (REST) is a software architecture style consisting ...

  4. Spring-Context之二:使用Spring提供的测试框架进行测试

    Spring框架是无侵入性的,所以你的代码可以完全是POJO(plain old java object),直接使用Junit就可以完成大部分的单元测试.但是在集成测试方面就比较吃力了.单元测试层面你 ...

  5. 深入浅出OOP(四): 多态和继承(抽象类)

    在本文中,我们讨论OOP中的热点之一:抽象类.抽象类在各个编程语言中概念是一致的,但是C#稍微有些不一样.本文中我们会通过代码来实现抽象类,并一一进行解析. Abstract Classes 在微软的 ...

  6. Atitit. 提升开发效率与质量DSL ( 3) ----实现DSL的方式总结

    Atitit. 提升开发效率与质量DSL ( 3) ----实现DSL的方式总结 1. 管道抽象 1 2. 层次结构抽象(json,xml etc) 1 3. 异步抽象promise 1 4. Ide ...

  7. CentOS 6.5 无网环境安装R及Rstudio的方法的方法

    在生产环节,一般是不联网的,下面介绍在无望环境如何安装R及R-studio 1.  安装CentOS for R语言的基础环境 1.1 libpng,X11,libjpeg等支持 yum -y ins ...

  8. python web框架——初识tornado

    一 Tornado概述 Tornado是FriendFeed使用的可扩展的非阻塞式web框架及其相关工具的开源版本.这个Web框架看起来有些像web.py或者Google的 webapp,不过为了能有 ...

  9. 通过MSSQL连接服务器连接至Oracle数据库

    前言 有很多时候,我们需要MSSQL与Oracle进行跨库查询或数据交互.本篇随笔将阐述如何通过MSSQL的连接服务器连接至Oracle数据库,并且读取数据的示例. 具体步骤 首先需要到Oracle的 ...

  10. MongoDB学习笔记——索引管理

    索引 索引能够提升查询的效率.没有索引,MongoDB必须扫描集合中的所有文档,才能找到匹配查询语句的文档. 索引是一种特殊的数据结构,将一小块数据集保存为容易遍历的形式.索引能够存储某种特殊字段或字 ...