Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
100 lines (80 sloc) 5.83 KB

📌 index / 📷 igbot / 💾 installation / 🦀 raspberry pi

🦀 Setup - Raspbian 9

1. Install chromium v69 or never

Run sudo apt-get install chromium-browser

2. Install Node v10

  1. curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
  2. sudo bash nodesource_setup.sh
  3. rm nodesource_setup.sh
  4. sudo apt-get install nodejs npm

INFO: some people have encountered problems with node 10.x, try downgrade to 8.x if not work.

4. Run

  1. Download latest bot version and extract it.
  2. Run export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 or env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
  3. Run npm install in socialmanagertools-igbot-master folder.
  4. Get config.js remove .tpl suffix and insert file into configs folder, fill it properly.
  5. Edit configs/config.js and set chrome_executable_path to /usr/bin/chromium-browser in puppeteer section.
  6. Start the bot via npm run start
  7. If it works add a star 🌟 at this project.
  8. If you want to help me: donate on paypal/ko-fi or become a backer on patreon.

5. You don't have monitor?

  • Edit configs/config.js and set chrome_headless to enabled (or to true in v0.9.X version), is mandatory.

6. Install correct puppeteer module

If bot wont work or chrome/chromium crashes try to install a correct version of puppeteer library.

  • If you use chrome/chromium v68 run npm install puppeteer@1.4.0
  • If you use chrome/chromium v69 run npm install puppeteer@1.6.2
  • If you use chrome/chromium v70 run npm install puppeteer@1.7.0
  • If you use chrome/chromium v71 run npm install puppeteer@1.9.0
  • If you use chrome/chromium v72 run npm install puppeteer@1.11.0
  • If you use chrome/chromium v73 run npm install puppeteer@1.12.2
  • If you use chrome/chromium v74 run npm install puppeteer@1.13.0

See other version here.

🦞 Setup - Raspbian 8

1. Install chromium v60

Run sudo apt-get install chromium-browser

2. Install Node v10

  1. curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
  2. sudo bash nodesource_setup.sh
  3. rm nodesource_setup.sh
  4. sudo apt-get install nodejs npm

3. Update chromium v60 to v69

wget https://launchpad.net/~chromium-team/+archive/ubuntu/stable/+build/15466406/+files/chromium-codecs-ffmpeg-extra_69.0.3497.100-0ubuntu0.16.04.1_armhf.deb
wget https://launchpad.net/~chromium-team/+archive/ubuntu/stable/+build/15466406/+files/chromium-codecs-ffmpeg_69.0.3497.100-0ubuntu0.16.04.1_armhf.deb
wget https://launchpad.net/~chromium-team/+archive/ubuntu/stable/+build/15466406/+files/chromium-browser_69.0.3497.100-0ubuntu0.16.04.1_armhf.deb

sudo dpkg -i chromium-codecs-ffmpeg-extra_69.0.3497.100-0ubuntu0.16.04.1_armhf.deb
sudo dpkg -i chromium-codecs-ffmpeg_69.0.3497.100-0ubuntu0.16.04.1_armhf.deb
sudo dpkg -i chromium-browser_69.0.3497.100-0ubuntu0.16.04.1_armhf.deb
sudo apt-get install -f

4. If you have problem with libc dependieces you need update raspbian to testing:

  • Edit sudo vi /etc/apt/source.list and switch stretch to testing
  • Run sudo apt-get update && sudo apt-get dist-upgrade

5. Run

  1. Download latest bot version and extract it.
  2. Run export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 or env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
  3. Run npm install in socialmanagertools-igbot-master folder.
  4. Get config.js remove .tpl suffix and insert file into configs folder, fill it properly.
  5. Edit configs/config.js and set chrome_executable_path to /usr/bin/chromium-browser in puppeteer section.
  6. Start the bot via npm run start
  7. If it works add a star 🌟 at this project.
  8. If you want to help me: donate on paypal/ko-fi or become a backer on patreon.

6. You don't have monitor?

  • Edit config.js and set chrome_headless to enabled (or to true in v0.9.X version), is mandatory.

7. Install correct puppeteer module

If bot not work or chrome/chromium crash try install correct version of puppeteer library.

  • If you use chrome/chromium v68 run npm install puppeteer@1.4.0
  • If you use chrome/chromium v69 run npm install puppeteer@1.6.2
  • If you use chrome/chromium v70 run npm install puppeteer@1.7.0
  • If you use chrome/chromium v71 run npm install puppeteer@1.9.0
  • If you use chrome/chromium v72 run npm install puppeteer@1.11.0
  • If you use chrome/chromium v73 run npm install puppeteer@1.12.2
  • If you use chrome/chromium v74 run npm install puppeteer@1.13.0

See other version here.

🎁 Support: Donate

💫 License

  • Documentation and Contributions have CC BY 4.0 License
  • Images and Logos have CC BY-NC 4.0 License
  • Code Snippets/Examples have MIT License
Copyleft (c) 2018-2019 Patryk Rzucidło (@PTKDev) <support@ptkdev.io>
You can’t perform that action at this time.