获取:
wget https://vpl.dis.ulpgc.es/releases/vpl-jail-system-3.0.1.tar.gz
从github获取的,需要对系统进行以下操作(不是的最好也做一些此操作):
sudo apt-get install g++ make autotools-dev autoconf
aclocal
autoheader
autoconf
automake
./configure
make distcheck
解压并安装:
The “./install-vpl-sh” script must be run as root.
tar xvf vpl-jail-system-3.0.1.tar.gz
cd vpl-jail-system-[version]
./install-vpl-sh
Install Let's Encrypt to get free certificates?(y/n)y
Installing Let's Encrypt: certbot
[OK]
Please, enter the domain name (FQDN) of this machine in order to install the configure Certbot.
(VM-16-10-ubuntu ): *.*.*.*(域名)
Requested name *.*.*.*(域名) is an IP address. The Let's Encrypt certificate authority will not issue certificates for a bare IP address.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/tmp13g6grl9/log or re-run Certbot with -v for more details.
Failed to enable unit: Unit file certbot-renew.timer does not exist.
./install-vpl-sh: line 200: /etc/letsencrypt/renewal/*.*.*.*(域名).conf: No such file or directory
./install-vpl-sh: line 201: /etc/letsencrypt/renewal/*.*.*.*(域名).conf: No such file or directory
以上内容需要修改域名对应的证书:可以是私有证书。
如果您有自己的用于HTTPS和WSS通信的SSL证书,则必须将您的公共证书复制到“/etc/vpl/cert.pem”文件中,并将私钥复制到“/etc/vpl/key.pem”文件中。您还可以更改配置文件来告诉系统您的证书的位置。如果您的证书颁发机构(CA)不是根CA,您可能需要将中间CA证书添加到“cert.pem”文件中。您可以重新启动服务以应用修改。
选择相应的需要语言:基本全部安装。避免二次安装!
Do you want to install development software?
(Ada, Assambler, C, C++, C#, DDD, Fortran, gdb, Haskell, Java,
JUnit, Node.js, Octave, Pascal, Perl, PHP, Python, Ruby, Scala,
Scheme, TCL, valgrind)
(y/n)y
Do you want to install other development software?
(Clisp, Clojure, Cobol, CoffeScript, D, Erlang, Go, Haxe, JQuery,
Lua, R, Xquery, VHDL)
(y/n)y
最后生成私有SSL证书,替换上面两个目录的文件就可以了! 使用下面的命令重启:
systemctl restart vpl-jail-system