Ubuntu12.04 Software Installation Manual

Source: Internet
Author: User
Tags ftp ftp site gpg pack unpack git clone opennms linux mint

Update upgrade source

First, edit the software source and enter the following command on the terminal:

Sudo gedit/etc/apt/sources. list

The rapid upgrade sources include 163, Taiwan, Keda yuan, and Sohu Source. All the new upgrade sources will overwrite the contents of the original file sources. list and save and exit. Run the following command to upgrade the software source:

Sudo apt-get update

Tip: back up the sources. list file to avoid unexpected errors in the future.

Sudo cp/etc/apt/sources. list/etc/apt/sources. list.201501bk

Ubuntu is the latest version, which does not mean that the software installed on the system is the latest version. Use the following command to upgrade the software version:

Sudo apt-get update or sudo apt-get upgrade

Dictionary installation

Linux does not lack dictionary software, but does not have a dictionary. All dictionary software must download and install the dictionary. 1. Search for the stardict installation dictionary in the Ubuntu Software Center (you can also search for stardict3) 2. Find the installed stardict3 and stardict3 in the attachment under the application) cd to the downloaded folder first. 2) decompress the file.

Sudo tar-xjvf stardict-oxford-gb-2.4.2.tar.bz2

3) move the decompressed folder to the/usr/share/stardict/dic/folder (which can be created by yourself).

Sudo mv stardict-oxford-gb-2.4.2/usr/share/stardict/dic/

In the dictionary management of stardict, we can see the added dictionary, and then we can query words on the interstellar translation King.

Install iptux

In Ubuntu, there is a software in the source: iptux. The Chinese name is Messenger. It is compatible with tools such as Flying Pigeon books and flying autumn in Windows to send information and files. 1. Install. On the terminal, enter the following command:

Sudo

Apt-get install

Iptux

Note: this command is used to install iptux. The complete path after installation is/usr/bin/iptux2. Run the command. In the terminal, enter iptux3 and create a connection. In the terminal, enter the following command:

Sudo ln-s/usr/bin/iptux ~ /Desktop/iptux. ln

Note: this command creates a soft connection on the current user's desktop, which is equivalent to a shortcut. Double-click it to run

Install the desktop environment

If you like GNOME 3 desktop environment, you can install gnome 3 through the software center or the following command:

Sudo apt-get install gnome-shell

After the installation is complete, log out and select "GNOME Shell" to log on. If you like the KDE interface, you can download the Kubuntu version. If you like the lxde desktop environment, download the Lubuntu version. Of course, we can install it in the Unity environment. Install the KDE desktop environment:

Sudo apt-get install kubuntu-desktop

Install System Tools

Ubuntu tweak, Ailurus PandaTV, Linux Deepin Software Center:

Ubuntu tweak:

Stable version:

Sudo add-apt-repository ppa: tualatrix/ppa

Sudo apt-get update

Sudo apt-get install ubuntu-tweak

Test version:

Sudo add-apt-repository ppa: ubuntu-tweak-testing/ppa

Sudo apt-get update

Sudo apt-get install ubuntu-tweak

Ailurus PandaTV:

PPA installation:

Sudo add-apt-repository ppa: ailurus

Sudo apt-get update

Sudo apt-get install ailurus

You can also download the code and installation package from here: http://code.google.com/p/ailurus/downloads/list

To install Ailurus-Tweaker on Ubuntu/Linux Mint (Press Ctrl + Alt + T) and copy the following commands in the Terminal:

Terminal Commands:

Wget http://dl.dropbox.com/u/53319850/ailurus_tweaker.deb

Sudo dpkg-I ailurus_tweaker.deb; rm ailurus_tweaker.deb

Linux Deepin Software Center

The Linux Deepin team has switched to the software management software developed by Linux Deepin. You can easily install, upgrade, and uninstall the software with one click. However, image loading may occur during non-Linux Deepin installation, but it will not affect our use.

Installation:

Install aria2 in Ubuntu:

Sudo apt-get install aria2

Run the following command:

Sudo apt-get install git-core

Git clone git: // github.com/manateelazycat/deepin-software-center.git

Switch to the src/directory and execute the main file.

Install internet tools

IM tool:

Empathy is installed in Ubuntu 11.10 by default. If you like Pidgin:

Sudo apt-get install pidgin

Web browser:

Google chrome, chromuim, opera and other browsers are also good browsers

Install the decompression tool

Sudo apt-get install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack lha arj cabextract

