Skip to content

Commit

Permalink
Commit initial public release
Browse files Browse the repository at this point in the history
  • Loading branch information
freebsdfrau committed Nov 8, 2018
1 parent 63c3da9 commit f8b5e9c
Show file tree
Hide file tree
Showing 6 changed files with 1,973 additions and 2 deletions.
706 changes: 706 additions & 0 deletions Makefile

Large diffs are not rendered by default.

86 changes: 84 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,84 @@
# secure_thumb
GELI encrypted thumb drives for FreeBSD
[//]: # ($FrauBSD: secure_thumb/README.md 2018-11-08 11:58:27 -0800 freebsdfrau $)

# Welcome to [FrauBSD.org/secure\_thumb](https://fraubsd.org/secure_thumb)!

[GELI](https://www.freebsd.org/cgi/man.cgi?query=geli) encrypted
thumb drives for FreeBSD.

## Foreword

The following is required before using `git commit` in this project.

> `$ .git-hooks/install.sh`
This will ensure the FrauBSD keyword is expanded/updated for each commit.

# Setup

## Build image (requires `sudo` access)

> `% make`
## Deploy image to physical hardware (requires `sudo` access)

> 1. `% make deploy`
> 2. Insert thumb drive and press `ENTER`
## Install `bash_profile` additions (some manual steps required)

> 1. `% make install`
> 2. Follow steps to finalize system setup
# Creating SSH keys (requires `sudo` access)

> 1. Connect USB thumb drive to host
> 2. `% openkey`
> 3. `% cd /mnt/keys`
> 4. `% make`
> 5. `% cd -`
> 6. `% closekey -e`
## Loading keys and ejecting the thumb drive (requires `sudo access`)

> 1. `% loadkeys`
> 2. **NOTE:** By default, keys are loaded for 1800s (30m)
> 3. `% closekey -e`
## Load keys for an extended period (requires `sudo access`)

> 1. `% loadkeys -t13h`
> 2. `% closekey -e`
> 3. **NOTE:** Keys will remain usable via ssh-agent for 13h
# Additional Features

## Optionally expand thumb drive to take up free space (requires `sudo`)

> `% make expand`
## Usage statement

> `% make help`
## Help on `bash_profile` additions

> 1. `% openkey -h`
> 2. `% closekey -h`
> 3. `% loadkeys -h`
> 4. `% unloadkeys -h`
## Sync files created on the thumb drive to the local image

> `% make synctoimg`
## Sync files created in the image to the thumb drive

> `% make synctousb`
## Resize the image to 1GB to increase free space

> `% make IMGSIZE=1024 resize`
## Load keys and then eject the thumb drive

> `% loadkeys -e`
Loading

0 comments on commit f8b5e9c

Please sign in to comment.