Installing Jenkins on HardenedBSD
Tested on HardenedBSD 12
Installing Jenkins on HardenedBSD
In order to get Jenkins installed on HardenedBSD 12, we need to install:
# pkg install jenkins
Edit and add the following lines to your /etc/rc.conf file:
jenkins_enable="YES"
jenkins_home="/usr/local/jenkins"
jenkins_user="jenkins"
jenkins_args="--webroot=${jenkins_home}/war --httpPort=8180"
Apply the following rules:
# hbsdcontrol pax disable pageexec /usr/local/openjdk8/bin/java
# hbsdcontrol pax disable mprotect /usr/local/openjdk8/bin/java
I’m not pretty sure if these are necessary, but, just in case:
# hbsdcontrol pax disable pageexec /usr/local/openjdk8/bin/javac
# hbsdcontrol pax disable mprotect /usr/local/openjdk8/bin/javac
# hbsdcontrol pax disable pageexec /usr/local/openjdk8-jre/bin/java
# hbsdcontrol pax disable mprotect /usr/local/openjdk8-jre/bin/java
Now you can start the jenkins service:
# service jenkins start
Fire up your web browser to:
http://yoursite.com:8180
Continue with the configuration wizard.