Category: Linux
Sharing a USB port in Ubuntu 24.04
This is to use a USB port on a server PC on the LAN to connect any devices attached to that port over the LAN from a client PC. As much as everything below in on an Ubuntu client and server PC, it could just as easy be on a Raspberry PI, etc. On both…
Spamassassin – sa_learn from Junk and Spam folders
Assuming the users are vhost users, using postfix and mysql. Root home users emailas are in /var/mail/vhosts.
Tar a directory and all subdirectories
Create the tar backup file Test the tar file To copy it to another server To extract it To backup the mysql database To import the sql
Dovecot Sieve : Run Bash shell Scripts to query Mysql
3 simple scripts to determine Out Of Office emails for Dovecot First, the Sieve file Then the two Bash Scripts
Ubuntu 22.04 Find Files
Find a file. Find In Files (File containing text), recursively from current folder. Find in specific file types only. Count the number of lines in specific file by extension, including all sub directories.
Ubuntu 22.04 Fix Broken Pipe on apt-get
apt-get -o DPkg::Options::=”–force-overwrite” install <package name> This will force an overwrite.
Ubuntu 20.04 Node Server on localhost with SSL
To get SSL on your localhost for testing purposes you will need a SSL key and certificate generated. I do the following in a certs directory to call up later in the node server app. Import the rootCA.pem file into your browser under the ‘Authority‘ tab. Then create server.cnf as follows … and v3.ext as…
Installing Node on Ubuntu 20.04
Step 1 Do the usual first, i.e. and Step 2 Make sure npm is up to date as well It might take some doing to achieve the above, as I had a few issues to deal with ion Ubuntu 20..04 Firstly I had to update npm and node : Then I had to change the…
Ubuntu 18.04 Disable Auto Time Updates
Firstly disable automatic times Then simple set the time manualy, or the time itself will still automatically update. To re-enable automatic date/time updates use To check the status use You should see something like below. the three ‘no’ mean it’s disabled.
Cleaning Ubuntu boot partition
Often the Ubuntu upgrades will fail fue to a no space error. The only solution is to remove old kernels manually. The first step is to show which kernel you are currently running, as you do not want to delete this one. So change to the boot directory for simplicity and list all existing kernels…