.nanorc in CentOS

April 2nd, 2024 – 11:03 pm
Tagged as: Computing Notes

Edit $HOME/.nanorc to contain the following: include /usr/share/nano/java.nanorc include /usr/share/nano/man.nanorc include /usr/share/nano/nanorc.nanorc include /usr/share/nano/python.nanorc include /usr/share/nano/sh.nanorc include /usr/share/nano/html.nanorc include /usr/share/nano/perl.nanorc include /usr/share/nano/php.nanorc CentOS 7 uses a much older version of nano than the one that presently ships on most distributions. The php.nanorc on newer The following should appear in /usr/share/nano/php.nanorc on CentOS7 to allow syntax [...]

The .bashrc file I use on CentOS6

April 2nd, 2024 – 11:00 pm
Tagged as: Computing Notes

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

The best Alias for ls

March 2nd, 2024 – 11:14 pm
Tagged as: Computing Notes

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

Install iftop on Oracle Linux 9

February 23rd, 2024 – 4:18 pm
Tagged as: Computing Notes

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

A good version of ll

February 20th, 2024 – 3:37 am
Tagged as: Computing Notes

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

LS alias and Mozilla DRM bar

February 11th, 2024 – 3:11 am
Tagged as: Computing Notes

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.

Double Sided Scan and PDF

February 1st, 2024 – 1:15 pm
Tagged as: Computing Notes

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

Automated Database Restart

January 21st, 2024 – 7:41 pm
Tagged as: Computing Notes

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