updating for tarpn
This commit is contained in:
parent
05b31b287d
commit
0a031c317e
30
README.md
30
README.md
|
@ -1,5 +1,7 @@
|
|||
# pi-gen
|
||||
|
||||
_Modified version of the tool to create Raspbian Images for TARPN Nodes_
|
||||
|
||||
_Tool used to create the raspberrypi.org Raspbian images_
|
||||
|
||||
|
||||
|
@ -9,6 +11,34 @@ _Tool used to create the raspberrypi.org Raspbian images_
|
|||
|
||||
## Dependencies
|
||||
|
||||
On MAC OSx Machines you will need
|
||||
* Vagrant - https://www.vagrantup.com
|
||||
* Virtual Box - https://www.virtualbox.org
|
||||
|
||||
From a Terminal window you will need to execute the following commands
|
||||
```bash
|
||||
mkdir raspbian-docker
|
||||
cd raspbian-docker
|
||||
vagrant init debian/stretc64
|
||||
vagrant up
|
||||
vagrant ssh
|
||||
```
|
||||
|
||||
At this point you are in the Vagrant virtual box that is essentially a light weight Debian Linux VM Running on your Apple Macintosh computer.
|
||||
Inside this Vagrant connection the following commands need to be executed
|
||||
|
||||
```bash
|
||||
sudo su -
|
||||
apt-get update
|
||||
apt-get install quilt kpartx realpath qemu-user-static debootstrap zerofree pxz zip dosfstools git
|
||||
curl https://get.docker.com/ | sh
|
||||
|
||||
git clone https://github.com/uuacallis/pi-gen.git
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
On Debian-based systems:
|
||||
|
||||
```bash
|
||||
|
|
12
build.sh
12
build.sh
|
@ -167,7 +167,7 @@ dependencies_check ${BASE_DIR}/depends
|
|||
mkdir -p ${WORK_DIR}
|
||||
log "Begin ${BASE_DIR}"
|
||||
|
||||
for STAGE_DIR in ${BASE_DIR}/stage*; do
|
||||
for STAGE_DIR in ${BASE_DIR}/stage[0-2]; do
|
||||
run_stage
|
||||
done
|
||||
|
||||
|
@ -177,11 +177,11 @@ for EXPORT_DIR in ${EXPORT_DIRS}; do
|
|||
source "${EXPORT_DIR}/EXPORT_IMAGE"
|
||||
EXPORT_ROOTFS_DIR=${WORK_DIR}/$(basename ${EXPORT_DIR})/rootfs
|
||||
run_stage
|
||||
if [ -e ${EXPORT_DIR}/EXPORT_NOOBS ]; then
|
||||
source ${EXPORT_DIR}/EXPORT_NOOBS
|
||||
STAGE_DIR=${BASE_DIR}/export-noobs
|
||||
run_stage
|
||||
fi
|
||||
# if [ -e ${EXPORT_DIR}/EXPORT_NOOBS ]; then
|
||||
# source ${EXPORT_DIR}/EXPORT_NOOBS
|
||||
# STAGE_DIR=${BASE_DIR}/export-noobs
|
||||
# run_stage
|
||||
# fi
|
||||
done
|
||||
|
||||
if [ -x postrun.sh ]; then
|
||||
|
|
|
@ -37,4 +37,9 @@ on_chroot << EOF
|
|||
usermod --pass='*' root
|
||||
EOF
|
||||
|
||||
on_chroot sh -e - <<EOF
|
||||
curl -sSL https://get.docker.com/ | sh
|
||||
usermod -aG docker pi
|
||||
EOF
|
||||
|
||||
rm -f ${ROOTFS_DIR}/etc/ssh/ssh_host_*_key*
|
||||
|
|
|
@ -2,3 +2,19 @@ wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libert
|
|||
raspberrypi-net-mods
|
||||
dhcpcd5
|
||||
net-tools
|
||||
ax25-tools
|
||||
ax25-apps
|
||||
i2c-tools
|
||||
screen
|
||||
libcap2-bin
|
||||
libpcap0.8
|
||||
libpcap-dev
|
||||
minicom
|
||||
conspy
|
||||
telnet
|
||||
vim
|
||||
libasound2-dev
|
||||
build-essential python-dev
|
||||
python-serial python3-serial
|
||||
rpi-update
|
||||
iputils-ping
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
country=GB
|
||||
country=US
|
||||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||
update_config=1
|
||||
|
|
Loading…
Reference in New Issue
Block a user