So i was trying to make a script that would automate SSL key exports from a BSD machine to another so I don’t have to go through the pain of doing it manually every time and i ran into the issue of me not being able to ssh-copy-id my files over but i keep running into the issue of it not being able to connect to my auth agent due to a lack of keys even though i generated them with ssh-keygen, nonetheless no matter what I did i kept getting met with:
Blog
Read my latest posts below, any post tagged legacy is from my old site so the last edited time stamps will be incorrect:
Just a quick example of how to use dd to test drive read/write speed. NOTE: Dont do this a lot or you could shorten the live of your drive since youre making arbitrary writes.
Reading# sudo dd if=/dev/zero of=/tmp/test.img bs=1G count=1 oflag=dsync This command will write 1G of zeros to an arbitrary file of your choosing. Feel free to delete it when you’re done.
Your output will look a little like this.
The Problem# When installing Ubuntu Server with the LVM option in the default partitioning options, it will often only use a fraction of the actual disk space you have available. Thankfully LVM is flexible enough to extend this partition without causing any huge issues to your operating system. In this writeup, I’m gonna extend a 15G volume to a 200G volume on my Ubuntu 22.04.3 LTS VM.
user@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 55M 1 loop /snap/core18/1880
loop1 7:1 0 55.
After upgrading my Ubuntu Version and subsequently my kernel I tried running VMware Workstation Pro so I could access my VMs and kept running into the following error code when trying to open the application. Unfortunately, there was no way around it as rebooting, uninstalling/reinstalling, and anything else in my usual low-hanging fruit bag of tricks didn’t work so I had to really figure out what was really going on. Lets start with the actual error.
When utilizing debian based distros, I’ve run into this issue a lot when I’m trying to use wireguard and specify DNS settings:
/usr/bin/wg-quick: line 31: resolvconf: command not found A lot of this is because of systemd has its own resolvconf so you can simply make a symlink to get wireguard running normally:
sudo ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf
Sometimes it’s good to have a nice purge of your ZFS snapshots, whether you’re pressed for space or you just feel like doing spring cleaning. The following command will clear all of your ZFS snapshots on your Ubuntu system.
Warning: There is no recovery, all the cannonballs have been shot. Only do this if you know you’re in a stable state.
sudo zfs list -H -o name -t snapshot | sudo xargs -n1 zfs destroy