restore interfaces

Discussion in 'UDOO NEO' started by FadiBunni, Jun 18, 2017.

  1. FadiBunni

    FadiBunni New Member

    Joined:
    Mar 9, 2017
    Messages:
    16
    Likes Received:
    1
    Hey guys, i can not connecto to my udoo neo, through usb, wlan or wifi. I have checked my /etc/network/interfaces file and it seems that everything inside it is gone, do you guys know how to restore it to default?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    If you have no backup created you can create a new Udoobuntu image on another SD card. Start the Neo and copy the network files on a USB stick
    Then start your Neo with the original image and copy back the files.
    Things to research:
    Why did those files disapear?
    Where did they disapear to (perhaps copy paste to wrong place?) You can find them back then.
    How to prevent? Make files Read Only?
     
  3. FadiBunni

    FadiBunni New Member

    Joined:
    Mar 9, 2017
    Messages:
    16
    Likes Received:
    1
    hmm okay, i am not sure why they disapeared :(
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    This is the content of my /etc/network/interfaces file
    Code:
    # Loopback network interface
    auto lo
    iface lo inet loopback
    
    # Primary network interface
    #auto eth0
    #iface eth0 inet dhcp
    
    # USB OTG connection
    allow-hotplug usb0
    iface usb0 inet static
    address 192.168.7.2
    netmask 255.255.255.252
     
  5. FadiBunni

    FadiBunni New Member

    Joined:
    Mar 9, 2017
    Messages:
    16
    Likes Received:
    1
    thanks you!, I will try that out.
     
  6. FadiBunni

    FadiBunni New Member

    Joined:
    Mar 9, 2017
    Messages:
    16
    Likes Received:
    1
    It deletes the file everytime i restart??
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    What if you do
    sudo chmod 644 /etc/network/interfaces
    after you created the new file? Then reboot.
     
  8. FadiBunni

    FadiBunni New Member

    Joined:
    Mar 9, 2017
    Messages:
    16
    Likes Received:
    1
    I cannot use sudo su anymore, how do I fix it? upload_2017-6-18_15-54-24.png
     
  9. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I think you screwed up your image badly. Take a backup from all your personal files (/home/udooer and/or /home/FadiBunni) and perhaps some other modifications you did and start over again with a fresh linux (Udoobuntu?) image.
     
  10. FadiBunni

    FadiBunni New Member

    Joined:
    Mar 9, 2017
    Messages:
    16
    Likes Received:
    1
    upload_2017-6-18_16-10-17.png

    I used this, and it worked!
     
    waltervl likes this.

Share This Page