📖
zhaoqiang
  • Home
  • Python
    • Python Base
      • Grammar
      • Issue
    • Web DEV
      • Html
      • WebFrame
        • Flask
        • Django
      • WebTemplate
    • Web Crawler
  • Linux
    • Navieboom
    • Telegram Bot
      • RSSBot
      • TwitterBot
    • LetsEncrypt
      • ACME Create
      • ACME Install
    • NextCloud
      • NextCloud创建
      • NextCloud性能优化
    • Google
      • Google Drive
        • 离线下载
      • Chromium
    • Synology
      • Docker
        • 清理Docker占用的磁盘空间
      • Youtube-dl
      • 群晖—-外部访问DDNS教程(第一部分)
      • 群晖—-外部访问DDNS教程(第二部分)
      • SpeedTest - Install
      • BestTrace - Install
      • Rclone - Install
      • IPKG - Install
      • LEDE - Install
    • OpenWrt
      • Compile
        • Lean-4.14
        • Lean-4.9
    • LEDE
    • Linux Base
      • Command
      • Cron
  • DynamicsAX
    • Functions
      • Document Services
        • Auto Generate XML From AX
        • Load XML Files On Server
      • Webservice
      • DB Connect
      • DirectSQL
      • Email Alert
      • Auto Items
      • Auto BOM
      • Auto Order
      • Auto Invoice
      • Auto Packing
    • Data Import
      • Initial Static Data
      • initial Dynamic Data
        • Open SO
        • Open PO
        • Opening Balance
    • Access Right
    • Process
    • Instance
      • DYNAMICS 365 FOR OPERATION INSTANCE
  • Other Skills
    • Markdown
    • GIT
      • Command
    • Office365
Powered by GitBook
On this page
  • 创建GCP实例
  • 安装chromium
  • 安装chromedriver
  • 安装xvfb
  • 安装Python3

Was this helpful?

  1. Linux
  2. Google

Chromium

部署某应用所需

创建GCP实例

默认 Debian9 系统,以下代码均在此系统下操作

安装chromium

编辑/etc/apt/sources.list文件并加入下面这句

deb http://dl.google.com/linux/chrome/deb/ stable main

保存并退出后执行

----------------------
$ wget https://dl-ssl.google.com/linux/linux_signing_key.pub
$ sudo apt-key add linux_signing_key.pub
$ sudo apt-get update
$ sudo apt-get install google-chrome-stable
----------------------

安装Chromium

sudo apt-get update 
sudo apt-get install chromium chromium-l10n

安装chromedriver

下载chromedriver

wget http://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip
sudo apt-get install unzip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver

安装xvfb

sudo apt-get install xvfb

安装Python3

安装make

apt-get install gcc automake autoconf libtool make

安装python

在我们安装任何软件之前,通过在终端中运行以下apt-get命令来确保您的系统是最新的非常重要:

apt-get update
apt-get upgrade

使用python官方站点的以下命令下载Python

cd /usr/src
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
sudo tar xzf Python-3.7.2.tgz

接下来,在您的系统上编译python源代码

cd Python-3.7.2
sudo ./configure --enable-optimizations
sudo make altinstall

完成该过程后,请检查Python 3的版本

python3.7 -V

安装pip3

下载get-pip.py文件

wget https://bootstrap.pypa.io/get-pip.py
python3  get-pip.py  //安装pip3
python  get-pip.py   //安装pip2

安装Selenium

pip3 install selenium

执行

PYTHONIOENCODING=utf-8 python3 Panda-Learning-2.5/'Source Packages'/pandalearning.py 13482308316

Previous离线下载NextSynology

Last updated 6 years ago

Was this helpful?

根据chrome浏览器的版本对应下载driver驱动的版本: 下载地址:

http://chromedriver.storage.googleapis.com/index.html