Create a User Account with PowerShell

Today I learned how to create a user account on Windows 10 using PowerShell. Let’s create a small exercise to demonstrate how can this be easily done. Task: “Create a local user account named ’localaccount’ with the password BlueHat. This new user should have admin privilege.” First, launch the PowerShell (terminal?), by running as Administrator. The password will be stored in a variable called $Password: $Password = Read-Host -AsSecureString ******* Now we’re ready to create a new local account: ...

October 24, 2019 · 1 min · 161 words · kenno

CTDB Not Starting Up on CentOS 7

While preparing for my Red Hat Gluster Storage Administration exam (EX236), I got stuck at a section of configuring IP failover with CTDB Clustered Trivial Database) for Samba. The problem is that I coudldn’t get the ctdb service running on my home lab running CentOS 7 and a newer version of ctdb. This problem occurs on the following platform and package version: CentOS Linux release 7.7.1908 (Core) ctdb 4.9.1-6.el7 # systemctl status ctdb ● ctdb.service - CTDB Loaded: loaded (/usr/lib/systemd/system/ctdb.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2019-10-13 23:17:46 AEDT; 3min 7s ago Docs: man:ctdbd(1) man:ctdb(7) Process: 1335 ExecStart=/usr/sbin/ctdbd_wrapper start (code=exited, status=1/FAILURE) Oct 13 23:17:35 serverb.rh236.local systemd[1]: Starting CTDB... Oct 13 23:17:35 serverb.rh236.local ctdbd[1348]: CTDB logging to location file:/var/log/log.ctdb Oct 13 23:17:46 serverb.rh236.local ctdbd_wrapper[1335]: Timed out waiting for initialisation - check logs Oct 13 23:17:46 serverb.rh236.local systemd[1]: ctdb.service: control process exited, code=exited status=1 Oct 13 23:17:46 serverb.rh236.local systemd[1]: Failed to start CTDB. Oct 13 23:17:46 serverb.rh236.local systemd[1]: Unit ctdb.service entered failed state. Oct 13 23:17:46 serverb.rh236.local systemd[1]: ctdb.service failed. Here is the congent from /var/log/log.ctdb log: ...

October 13, 2019 · 3 min · 513 words · kenno

New BIOS Firmware for ThinkPad P1 1.24

I’ve been relying on Gnome Software Center to let me know when new ThinkPad P1 firmware is available. Up until today, there is no new firmware available since the last update back in August 2019. However, I stumbled on a post on reddit r/thinkpad, someone mentioned the BIOS 1.26 had been released for X1 Extreme/P1 Gen 2. This made me wonder if there was also new version of BIOS for the P1 Gen 1 that I have. Of course, there is a new BIOS firmware available: 1.24. ...

October 7, 2019 · 3 min · 593 words · kenno

grub2-editenv: error environment block too small

As the title says when I tried to generate grub on a machine running Fedora 31 using UEFI, I was presented with this error: # grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Generating grub configuration file ... grub2-editenv: error: environment block too small. ... I didn’t know what had caused it. However, it seemed like an easy fix was to remove the grubenv file. # rm /boot/efi/EFI/fedora/grubenv # grub-editenv /boot/efi/EFI/fedora/grubenv create # grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Generating grub configuration file ... Adding boot menu entry for EFI firmware configuration done By the way, as a word of caution, if you have a similar problem, please don’t just copy and paste the command above and run it. It may make your sitution worse. ...

September 10, 2019 · 1 min · 142 words · kenno

feh WARNING: abc.png - No Imlib2 loader for that file format

As the title says, I cannot use feh to open a PNG image. feh on this machine can’t open a JPG image either. Let’s see what’s wrong. I should notice that this problem occured on a machine running Gentoo. :D First, let’s check if feh is installed using my favorite tool called eix: ~ ❯❯❯ eix feh [I] media-gfx/feh Available versions: 3.1.1 ~3.1.3 ~3.2 ~3.2.1^t {curl debug exif test xinerama} Installed versions: 3.1.1(11:11:04 PM 04/14/2019)(-curl -debug -exif -test -xinerama) Homepage: https://feh.finalrewind.org/ Description: A fast, lightweight imageviewer using imlib2 According to the above information, feh:3.1.1 is already installed. It also mentions that feh use imlib2 library. ...

September 1, 2019 · 2 min · 237 words · kenno