Skip to content

Manual IP settings (EN)

OyyoDams edited this page Jan 7, 2018 · 14 revisions

Recalbox 4.0

In order to select a fixed ip for your recalbox, you will have to edit the file /etc/network/interfaces.

Get a root access from Terminal and edit the file with :
nano /etc/network/interfaces

For a permanently solution you must edit the interfaces.base file. And before you can edit this file you must remount the file system as rw. So try this commands:
mount -o remount,rw /
nano /etc/network/interfaces.base

Search the line containing the interface you want to modify (ethX for ethernet, wlanX for wifi) :

auto eth0
iface eth0 inet dhcp

So let us modify eth0 ip.
Replace with the static ip settings :

auto eth0
iface eth0 inet static
     address 192.168.1.10
     network 192.168.1.0
     netmask 255.255.255.0
     broadcast 192.168.1.255
     gateway 192.168.1.254

By switching to a static IP address, you will lose the configuration of your DNS server(s) in the process. In order to get name resolution working, you will have to create a file names /etc/resolv.conf. By default, this files points to an auto-generated file located at /tmp/resolv.conf, so in order to do it once and for all, run the following commands:

rm /etc/resolv.conf
nano /etc/resolv.conf

Enter the following lines, which corresponds to DNS servers of the OpenDNS project:

nameserver 208.67.222.222
nameserver 208.67.220.220

Save the file.

Now reload the settings with : ifdown eth0 && ifup eth0

THESE EDITS WILL BE OVERWRITTEN WITH EACH NEW UPDATE - You will have to repeat these tasks after each update.

Starting from Recalbox 4.1

export TERM=xterm

nano custom.sh

#!/bin/bash
/usr/bin/connmanctl config ethernet_b827eb6462be_cable --ipv4 manual 192.168.1.181 255.255.255.0 192.168.1.1

Replace ethernet*** by the value you've got previously and the IP address you want to give. Then Ctrl X and Y then Enter Then type chmod +x custom.sh then reboot to restart your Recalbox.

English

Basic

Advanced


Français

Basique

Avancée


Deutsch

Basic

Fortgeschritten


Español

Basic

Avanzado


Português

Básico

Avançado


Italiano

Di base

Avanzate

Clone this wiki locally
You can’t perform that action at this time.