- connect rpi3 to monitor via HDMI
- connect internet via cat5
- insert usb for wireless keyboard and mouse
- plug in rpi3 with sd card preloaded with NOOBs
- select country & install 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 && sudo apt-get upgrade
- mkdir Projects
- cd Projects
- git clone https://github.com/timgrossmann/InstaPy.git
- cd InstaPy
- sudo pip install . (encountered some errors and resulting 3 commands below (13-15), all may not be necessary)
- sudo apt-get build-dep python-imaging
- sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
- sudo pip install .
- sudo apt-get install tightvncserver (to view GUI from MacBook)
Remove any versions of Firefox as it will conflict with the correct one installed below:
- sudo apt-get remove firefox-esr
- sudo apt-get remove iceweasel
- sudo apt-get remove firefox
found the following commands to install Firefox here; https://www.q4os.org/forum/viewtopic.php?id=912
- echo 'deb http://q4os.org/qextrepo q4os-rpi-firefox-cn main' | sudo tee /etc/apt/sources.list.d/qextrepo.list
- wget -nv -O- http://q4os.org/qextrepo/q4a-q4os.gpg.pub | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install firefox
Update GeckoDriver if needed. Instructions at the end of this document.
Encountered some errors when trying to run the quickstart.py and ran the next 3 commands (all may not be necessary)
- sudo pip install future
- sudo apt-get install xvfb
- sudo pip 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 instapy.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)
-
follow the example seen in
examples\firefoxExample.py
to set the default browser as Firefox
New releases can be found in https://github.com/mozilla/geckodriver/releases
- wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-arm7hf.tar.gz
- tar -xvzf geckodriver-v*
- chmod +x geckodriver
- sudo cp geckodriver /usr/local/bin/