Category Archives: Computing Notes

Notes about computing, software, and hardware

The .bashrc file I use on CentOS6

The .bashrc file I use on CentOS6   # .bashrc # User specific aliases and functions alias rm=’rm -i’ alias cp=’cp -i’ alias mv=’mv -i’ # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # system variables export VISUAL=nano # sets nano as the crontab editor export GZIP=-9 # maximum compression [...]

Posted in Computing Notes | Tagged , , | Comments closed

The best Alias for ls

The best alias for ls is ls –halF It is easy to remember, and produces easy to read output with human readable file sizes and / marks present by the directory names..

Posted in Computing Notes | Tagged , | Comments closed

Install iftop on Oracle Linux 9

dnf install oracle-epel-release-el9 dnf install iftop iptraf is already in the default repositories.

Posted in Computing Notes | Tagged , , , , | Comments closed

A good version of ll

A really good version of the ll alias is: ls –lahF, although on some versions ls –lahp looks better than F.

Posted in Computing Notes | Tagged , | Comments closed

LS alias and Mozilla DRM bar

Some useful aliases that are not always preconfigured on every Linux version: alias ll=’ls -alF’ alias la=’ls -A’ alias l=’ls –CF’ To eliminate the DRM warning in Firefox and Librewolf without enable DRM, add this to “userChrome.css”: notification[value="drmContentDisabled"]{ display:none !important; } toolkit.legacyUserProfileCustomizations.stylesheets must be set to true in about config.

Posted in Computing Notes | Tagged , , | Comments closed

Double Sided Scan and PDF

The following script scans PDFs via an auto-document feeder in Hp-Lip and then collates the pages to the correct order when there are reverse sides. No scans will be saved if no data is transmitted for the second set of scans. The second set of scans is the reverse of the pages. #!/usr/bin/env bash YMD=$(date [...]

Posted in Computing Notes | Tagged , , , , | Comments closed

Automated Database Restart

Here is a script that checks to ensure the database is running and restarts the service if it is not running.  This was used on a very low memory server to ensure a database remained operational, despite it sometimes crashing due to out of memory errors. #!/bin/bash timestamp=”$(date)” systemctl stop httpd && echo “${timestamp}” Stopping [...]

Posted in Computing Notes | Tagged , , , , | Comments closed

AppImage Integration

To install AppImages and integrate them with the desktop environment like a conventional package,  use the AppImage Launcher. LibreWolf’s documentation contains a how-to document on using AppImage Launcher.

Posted in Computing Notes | Tagged , , | Comments closed

Thunderbird Row Highlighting

Revisions: 21 January 2024, first publication The Thunderbird developers are moving to a new user interface code base for Thunderbird 115 and Thunderbird 102 is the last version that will work with the historical userChrome.css customizations. The userbase for Mozilla products has continually shrunk over the past few years and the chances of equivalent customization [...]

Posted in Computing Notes | Tagged , | Comments closed

Functions in Bash

This is the code for a function in Bash script. #!/bin/bash # Define a function greet() { echo “Hello, $1″ } # Call the function with “World” as the argument greet “World”

Posted in Computing Notes | Tagged , | Comments closed