NOTE: If you add an empty file named ssh to the boot directory, ssh will be enabled when you first start your RPi (more info on the official website - section 3 - here). If you do this, you can connect your RPi via ethernet, ssh in (once you have your ip) and skip right to the update step below (step 7). If you do not want to do this, follow the initial setup instructions to connect peripherals below.
- connect rpi3 to monitor via HDMI
- connect internet via cat5
- insert usb for wireless keyboard and mouse (if using)
- plug in rpi3 with sd card installed with Raspbian Stretch or Buster with desktop
- select country & configure Raspbian
- open terminal -->
sudo raspi-config
-->interfacing options --> SSH -->enable (allows ssh connection from MacBook); then navigate to VNC --> enable (allows GUI access) sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install firefox-esr
The latest versions of InstaPy automatically install geckodriver. If running an older InstaPy version (pre-0.6.0), read on:
GeckoDriver releases can be found in: https://github.com/mozilla/geckodriver/releases. The latest ARM release as of 2019-08-16 is v0.23.
wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-arm7hf.tar.gz
tar -xvzf geckodriver-v*
chmod +x geckodriver
sudo cp geckodriver /usr/local/bin/
- Ensure that /usr/local/bin is in your shell PATH.
sudo apt-get install python3-pip
python3 -m pip install --user instapy
sudo reboot
(optional)nano quickstart.py
- Edit quickstart file with your credentials/ add functions you want to use, documentation in the Readme
python3 quickstart.py
pip3 install instapy --upgrade --user
Encountered some errors when trying to run the quickstart.py and ran the next 3 commands (all may not be necessary)
sudo pip3 install future
sudo apt-get install xvfb
sudo pip3 install pyvirtualdisplay
sudo reboot (may not be required, but no harm)
Assuming you've modified quickstart.py to your liking and added your Instagram login to quickstart.py
sudo xvfb-run python quickstart.py
I installed TMUX to help run this headless, so that I can disconnect from the session and have the program continue to run on the rpi3
sudo apt-get install tmux (more info found here: https://github.com/tmux/tmux)