Raspberry Kiosk: Start networking before browser fires up

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Raspberry Kiosk: Start networking before browser fires up

Postby keesie » Sat Mar 05, 2016 10:15 pm

Context:
I'm trying to setup a kiosk system for a museum on a Raspberry Pi2 (Broadcomm )

The system was built upon ArchArm distribution

I installed a python browser called "wcgbrowser". https://aur.archlinux.org/packages/wcgbrowser-git/
This browser seems to be solely developed for use in kiosk-environments.

I left out any window manager with the purpose to use as low system-resources as possible. I only installed Xorg.

The wcgbrowser is fired from the last line within the .xinitrc file located in the home directory of the default raspberry user "alarmpi".
$this->bbcode_second_pass_code('', 'python browser.py -l http://www.example.com -fullscreen')

Furthermore I have to take into accout, that the kiosk system has to use a wireless dongle. Networking therefore, is provided by wifi and not by a cable connection.
So I decided to use 'wicd' as network manager. I enabled the service as root $this->bbcode_second_pass_code('', 'systemctl enable wicd')
I disabled netctl and dhcpcd $this->bbcode_second_pass_code('', 'systemctl disable dhcpcd') and $this->bbcode_second_pass_code('', 'systemctl disable netctl'), because I learned that multiple networking daemons could interfere each other.

Problem:
Every time I boot the system, The browser tells me there is a network problem "Could not reach http://www.example.com"
However when I restart the browser, loading http://www.example.com works fine.
Of course I rather would leave out restarting the browser.

Conclusion:
I suppose that the browser is executed before a working networking connection could initiate.

Question:
Is there a way to start the browser after network setup succeeded?
keesie
 
Posts: 4
Joined: Sat Mar 05, 2016 10:10 pm

Re: Raspberry Kiosk: Start networking before browser fires u

Postby WarheadsSE » Sun Mar 06, 2016 8:48 pm

disable systemd-networkd
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 9 guests