Difference between revisions of "Fix network configuration"
(→How to update network setup for 20180511 (or older firmware)) |
(→Quick instructions) |
||
Line 16: | Line 16: | ||
./host_script.sh 192.168.0.9</font> | ./host_script.sh 192.168.0.9</font> | ||
− | Next, any changes related to setting ip address, netmask or gateway made to '''''/etc/elphel393/init_elphel393.py''''' can be removed. | + | Next, any extra changes related to setting ip address, netmask or gateway made to '''''/etc/elphel393/init_elphel393.py''''' can be removed. Or use the original file. |
===Description=== | ===Description=== |
Revision as of 13:51, 26 October 2018
Contents
Description
In the firmware 20180511 (and older) the ip address and network mask of the camera are set by /etc/elphel393/init_elphel393.py script overriding /etc/network/interfaces, which appeared to have incorrect configuration.
In the newer firmware releases this functionality will be disabled to bring the network setup to a more traditional way, i.e. by modifying /etc/network/interfaces.
Follow the instructions below to fix this for the older firmware.
How to update network setup for 20180511 (or older firmware)
Quick instructions
- Camera is online. The ip address can be any, e.g., 192.168.0.9
- PC: in a terminal window (linux os) type the following commands:
wget https://community.elphel.com/files/393/fix_network_config/fix_net_config.tar.gz tar -xzpf fix_net_config.tar.gz cd fix_net_config ./host_script.sh 192.168.0.9
Next, any extra changes related to setting ip address, netmask or gateway made to /etc/elphel393/init_elphel393.py can be removed. Or use the original file.
Description
From a Linux PC, download fix_net_config.tar.gz. The archive contains 2 scripts - one (shell) is run from the host PC, another (python) will be copied and automatically run on the camera. The python script will write the current configuration to /etc/network/interfaces and overwrite one of the init scripts to disable network configuration in /etc/elphel393/init_elphel393.py on startup.
fix_net_config.tar.gz ├── README.md ├── host_script.sh - run from host pc: copies fix_net_config.py and rootfs.tar.gz then runs fix_net_config.py ├── fix_net_config.py - unpacks rootfs.tar.gz, replaces network configuration with the current one and copies all files to the root file system └── rootfs.tar.gz - archive with 2 files ├──etc/init.d/init_elphel393 - init script that disables network setup in /etc/elphel393/init_elphel393.py └──etc/network/interfaces - network setup for eth0