I have a raspberry pi 3 running ubuntu mate, I have tried setting this up 5 or 6 times. I'd really like to try it out so if anyone could give a hand, I'd be much appreciated. I am happy to change os on the pi because I am only using it for this bot. If someone could give me a noobs tutorial on how to do it that would be great.
Ps - not much coding experience
@drewgoudy Make sure to change web driver.Chrome
in the code into web driver.Firefox
... Just as a hint
@timgrossmann thanks for the hint, only thing is I don't know where that is but ill have a look
@drewgoudy It's at instapy/instapy.py
it's one of the first calls in the constructor.
upon doing this, I'm assuming, we need to change all "chromes" to "firefox"
it doesn't seem like you can get FF on the rpi.
Just out of curiosity, why can't you use Chromium instead of Chrome or FF?
@elijahlucian You can, you'll need exaGear then, which isn't free.
Ok but I mean. Why did you say switch it to Firefox as a hint if you need to use the same workaround for both chrome and ff on raspberry pi. Am I missing something?
I have this running on my macbook, but wanted to try it out on the Raspberry Pi3 with Raspbian jessie (v8). I installed ExaGear and followed the instructions here:
https://eltechs.com/run-google-chrome-on-raspberry-pi/
I can start Exagear, but when I attempt to launch Chrome I receive the following;
Corrupt installation. Please reinstall.
License check has failed.
Exiting.
I was directed to this site;
https://docs.eltechs.com/faq/activation-of-exagear-desktop
However, this has not resolved my issue. I've been messaging back and forth with Exagear via their Intercom plugin for 2 weeks with no progress. I've uninstalled the application and tried reinstalling, but results in the same error. I've wiped the sd card and started from scratch, but results in the same error. Exagear is not exactly responsive, it typically takes a day or two to get next steps to troubleshoot. Considering the appwas only $22, it's not all that surprising.
I am posting here since @timgrossmann mentions the need for Exagear. You may want to take his advice and use Firefox. I'm about to go that route unless, anyone has be able to get Chrome to work on Exagear? And has advice on how to get it running?
There is an old version of Chromium that runs naively on RPI.
wget -c --tries=0 --read-timeout=20 https://dl.dropboxusercontent.com/u/87113035/chromium-browser-l10n_45.0.2454.85-0ubuntu0.15.04.1.1181_all.deb
wget -c --tries=0 --read-timeout=20 https://dl.dropboxusercontent.com/u/87113035/chromium-browser_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
wget -c --tries=0 --read-timeout=20 https://dl.dropboxusercontent.com/u/87113035/chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
sudo dpkg -i chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
sudo dpkg -i chromium-browser-l10n_45.0.2454.85-0ubuntu0.15.04.1.1181_all.deb chromium-browser_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
I've used this to use my RPI as a Google Cloud Print Server. It might work for InstaPy?
@gitpatrickhub Any luck getting this to work?
@andrewjburnett ExaGear was of zero help, they actually stopped responding to my chats and email inquiries. I ended up taking Tim's advice and switched to Firefox instead of Chrome. After making the change I was able to get the program to run on the rpi3.
@gitpatrickhub If it's not too much trouble can you give me a general walkthrough of what you did to get it all set up? Which dependencies were necessary, etc. I have a Raspberry Pi coming in the mail, but I have little experience outside of a standard python dev environment on a Mac.
@andrewjburnett I'll do my best. I started off using a monitor, wireless keyboard and mouse, but configured to move to headless with ssh and tightvnc.
1) connect rpi3 to monitor via HDMI
2) connect internet via cat5
3) insert usb for wireless keyboard and mouse
4) plug in rpi3 with sd card preloaded with NOOBs
5) select country & install Raspbian
6) open terminal --> sudo raspi-config -->interfacing options --> SSH -->enable (allows ssh connection from MacBook); then navigate to VNC --> enable (allows GUI access)
7) sudo apt-get update && sudo apt-get upgrade
8) mkdir Projects
9) cd Projects
10) git clone https://github.com/timgrossmann/InstaPy.git
11) cd InstaPy
12) sudo pip install . (encountered some errors and resulting 3 commands below (13-15), all may not be necessary)
13) sudo apt-get build-dep python-imaging
14) sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
15) sudo pip install .
16) sudo apt-get install tightvncserver (to view GUI from MacBook)
found the following commands to install Firefox here (17-20); https://www.q4os.org/forum/viewtopic.php?id=912
17) echo 'deb http://q4os.org/qextrepo q4os-rpi-firefox-cn main' | sudo tee /etc/apt/sources.list.d/qextrepo.list
18) wget -nv -O- http://q4os.org/qextrepo/q4a-q4os.gpg.pub | sudo apt-key add -
19) sudo apt-get update
20) sudo apt-get install firefox
21) open instapy.py in a text editor and change the line that states: self.browser = webdriver.Chrome() to webdriver.Firefox()
Encountered some errors when trying to run the quickstart.py and ran the next 3 commands (all may not be necessary)
22) sudo pip install future
23) sudo apt-get install xvfb
24) sudo pip install pyvirtualdisplay
25) 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
26) 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
27) sudo apt-get install tmux (more info found here: https://github.com/tmux/tmux)
Let me know if you need help with ssh or vnc. Hope this helps.
@gitpatrickhub You are awesome!
@timgrossmann just happy to contribute to this project.
Could someone here approve the guide as working?
I could add this to the documentation then.
@timgrossmann I'll be able to confirm as soon as my Raspberry comes in the mail today or tomorrow.
@gitpatrickhub Thank you so much! This is invaluable.
Tried it with an odroid (similar to raspberry pi) and can confirm it works!
@onehtwndr @gitpatrickhub So awesome, thank you for this!
Most helpful comment
Tried it with an odroid (similar to raspberry pi) and can confirm it works!