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:

A Telephone post with many lines to the surrounding homes.

I have noticed that quite a few people were trying to create UDP communication and I thought that proposing my class could help them. This is very basic as it does not define anything such as the size of a packet or any protocol to ensure arrival of the packets. However, it can be useful if you want to send a signal from one process to another, which is exactly how I use this implementation (i.e. I send a PING message to wake up a background process whenever the front end adds data to the database.)

This code is part of the Snap! C++ implementation. The latest version can be found in the ...

The prompt is generally the name of the user, the name of the computer, the path, and then a character such as $ or #.

What's missing to the default prompt, to my point of view, is time. It's quite often that I like to know when I ran a certain command. So I can do enter and then run the command. The first enter prints the current date (otherwise you have the date when you last ran a command...)

Bash

For bash I use the following:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \D{%Y/%m/%d} \t \$ '

So I added ...

As I upgraded to Ubuntu 24.04, I wanted to reinstall Synergy and that did not work out of the box as it was setup.

Looking around, it seemed that I'd have to get Synergy 3.x and I did.

The experience was fabulous. I installed it on my Ubuntu and then replaced the old version on my Windows box with version 3.x (I had some version 1.x which worked, but had all sorts of bugs).

The new installer does not require you to specify anything other than location of your screens. For the rest, it works 100% automatically. It's like all the computers know about the others without you having to ...

I like to play Shisen Sho and even wrote a tool to search for a solution (because at times, the randomized games have no solution even if you ask the game to not create such boards).

However, under Ubuntu 24.04, the icon was missing and I could not pin the game to my favorites. So I search fora  solution and it was actually rather simple. You have to edit the .desktop file and add the startup class info. I find it strange that just a missing field like that would prevent a lot of the functionality for an app. but well...

I found the solution on Ask Ubuntu (a stackoverflow website).

...

I just installed Ubuntu 24.04 (yeah... it's already 2025...) and started to setup my new system. Tons of software to re-install, etc.

I use Firefox as my default browser, but I also have Chrome and Opera for all sorts of reasons (Chrome plays more videos and Opera allows me to be logged in as a different user in a few systems).

Today I clicked on a link in Thunderbird, which I've been doing a lot. Only, it opened the Chrome browser instead of Firefox. I was really surprised since that usually works as expected.

I went to my System Preferences, Apps, Default Apps... and sure ...

I've always had to recreate my filters whenever I reinstalled Thunderbird on a new system. After a while, that's rather annoying to have to do that over and over again.

This time, my lost filters included hunders of rules (around 5 or 6 years of work). The only good thing about it: I can now decide to not reinstate some of the filters. After all, most of these good old filters were rather useless after so many years. Many of those emails, I really do not care about anymore. So it's going to be a big clean up.

That being said, it would be a lot easier to clean up by deleting ...

Firefox Logo

Today I was thinking I should restore my bookmarks in Firefox. It has been a few days since I was preparing to lose my boot drive and I did not lose it while running... but I still replaced it. It took me a whole weekend to get back to a somewhat normal system (unfortunate that it takes so long...)

So... I have Firefox running and I have an HTML file with all my links. I right click around the location where you enter URLs. That shows a small menu where I can choose to show my toolbar: Bookmarks Toolbar » Always Show.

Now I see a button to the left side which says Import bookmarks. I ...

SSD Drive Picture

Whenever a disk starts failing you get errors telling you that your ATA is timing out or returning some other kind of errors.

Here is an example of errors I was getting in /var/log/syslog with Ubuntu 22.04:

Feb 22 07:47:13 monster kernel: [87309.624764] ata6.00: exception Emask 0x0 SAct 0x2000 SErr 0x0 action 0x0
Feb 22 07:47:13 monster kernel: [87309.624780] ata6.00: irq_stat 0x40000008
Feb 22 07:47:13 monster kernel: [87309.624789] ata6.00: failed command: READ FPDMA QUEUED
Feb 22 07:47:13 monster kernel: [87309.624794] ata6.00: cmd 60/08:68:30:ea:08/00:00:56:00:00/40 tag 13 ncq dma ...

Lately I've been using a USB drive to boot on various versions of Ubuntu to install Ubuntu on a computer. I used the following command to save the ISO on said USB drive:

sudo dd bs=8M \
    if=ubuntu-24.04-desktop-amd64.iso \
    of=/dev/sdh \
    conv=fsync oflag=direct status=progress
  • The bs=8M option tells dd to read 8 megabytes at a time (pretend that the block size is thatlarge) — in most cases this makes for a much faster transfer speed
  • The if=... indicates the source file, an ISO in my case
  • The of=... indicates the destination, here we use the USB ...

Introduction

Last night we had a pretty large scale power issue. It went down for over 1h.

I restarted the computer in the middle of the night, but when I came in the office in the morning, the LAN computers and phones were not connecting to the Internet.

I fairly quickly ruled out the firewall as an issue, it was in place as expected.

Looking further, I noticed that my PC's would find some DHCP info, but the DNS IP addresses were the local IP address (such as 10.0.10.1 instead of my Internet provider DNS IPs). So the culprit had to be the DHCP server.

Sure enough, the server was ...

Unfreeze your Mouse when it Froze

Thank you for visiting my website.