genesis footer

Here’s how to display Copyright years in the footer section if you’re using the Genesis theme. © 2002–2023 Result: Copyright © 2002–2020 The current year is dynamic. It will display 2021 a year from now. The first year is always fixed.

July 25, 2020 · 1 min · ulysses

gb vs gib

Interesting facts between GB and GiB. GB uses base 1000. GiB uses base 1024. 1GB is 1,000,000,000 bytes. 1GiB is 1,073,741,824 bytes. A 1TB drive is 1,000 GB. Or 931 GiB. A 1TiB drive is 1000 GiB. Or 1099 GB. To convert GB to GiB, multiply by (1000 / 1024). To convert GiB to GB, divide by (1000 / 1024).

July 15, 2020 · 1 min · ulysses

linux format usb drive

Here’s how to format a USB drive on Linux. Plug in the USB drive to see mount point. # scan for all drives df -Th Filesystem Type Size Used Avail Use% Mounted on /dev/sdc1 fuseblk 30G 66M 30G 1% /media/ulysses/451B99AF225B48EC Unmount USB drive. umount /dev/sdc1 Choose a file system type and run the appropriate format command. # nfts format mkfs.ntfs /dev/sdc1 # vfat format mkfs.vfat /dev/sdc1 # ext4 format mkfs.ext4 /dev/sdc1

July 9, 2020 · 1 min · ulysses

how to remove snap

Snap is cool, but not for everyone. To remove, follow these steps. # get list snap list # remove snaps. repeat for each app. snap remove chromium # remove snapd apt purge snapd # remove snap from home rm -rf ~/snap # clean up cache rm -rf /var/cache/snapd apt purge snapd

July 7, 2020 · 1 min · ulysses

printing from a terminal

There are times you just want to print directly from the command line. # check your printing options lpotions lpinfo -v # what's your default printer lpinfo -p -d # use lp to print lp notes.txt # use -n print multiple copies lp -n 2 notes.txt # check the printer queue lp -q # use the job number to cancel print jobs if needed cancel 123

July 7, 2020 · 1 min · ulysses

lightsail upstream error 515

If you use LightSail, AWS provides an easy way for you to connect to LightSail instances via Web SSH. I normally use a terminal (ssh client) to connect to LightSail instances, but using Web SSH is very convenient. If you try to do an OS upgrade, for example from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS, you will break Web SSH. AWS has added a special Web SSH configuration on LightSail base images. The error you’ll get is “Upstream Error 515.” The only way to fix this is to get AWS Support to help you apply the fix. It’s not a make or break it deal, but it can be a nuisance if you prefer to use AWS Web SSH instead of a terminal. If you need a more secure SSH connection, consider uploading your ssh-key to the server, and disable password login. ...

July 6, 2020 · 1 min · ulysses

linux mint 20 ulyana

I upgraded my desktop to Linux Mint 20 Ulyana over the weekend. Edit your package repository. Replace tricia with ulyana, and bionic with focal. vim /etc/apt/sources.list.d/official-package-repositories.list Run update first. apt update -y apt upgrade -y Perform upgrade to Linux Mint 20. When prompted, choose default. apt dist-upgrade Reboot. reboot cat /etc/os-release. ulysses@penguin:~/Code$ cat /etc/os-release NAME="Linux Mint" VERSION="20 (Ulyana)" ID=linuxmint ID_LIKE=ubuntu PRETTY_NAME="Linux Mint 20" VERSION_ID="20" HOME_URL="https://www.linuxmint.com/" SUPPORT_URL="https://forums.ubuntu.com/" BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/" PRIVACY_POLICY_URL="https://www.linuxmint.com/" VERSION_CODENAME=ulyana UBUNTU_CODENAME=focal

July 6, 2020 · 1 min · ulysses

linux script

The script command records all your keystrokes and output into a file called typescript. You can start recording by simply typing script. script Script started, file is typescript df -h ls -l exit Typing exit stops the recording. Just cat typescript to see your recording. cat typescript

June 30, 2020 · 1 min · ulysses

aws cli v2

How to install AWS CLI version 2. curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install

June 28, 2020 · 1 min · ulysses

php 7.0 to 7.4 upgrade

Here are steps I took to upgrade from PHP 7.0 to 7.4 on Ubuntu 18.04 LTS. Login as root, otherwise use sudo for all commands. # use 3rd party ppa repo add-apt-repository ppa:ondrej/php apt -y update apt -y upgrade # install php-core apt install php7.4 php7.4-common php7.4-cli # add all the php extenstions your app needs apt install php7.4-curl php7.4-json php7.4-gd php7.4-mbstring apt install php7.4-intl php7.4-bcmath php7.4-bz2 php7.4-xml apt install php7.4-readline php7.4-zip php7.4-mysql # I'm using apache prefork MPM, so install it apt install libapache2-mod-php7.4 a2enmod php7.4 # check version. Success! php -v # for good measure, reboot apache systemctl restart apache2.service # Finally, purge the old PHP versions apt purge php7.0 libapache2-mod-php7.0 Finally, run update on more time to get all the latest updates. ...

June 28, 2020 · 1 min · ulysses