Month: April 2020

Checklist: install and configure MySQL in Ubuntu 18.04 LTS

Update the repository index: # apt-get update Install the MySQL Server: # apt-get install mysql-server Verify status and installation: # mysql –version Secure local installation: # mysql_secure_installation (at the very least remove anymous access and sample stuff) Start mysql shell: # sudo mysql Verify authentication for root: > SELECT user,authentication_string,plugin,host FROM mysql.user; If set to auth_socket, change to mysql passwords: > ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’; Reload the grant tables: > FLUSH […]

Setting IP restrictions on an apache website

Limiting IP access is a rather efficient way to restrict access to sensitive sites, such as for example phpmyadmin installations.There are multiple ways to archive this, one of the easyer ways is by setting the .htaccess file in the web directory for the specific site: The above gives you a series of examples for a local subnet (local internal network), internet subnets or single address.

Creating a linux desktop with X410 and WSL

Note: This process is largely a rewrite from the official X410 app cookbook, for presevation and easy access. Requirements: Windows 10 with WSL installed Install Ubuntu (or any distro of your picking) from the Windows store Install the X410 APP from the windows store Install the X server, and disable any screensaving stuff: Create a batchfile for starting the desktop session in an easy way: Bare essentials, you are done now. To give your desktop […]

Adding the Courier IMAP server to your system (Debian, Ubuntu)

Courier offers IMAP services for your system. Prequisite: PostFix mailserver package Prequisite: Maildir style mailboxes see here Add the Courier package for IMAP support  Courier will install a self signed certificate at the location /etc/courier/imapd.pem, which can be replaced with a production grade certificate later. Add your local domains to postfix Check domain settings with sudo postconf mydestionation (debian: /usr/sbin/postconf mydestionation) Correct domain settings with sudo postconf -e mydestination Check/correct local networks: mynetworks Instruct postfix […]

Setting Postfix Support for Maildir-style Mailboxes

Maildir is an e-mail spool format that keeps all mails in seperate files, and thus does not need file locking to maintain message integrity. All operations are atomic. A MailDir directory contacins thgree subdirectories: tmp, new and cur. The populair Courier IMAP/POP servers work with the MailDir format. Restart postfix to make the changes take effect.

Generic www tot non www redirect for apache

Step 1, Make sure you can use mod_rewrite The virtual host you want to apply the redirection on needs permissions to use mod_rewrite to perform the redirection. You will need something along these lines a little bit dependent on how your websites are configured to enable overriding options through .htaccess Step 2, Applying the redirect Edit or create the .htaccess file in the web directory for the site, and add the following redirect code

Enabling apt-get on HP ThinOS

HP ThinOS (version 7 at the time of writing) is a modified version ubuntu xenial. You will find that the repository references are still present in /etc/apt/sources.list, so re-enabling package installation is rather straightforward: Activate administrator mode on the thin client Open an x-terminal (or use the build in graphical text editor) Remove the comments before the repo’s Now your file should look like below Now, you can use apt-update, and install packages. BIG FAT […]