The Linux Page

Help other users realize that everything is possible, especially avoiding Windows for their own personal use.

Welcome to The Linux Page


Fox Trot by Bill Amend. Click to enlarge.
Click to enlarge

This site is a collection of my own work with Linux. Certain things are easy, others take time to decipher and if I ever need to repeat the work (which usually happens!), then I need to remember everything by memory or... have a site with all the steps taken and to take again.

The following are my most recent posts:

Who is ZmEu?

An image showing ZmeuThe name Zmeu (no capital E) is the name of a fantastic creature of Romania. There are so many stories that there isn't a clear understanding of what it is... but it is human like, can spit fire and wants to marry young women.

If you're wondering, it is generally a bad guy.

ZmEu Attack

Today, I noticed a lot of traffic on one of my servers. Looking into what was happening, I immediately found out that an attacker was looking for a loophole in that system. That attack was being performed from China.

I checked another server, and sure enough, that other server was ...

Which destination has to be used?

Wildcard Certificate with letsencrypt

I have my own DNS, so I need to set it up myself to get letsencrypt to work as expected and generate a wildcard certificate for my websites.

They decided to test the DNS because that way they know you are in control of the domain and its sub-domains (only the owner  of a domain name would be able to allow such a test to work.) When creating a certificate for just one website they can ask you to place a file there, which is very easy, but for an entire domain, that wouldn't be quite enough, especially since some business endeavors actually ...

Binary code to Zones

Today I needed to check a zone file to see why the IP address was wrong on one of my servers.

Sure enough, the IP was the old one (We switch servers about 9 months ago). Although once in a while I would get the right IP, the second name server still had the old IP. I thought the cache would be renewed more often than that, but I guess this is well optimized!

The error I made is not change the time info which means that the second name server never saw the change. This is just a domain name I redirect so I never noticed the problem before.

To check the cached file, though, I needed a way ...

Preface

My old computer only has 8Gb of RAM. The motherboard was supposed to support 16Gb, but it looks like the one model I got did not work with that much memory.

I've used that computer for too long now and I have been looking at upgrading for a few years, but I was not quite ready to do it. In 2019, now I'm finally moving forward with an upgrade. Why? Because 1Tb computers are actually becoming affordable!

For now, I'll be getting only 512Gb of RAM, but even just that will allow me to run 24/7 without having to close my X-Windows sessions every night (which is sad because ...

Localstack — services simulating the Amazon S3 environment

Today I had a need to run the localstack services to emulate Amazon S3 and get some work done.

This is a gigantic project with a ton of services. Really difficult to go through the maze if you want/have to fix something in there... (my take without having looked too deeply.)

The README.md says that you should first install:

pip install localstack

That worked, but who knows which version got installed (ah! yes, no idea, it could be a really old one?)

Then to start the services do:

localstack start

It did not sound too complicated, so I went ahead and go this error on the start ...

Preface

I have not been able to find a reliable source describing the Info/Xing/LAME tag which appears in the very first frame of an MP3 Layer III file.

Here I describe the structure based on the GetVbrTag() function found in LAME.

See: libmp3lame/VbrTag.c (around line 362 in version 3.100).

Layer III

The tag requires the file format to be of Layer III.

This means the bits 1 and 2 of the second byte of the frame header must be equal to 1.

((frame[1] >> 1) & 3) == 1

MPEG Info to VBR Tag

Part of the data in the LAME VBR Tag comes from the frame header:

  • h_id ...

Video showing our firewall counters increase every second.

What Happened?

Once in a while, we get a large number of totally unwanted hits. I am thinking that the ones we're getting now are not really DDoS, but rather spiders looking for forms to fill out to send us spam. That being said, the result has been many:

503 Server Unavailable

So for us it was very similar to a DDoS. That's what happens whenever a robot sends you multiple HTTP requests per second non-stop all day long. Our servers are only for some 10,000 to 50,000 hits a month at this point, so receiving that many ...

Spider Web representing various Internet and Intranet network of users.

Older Versions (Ubuntu 17.10-)

With older versions I would just go to /etc/network and edit the interfaces file.

This file would have definitions about the computer interfaces, whether each computer gets a static IP or uses DHCP, etc.

Here is a sample setup for older versions:

auto eth0
iface eth0 inet static
        address 10.0.0.1
        netmask 255.0.0.0
        network 10.0.0.0
        broadcast 10.255.255.255
        gateway 10.0.0.1
        dns-nameservers 10.0.0.8 10.0.0.9
        dns-search m2osw.com
        pre-up /etc/network/firewall

The pre-up is a script run ...

Paper Archives

Today I really got fed up by the Archive feature. I never archive anything in Thunderbird. I have an automatic archival system and have all my emails since 2010. No need for that in my IMAP3 system!?

The biggest problem for me is that I work really fast. So when I go to my Junk folder and select all the emails to delete them, the Archive button appears where the Delete button was just a split second ago... and you guessed it, I end up clicking on that button...

So I thought I'd file a bug report to see whether they would consider not having the Archive button in the Junk folder. ...

Old Broken Plane, reminds me of old broken modules in Drupal...

Last night I found a problematic module... Specifically, it was XML Sitemap, but I do not think it was specific to that module.

The problem? I lost the XML Sitemap menu. I could not access it at all. So I decided to run the update.php code to see whether that would wake it up. Did not work. Then I tried going in the Modules list and disabling the modules. Did not work! Wow! I could not disable these modules!!! How weird...

So I finally decided to go in the database and mark the status as disabled (i.e. 0 instead of 1). That worked and the module was now disabled. I could even ...

Thank you for visiting my website.