1 Update Source
Enter/etc/apt/sources.list
sudo vim enters,
Change to the following source
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# Newer versions of the distribution.
Deb Http://cn.archive.ubuntu.com/ubuntu/xenial main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/xenial main restricted
# # Major bug fix updates produced after the final release of the
# # Distribution.
Deb Http://cn.archive.ubuntu.com/ubuntu/xenial-updates main restricted
# deb-src Http://cn.archive.ubuntu.com/ubuntu/xenial-updates main restricted
# # N.B. Software from this repository are entirely unsupported by the Ubuntu
# # Team, and May isn't under a free LIC ence. Satisfy yourself as to
# # Your rights to use the software. Also, please note this software in
# # Universe won't receive any review or updates from the Ubuntu Security
# # TE Am.
Deb Http://cn.archive.ubuntu.com/ubuntu/xenial Universe
# DEB-SRC http://cn.archive.ubuntu.com/ubuntu/ Xenial Universe
Deb Http://cn.archive.ubuntu.com/ubuntu/xenial-updates Universe
# DEB-SRC/http Cn.archive.ubuntu.com/ubuntu/xenial-updates Universe
# # N.B. Software from this repository are entirely unsupported by the Ubuntu
# # Team, and May isn't under a free Li Cence. Satisfy yourself as to
# # Your rights to use the software. Also, please note this software in
# # Multiverse won't receive any review or updates from the Ubuntu
# # Security Team.
Deb Http://cn.archive.ubuntu.com/ubuntu/xenial Multiverse
# DEB-SRC http://cn.archive.ubuntu.com/ubuntu/ Xenial Multiverse
Deb Http://cn.archive.ubuntu.com/ubuntu/xenial-updates Multiverse
# DEB-SRC/http Cn.archive.ubuntu.com/ubuntu/xenial-updates Multiverse
# # N.B. Software from this repository could not have been tested as
# # extensively as that contained in the main Relea SE, although it includes
# # Newer versions of some applications which may provide useful features.
# Also, please note this software in Backports won't receive any review
# # or updates from the Ubuntu security team .
Deb Http://cn.archive.ubuntu.com/ubuntu/xenial-backports main restricted universe Multiverse
# DEB-SRC/http Cn.archive.ubuntu.com/ubuntu/xenial-backports main restricted universe multiverse
Deb Http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src Http://security.ubuntu.com/ubuntu xenial-security main restricted
Deb Http://security.ubuntu.com/ubuntu xenial-security Universe
# DEB-SRC Http://security.ubuntu.com/ubuntu xenial-security Universe
Deb Http://security.ubuntu.com/ubuntu xenial-security Multiverse
# DEB-SRC Http://security.ubuntu.com/ubuntu xenial-security Multiverse
After the source is updated, sudo-apt-get update
2 Installing Chrome
Installing Google Chrome requires only three lines of code:
Open Terminal, enter
Cd/tmp
For Google Chrome32-bit version, use the following link:
wget Https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
For the 64-bit version, you can download it using the following link:
wget Https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
When you are finished downloading, run the following command to install.
sudo dpkg-i google-chrome*; sudo apt-get-f Install
3 download the corresponding browser version of the Chromedriver and copy it to the/usr/bin directory
Ubuntu upload Download:
Http://www.linuxidc.com/Linux/2017-06/145191.htm
1. The first method is most commonly used: If you download the Xshell and xftp,ctrl+alt+f, you can choose to transfer the files! (Virtual machines/Cloud servers are common)--as long as you can ping each other.
2
The second method: Install the Lrzsz in Ubuntu environment, the specific command is---> sudo apt-get install Lrzsz (if the root privilege does not add sudo)
After installation, the specific Operation command is: SZ "file"---> can download the server's files locally,
(1) For example, to download the Urls.txt on Ubuntu to local,
Then I just enter SZ urls.txt return, you can choose which path to download to the local.
(2) For example, to upload a local file to Ubuntu, just enter the RZ command to return the local path window will pop up:
4 Installing PIP
sudo apt-get install Python-pip
5 Installing Virtualenv
Establishing virtual environment with VIRTUALENV py3env
6 Activating a virtual environment
SOURCE Py3env/bin/activate
7 Install the prerequisite Python package in a virtual environment,
Configparser,selenium
Pip Install-r requirements.txt
8 Copy the test code to a code directory
9 Installing Tmux sudo apt-get install Tmux
Ubuntu Configuration test Environment record