-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.Debian
62 lines (41 loc) · 2.17 KB
/
INSTALL.Debian
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
You can build package files for Debian based distributions (including Ubuntu)
by running the standard build commands:
# Install build dependencies
i="$(dpkg-checkbuilddeps 2>&1 | sed -e 's/.*dependencies: //;t;d')"
[ -n "$i" ] && sudo apt-get install $i
# Build package files
dpkg-buildpackage
These commands replace "./configure" and "make", which you would run on
non-Debian systems.
If you have a very old Debian system, you might have to use "fakeroot
dpkg-buildpackage", instead of just "dpkg-buildpackage".
If you want HTTPS support, and if you want the ability to run "shellinaboxd"
as a non-privileged user, you should now install these run-time libraries:
sudo apt-get install libssl0.9.8 libpam0g openssl
Running "dpkg-buildpackage" puts package files into your parent directory.
You can install them with:
sudo dpkg -i ../shellinabox_*.deb
You can now connect to your new shell at:
http://localhost:4200
In contrast to installation by "make install", this package file creates
files that are managed by the system tools. This allows it to install
configuration files in "/etc" and to automatically start the daemon.
You can configure the daemon process by editing "/etc/default/shellinabox".
You can also provide SSL certificates for your site by installing them in
"/var/lib/shellinabox". By default, the system will install self-signed
certificates for you. These certificates are likely to raise warnings when
you point your browser to the site.
At the very least, you need a file called "certificate.pem" that includes
both the private key and the public certificate in PEM (i.e. ASCII) format.
Additionally, you should create files for each of the publically visible
hostnames that your machine has. These are named "certificate-${FQDN}.pem".
You probably also want "certificate-localhost.pem".
After you make any configuration changes, you need to restart the daemon by
running:
sudo /etc/init.d/shellinabox restart
If you want to know which files were installed by the package, run
dpkg -L shellinabox
If you want to uninstall it again, run:
sudo apt-get remove shellinabox
For all other administrative tasks, refer to the documentation that came
with your system.