-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall-script
65 lines (41 loc) · 2.5 KB
/
install-script
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
INSTALL SCRIPT
You can view the install script here
https://github.com/JAMESMTL/debian-v9-router/blob/master/install.sh
This is a summary of what the install script does.
=======================================================
1. Enable root ssh access and restart sshd daemon
2. Create initial directories structure.
/root/router this directory will contain symlinks to config files and scripts
/opt/router this directory will contain physical config files and scripts
3. Enable the non-free debian repo so that we can install the bnx2x firmware
4. Install packages needed to build the router. A full list of the packages
which will be installed available here:
https://github.com/JAMESMTL/debian-v9-router/blob/master/files/opt/router/docs/packages
note: we will be using igmpproxy version v0.2.1 distributed with debian buster rather
than the outdated version v0.1. distributed with debian stretch. Personally I build the
package but this will do just fine.
note: we will be using the miniupnpd binary v2.1 from debian buster rather than
the binanry v1.8 (2014) distributed with debian stretch. Personally I build the
package but using the binary works just fine.
*** NOTE once debian 10 launches the distro packages will be up to date(ish)
5. Clean up of the messy miniupnpd install.
6. Fetch config files as an archive from github or use an existing archive if
available locally. You can browse the file tree here
https://github.com/JAMESMTL/debian-v9-router/tree/master/files
7. Extract files from the archive we downloaded to /opt/router/files. This directory
will contain a copy of all the config files downloaded and the directory structure
matches where those files will later be copied. This will be a reference copy of a
working file set that can be consulted for comparison with the working files.
8. Make a backup of all the original configuration files that will be replaced
into /opt/router/files.bak. This will be a reference copy permitting the comparison
between stock config files and a working config.
9. Copy all of the configuration files to their final locations.
10. Create symlinks in /root/router
11. Extract backup of locally modified files if available
12. Extract backup of extra files if available
13. Reload daemon configs. Remove miniupnpd from init.d autostart but add to systemd
14. Create a fresh set of root ssh keys
15. Make scripts executable
16. Install complete!
Use WinSCP to edit the config symlinks located in /root/router/config
then run the activate script ~/router/action/activate.sh