Skip to content

Commit

Permalink
feat(import): initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
dcale committed Jul 24, 2017
0 parents commit 9b8a82c
Show file tree
Hide file tree
Showing 230 changed files with 252,311 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NONFREE = yes
COMMON_CONF = desktop
COMMON_OVERLAYS = desktop
include $(FAB_PATH)/common/mk/turnkey-desktop.mk
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# AirGap.it

The Most Secure And Practical Way To Do Crypto Transactions. With AirGap you can now be your own bank.

## Installing AirGap on a USB stick or CDROM

AirGap on CDROM: use your favorite program to burn the ISO to CDROM.
Nothing special. CDROMs are naturally read-only and tamper resistant.

AirGap on USB: If you don't burn AirGap to a CDROM, writing AirGap to a
USB stick with a hardware read-write toggle (e.g., Kanguru FlashBlu) is
the next best thing.

On USB sticks without write protection, you can remove AirGap USB after
booting as an additional security measure. AirGap loads into RAM so
after booting you no longer need the USB.

1) Insert USB stick and detect the device path::
```
$ dmesg|grep Attached | tail --lines=1
[583494.891574] sd 19:0:0:0: [sdf] Attached SCSI removable disk
```
2) Write ISO to USB::
```
$ sudo dd if=path/to/airgap.iso of=/dev/sdf
$ lsblk | grep sdf
sdf 8:80 1 7.4G 1 disk
└─sdf1 8:81 1 444M 1 part
```

## How to build from source

AirGap is built with `TKLDev`_, the TurnKey GNU/Linux build system.

1) Deploy TKLDev (e.g., as a local VM)
2) SSH into TKLDev and clone the AirGap git repo::

ssh tkldev
cd products
git-clone https://github.com/airgap-it/airgap-distro.git

cd airgap-distro
make

## Credits