Install learning tools

Screenshot tool: shutter (screenshot, watermark, special effect, etc.); gthumb (resize, crop, and other functions)

Shutter installation command:

Sudo apt-get install shutter

Gthumb installation command:

Sudo apt-get install gthumb

Ubuntu screenshot tool: gnome-screenshot

Pdf annotation tool:

Sudo apt-get install xournal

PDF editor

Ubuntu can open the PDF document by default. This is mainly because a software Evince is installed by default when Ubuntu is installed. But sometimes Evince cannot complete this function when you need to fill in the form provided in PDF. Because this function is dedicated to Adobe. You can download AdobeReader from the Ubuntu Software Center.

For editing PDF documents, you can install the software editor for editing PDF documents. Run the following command on the terminal:

Sudo apt-get install pdfedit

Then you can find the editor on the Dash homepage> application> graph.

Added support for certain Chinese characters (such as china-pub) and Fixed garbled characters in the pdf file in ubuntu:

Sudo apt-get install poppler-data

Mini text editor:

Install Scribes using PPA:

Add-apt-repository ppa: mystilleef/scribes-daily

Sudo apt-get update

Sudo apt-get install scribes

Image processing:

GIMP, by default, is a powerful open-source image editing program. Its interface is quite lightweight, but its function is not inferior to professional graphics software. It is very popular among Linux enthusiasts. However, if users are looking for a simpler alternative, Pinta is a better choice for daily applications that are more intuitive and suitable for daily use. If you want to edit a vector image, Inkscape is incredibly powerful but easy to use. If you are more about 3D plotting, do not miss Blender. It supports 3D modeling, texture, animation, and many other functions.

Text editor:

Vim or Emacs are both excellent editors. Of course, users who do not like the public taste can also choose Scite, Leafpad, or Geany. You can also add some plug-ins for GEdit to provide the GNOME text editor function. If you just want to make a simple edit, you can try to use PyRoom. If you are working on a reduced price or reorganized text, you may want to try ReText.

Efficiency management tools:

The popular note Tomboy is no longer provided by default in Ubuntu 12.04, but it is easy for users to download and install it in the Software Center. The system will still provide users with great options. For example, Zim also supports Wikipedia like Tomboy, but provides a more complex system. GTG, a Ubuntu Notes application with a to-do list and support of the "time management" methodology, is also outstanding.

Installation input method

1. Install the simplified Chinese language pack

Fcitx home: http://code.google.com/p/fcitx/

For how to install ibus-google pinyin and fcitx-googlepinyin, see: http://code.google.com/p/libgooglepinyin/wiki/INSTALL#ibus-googlepinyin

Ibus-googlepinyin

The ibus wrapper

To compile and install ibus-googlepinyin, you can run:

Hg clone http://code.google.com/p/libgooglepinyin.ibus-wrapper/ ibus-googlepinyin

Cd ibus-googlepinyin

Mkdir build; cd build

Cmake...-DCMAKE_INSTALL_PREFIX =/usr

Make

Sudo make install

2. Install the IBus framework

Enter the following command on the terminal:

Sudo apt-get install ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4

3. Start the IBus framework

Enter at the terminal:

Im-switch-s ibus

4. Log out of the system

Log out of the system after the IBus framework is installed to ensure that the changes take effect immediately.

Install Wine

Wine is an excellent simulator software on the Linux system platform. It is used to stably run Windows software on Linux. The software is updated frequently and is improved daily, it can run many software in large Windows systems.

Sudo apt-get install wine

Version management tool: svn

Configuration editor: install gconf-editor

Build a java environment in Ubuntu

Install sun-java6

Method 1:

Run this script:

#/Bin/sh

Sudo add-apt-repository ppa: webupd8team/java

Sudo apt-get update

Sudo apt-get install oracle-java6-installer

