Saturday, February 22, 2025
Today’s site updates including removing the RSS feed links. Kinsta provided source code.1 The code for functions.php to remove it is: remove_action( ‘wp_head’, ‘feed_links_extra’, 3 ); remove_action( ‘wp_head’, ‘feed_links’, 2 ); remove_action(‘wp_head’, ‘wlwmanifest_link’); Kinsta also provided another very useful function2 and that was one that removed the various update notifications in the dashboard. function kinsta_hide_update_nag() [...]
Monday, November 25, 2024
Here is a great TCP/UDP Port finder tool. This was useful for finding out which port “cbt” was in my Iftop listing. It was 7777, which was in use for the Unreal Engine on an Ark: Survival Evolved game server. Iftop is the best real time network monitoring tool for Linux that has graced my [...]
dnf install cronie systemctl enable crond.service systemctl start crond.service
When I first obtained a CompTIA A+ certification some time ago, the concept of bit rot related to what happens to software reliability as the number of updates to the system increases. Over time, software that worked in years past ceases to work as new system updates block system calls or change permissions and files [...]
Sunday, September 22, 2024
Create file /usr/lib/systemd/system/yacy.service and add this content: [Unit] Description=YaCy search server After=network.target Restart=always [Service] Type=forking User=yacy ExecStart=/opt/yacy/startYACY.sh ExecStop=/opt/yacy/stopYACY.sh Restart=on-failure RestartSec=1s [Install] WantedBy=multi-user.target Then use systemctl enable yacy.service.
Use about:config –> browser.uidensity . browser.uidensity is set to 0 by default. Changer the value to 1 and it takes immediate effect.
To convert a dynamic VirtualBox disk to a Fixed disk, run the following command: vboxmanage clonemedium disk /path/disk.vdi /path/newdisk.vdi -variant Fixed using –variant Standard would create a dynamic disk. Then open the virtual machine and remove the existing disk and attach the new disk. Then use the media manager to delete the unused media. Use [...]
Chromium: Joplin Web Clipper, Zotero Connector, floccus bookmarks sync, uBlock Origin, Quick Javascript Switcher, SingleFile, uMatrix Firefox: floccus bookmarks sync, Joplin Web Clipper, Search by Image, uMatrix, Undo Close Tab, Zotero, uBlock Origin [x] Removed some Firefox/LibreWolf extensions [+] Added Zotero and uBlock Origin, which have been long used, but neglected with regards to [...]
A few quirks with Debain 12 include that path not being set in similar fashion to Fedora, Ubuntu, and other distributions. One must regularly set export PATH=$PATH:/usr/sbin In Gnome, applications will open on the server instead of the client when using X11 forwarding. This will occur even though xcalc opens on the client normally. The [...]
To add a new virtual disk and move the existing Linux partition to the new disk use the following process. The process assumes standard partitions without the use of Logical Volume Manager (LVM). 1. Backup the existing VM. One good way to do that is to clone the Virtual Machine and use the procedure on [...]
Minecraft Java edition lost compatibility with Java 17 between 1.20.4 and 1.20.6. Version 1.20.4 works with Java 17, and 1.20.6 no longer works with Java 17. Several guides appear online for installing downloaded packages of the 64-bit runtime from Oracle or other sources. Since Debian offers 32-bit server operating systems in the present day, the [...]
Open the Thunderbird program folder (e.g. C:\Program Files (x86)\Thunderbird) create a new folder named distribution Create a file named policies.json with the following content: { “policies”: { “DisableAppUpdate”: true } } Thanks to sifferedd.
Use printenv to see what environment variables are set. #!/usr/bin/env bash printenv set -x
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 # .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 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. Document z240302wa, last modified 2 March, 2024
Friday, February 23, 2024
dnf install oracle-epel-release-el9 dnf install iftop iptraf is already in the default repositories.
Tuesday, February 20, 2024
A really good version of the ll alias is: ls –lahF, although on some versions ls –lahp looks better than F.
Sunday, February 11, 2024
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.
Thursday, February 1, 2024
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 [...]
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 [...]
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.
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 [...]
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”
To loop through the subdirectories in a folder, when those subdirectories may contain spaces in the file names, use the following procedure. OLD_IFS=$IFS && IFS=$’\n’ for directory in $HOME/somefolder/*/; do echo “some code here” done IFS=$OLD_IFS
Wednesday, January 10, 2024
This document contains some notes on .bashrc for use with Linux systems. alias ll=’ls -alF’ alias la=’ls -A’ alias l=’ls –CF’ if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi The preceding two blocks come standard on Ubuntu as of version 2022.04. One tweak for WSL2 on Windows might be the addition of this [...]
7 July 2023: Ubuntu 22.04′s update notifier seems to not include the option to configure any settings, at least after certain conditions exist on a particular system. To stop the notifier from appearing. To stop the notifier from appearing use sudo apt-get remove update-notifier 7 July 2023: There are non-snap builds of ungoogled-chromium for Ubuntu [...]
To launch java -Xms2048M -Xmx2048M –add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server-1.21.1.jar nogui