No Image

XWiki on Ubuntu 16.04 LTS with Nginx Reverse Proxy

February 26, 2018 Andy 0

Install XWiki and all dependant programs on a 4 GB cloud server. This means: 1) Java 2) Tomcat 3) MySQL/MariaDB 4) XWiki 5) Nginx Here we use Nginx as a reverse proxy to firstly redirect all HTTP to HTTPS and then forward all requests on port 80/443 to port 8080 (tomcat) on the localhost. Here I use LetsEncrytp for my SSL certificates. Before we begin… Setup DNS wiki.dummydomains.org.uk ——> 134.213.27.60 Prepare the Server Update Update and reboot the server. Enable the firewall Install Oracle Java This is a requirement before installing Tomcat or XWiki. At the time of writing, Java 8.x is […]

No Image

openssl

February 10, 2014 Andy 0

The OpenSSL project is an open-source general purpose cryptography library that implements the SSL and TLS protocols. Configuration File The configuration file for OpenSSL is openssl.cnf. The location of which will probably vary across Linux distributions. On Red Hat systems the configuration file is as shown below. /etc/pki/tls/openssl.cnf You can use this file to define certain default values. For example, editing the dir variable sets the default directory for saving your certificates. You will need to first create the directory if you change this value. dir = /certs/ssl/ca Some additional variables I like to set are as shown below. You […]

No Image

tar

February 10, 2014 Andy 0

Compressed Archive Resources How do I Compress a Whole Linux or UNIX Directory? http://www.cyberciti.biz/faq/how-do-i-compress-a-whole-linux-or-unix-directory/

No Image

nmap

February 10, 2014 Andy 0

nmap -sS 1.2.3.4 nmap -PN 1.2.3.4 -p 22 The -PN option treats the host as if it is online and will not perform any host discovery.

No Image

curl

February 10, 2014 Andy 0

curl -I http://pikedom.com http://curl.haxx.se/docs/httpscripting.html https://httpkit.com/resources/HTTP-from-the-Command-Line/ http://www.yilmazhuseyin.com/blog/dev/curl-tutorial-examples-usage/

No Image

locate

February 10, 2014 Andy 0

The locate command can be used to find files by name. As usual you can find out everything you could possibly want to know about the the locate command in the manual pages. man locate Essentially, locate, at set periods runs a cron job indexing each file name into a database. The locate command simply searches the database for a given file name. If you know the file you are searching for is new, you might first need to update the locate database with updatedb. In its simplest form, to find a file called myfile.txt, run. locate myfile.txt

No Image

find

February 10, 2014 Andy 0

You can use the find command to search a system for files or directories. The find command can be quite resource intensive as it trawls recursively through your file structure. Often a more suitable command is locate. See here for more information about the locate command. As usual you should head to the manual pages to find out more. man find In its simplest form, you can use the find command like this. find / -name myfile.txt The ‘/’ is the directory to start recursively searching from. We use the ‘-name’ command line option to indicate we are searching on […]