(Sun-java6-jre, sun-java6-plugin, sun-java6-fonts is provided by the software package oracle-java6-installer virtual software packages, so the installation of oracle-java6-installer can be.

Java has two types, one is Ubuntu source with open-java (icedtea), Ubuntu default Java, General update after the system comes with; the second is the sun-java6 of Oracle.

Method 2:

1. Add a partner source

Sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"

If the system prompts that the add-apt-repository command is not available, install python-software-properties first and run the following command:

Sudo apt-get install python-software-properties

In addition, some versions of ubuntu do not have the add-apt-repository command even if python-software-properties is installed. You need to manually add the following code to/etc/apt/sources. list file.

Deb http://archive.canonical.com/ubuntu maverick partner

2. Update the system

Sudo apt-get update

3. Install jre

Sudo apt-get install sun-java6-jre sun-java6-plugin

4. Install jdk

Sudo apt-get install sun-java6-jdk sun-java6-plugin

5. View version information

Java-version

6. Set the default Java

Sudo update-alternatives -- config java

Select.

Method 3:

In addition, you can install the common bin package on Linux, download the official bin package, install and unzip the package under the terminal, and modify the environment variable to point to the jdk.

1. Set the environment variables, modify. bashrc or. profile, and refer to the decompressed path of your system.

Export JAVA_HOME =/home/user/jdk1.6.0 _ 21/

Export PATH = $ JAVA_HOME/bin: $ PATH

Export classPath =/home/user/jdk1.6.0 _ 21/

2. Run the following command to view the java version:

Java-version

Output:

Java version "1.6.0 _ 21"

Java (TM) SE Runtime Environment (build 1.6.0 _ 21-b06)

Java HotSpot (TM) Server VM (build 17.0-f8, mixed mode)

Method 4:

Install How to sun-java5-jdk:

1. Add the following line to/etc/apt/sources. list:

Deb http://debian.opennms.org/stable main

2. Install GPG key of the repository:

Wget-O-http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add-

3. Update the package index:

Sudo apt-get update

4. Install sun-java5-jdk deb package:

Sudo apt-get install sun-java5-jdk

Appendix:

Apt usage

If a software dependency is too complex, using "dpkg" to install it is not a wise choice. At this time, you need to use the APT software package management system. APT can automatically check the dependency, obtain the related software package through your preset method, and automatically install and configure it. In fact, we recommend that you use the APT software package management system in most cases.

APT systems need a software information database and at least a software warehouse that stores a large number of deb packages. We call it a "source ". The "source" can be a network server, a CD installation, or a local software repository. Modify the "/etc/apt/sources. list" file so that the APT system can connect to the "source ". Apt-get update: update software list

 

Apt-get install new software package

Apt-get-f install

Apt-get remove uninstall installed software packages (keep the configuration document)

Apt-get-purge remove uninstall installed software packages (delete configuration documents)

Apt-get clean cleans up the system and does not affect the use of installed software.

Apt-get upgrade Update any installed software packages

Apt-get dist-upgrade: upgrade the system to the new version.

Apt-cache search software package

 

Apt-get-f install is basically used when the software has not met the requirements since it was installed. Force installation means to fix dependency errors. The system downloads software packages that cause dependency nonconformities, such as software after version changes or software uninstalled, other things will be forcibly installed when you install the current software.

Note:

APT systems mainly include "apt-get" and "apt-cache" commands. They are usually Composite Commands and contain several sub-commands:

 

Apt-get install xxx
-D: download only
-F force installation
Apt-get remove xxx uninstall xxx
Apt-get updates and updates the software Information Database
Apt-get upgrade for system upgrade
Apt-cache search software package

 

Tips: We recommend that you use the "apt-get update" command frequently to update your software information database.

Dpkg usage

1) install software

Command line: dpkg-I <. deb file name>

Example: dpkg-I avg71flm_r28-1_i386.deb

2) install all the software packages under a directory

Command line: dpkg-R

Example: dpkg-R/usr/local/src

3) release the software package, but do not configure it.

Command line: dpkg -- unpack package_file if used with-R, the parameter can be a directory

Example: dpkg -- unpack avg71flm_r28-1_i386.deb

4) reconfigure and release the software package

Command line: dpkg-configure package_file

If used with-a, all software packages that are not configured will be configured.

Example: dpkg-configure avg71flm_r28-1_i386.deb

5) delete a software package (retain its configuration information)

Command line: dpkg-r

Example: dpkg-r avg71flm

6) information about the replacement software package

Command line: dpkg-update-avail

7) merge the software package information

Dpkg-merge-avail

8) read the software information from the software package

Command line: dpkg-A package_file

9) delete a package (including configuration information)

Command line: dpkg-P

10) information about all Uninstall software packages is lost.

Command line: dpkg-forget-old-unavail

11) delete the Avaliable information of the software package.

Command line: dpkg-clear-avail

12) find information about only some installed software packages.

Command line: dpkg-C

13) compare the differences between different versions of the same package

Command line: dpkg-compare-versions ver1 op ver2

14) display help information

Command line: dpkg-help

