Skip to content

Commit d493058

Browse files
authored
Merge pull request #97 from TheTorProject/release/lepidopter-1.0.0-rc.0
Prepare release: lepidopter 1.0.0-rc.0
2 parents fe51c35 + 2fb77f0 commit d493058

35 files changed

+1073
-160
lines changed

ChangeLog.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
Lepidopter v1.0.0 [2017-05-05]
2+
-------------------------------
3+
4+
This release version includes ooniprobe version 2.2.0.
5+
6+
- Add bootloader configuration file
7+
- Adjust to the minimum GPG memory possible (16M) #49
8+
- Add support for hardware RNG #96
9+
- Verbose heartbeat-like LED activity
10+
- Change MOTD color prompt
11+
- Password-less operation for the sudo group
12+
- Ship ooniprobe version 2.2.0
13+
- Do not store folders in the zip image archive #93
14+
- Add a persistent directory (/persistent-data)
15+
- Remove older obfsproxy package
16+
- Add packages: OpenVPN, rng-tools, watchdog
17+
- Fix active meek tor bridges
18+
- Set mount option noatime
19+
- Reduce GPU memory to 32M (was 64M)
20+
- Pin txtorcon package version to 0.18.0
21+
122
Lepidopter v0.3.5-beta [2016-10-16]
223
------------------------------------
324

README.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ User documentation and detailed image installation instructions can be found
2525
├── customize customize script used to customize lepidopter image
2626
├── images where the build Lepidopter images created
2727
├── lepidopter-fh Lepidopter image filesystem hierarchy
28+
│   ├── boot
29+
│   │   └── config.txt
2830
│   ├── cleanup.sh cleanup script
31+
│   ├── configure.sh
2932
│   ├── etc
3033
│   │   ├── apt
3134
│   │   │   └── apt.conf.d
@@ -52,28 +55,49 @@ User documentation and detailed image installation instructions can be found
5255
│   │   │   ├── lepidopter-update
5356
│   │   │   └── ooniprobe
5457
│   │   ├── motd.head Lepidopter MOTD ASCII logo
55-
│   │   ├── network
56-
│   │   │   └── if-up.d
57-
│   │   │   └── run_oonideckgen
5858
│   │   ├── ooniprobe
5959
│   │   │   └── ooniconfig.sh
6060
│   │   ├── ooniprobe.conf
61+
│   │   ├── sudoers
6162
│   │   ├── systemd
6263
│   │   │   └── system
6364
│   │   │   ├── lepidopter-update.service
6465
│   │   │   └── ooniprobe.service
65-
│   │   └── update-motd.d
66-
│   │   └── 50-lepidopter
66+
│   │   ├── update-motd.d
67+
│   │   │   └── 50-lepidopter
68+
│   │   └── watchdog.conf
6769
│   ├── opt
6870
│   │   └── ooni
6971
│   │   ├── lepidopter-update
7072
│   │   │   ├── public.asc
7173
│   │   │   ├── updater.py
7274
│   │   │   └── versions
75+
│   │   │   ├── update-1.py
76+
│   │   │   ├── update-1.py.asc
77+
│   │   │   ├── update-2.py
78+
│   │   │   ├── update-2.py.asc
79+
│   │   │   ├── update-3.py
80+
│   │   │   ├── update-3.py.asc
81+
│   │   │   ├── update-4.py
82+
│   │   │   ├── update-4.py.asc
83+
│   │   │   ├── update-5.py
84+
│   │   │   ├── update-5.py.asc
85+
│   │   │   ├── update-6.py
86+
│   │   │   ├── update-6.py.asc
87+
│   │   │   ├── update-7.py
88+
│   │   │   └── update-7.py.asc
7389
│   │   └── tor_data_dir
90+
│   ├── persistent-data
7491
│   ├── remove_ssh_host_keys.sh
7592
│   ├── setup-ooniprobe.sh
93+
│   ├── usr
94+
│   │   └── share
95+
│   │   └── ooni
96+
│   │   └── decks-available
7697
│   └── var
98+
│   ├── lib
99+
│   │   └── ooni
100+
│   │   └── decks-enabled
77101
│   └── log
78102
│   └── ooni
79103
├── lepidopter-vmdebootstrap_build.sh main lepidopter vmdebootstrap script

