RPI: RPI RNDIS - cyberxml/pentos GitHub Wiki
https://www.openkb.org/pi-zero-usb-ethernet-rndisethernet-gadget/
yum -y install avahi-daemon avahi-tools avahi-ui-tools avahi-compat-libdns_sd nss-mdns firewall-cmd --zone=public --add-port=5353/udp --permanent
nmcli connection modify Wired\ connection\ 2 ipv4.method link-local
[root@c7 rpi]# dd if=2017-11-29-raspbian-stretch.img of=/dev/mmcblk0 bs=64M 73+1 records in 73+1 records out 4919918592 bytes (4.9 GB) copied, 652.411 s, 7.5 MB/s
umount /dev/mmcblk0p1
umount /dev/mmcblk0p2
dd if=2017-11-29-raspbian-stretch.img of=/dev/mmcblk0 bs=64M
mkdir -p /mnt/pi/boot
mkdir -p /mnt/pi/root
mount /dev/mmcblk0p1 /mnt/pi/boot
cd /mnt/pi/boot
touch ssh
config.txt
Add the following (new line):
dtoverlay=dwc2
cmdline.txt
Add the following text after rootwait (leave a space, keep all in a single line):
modules-load=dwc2,g_ether
cd -
umount /mnt/pi/boot
#-------------
dd if=/dev/mmcblk0 of=YYYY-MM-DD-dc719.img bs=64M
#-------------
powerup
ssh pi@
sudo su -
mkdir /opt/gits
cd /opt/gits
git clone https://github.com/F5OEO/rpitx
cd rpitx
./install.sh