15) display the Licence of dpkg

Command line: dpkg-licence (or) dpkg-license

16) displays the dpkg version number.

Command line: dpkg -- version

17) create a deb file

Command line: dpkg-B directory [filename]

18) display the directory of a Deb file

Command line: dpkg-c filename

19) display Deb description

Command line: dpkg-I filename [control-file]

20) search for the Deb package

Command line: dpkg-l package-name-pattern

Example: dpkg-I vim

21) display all installed Deb packages and the version number and brief description.

Command line: dpkg-l

22) report the status information of the specified package

Command line: dpkg-s package-name

Example: dpkg-s ssh

23) displays the file directory information of a package installed in the system.

Command line: dpkg-L package-Name

Example: dpkg-L apache2

24) search for objects in a specified package (fuzzy search)

Command line: dpkg-S filename-search-pattern

25) display package details

Command line: dpkg-p package-name

Example: dpkg-p cacti

Note:

In Linux systems, software is usually provided in the form of source code or pre-compiled packages. The software source code must be compiled into binary machine code by yourself. Installation is time-consuming. However, you can adjust the compilation options to determine the required functions or components, or optimize your hardware platform. Pre-compiled software packages are usually compiled by the software publisher. You only need to copy the software to the system. Considering the applicability of the pre-compiled software package, the pre-compiled software package is usually not optimized for a certain hardware platform. Its functions and components are also common combinations.

Pre-compiled package

In Ubuntu, software is usually released as package files in the "deb" format. It is a pre-compiled software package. In addition to the compiled software, it usually includes the copy path of the software, the dependency record of other software packages, a common configuration file, and the description, version, author, category, and occupied space of the software.

The commands of the deb software package follow the following conventions:

Soft_ver-rev_arch.deb

Soft indicates the software package name, ver indicates the software version number, rev indicates the Ubuntu version number, and arch indicates the target architecture name. Example: azureus_2.4.0.2-0ubuntu2_all.deb

If ubuntu wants to install new software, the deb installation package (for example, iptux. deb) already exists, but cannot log on to the desktop environment. How can I install it? The answer is: run the dpkg command.

Run the "dpkg" command to manage the deb software package:

 

Dpkg-I | -- install xxx. deb install deb software package
Dpkg-r | -- remove xxx. deb delete a software package
Dpkg-r-P | -- purge xxx. deb is deleted along with the configuration file

Dpkg-c iptux. deb view the file structure contained in the iptux. deb software package

Dpkg-s iptux view iptux package details
Dpkg-I |-info xxx. deb view package information
Dpkg-L xxx. deb view copy details
Dpkg-l view information about installed software packages in the system
Dpkg-reconfigure xxx software package reconfiguration

 

Sometimes, if you use "dpkg" to install a software package, the system prompts you that the software package depends on other software packages. Then, install other software packages until the dependencies are met. Or install multiple software packages at the same time:

Dpkg-I aaa. deb bbb. deb ccc. deb

Note: The dpkg command cannot automatically resolve the dependency. If the deb package to be installed has a dependency package, do not use this command or install the dependency package in the order of dependency.

Source code package

For the vast majority of software, it is recommended to use the APT system to install it. However, some software is not released in the deb package format, or you need to customize the software that suits you and install it by compiling the source code.

First, you need to download the software's source code package and unpack it as some source code files. We recommend that you move the downloaded source code package to the "/usr/local/src/" directory and unpack it here.

Sudo mv xxx.tar.gz/usr/local/src
Cd/usr/local/src
Sudo tar-xzvf xxx.tar.gz
Cd xxx_ver/

In the source code directory, there is usually a "configure" script used to configure the upcoming compilation process. You can execute it:

Sudo./configure [-- prefix =/usr/loca/xxx ......]

It automatically detects the compiling environment and dependency of the software and generates a "Makefile" file.

You can use the command "./configure -- help" with parameters, or read the "INSTALL" file to view the parameters allowed by the script. For example, use the "-- prefix =/usr/local/xxx" parameter to set the installation directory of the software to "/usr/local/xxx /". (If you must install the software in a directory, we recommend that you install it here)

Now, run the "make" command, and the system will call the compiler and required resource files through the "make" tool according to the settings in the "Makefile" file to compile the source code file into the target file.

Sudo make

Run the "make install" command. The "make" tool automatically connects to the target file and copies the final generated file to the path set in the "Makefile" file, and complete the activity of modifying the properties of the file and deleting the residual files.

