How to Enable Proxmox Guest Agent

I recently had a need to run Proxmox Virtual Environment (7.2-4) at home for a project. So far everything seemed to be straight forward, partially thanks to KVM technology used in Promox. However, I also learned a few things along the way too. The first thing that I had look up on the Internet to get it working is to activate (Promox) qemu-guest-agent. If you’re reading this, it’s likely you didn’t get it working on first trial either....

June 12, 2022 · 1 min · 184 words · kenno

Start and Stop Network Service on FreeBSD

A quick note for me to remind myself how to stop/start network service on FreeBSD (13.0). To stop or start, run one of the following commands: # service netif stop # service netif start To restart, just replace stop or start with restart: # service netif restart I also just found out that the above commands will nto restarting the routing service, as they only stop/start/restart network. To restart the routing service on FreeBSD, run:...

June 5, 2022 · 1 min · 108 words · kenno

How to delete disk partitions on Windows using PowerShell

Today I just added an old SSD to a Windows machine to use it as a back up drive. With old disks, usually they come with existing data, and I wanted to get rid of it. The problem is I couldn’t figure out how to do this using the Disk Management, the native GUI application used to manage disks. The problem could be simple to Windows users. Basically, when I right-clicked on the 2 partitions (450 MB and 100 MB) on Disk 0, there is no option to remove them....

May 15, 2022 · 3 min · 618 words · kenno

Turn on bluetooth on login screen in Tumbleweed

After taking a very long break (over a decade) from running openSUSE on my person machine, I finally got Tumbleweed installed on a spare Intel NUC machine. If you’re one of my blog readers, expect to see more contents about SUSE/openSUSE later. Today, I’m going to share how I fix the issue with bluetooth keyboard/mouse not connected to this NUC at the login screen. I can’t remember I needed to do that my main machine running Fedora, but oh well, the fix is simple enough (if you know now)....

April 10, 2022 · 2 min · 230 words · kenno

How to Create Exfat Filesystem on Usb

I have a UBS drive formatted as fat32 because I need to share it with Linux and macOS. When I want to copy a Linux ISO file which is larger than 4GiB, this was not possible due to the limitation of fat32 filesystem. A solution is to format that USB drive with exfat filesystem. I will do this on a Fedora 35 machine, but the process should be familiar for other Linux distros too....

March 31, 2022 · 2 min · 245 words · kenno

Create a Disk Image With dd Command

Situation: I want to re-use an external drive which already contains some data. So I will create a disk image on an external drive in case I need to copy that image back to the drive in the future. Solution: Normally, I just run dd to create an file.img when the disk is small, e.g. SD card. However, the drive capacity is 512GB. So a better option is to compress the image....

March 19, 2022 · 2 min · 246 words · kenno

mkfs.xfs: cannot open /dev/sda1: Device or resource busy

I’m trying to create an XFS filestem on a used disk, and got into a problem. Here is the error message: # mkfs.xfs /dev/sda1 mkfs.xfs: cannot open /dev/sda1: Device or resource busy So, let’s see if I can fix it. (Spoiler alert: I think I can, even though it’s not yet done at the time of this writing.) Let’s check the partitions of /dev/sda: # parted /dev/sda print Model: ATA ST1000LM014-1EJ1 (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 512GB 512GB ntfs 1 So, there is a partition (/dev/sda1) with 512GB in size, and its filesystem is ntfs....

March 13, 2022 · 4 min · 703 words · kenno

Using xclip to copy terminal content to clipboard

It’s quite annoying when I know the command I can use to copy the content on a terminal to clipboard. I know, I can run man xclip, but I think it’s still easier for me to visit this page and see how to do it. For example, I want to copy the content of my ssh keypair, ed2559.pub, to clipboard, and here how it can be done: ➜ xclip -sel clip < ~/....

March 4, 2022 · 1 min · 142 words · kenno

LVM - How to Activate or Deactivate a Volume Group

Well, I hardly need to activate or deactivate LVM volume groups. But when I do, I also hardly remember the command required to do that. So hopefully, I can refer to this post should I need to perform one of these tasks in the future. Since a volume group is activated by default when it is created, let’s start with a command to deactivate it. # vgchange -a n example_volume_group Like wise, to activate a volume group, use the following command:...

February 3, 2022 · 1 min · 114 words · kenno

FreeIPA reset failed locked out admin account

This is a short note on how to unlock admin account for FreeIPA. # kinit admin kinit: Client’s credentials have been revoked while getting initial credentials When too many incorrect password attempts are made, the admin account is locked out. To unlock it, perform the following on the FreeIPA server: # ldapmodify -x -D "cn=directory manager" -W Enter LDAP Password: dn: uid=admin,cn=users,cn=accounts,dc=example,dc=com changetype: modify delete: krbLoginFailedCount To process the modification enter Control-D....

February 3, 2022 · 1 min · 94 words · kenno