I’m new to volumio and I have a project of Car system. I’am french so… sorry for my syntax or lack of vocabulary.
this topic is not about talking of my project but because I have a problem.
I want to use my phone to bring internet connexion to volumio on rpi but I want to share this connexion by ethernet to a second board computer (rpi or most probably odroid UX4 with lineage).
The howto for Jessy didn’t worked for me.
The one for Stretch, if I manually run the batch file, give me an IP address on Pi plugged by ethernet on volumio rpi, but no internet connexion and anyway, after reboot no IP adress anymore.
On boot, I run the batch file, in /etc/rc.local witch is different that advised but the folder .config does not exist.
I suppose that volumio has it’s own process for managing network and maybe is in conflict with my need.
You probably should have a search for ‘systemd’ service files to achieve what you want. If you really want to use rc.local then there are workarounds available, for example have a look here.
From your link, you’re installing dnsmasq (?) which is maybe conflicting with Volumio’s use of dhcpcd. Can you not also use dhcpcd to achieve your aim without installing the extra dnsmasq?
By the way, I notice that Volumio is already running a systemd service to maintain compatibility with rc.local.
But in fact, after a fresh install of volumio on SD, there are the same errors for dhcpcd.service dhcpd.service and hotspot.service!?!
I’m using the last release 2.344
The only things I’ve done after fresh install is booting, connect to wifi hotspot, configure my wifi network, connect by volumio.local/dev to enable ssh, connect by ssh, launch systemctl command.
install was done with RJ45 plugged… maybe that ?
I vill try to reinstall volumio without RJ45 plugged but with very few hope.
BUT : after reboot, no more “failed” for dhcpcd and…of course conflict with isc-dhcp-server.
I think dhcpcd have a wrong config in volumio image.
working on configuring isc-dhcp-server resolved the dhcpcd service problem. (using /etc/network/interfaces)
now trying to configure dhcpcd without isc-dhcp-server but don’t really know it.
I struggled over the same “problem” and like to share my solution.
What i try:
I have many volumio’s (raspberry pi) in my house connected via LAN and like to use them as a “wifi range extender”. So i like to connect to hotspot and have internet.
This works not “out of the box”.
You need this steps (over ssh):
Enable broadcast and DNS
sudo nano /etc/dhcp/dhcpd.conf
Add this option:
option broadcast-address 192.168.211.255;
Edit this option:
option domain-name-servers 8.8.8.8, 8.8.4.4;
Enable Routing
sudo nano /etc/sysctl.conf
Remove the # bevor the entry “net.ipv4.ip_forward=1”
Enable Masqerading
Hint: sleep 10 is needed, otherwise after a reboot website is not reachable, i don’t know why!
sudo nano /etc/rc.local
Add this line:
sleep 10
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE