Skip to content

Commit cbea9b6

Browse files
authored
Merge pull request #16 from TurtleRover/dev
TurtleOS 1.2
2 parents baee112 + c520a31 commit cbea9b6

File tree

17 files changed

+50
-63
lines changed

17 files changed

+50
-63
lines changed

.circleci/config.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,33 @@ We are using identical login: `pi` and password: `raspberry`, as official Raspbi
6161
* Turtle Rover configs
6262
### System tweaks
6363
* Patch sshd to disallow client to pass locale environment variables
64-
* Add custom `hostapd.service`
6564
* Add `turtle.service`
66-
* Install `hostapd`
6765
* Install `uv4l` and custom config
66+
* Install `rng-tools` to feed hwrng into /dev/random
67+
* Install `vim` and `tmux`
6868
### Network tweaks
6969
* Patch `hosts`
70+
* Add udev rules for network interface names
71+
* Internal wifi interface `wlan_int`
72+
* External wifi interface `wlan_ext`
7073
* Add systemd network files
71-
* External wifi interface (hotspot) `wlan0ext`, ip:`10.0.0.1`, default SSID: `TurtleRover-XXYYY`, password: `password`
72-
* Internal wifi interface `wlan0int`
73-
* Add custom `wpa_supplicant-wlan0int.conf`
74+
* Internal eth interface `eth0`, ip:`DHCP`
75+
* External wifi interface `wlan_ext`, ip:`10.0.0.1`
76+
* Install `dnsmasq`
77+
* Install `hostapd`
78+
* Install `NetworkManager`
7479
* Add custom `dnsmasq.conf`
80+
* Add custom `hostapd.service`
81+
* Add custom `hostapd.conf` (hotspot)
82+
* interface: `wlan_ext`, SSID: `TurtleRover-XXYYY`, password: `password`
83+
* Add custom `NetworkManager.conf`
84+
* ignore `eth0` and `wlan_ext` interfaces (control only `wlan_int`)
7585
* Add custom `resolvconf.conf`
7686
* Add custom `sysctl.conf`
77-
* Install `dnsmasq`
7887

7988
### Custom software
8089
* [Turtle Control Software](https://github.com/TurtleRover/tcs)
90+
* [OpenOCD](https://github.com/TurtleRover/openocd)
8191

8292
## How it works
8393
* [First of read readme from original pi-gen repo](https://github.com/RPi-Distro/pi-gen)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
jq python3-pip wiringpi
1+
jq python3-pip wiringpi rng-tools vim tmux
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
NAME=TurtleOS
2-
VERSION="1.1"
2+
VERSION="1.2"
33
ID=turtleos
4-
VERSION_ID=1.1
5-
PRETTY_NAME="TurtleOS 1.1"
4+
VERSION_ID=1.2
5+
PRETTY_NAME="TurtleOS 1.2"
66
HOME_URL="https://github.com/TurtleRover/turtleos"
77
BUG_REPORT_URL="https://github.com/TurtleRover/turtleos/issues"
88
BUILD_ID=
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dnsmasq hostapd
1+
dnsmasq hostapd network-manager
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash -e
22

3-
install -v -m 644 files/etc/wpa_supplicant/*.conf "${ROOTFS_DIR}/etc/wpa_supplicant/"
43
install -v -m 644 files/etc/*.conf "${ROOTFS_DIR}/etc/"
54
install -v -m 644 files/etc/hostapd/hostapd.conf "${ROOTFS_DIR}/etc/hostapd/"
65

@@ -9,9 +8,12 @@ install -v -m 644 files/etc/systemd/system/*.service "${ROOTFS_DIR}/etc/systemd/
98

109
install -v -m 644 files/etc/udev/rules.d/*.rules "${ROOTFS_DIR}/etc/udev/rules.d/"
1110

11+
install -v -m 644 files/etc/NetworkManager/NetworkManager.conf "${ROOTFS_DIR}/etc/NetworkManager/"
12+
1213
echo "=>Performing enabling/disabling of services"
1314
on_chroot <<-EOF
1415
systemctl disable dhcpcd
1516
systemctl enable systemd-networkd
1617
systemctl enable hostapd
18+
systemctl enable NetworkManager
1719
EOF
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[main]
2+
plugins=ifupdown,keyfile
3+
4+
[ifupdown]
5+
managed=false
6+
7+
[keyfile]
8+
unmanaged-devices=interface-name:wlan_ext,interface-name:eth0

pi-gen-overlay/stage3/02-net-tweaks/files/etc/dnsmasq.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bogus-priv
6363

6464
# Add other name servers here, with domain specs if they are for
6565
# non-public domains.
66-
server=8.8.8.8@wlan0int
66+
server=8.8.8.8@wlan_int
6767

6868
# Example of routing PTR queries to nameservers: this will send all
6969
# address->name queries for 192.168.3/24 to nameserver 10.1.2.3
@@ -87,7 +87,7 @@ server=8.8.8.8@wlan0int
8787

8888
# You can control how dnsmasq talks to a server: this forces
8989
# queries to 10.1.2.3 to be routed via eth1
90-
# server=10.0.0.1@wlan0ext
90+
# server=10.0.0.1@wlan_ext
9191

9292
# and this sets the source (ie local) address used to talk to
9393
# 10.1.2.3 to 192.168.1.1 port 55 (there must be a interface with that
@@ -669,6 +669,6 @@ dhcp-option=option:domain-search,eng.apple.com,marketing.apple.com,rover
669669
#dhcp-mac=set:client_is_a_pi,B8:27:EB:*:*:*
670670
#dhcp-reply-delay=tag:client_is_a_pi,2
671671

672-
interface=wlan0ext
672+
interface=wlan_ext
673673

674674
dhcp-range=wlan_external,10.0.0.10,10.0.0.200,12h

pi-gen-overlay/stage3/02-net-tweaks/files/etc/hostapd/hostapd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface=wlan0ext
1+
interface=wlan_ext
22
driver=nl80211
33
ssid=TurtleRover-XXYYY
44
hw_mode=g

0 commit comments

Comments
 (0)