DevOps

Postfix

Ubuntu 12.04 – Install Postfix, Dovecot and Vimbadmin

19

This tutorial shows you how to install Postfix (2.9.6) with Dovecot (2.0.19), the manage tool Vimbadmin (2.2.2) and SpamAssassin (3.3.2) on Ubuntu Server 12.04 (I got feedback that this tutorial still works for Ubuntu Server 14.04).

If you are using Chef, “Install ViMbAdmin with Chef” can speed things up a bit.

Perform all actions as root!

Checks

Hostname

You should check that your server has a valid fqdn hostname (complete with the domain part):

hostname --fqd

If you get something like “localhost” or “mail” More >

Vagrant

Vagrant – Shell provision example

0

Vagrant is a very awesome tool that makes it very easy to develop your projects in virtual machines on your laptop or PC. It’s a wrapper around VirtualBox. It also makes them very easy to maintain and they can be used by a whole group of developers. This way all the developers that work on a project keep the same development environment. So that kicks the argument “But on my machine it works” out of the door.. finally!

Read all about it at http://www.vagrantup.com/.

There are a few provisioners available like Cheff, Puppet, More >

Jenkins

Ubuntu 12.04 – Install Jenkins 1.4 with Jetty 9

0

This tutorial requires that Jetty is installed as described at http://pietervogelaar.nl/ubuntu-12-04-install-jetty-9.

This tutorial describes how to install Jenkins 1.4 with a jenkins.war file with Jetty 9. I installed it on ubuntu 12.04 but it shouldn’t be very different on other linux distributions.

Perform all steps as root.

First of all get the latest jenkins war (web archive) file!

cd /opt/jetty/webapps
wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war

Jetty will probably immediately detect the war file and does a hot deploy, but to be sure restart Jetty.

service jetty restart

I configured Jetty at port 8085, so More >

Nginx

Configure Nginx 1.2 as proxy for Jira 5

0

By default Jira runs on a certain port, in this example at port 8090. It is accessible by http://example.com:8090/. This tutorial will make the Jira application available at port 80 with jira as path like: http://example.com/jira. Two configurations are possible, with or without SSL.

Make sure you perform all actions as root.

Without SSL

Change the file /opt/atlassian/jira/conf/server.xml file with:

nano /opt/atlassian/jira/conf/server.xml

Search for the part <Service name=”Catalina”> and make it look like:

<Service name="Catalina">         <Connector port="8090"            

More >

Varnish 3 – Exclude a virtual host

1

If you have multiple virtual hosts on your webserver, installing Varnish will cause all virtual hosts to be cached. With VCL it’s possible to exclude some virtual hosts.

sudo nano /etc/varnish/default.vcl
sub vcl_recv {     # Don't cache domain1.com or domain2.org - optional www     if (req.http.host ~ "(www\.)?(domain1.com|domain2.org)\.(com|nl|org|dev|local)") {         return (pass);     } } sub vcl_deliver {     # You can optionally set a reponse header so it's easier for you to debug

More >

Go to Top