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.
Root @ JACK:/tmp/opkg-lists # opkg -- helpopkg: Unrecognized option '-- help 'opkgmust have one sub-command argumentusage: opkg [Options...] sub-Command [arguments...] wheresub-command is one of: packagemanipulation: Update update list ofavailable packages upgrade <pkgs> Upgrade a software upgrade packages install <pkgs> install a software package (s) configure <pkgs> Configure a software configure unpacked package (s) Remove <pkgs | Regexp> remove software remove package (s) Flag <flag> <pkgs> flag package (s) <flag> = hold | noprune | user | OK | installed | unpacked (one perinvocation) informationalcommands: list list of all supported software packages of openwrt list availablepackages list-installed list of software packages installed on the local machine List Installed packages list-upgradable list of software packages that can be upgraded ist installed and upgradable packages list-changed-conffiles list user modified configuration 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] displays the package information display all info for <PKG> status [PKG | Regexp] displays the package status display all status for <PKG> download download <PKG> to current directory compare-versions <V1> <OP> <V2> compare versionsusing <= >>=<> Print-architecture list installable package ubuntures depends [-A] [pkgname | pat] + whatdepends [-A] [pkgname | pat] + whatdependsrec [-A] [pkgname | pat] + whatrecommends [-] [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: 0 errors only 1 normal messages (default) 2 informative 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 rootdirectory for -- dest <dest_name> package installation, removal, upgrading. <dest_name> shocould 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 package (s) -- force-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 cocould 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 #
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
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
Through the above command, I found the name of the desired TFTP server is tftpd-HPA, so that you can use
#opkgdownload tftpd-hpa
Download the software package, and then use
#opkginstall tftpd-hpa
. You can also directly use
#opkg installtftpd-hpa
Will be downloaded first and then automatically installed. Last use
#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