Read the statement by Michael Teeuw here.
midori cant connect to localhost
-
This post is deleted! -
This post is deleted! -
Got it back to work by starting all over.
Here are my* notes/steps:
*)I have gathered all these steps from all the contributers on this site.Start with a fresh Jessie lite image…
sudo apt-get update
sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
sudo apt-get install npm
sudo apt-get install git
cd /home/pi/
git clone https://github.com/MichMich/MagicMirror
cd MagicMirror
sudo npm install (This will take 30+ minutes)
sudo apt-get install midori
sudo apt-get install unclutter
sudo aptitude install xinit
sudo apt-get install matchbox
sudo nano /etc/init.d/startMagicMirror.sh#!/bin/bash ### BEGIN INIT INFO # Provides: startMagicMirror.sh # Short-Description: startMM # Description: starts MM ### END INIT INFO cd /home/pi/MagicMirror node serveronly & sleep 20
sudo xinit /home/pi/startMidori.sh
sudo chmod a+x /etc/init.d/startMagicMirror.sh
sudo update-rc.d startMagicMirror.sh defaults 100
sudo apt-get install x11-xserver-utils
sudo nano /home/pi/startMidori.sh#!/bin/sh xset -dpms # disable DPMS (Energy Star) features. xset s off # disable screen saver xset s noblank # don’t blank the video device matchbox-window-manager & unclutter & midori -e Fullscreen -a http://localhost:8080
sudo chmod a+x /home/pi/startMidori.sh
sudo reboot -
@bbdv did you use Jessie or Stretch for that?
-
@bbdv I had the same problem. Midori has problems with ES6 and the arrow functions. I just deinstalled Midori and installed chromium-browser.
You can rewrite the startMidori.sh
#!/bin/sh unclutter & xset -dpms # disable DPMS (Energy Star) features. xset s off # disable screen saver xset s noblank # don’t blank the video device chromium-browser --no-sandbox --disable-infobars --start-maximized --noerrdialogs --kiosk --incognito http://localhost:8080
If you want you can rename startMidori.sh to startChromium.sh, but don’t forget to rename it in the startMagicMirror.sh too.
My startMagicMirror.sh looks like this:
#! /bin/bash cd ~/MagicMirror node serveronly & sleep 45 sudo xinit /home/pi/startMidori.sh