Relative Content

Yearly Archives: 2019

Javascript navigation and form data.

One of the things that I found myself doing over and over again was creating a function to post data back to the server so I created a tiny class that makes use of my jsfunction class to simplify the creation of post functions. #include “jsnav.h” using std::string; using std::vector; jsnav::jsnav(std::string fName) : jsfunction(build_function_name(fName)) { […]

Javascript in c++

The problem that I had with laying down javascript functions in c++ was very similar in nature to the problem one of html; i.e. having escape characters all over the place or producing virtually unreadable code.  Thankfully the problem was much easier to solve with a class of less than 100 lines of code; And […]

Open VPN

Installation With point to point tunneling protocol VPN’s depreciated because of security issues we are now not even bothering to install pptp at all and are instead opting for openvpn. For the installation you are going to want 2 applications, openvpn and easy-rsa. #apt-get install openvpn easy-rsa   Build and configure the certificate authority OpenVPN […]

Bacula

No good server would be complete without a system to back up your files and folders. For this purpose we use bacula.  In this instance we already have postgresql installed so all we need to do is create a user #createuser bacula -DRSP -U postgres Once we have a user we can begin installing bacula […]

Samba Active Directory (With Bind9)

The configuration of samba in standard mode is pretty self explanatory, but unless you are running a pretty basic configuration you are likely to want Active Directory to manage longons for MS Windows workstations. NOTE: In this example we are going to use the following Server Name:         pine Domain Name:       uk And we will be […]

PHPPgadmin

phppgadmin is installed in /usr/share/phppgadmin. You will need to create a site file in /etc/apache2/sites-available and enable it in order to access phppgadmin. You will also have to set up dns accordingly. The file should look something like this <VirtualHost> *:80> ServerName pgadmin.caa.intrasec.net Redirect “/” https://pgadmin.caa.intrasec.net </VirtualHost> <IfModule mod_ssl.c> <VirtualHost _default_:443> Servername pgadmin.caa.intrasec.net ServerAdmin tim@jtek.co.uk […]

Apache 2

If you haven’t got apache installed already then just install it using apt-get install apache2. Once it is installed, make sure that it works by pointing a browser to the FQDN of your server. If all is well then it will bring up the debian apache2 default page.  If it does not work and you […]

Roundcube

  Installation #apt-get -y install roundcube-pgsql roundcube-plugins If you already have a postgresql server running with some default values then let the install wizard do its thing, it will ask you a few questions, install the database and install roundcube in /var/lib/roundcube   If you want to do things manually for some reason then : […]

Spamassassin

Installation First thing first: DON’T EVEN THINK ABOUT DOING THIS UNTIL YOU HAVE AN OPERATIONAL MAIL SERVER RUNNING DOVECOT, POSTFIX AND POSTFIXADMIN! You need to get it working on it’s own; If it has gone tits up already this won’t fix it. Did I mention not to do this until you had a working server?  […]

Dovecot

While postfix provides SMTP outgoing mail services dovecot manages the inbound traffic and the mail boxes. In the previous parts of this guide we configured postfixadmin so that we can add domains and mailboxes to the database. This information is also useful to dovecot so as part of our configuration of dovecot we are going […]