07-04-2020, 03:19 PM
(04-13-2020, 07:38 AM)a-wai Wrote: The serial console and network connection will be setup automatically on the phone side. On the host computer, you'll have to configure your network interface using the following commands:
Code:sudo ip address add 10.0.0.1/8 dev enxfeeddeadbeef
sudo ip link set enxfeeddeadbeef up
Depending on your host system the interface name (enxfeeddeadbeef on my Debian) might be different, if that's the case simply replace it by your interface name.
The phone's IP is 10.0.0.2
It is possible install a DHCP server in the pinephone to automatically get IP on client.
Install server:
Code:
apt install isc-dhcp-server
Edit /etc/default/isc-dhcp-server and spcify:
Code:
INTERFACESv4="usb0"
Edit /etc/dhcp/dhcpd.conf and specify:
Code:
option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.5 10.0.0.254;
option routers example.org;
}
And finally restarts service:
Code:
systemctl restart isc-dhcp-server.service