This project was inspired by BitKey. The distribution as well as this readme have been created based on their work.
Binary file added cdroot.overlay/cat.c32
Binary file not shown.
Binary file added cdroot.overlay/chain.c32
Binary file not shown.
Binary file added cdroot.overlay/cmd.c32
Binary file not shown.
Binary file added cdroot.overlay/cmenu.c32
Binary file not shown.
Binary file added cdroot.overlay/config.c32
Binary file not shown.
Binary file added cdroot.overlay/cptime.c32
Binary file not shown.
Binary file added cdroot.overlay/cpu.c32
Binary file not shown.
Binary file added cdroot.overlay/cpuid.c32
Binary file not shown.
Binary file added cdroot.overlay/cpuidtest.c32
Binary file not shown.
Binary file added cdroot.overlay/debug.c32
Binary file not shown.
Binary file added cdroot.overlay/dhcp.c32
Binary file not shown.
Binary file added cdroot.overlay/disk.c32
Binary file not shown.
Binary file added cdroot.overlay/dmi.c32
Binary file not shown.
Binary file added cdroot.overlay/dmitest.c32
Binary file not shown.
Binary file added cdroot.overlay/elf.c32
Binary file not shown.
Binary file added cdroot.overlay/ethersel.c32
Binary file not shown.
Binary file added cdroot.overlay/gfxboot.c32
Binary file not shown.
Binary file added cdroot.overlay/gpxecmd.c32
Binary file not shown.
Binary file added cdroot.overlay/hdt.c32
Binary file not shown.
Binary file added cdroot.overlay/hexdump.c32
Binary file not shown.
Binary file added cdroot.overlay/host.c32
Binary file not shown.
Binary file added cdroot.overlay/ifcpu.c32
Binary file not shown.
Binary file added cdroot.overlay/ifcpu64.c32
Binary file not shown.
Binary file added cdroot.overlay/ifmemdsk.c32
Binary file not shown.
Binary file added cdroot.overlay/ifplop.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/cat.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/chain.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/cmd.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/cmenu.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/config.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/cptime.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/cpu.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/cpuid.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/cpuidtest.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/debug.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/dhcp.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/disk.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/dmi.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/dmitest.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/elf.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/ethersel.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/gfxboot.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/gpxecmd.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/hdt.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/hexdump.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/host.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/ifcpu.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/ifcpu64.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/ifmemdsk.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/ifplop.c32
Binary file not shown.
7 changes: 7 additions & 0 deletions cdroot.overlay/isolinux/isolinux.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# D-I config version 2.0
path
include menu.cfg
default vesamenu.c32
menu background splash.png
prompt 0
timeout 100
Binary file added cdroot.overlay/isolinux/kbdmap.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/kontron_wdt.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/ldlinux.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/lfs.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/libcom32.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/libgpl.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/liblua.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/libmenu.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/libutil.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/linux.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/ls.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/lua.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/mboot.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/meminfo.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/menu.c32
Binary file not shown.
6 changes: 6 additions & 0 deletions cdroot.overlay/isolinux/menu.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
default airgap
label airgap
menu label AirGap
menu background splash.png
kernel /casper/vmlinuz
append boot=casper initrd=/casper/initrd.gz root=/dev/ram rw showmounts toram --
Binary file added cdroot.overlay/isolinux/pci.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/pcitest.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/pmload.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/poweroff.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/prdhcp.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/pwd.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/pxechn.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/reboot.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/rosh.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/sanboot.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/sdi.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/splash.pcx
Binary file not shown.
Binary file added cdroot.overlay/isolinux/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cdroot.overlay/isolinux/sysdump.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/syslinux.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/vesa.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/vesainfo.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/vesamenu.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/vpdtest.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/whichsys.c32
Binary file not shown.
Binary file added cdroot.overlay/isolinux/zzjson.c32
Binary file not shown.
Binary file added cdroot.overlay/kbdmap.c32
Binary file not shown.
Binary file added cdroot.overlay/kontron_wdt.c32
Binary file not shown.
Binary file added cdroot.overlay/ldlinux.c32
Binary file not shown.
Binary file added cdroot.overlay/lfs.c32
Binary file not shown.
Binary file added cdroot.overlay/libcom32.c32
Binary file not shown.
Binary file added cdroot.overlay/libgpl.c32
Binary file not shown.
Binary file added cdroot.overlay/liblua.c32
Binary file not shown.
Binary file added cdroot.overlay/libmenu.c32
Binary file not shown.
Binary file added cdroot.overlay/libutil.c32
Binary file not shown.
Binary file added cdroot.overlay/linux.c32
Binary file not shown.
Binary file added cdroot.overlay/ls.c32
Binary file not shown.
Binary file added cdroot.overlay/lua.c32
Binary file not shown.
Binary file added cdroot.overlay/mboot.c32
Binary file not shown.
Binary file added cdroot.overlay/meminfo.c32
Binary file not shown.
Binary file added cdroot.overlay/menu.c32
Binary file not shown.
Binary file added cdroot.overlay/pci.c32
Binary file not shown.
Binary file added cdroot.overlay/pcitest.c32
Binary file not shown.
Binary file added cdroot.overlay/pmload.c32
Binary file not shown.
Binary file added cdroot.overlay/poweroff.c32
Binary file not shown.
Binary file added cdroot.overlay/prdhcp.c32
Binary file not shown.
Binary file added cdroot.overlay/pwd.c32
Binary file not shown.
Binary file added cdroot.overlay/pxechn.c32
Binary file not shown.
Binary file added cdroot.overlay/reboot.c32
Binary file not shown.
Binary file added cdroot.overlay/rosh.c32
Binary file not shown.
Binary file added cdroot.overlay/sanboot.c32
Binary file not shown.
Binary file added cdroot.overlay/sdi.c32
Binary file not shown.
Binary file added cdroot.overlay/sysdump.c32
Binary file not shown.
Binary file added cdroot.overlay/syslinux.c32
Binary file not shown.
Binary file added cdroot.overlay/vesa.c32
Binary file not shown.
Binary file added cdroot.overlay/vesainfo.c32
Binary file not shown.
Binary file added cdroot.overlay/vesamenu.c32
Binary file not shown.
Binary file added cdroot.overlay/vpdtest.c32
Binary file not shown.
Binary file added cdroot.overlay/whichsys.c32
Binary file not shown.
Binary file added cdroot.overlay/zzjson.c32
Binary file not shown.
7 changes: 7 additions & 0 deletions conf.d/purge-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