conf/lepidopter-image.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ APT_MIRROR="http://httpredir.debian.org/debian"
77
# Uncomment next line to use apt-cacher-ng
88
#MIRROR="http://localhost:3142/debian"
99
MIRROR="http://httpredir.debian.org/debian"
10+
VERSION_FILE="lepidopter-fh/etc/lepidopter_version"
11+
LEPIDOPTER_UPDATE_PATH="lepidopter-fh/opt/ooni/lepidopter-update/"
12+
UPDATE_VERSION_FILE="lepidopter-fh/etc/lepidopter-update/version"
13+
LEPIDOPTER_UPDATE_GIT="https://github.com/OpenObservatory/lepidopter-update"

conf/tor-pt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment the following 4 lines to connect via meek pluggable transport in tor
22
#UseBridges 1
33
#Bridge meek_lite 0.0.2.0:1 url=https://d2zfqthxsdq309.cloudfront.net/ front=a0.awsstatic.com
4-
#Bridge meek_lite 0.0.2.0:2 url=https://az786092.vo.msecnd.net/ front=ajax.aspnetcdn.com
4+
#Bridge meek_lite 0.0.2.0:2 url=https://meek.azureedge.net/ front=ajax.aspnetcdn.com
55
#ClientTransportPlugin meek_lite exec /usr/bin/obfs4proxy

customize

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ wget --directory-prefix=${ROOTDIR}/lib/firmware/brcm/ \
2323
https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.bin \
2424
https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.txt
2525

26-
# Add module for hardware RNG
27-
cat <<EOF >> ${ROOTDIR}/etc/modules
28-
bcm2708_rng
29-
EOF
30-
3126
# Add an apt repository with apt preferences
3227
set_apt_sources() {
3328
SUITE="$1"
@@ -82,5 +77,11 @@ chroot ${ROOTDIR} ln -s /var/run/motd /etc/motd
8277
# Add (optional) pluggable transport support in tor config
8378
cat conf/tor-pt.conf >> ${ROOTDIR}/etc/tor/torrc
8479

80+
# Get list of apt and Python packages from lepidopter image
81+
rsync -av --no-R --no-implied-dirs --remove-source-files \
82+
${ROOTDIR}/lepidopter-apt-packages pkglist/lepidopter-${LEPIDOPTER_BUILD}-${ARCH}-apt-packages
83+
rsync -av --no-R --no-implied-dirs --remove-source-files \
84+
${ROOTDIR}/lepidopter-pip-packages pkglist/lepidopter-${LEPIDOPTER_BUILD}-${ARCH}-pip-packages
85+
8586
echo "Customize script finished successfully."
8687
exit 0

lepidopter-fh/boot/config.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Minimal (with no vc_vchi_sm_init failure) GPU memory for headless mode
2+
gpu_mem=32
3+
# Enable the hardware watchdog
4+
dtparam=watchdog=on
5+
# Turn power LED into heartbeat
6+
dtparam=pwr_led_trigger=heartbeat
7+
# Enable the hardware random number generator (RNG)
8+
dtparam=random=on

lepidopter-fh/cleanup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -ex
33

4+
# Generate list of installed apt and Python packages
5+
dpkg-query -W -f='${binary:Package} ${Version}\n' > /lepidopter-apt-packages
6+
pip freeze > /lepidopter-pip-packages
7+
48
# Clean up the local repository of retrieved package files
59
apt-get clean
610
apt-get autoclean

lepidopter-fh/configure.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ cp /usr/share/zoneinfo/UTC /etc/localtime
77
# Enable lepidopter-update systemd service
88
systemctl enable lepidopter-update
99

10+
# Install newest e2fsprogs due to incompatibly with ext4 file system checks
11+
apt-get -y install -t jessie-backports e2fsprogs
12+
13+
# Mount option noatime disables file access writes every time a file is read
14+
sed -i 's/\/ ext4/\/ ext4 defaults,noatime/' /etc/fstab
15+
1016
history -c
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3
1+
8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.5-beta
1+
v1.0.0

0 commit comments

Comments
 (0)