VirtualBox Disk Conversion

June 10th, 2024 – 1:58 am
Tagged as: Computing Notes

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

Debian 12 PATH and X11

May 18th, 2024 – 4:46 am
Tagged as: Computing Notes

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

Move /var to new disk

May 18th, 2024 – 4:40 am
Tagged as: Computing Notes

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

Install Java 21 in Debian 12

May 4th, 2024 – 11:50 pm
Tagged as: Computing Notes

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

Print environmental variables in Bash

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

Use printenv to see what environment variables are set. #!/usr/bin/env bash printenv set -x

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