Raspberry PI 3 web browser keeps closing on it's own

Red Squirrel

No Lifer
May 24, 2003
69,712
13,334
126
www.betteroff.ca
Pretty much as title. I have two Raspberry PI's to drive the two side monitors and one of them I typically leave a web browser up with stuff that I'm monitoring, hvac control, etc... But it always shuts off on it's own. It used to do it only once a week but now it's multiple times a day. Is there any way to stop it from doing that? There's no title bar in that browser so no way to check version, but when I hover over the icon it's called Epiphany. Not finding much on Google, I don't imagine it's a very well known browser.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,564
4,480
75
Code:
while true ; do epiphany ; done
Crude but effective.
 

Red Squirrel

No Lifer
May 24, 2003
69,712
13,334
126
www.betteroff.ca
Hmm that could actually kinda work, is there a way I can tell it to open specific tabs and to make the window a certain size and at a certain position?

That got me thinking, I may be able to do the same with synergy, though that app works a bit differently as when you type the command it goes back to command prompt, but it's still running in the background. I have this other issue where Synergy randomly dies.
 

Red Squirrel

No Lifer
May 24, 2003
69,712
13,334
126
www.betteroff.ca
Now I'm having an other issue, when I open it, I can't move it manually, it just opens wherever. Can't resize, can't move, can't do anything. At one point it would not even let me switch tabs, I keep having to reboot until this thing works. Is there a way to make this work 100% of the time? Or is there a way to get Firefox on the RPI?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,564
4,480
75
wmctrl can resize windows, if you have it available. But it sounds like your OS is messed up! Maybe you should try reinstalling it first.
 

sn8ke

Member
Sep 19, 2004
102
1
76
Yes of course you can use Firefox or Chromium if you want. Which OS is on there? Firefox ESR should be in the repo. I know both are in the Raspian repos.
Epiphany is deprecated, new versions have been known as Web for a few years https://wiki.gnome.org/Apps/Web/
 

sn8ke

Member
Sep 19, 2004
102
1
76
Tried apt-get install firefox and there was nothing unless there's some 3rd party repo I have to add. OS is Raspbian.
You'll have to specify -ESR, but it's there. I checked before I posted to make sure it's in the main repo.
Code:
~ $ apt search firefox
Sorting... Done
Full Text Search... Done

firefox-esr/stable 45.2.0esr-1~deb8u1 armhf
  Mozilla Firefox web browser - Extended Support Release (ESR)
 
Feb 25, 2011
16,983
1,616
126
We have similar problems with the Pi 2's that run our status screens and the Iceweasel browser.

We set them up to automatically kill/relaunch the browser every couple hours. The status screen is the browser home page, and some javascript in a hidden frame handles the rest.

We messed around with Selenium browser automation for a while, but it was klunky and didn't always work right.