Recalbox 7.0

I would like Back to the Future



  • Hello... I changed my IP to static like described in the wiki. After reboot, no longer does the syncronisation with the time servers and I have traveled in the past ... 01/01/1970 How can I fix it?   What I've tried: 1. Create a startup file ... nano /etc/init.d/S99updatentp

    #!/bin/sh
    (sleep 30; \
    /usr/sbin/ntpdate pool.ntp.org; \
    )&
    

    2. Enter another time server nano /etc/ntp.conf

    server 0.de.pool.ntp.org
    server 1.de.pool.ntp.org
    server 2.de.pool.ntp.org
    server 3.de.pool.ntp.org

  • Developer
    Global moderator
    Team

    Hi, the rpi has no clock so it's "normal" to have the date in 1970 if you have no network. Can you ping google.fr for example ? Do you have a dns configured ?



  • my actual /etc/network/interfaces:

    # Configure Loopback
    auto lo
    iface lo inet loopback
    
    auto eth0
    #iface eth0 inet dhcp
    iface eth0 inet static
            address 192.168.111.72
            network 192.168.111.0
            broadcast 192.168.111.255
            netmask 255.255.255.0
            gateway 192.168.111.1
            dns-nameservers 80.153.1.233 62.245.184.150
    
    auto wlan0
    iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    
    # ping google.com
    ping: bad address 'google.com'


  • I think i found the reason... after restart the resolv.conf everytime is empty... temporarly i fix it with a workaround... i modifiy the network startup script... add following line to /etc/init.d/S40network at the begining of the script echo "nameserver 8.8.8.8" >> /tmp/resolv.conf now reboot This is certainly not the best solution, but temporarly it works...


Log in to reply
 

Want to support us ?

263
Online

79.1k
Users

20.4k
Topics

149.3k
Posts