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:

Sorted desktop items in various jars made of glass.

We often want to sort filenames by date. It's easy enough with the ls command we use the -t command line option.

ls -t

Then we can use the -r to reverse the list which means we see the last modified file at the end of the list.

ls -tr

Futher I tend to use the -l to see more details when listing and verify that my command does what I expect it to do.

Now there are situations where a more complex search than a simple shell glob is necessary. For example, looking for a file that includes the name '*linux*' in a whole tree of files would go like this:

find path-to-search ...

Ubuntu 18.04 Beaver

Super-be Interface: Gnome 3

This page is for me to remember what the heck I had to do to get my desktop back to normal. One main thing that changed quite a bit: the Super key is often used instead instead of the Alt key. For example, to switch between workspaces (I have 12 so I need that functionality really bad!) and also to move windows about without having to find their title bar which often are hidden by other windows anyway.

Note: I know that Gnome 3 has been out for a while, I just did not want to get a new Desktop version which may not be 100% compatible on my old server so I am ...

Lock you emails down by encrypting them properly with an SSL certificate.

Getting a Signed Certificate

In order to have TLS support for Postfix you need to setup several files.

First of all, you create a certificate and get it signed by GoDaddy. They have instructions for that purpose. At this time, it looks something like this:

openssl req -new -newkey rsa:2048 -nodes \
            -keyout domain.key -out domain.csr

The names "domain.key/csr" should match your domain name. If you are signing a specific sub-domain, you may want to include that sub-domain in the filename (i.e. mail.domain.key.)

When GoDaddy returns to you, they will give you a ...

Synchronizing your old close with the worlds best time keepers... and your computer's fallback clock.

I think I noticed that error before but did not pay close attention to it since my NTP just worked.

The fact is that something changed a while back (the new PPS API was accepted in 2000) and the fudge command was not updated accordingly. Either that, or the setup was always wrong?

The old /etc/conf/ntpd setup file included a line like this:

fudge   127.0.0.1     stratum 10

which is wrong because the local clock is not consider to be part of 127.0.0.1. I've never changed that IP address because I rarely look at the ntpd logs and since I did today, I noticed that error.

The correct ...

Changing the name of your computer (especially if it's Hal, that's dangerous!)

Ubuntu 16.04 and older

Changing your computer hostname used to be really easy:

sudo vim /etc/hostname

Change the name there and reboot.

If you reference the hostname in /etc/hosts, you also want to update that there and any other settings (such as tripwire).

The fact is that worked great in older versions. Change the name in that file, reboot and voilà the new name was the current name. The reboot is important because otherwise some of your services may not catch the modification. Yes. You can do:

hostname <new-name>

and it works as expected (i.e. try to log out ...

CPU frequencies as I run one large compression.

I noticed that the Linux Kernel allows for CPU frequencies to vary. But I could not really see any CPU running at a speed other than 800MHz when looking at /proc/cpuinfo so I thought that they were "stuck" there.

Looking a little further, I found a question with a good answer on Unix & Linux. You can use /proc/cpuinfo alright, but you've got to look at it constantly otherwise it will not look like it changes. That is, the change is so temporary, it happens so fast, that you really have to track that quickly otherwise you'll miss it.

Here is a command we can readily ...

Twin Windows — perfect duplication

Copying Data between Computers

Since I'm moving to a new server, I need to copy all of Gb or Gb of data from my old computer to the new one. This is mainly three folders:

/home
/mnt/cvs
/var/www

There are two main problems here:

1. the files have various permissions and ownership which I do not want to lose, especially for websites and the cvs repositories (I still have a CVS, but that folder also include SVN and GIT repositories)

2. the files on the source computer require various permissions to be read, "namely", I have to be root to make sure I can read all those ...

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 ...

A hill of sparsely distributed trees.

Introduction

As I'm doing some work to create an RDBM like library to write data to a database, I wanted to make sure that my file was NOT sparse. I don't mind sparse files at all, they save us some space on disk. Only, when creating a database, pretty much all my blocks of data will need to exist, otherwise we may take the risk of not being able to allocate the inodes later and write in those blocks.

So I search Google to try to find information on NOT to create a sparse file. Make sure that my software prevents the OS from creating a sparse file. I could not really find ...

A modern tunnel.

Running X Tool from a Remote Connection

I have been using SSH to connect to my LAN network computers and make all sorts of changes to the machines running in a console and X tools. Works just fine.

Setup the SSH Tunnel

I actually setup the X11 capability with two changes:

1) setup the SSH server with:

X11Forwarding yes
X11DisplayOffset 10

Then restart the SSH server.

2) setup your client with a ~/.ssh/config file where you enter:

Host remote
  ForwardX11 yes

This is the equivalent to the -X command line option, without you having to remember to enter the ...

Unfreeze your Mouse when it Froze

Thank you for visiting my website.