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
- [Email protected]:/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:
- Packagemanipulation:
- Update update list ofavailable packages
- Upgrade <pkgs> Upgrade a software upgrade packages
- Install <pkgs> install a software install 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 all supported software packages of openwrt list availablepackages
- List-installed list of software packages installed on the local machine
- List-upgradable list of software packages that can be upgraded: 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] displays the package information display all info for <PKG>
- Status [PKG | Regexp] displays the package status display all status for <PKG>
- Download <PKG> download a software package to the current directory 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 [-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:
- 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
- -- Dest <dest_name> package installation, removal, upgrading.
- <Dest_name> shocould be a defined DEST name from
- Theconfiguration file, (but can also be
- Directory namein a pinch ).
- -O <dir> use <dir> as the rootdirectory
- -- 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 *'
- [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
- [Email protected]:/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 ininitialized 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 nodes des:-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
Through the above command, I found the name of the desired TFTP server is tftpd-HPA, so that you can use
[Plain]View plaincopy
- # Opkgdownload tftpd-HPA
Download the software package, and then use
[Plain]View plaincopy
- # Opkginstall tftpd-HPA
. You can also directly use
[Plain]View plaincopy
- # Opkg installtftpd-HPA
Will be downloaded first and then automatically installed. Last use
[Plain]View plaincopy
- # 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