Introduction: In the following example I try to set environment variables according to the incoming request’s ‘HTTP_HOST’ value. The following example pertains to Magento Webshop software which offers a different Store view for every domain configured to land in the main store. Prerequisites: – Magento is been configured, apart from its default Store View, to …
Category: Uncategorized
Turn OFF/ON Mac Synaptic Trackpad in Linux Mint 19.3
If you are annoyed by the accidental touch on the MacBook (Pro) Touchpad and want to turn it off here is what you can do: Create 2 launchers on your desktop which when double clicked turns the Trackpad ON or OFF. Here are the commands: First you need to make sure the following package is …
Linux Mint 19.3 disabling the menu pop on Mac ‘Left Command’ Press
Introduction: After having installed Linux Mint 19.3 on an old MacBook Pro, I wanted to disable the Menu pop-up function on the ‘Left Command’ key press. Solution: Delete the following entry in the Settings Editor(in the settings menu): xfce4-keyboard-shortcuts –>> /commands/custom/Super_L | xfce4-popup-wiskermenu Calveat: First I could not delete the command. Then I simply deleted …
Adding a title to SSH login terminal TAB
Introduction: Reference: https://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal Each terminal emulator has its own way of configuring a TAB title name for an SSH connection. To make sure it works for all well behaving terminal emulators, you can force the Title via an escape sequence set in the destination server. Howto: Login to a server via SSH and ad one …
Bypass the Docker –iptables limitations
Introduction: By default Docker daemon(dockerd) starts in an ‘open’ mode where all the advertised ports from docker are open for access from internet NO MATTER if the Linux system has a firewall that limits the access. That is because dockerd does give access to the ports at a lower level which ignored any firewall. In …
Create a simple and general access Samba share
apt-get install samba smbclient cifs-utils heimdal-clients mcedit /etc/samba/smb.conf Here we will create one share as read only from guests users and one share as read/write for a specific user Create read only Share [Photos] comment = “Family Photos” path = /media/NextCloud/Photos browseable = yes read only = yes guest ok = yes Create the read/Write …
Changing DNS resolving entries in Systemd controlled systems
References: https://unix.stackexchange.com/questions/442598/how-to-configure-systemd-resolved-and-systemd-networkd-to-use-local-dns-server-f Make sure the resolvconf package is deinstalled. This resolvconf package is useful for ‘on-the-road’ Laptops but is an overkill and can create problems in Servers.apt-get remove resolvconfreboot Edit the systemd controlled resolved.conf mcedit /etc/systemd/resolved.conf [Resolve]DNS= 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844FallbackDNS=Domains=itmatrix.eu srv#LLMNR=no#MulticastDNS=no#DNSSEC=no#Cache=yes#DNSStubListener=yes Update systemd to the new edited resolved.conf systemctl daemon-reloadsystemctl restart systemd-networkdsystemctl restart systemd-resolved
Gmail problem with Thunderbird
The authentication problem encountered when creating a new Gmail account in Thunderbird can be solved as follows:Reference: https://support.google.com/mail/thread/4528103?hl=en 1. Set Thunderbird in safe mode https://support.mozilla.org/en-US/kb/safe-mode-thunderbird If Thunderbird is not running: Start Thunderbird in Safe Mode by holding down the option key while starting the application.If Thunderbird is already running: At the top of the Thunderbird …
Installing Anydesk in Debian/Ubuntu
Installing BearExtender for Mac on Mac OSX 10.11(El Capitan)
These instructions are a mix of what I got from: https://blog.alfa.com.tw/2016/03/01/using-alfa-network-awus036nh-awus036neh-awus036nf-awus051nh-v2-awus052nh-on-osx-10-11-el-capitan/ https://www.bearifi.com/pages/bearextender-1200-support Run the following instructions: Create a new directory for the downloads mkdir ~/BearExtender Put the following download in the directory called ~/BearExtender Download the BearExtender Kernel Extension from here: http://107.170.140.210/s/8aa1Wf38QGi7R7v Get the BearExtender software Put the following download in the directory called ~/BearExtender …
Decrypting Jotform encrypted CVS Files
Description:When the encryption is been activated for the JotForms, exports of the forms in CSV format are saved with almost all fields in RSA encrypted format. This script below allows to decrypt such CSV files. Problem:Since the private key is only saved at the JotForm user’s side, the JotForm server has no way of decrypting …
FTPS on command line using LFTP
# In Debian/Ubuntu, install LFTPapt-get install lftp # Create the configuration file in home directory of the user# eg. admin user will be running the program: cd /home/admintouch .lftprc (Content)set ftp:ssl-auth TLSset ftp:ssl-force trueset ftp:ssl-protect-list yesset ftp:ssl-protect-data yesset ftp:ssl-protect-fxp yesset ssl:verify-certificate no Command line to upload 2 files: software.txt and software2.txt cd /DATA/files/lftp user:PASSWORD@servername <<EOFput …
Working with UFW and Docker
Introduction: I’m not really sure how well this DANGEROUS situation is overall known but I will try to explain it just a bit here because I’m not a specialist neither in Docker, nor in Iptables nor in UFW. Situation:If for example you install Docker in you Linux system in, for example Ubuntu 18.x, and want …
Installing ‘glances’ system overview
Although top, htop etc. are giving a good overview of the system here is another one which is quite good: glancesInstallation:Upgrade pip(if needed) # apt install python-pip python3-pip# pip install –upgrade pip# pip install glances
Solution for MySQL/MariaDB Field ‘xxx’ doesn’t have a default value
Situation:Using PhpMyAdmin I was trying to add a user and this error kept on coming up and I could not add the user. After some research here are 2 solutions: The following articles are so good and helpful that as soon as I saw them in Internet I wanted to copy them here. The first …
Unassign a software RAID member volume to become again a normal volume.
Situation:I had assigned the drive partition (/dev/sdb1) to a Linux Software RAID disk group. Now I want to take out this drive from the software RAID group and use it as a normal drive. Since the drive has been assigned to a group simply trying to use it as a normal drive by re-partitioning and …
Solving the Running /scripts/local-block loop while booting in linux
Problem: Linux booting and taking a long time while looping with the script: /scripts/local-block Reason: Linux boot needs to know the UUID of the Swap file it tries to mount. Solution:Run the command:blkidand get the UUID of the Swap file.Run the command:nano /etc/initramfs-tools/conf.d/resumeThis file doesn’t exist. It will then be created.Add the following line as …
Find used iNodes in System
Intro: I was working on a system that suddenly showed no more space available in system even though ‘df -h‘ showed that there was still lost of space left. The command ‘df -hi‘ showed me that there were no iNodes left in system: all used. Some sites are showing how to find the directories that …
Creating new Software RAID Disks
Assumptions: Lets say you rented a server in Hetzner and it offers the wappy 4 x 10TB disks. You want the following disks configuration: Disks: 1 and 2 (in RAID 1) total 10TB in Mirrored RAID 1 modeDisks: 3 and 4 (In RAID 1) total 10TB in Mirrored RAID 1 mode HOWTO:1 – During the …
Listing all subscribers in mailman mailing list
Intro: As far as my experience with mailman is concerned, if I create a list of all subscribers of a mailing list using the web interface I get the list with the word ‘at’ instead of ‘@’ in each email address. In order to get a normal list of all addresses of subscribers a mailing …