Use a Raspberry Pi to change default IP Addresses on newly installed devices in a remote Control Panel We have many control systems out in the field connected to our office using IPSEC VPNs. Each control system needs its own subnet (usually a 192.168.x.x/24) to make this work. So, a problem arises if a new […]
Blog
Adding Non-Free Drivers to a Debian Installation
When you install a new version of Debian from scratch, you may need “non-free” drivers for things like a Wireless Network Adapter. If these drivers are not GPL-licensed, then Debian will not include them in the installation image. You can work around this by installing the non-free image from a location such as http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/10.7.0+nonfree/amd64/iso-cd/ for […]
Simple Linux Port Scanner
It is often necessary to check a remote device to see if certain ports are open. For a quick & dirty test, use netcat (nc) in Terminal. If you want to automate things a bit to reduce typing, add the following bash function to your ~/.bashrc file portscan() {echo ‘Stealthed ports will timeout instead of […]
Upgrade VirtualBox to latest version
If you already have VirtualBox installed on Debian, it only takes a couple of minutes to upgrade to the latest version. In this case, I will be upgrading Debian Stretch from v6.0.x to v6.1.x All the prerequisites on https://www.virtualbox.org/wiki/Linux_Downloads have been met since this is an upgrade. Open Terminal and run these commands: sudo apt-get […]
Using Synology Self-signed SSL Certificates internally with Windows & Linux
When setting up secure Intranets, it is often necessary to configure the servers with SSL certificates that have not been issued by a trusted certification authority. While browsers such as Firefox allow you to add an exception, even permanently, to the site in question, opening that website in Chrome will produce an error notice each […]
Productivity Suite v3.5.3.3 breaks .adpro File Association
I recently upgraded my PLC Programming PCs running Win7 Pro from Automation Direct (automationdirect.com) Productivity Suite v3.5.2.2 to v3.5.3.3. When I did so, my file association for .adpro files quit working forcing me to open the Productivity Suite software first and selecting the project file to open instead of just double-clicking the .adpro file in […]
Maintaining Google Earth in Debian Linux
Google Earth is supposed to configure updates during installation. From the Google Linux Software Repositories site: The Linux Package Signing Keys Google’s Linux packages are signed with GNU Privacy Guard (GPG) keys. Google’s packages will automatically configure your package manager to verify product updates with the public signing key, but you may also install it […]
How to run PHP-FPM 7.3 with a Debian Apache 2.4 HTTP Server
PHP-FPM (FastCGI Process Manager) is an alternative to PHP FastCGI. It provides features like Adaptive process spawning, basic statistics, and advanced process management with graceful stop/start. PHP 7.3 is not available for Debian Jessie so you will need to get it from a third party repository: $sudo apt-get -y install apt-transport-https lsb-release ca-certificates $sudo wget […]
Fix Incorrect MP4 Duration in Linux
I recently used a screen capture program to record a video of some actions in Firefox. When the video was complete, the Duration was incorrect. Windows Media Player doesn’t seem to mind and happily played the entire video even though the duration property was 16 seconds and the actual duration was 31 seconds. When I […]
Splitting Text Files in Linux
Check the number of lines in a text file using the wc command, which stands for “word count”. $ wc -l access.log146330 access.log We’re way over our limit. We’ll need to split this into 3 segments. We’ll use the split utility to do this. $ split -l 60000 access.log $ ls -l total 79124 -rw-rw-r– […]