Sudo make install

Now, your compilation and installation are complete. To make it easier to use, you need to provide a symbolic link to the executable file of the program.

Sudo ln-sf/usr/local/xxx/exe/usr/local/bin/exe

Tar.gz, tar, bz2, zip, and other decompression and compression commands

In linux, tar gz bz2 tgz restart ends. After the tar package is generated, you can use other programs to compress it. So let's first talk about the basic usage of the tar command:

There are many options for the tar command (which can be viewed using man tar), but there are several commonly used options. The following is an example:

 

Tar-cf all.tar *. jpg # pack all. jpg files into a package named all.tar. -C indicates that a new package is generated.-f specifies the package file name.

Tar-rf all.tar *. gif # Add all .gif files to the package of all.tar. -R indicates adding files.

Tar-uf all.tar logo.gif # Update the logo.gif file in tarpack all.tar.tar.-u indicates the meaning of the update file.

Tar-tf all.tar # List all files in the all.tar package.-t indicates listing files.

Tar-xf all.tar # extract all the files in the all.tar package.-x is used to unlock the files.

 

The above is the most basic usage of tar.

To help you compress or decompress files while packing and unpackage, tar provides a special feature. This means that tar can call other pressures while packaging or unpacking.

Program shrinking, such as calling gzip and bzip2.

1) tar calls gzip

Gzipis a program developed by gnuorganization. The file ending with .gz is the result of gzip compression. The decompress program relative to gzip is gunzip. Use the-z parameter in tar to call gzip.

Tar-czf all.tar.gz *. jpg # Images

Tar-xzf all.tar.gz # unpack the above package

2) tar call bzip2

Bzip2is a more powerful compression program. The file ending with .bz2 is the result of bzip2 compression. The decompress program relative to bzip2 is bunzip2. Use the-j parameter in tar to call bzip.

Tar-cjf all.tar.bz2 *. jpg # Images

Tar-xjf all.tar.bz2 # unpack the generated package.

3) tar call compress

Compress is also a compression program, but it seems that there are not as many people using compress as gzip and bzip2 .. The file ending with Z is the compress compression result. The decompress program relative to compress is uncompress. Use the-Z parameter in tar to call compress.

Tar-cZf all.tar. Z *. jpg # assets. Z

Tar-xZf all.tar. Z # unpack the package generated above

With the above knowledge, you should be able to uncompress a variety of compressed files. The following is a summary of the compressed files in the tar series:

1st pair of files ending with .tar

Tar-xf all.tar

2xx for the file ending with .gz

Gzip-d all.gz

Gunzip all.gz

32.16.tgzor .tar.gz

Tar-xzf all.tar.gz

Tar-xzf all. tgz

4)for the file ending with .bz2

Bzip2-d all.bz2

Bunzip2 all.bz2

5 bytes for the file ending with tar.bz2

Tar-xjf all.tar.bz2

6) for files ending with. Z

Uncompress all. Z

72.16.tar. Z

Tar-xZf all.tar. z

In addition, Linux has corresponding methods to decompress the compressed files .zipand .rar in Windows:

1)for. Zip

Linux provides zip and unzip programs, zip is a compression program, and unzip is a decompression program. They have many parameter options. Here is a brief introduction:

Zip all.zip *. jpg # compress all .jpg files into a zip package

Unzip all.zip # decompress all files in all.zip

2xx vs. .rar

To process the. RAR file in linux, you need to install RAR for Linux. You can download the file from the Internet, but remember that RAR for Linux is not free. You can download rarfor Linux 3.2.0 from http://www.rarsoft.com/download.htmand install it:

Tar-xzpvf rarlinux-3.2.0.tar.gz

Cd rar

Make

After installation, there will be two programs, rar and unrar. rar is a compression program, and unrar is a decompression program. They have many parameter options. Here is a brief introduction:

Rar a all *. jpg # compress all. jpg files into a rarpackage named all.rar. this program will automatically append the. rar extension name to the package name

Unrar e all.rar # decompress all files in all.rar

So far, we have introduced tar, gzip, gunzip, bzip2, bunzip2, compress zookeeper .gz#.tar.gz#.tgz#.bz22.16.tar.bz2, in linux ,. z2.16.tar.z2.16.zip2.16.rar these 10 types of compressed files have been decompressed, the above method is also basically effective for Unix.

Supplement:

Tar

-C: Create a compressed file

-X: extract

-T: View content

-R: append an object to the end of the compressed archive object