DEBIAN=noninteractive apt-get -y purge authbind curl bsd-mailx bind9-host ethtool hubdns ifupdown iproute iproute2 iptables iputils-ping ethtool libavahi-client3 libavahi-common-data libavahi-common3 libbind9-90 libdiscover2 libdns100 libssh2-1 net-tools netbase ntp ntpdate openssh-client openssh-server openssh-sftp-server resolvconf rsync librsync1 tklbam tklbam-duplicity tklbam-python-boto tklbam-squid tklbam-squid-common traceroute turnkey-pylib turnkey-sysinfo turnkey-version postfix ssh stunnel4 udhcpc webmin* wget
DEBIAN=noninteractive apt-get -y autoremove
DEBIAN=noninteractive apt-get -y install ratpoison chromium
DEBIAN=noninteractive apt-get -y clean
rm -rf /var/lib/apt/lists/*
8 changes: 8 additions & 0 deletions overlay/etc/rc.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh -e
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.

su user --login -c startx >/var/log/startx.log 2>&1

exit 0
3 changes: 3 additions & 0 deletions overlay/home/user/.xinitrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
ratpoison &
chromium --incognito --kiosk --no-default-browser-check file:///usr/local/src/airgap-signer-v1.0.1/index.html
11 changes: 11 additions & 0 deletions overlay/usr/lib/bitkey.d/inithooks-preseed
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

MASTERPASS=$(mcookie | cut --bytes 1-8)

cat>/etc/inithooks.conf<<EOF
export ROOT_PASS=$MASTERPASS
export USER_PASS=$MASTERPASS
export SEC_UPDATES=SKIP
export HUB_APIKEY=SKIP
EOF

Binary file added overlay/usr/local/src/Electrum-2.6.4.tar.gz
Binary file not shown.
16 changes: 16 additions & 0 deletions overlay/usr/local/src/SHA256SUM
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
8ea09809c4e061e0e00a161f52ca076bc6923c655c898717d556934053bf7434 bitaddress.org-3.2.0.zip
f4945bf52ae49da0728fe730a33c18744803752fc948f154f29dc0c4f9f2f9cc colorama-0.3.7.zip
63bd1fae61809eedb91f84b2185816fac1270ae51494fbdd36ea25f904a8502f dnspython-1.12.0.zip
67dae9e1af2b0fd71bc9a378654f7dc89211c1c5aee71e160f8cfce1fa6d6980 ecdsa-0.10.tar.gz
2ab53b434206ed8ae72e9cadb22d44ef9ba720a7d052abe102f5d55cafbef866 Electrum-2.6.4.tar.gz
093158dbb299b56e98fb760d3721adb43ef7f43b08a792268e1aef454cb0471e electrum.patch
7f50239d53b5e95b94455d5e1adae70592b5b71f0e960d3bbbfbb125788e6f0b jsonrpclib-0.1.7.tar.gz
ac6397369f128212c43064a2b4878038dab78dab41875364554aaf2a684e6979 pbkdf2-1.3.tar.gz
57bef5e16c14c2915b42311492a0110328b9a97e9e7807014b3a4c4d46df1a7a protobuf-3.0.0b2.post2.zip
771d4f47467ee3fbf53700e6baf3f4cf626d3cf0228e85058045407ea828e89e python-zxcvbn_bc1c2d3.tar.gz
d96628a1c1807340509746a58191073468c1c6d1f3de5c26ed1fcdceadc3de19 qrcode-5.2.2.tar.gz
c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f requests-2.9.1.tar.gz
105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a six-1.10.0.tar.gz
83658ae54cc116b96f7fdb12fdd0efac3a4e8c7c7064e3fac3f4a881aa54bf09 slowaes-0.1a1.tar.gz
5111a723fe008dbf628237023e6f2de72c7953f8bb4265d5c16fc9fd79384b7a warpwallet/warp_1.0.8_SHA256_5111a723fe008dbf628237023e6f2de72c7953f8bb4265d5c16fc9fd79384b7a.html
440b870d235d2f9a7932dda6c1a431672f27305c88ac4e4d70c9d0adf7ea9c0f coinbin-605a6df3431e07903f8fd43f6536057251089d96.zip
11 changes: 11 additions & 0 deletions overlay/usr/local/src/SHA256SUM.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJYdhN+AAoJEG3sltOwZ4DZgA0H/RFiL/3Kom2gqGMzrblDMMvr
dk+Ayf0SFkiltWPncN1BYKsQiz5k/kTer5KmHVZk9dVy8BEJXXkjf7IW4idopg1h
uwZrivfDDwGAicRn3/ImkBuxpLvCyZP3P4ScYmQVbd+Doq9PmP2McoYgRKyfPrpL
1UU3w0BRG0LsjLllnAaemS7NqKtJgRSfciswosQHGeQTkA6GJha63Irw7cMgw9C5
daAD7LeK/S0/QxWi2Ykom09xpMvxgl139sFqMZ9GXhgg+ADfZx9J8ijTxIYY/CO1
nqVtItu1dCMF46KT40P2FS4BAVh6pVZ20cODD55Quc1LYnkve4eom3JETUPv0dY=
=AJOw
-----END PGP SIGNATURE-----
Loading

0 comments on commit 9b8a82c

Please sign in to comment.