Openwrt Software Installation Method

Source: Internet
Author: User
Tags ftp client
Openwrt software installation methods: openwrt & vro 21300 people read comments (8) collect reports

Directory (?) [+]

 

Install openwrt Software

Introduction

Openwrt is a very free open-source router system with thousands of software packages and powerful functions!

There are two main installation methods: Telnet or SSH connection background installation and page installation.

The premise of all the steps below is that the current vro is connected to the Internet!

Telnet or SSH

The original openwrt has no password by default. Only telnet is enabled, but SSH is not enabled. After configuring the user name and password for the first time, telnet is disabled and SSH is enabled. You can connect to the vro at any time, next I will use SSH to connect.

The command for the openwrt management package is opkg. The following is the help of the command.

 

[Plain]View plaincopy
  1. [Email protected]:/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:
  6. Packagemanipulation:
  7. Update update list ofavailable packages
  8. Upgrade <pkgs> Upgrade a software upgrade packages
  9. Install <pkgs> install a software install package (s)
  10. Configure <pkgs> Configure a software configure unpacked package (s)
  11. Remove <pkgs | Regexp> remove software remove package (s)
  12. Flag <flag> <pkgs> flag package (s)
  13. <Flag> = hold | noprune | user | OK | installed | unpacked (one perinvocation)
  14. Informationalcommands:
  15. List list all supported software packages of openwrt list availablepackages
  16. List-installed list of software packages installed on the local machine
  17. List-upgradable list of software packages that can be upgraded: 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] displays the package information display all info for <PKG>
  23. Status [PKG | Regexp] displays the package status display all status for <PKG>
  24. Download <PKG> download a software package to the current directory download <PKG> to current directory
  25. Compare-versions <V1> <OP> <V2>
  26. Compare versionsusing <= <>>=<>
  27. Print-architecture list installable package ubuntures
  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. 0 errors only
  41. 1 normal messages (default)
  42. 2 informative 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 rootdirectory
  49. -- Dest <dest_name> package installation, removal, upgrading.
  50. <Dest_name> shocould be a defined DEST name from
  51. Theconfiguration file, (but can also be
  52. Directory namein a pinch ).
  53. -O <dir> use <dir> as the rootdirectory
  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 package (s)
  61. -- Force-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 cocould be something like 'pkgname * ''' * file * 'or similar
  77. E.g. opkg info 'libstd * 'or opkg search' * libop *' or opkg remove 'libncur *'
  78. [Email protected]:/tmp/opkg-lists #


 

If you want to install a software package but do not know the specific name, you can use the command to obtain the software package name (opkg list | grep software name) and then install it. For example, if you want to install TFTP

 

[Plain]View plaincopy
  1. [Email protected]:/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 ininitialized 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 nodes des:-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


 

Through the above command, I found the name of the desired TFTP server is tftpd-HPA, so that you can use

 

[Plain]View plaincopy
  1. # Opkgdownload tftpd-HPA


 

Download the software package, and then use

 

[Plain]View plaincopy
  1. # Opkginstall tftpd-HPA


 

. You can also directly use

 

[Plain]View plaincopy
  1. # Opkg installtftpd-HPA


 

Will be downloaded first and then automatically installed. Last use

 

[Plain]View plaincopy
  1. # Opkglist-installed | grep tftpd-HPA


 

To check if it is already installed!

 

Page Installation

Go to system> Software

Enter "tftpd" in the filter and click "find package". The following box shows the software packages supported by openwrt. Find the required package and click Install. See

Openwrt Software Installation Method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.