-U: update files in the original compressed package

These five are independent commands, one of which must be used for compression and decompression. They can be used with other commands, but only one of them can be used. The following parameters are optional when files are compressed or decompressed as needed.

-Z: With the gzip attribute

-J: With the bz2 attribute

-Z: With the compress attribute

-V: displays all processes.

-O: unbind the file to the standard output

The following parameter-f is required

-F: use the file name. Remember, this parameter is the last parameter and can only be followed by the file name.

Wget

Wget is a free tool for automatically downloading files from the network. It supports downloading through HTTP, HTTPS, and FTP, and can use HTTP proxy. Wget names come from the combination of "World Wide Web" and "get. Wget is an open-source software developed in Linux, written by Hrvoje Niksic, and subsequently transplanted to various platforms including Windows. It has the following functions and features:

Resumable download is supported. This is also the biggest selling point of network Ant Financial and FlashGet in the past. Now, Wget can also use this function. Users who are not good at the network can rest assured;

FTP and HTTP download modes are supported at the same time. Although most software can be downloaded through HTTP, you still need to download the software through FTP in some cases;

Supports proxy servers. For systems with high security, it generally does not expose its own systems to the internet. Therefore, supporting proxy is a required function for downloading software;

Easy to set; users who are familiar with the graphic interface are not too familiar with command line, but the command line has more advantages in setting;

The program is small and free of charge;

Although wget is powerful, it is relatively simple to use. The basic syntax is:

Wget [parameter list] URL

The following uses a specific example to describe how to use wget:

1. Download the entire http or ftp site

Wget http://place.your.url/here

This command can download the first page of http://place.your.url/here. Using-x will force the creation of identical directories on the server. If The-nd parameter is used, all downloaded content on the server will be added to the local directory.

Wget-r http://place.your.url/here

This command uses recursive methods to download all directories and files on the server. The essence is to download the entire website. This command must be used with caution, because during Download, all the addresses pointed to by the downloaded website will also be downloaded. Therefore, if this website references other websites, the referenced website will also be downloaded! For this reason, this parameter is not commonly used. You can use the-l number parameter to specify the download level. For example, to download only two layers, use-l 2.

If you want to create an image site, you can use the-m parameter, for example:

Wget-m http://place.your.url/here

At this time, wget will automatically determine the appropriate parameters to create an image site. Then, wgetwill be uploaded to the server and read to robots.txtand executed according to robots.txt.

2. Resumable Upload

When the file size is very large or the network speed is very slow, the connection is often cut off before the file is downloaded. In this case, resumable data transfer is required. The resumable Upload of wget is automatic. You only need to use the-c parameter, for example:

Http://the.url.of/incomplete/file wget-c

Resumable data transfer requires the server to support resumable data transfer. The-t parameter indicates the number of retries. For example, if you need to retry 100 times, write-t 100. If it is set to-t 0, it indicates an infinite number of retries until the connection is successful. The-T parameter indicates the timeout wait time, for example,-T 120, indicating that a timeout occurs even if the connection fails for 120 seconds.

3. Batch download

If multiple files are downloaded, you can generate a file, write the URL of each file in a line, such as the generated file download.txt, and then run the following command:

Wget-I download.txt

This will download all the URLs listed in download.txt. (If the column is a file, download the file. If the column is a website, download the homepage)

4. Selective download

You can specify that wget only downloads one type of files, or does not download any files. For example:

Wget-m-reject = gif http://target.web.site/subdirectory

Download http://target.web.site/subdirectory, but the GIF file is omitted. -Accept = LIST acceptable file types,-reject = LIST reject accepted file types.

5. Password and authentication

Wget can only process websites restricted by user name/Password. Two parameters can be used:

-Http-user = USER: Set the HTTP user

-Http-passwd = PASS: Set the HTTP password

Websites that require certificate authentication can only use other download tools, such as curl.

6. Use the proxy server for download

If your network needs to go through the proxy server, you can have wget download files through the proxy server. Create a. wgetrc file in the current user's directory. You can set the proxy server in the file:

Http-proxy = 111.111.111.111: 8080

Ftp-proxy = 111.111.111.111: 8080

Indicates the http proxy server and the ftp proxy server respectively. If the proxy server requires a password, use the following parameters:

-Proxy-user = USER: sets the proxy user.

-Proxy-passwd = PASS: sets the proxy password.

Use the-proxy = on/off parameter to use or disable the proxy.

Related Article

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.