blob: e7cc0ac2aef34811b18ce74261f484d241231e33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
system config files should live here in ./config
system config scripts should live here in ./scripts
torouter_config.sh
add torproject keys (prompt?)
setup sources.list
apt-get update
install dependancies like: (some should be torouter-prep deps?)
tor
torouterui
crontab
uap8xxx
run torouter_preboot.sh
torouter_preboot.sh
check that dependancies are installed (tor, torouterui, etc) or fail
copy/install configuration files
remove/disable unwanted packages
stop libertas module from loading
create users and groups
torouter_copy2internal.sh (TODO)
torouter_setupuboot.sh (TODO)
torouter-prep contains all the above files
torouter_easy_setup.sh installs torouter-prep, executes torouter-takeover,
then reboots. it should be included in torouter-prep (for signing?)
install.sh script executes withing qemu:
configures all installed packages
run torouter_preboot.sh
install .deb src packages
kernel re-packing
(re)set root password
(re)set user password
unconfigure sshd (so it will get re-configured on 1st boot)
differences between takeover and .img build process:
- don't need new ssh keys with takeover
- don't need kernel re-pack with takeover
- don't need fstab re-write with takeover
---------
See also:
"Personal Onion Router To Assure Liberty", using OpenWRT on cheap hardware:
https://github.com/grugq/portal
|