Sunday, March 28, 2021

Want to delete all Thumbs.db recusively?

In a power shell run..

# to view

Get-ChildItem -Path . -Include Thumbs.db -Recurse -Name -Force

# to delete

Get-ChildItem -Path . -Include Thumbs.db -Recurse -Name -Force | Remove-Item -Force

Friday, March 12, 2021

Fedora 33 install latest kernel from koji

dnf install koji
koji list-builds --package=kernel --after="2021-03-01"
koji download-build --arch=x86_64 kernel-5.11.5-50.fc33
dnf update kernel-*.rpm


#source
#https://fedoraproject.org/wiki/Test_Day:2021-03-08_Kernel_5.11_Test_Week

Fedora 32 -> 33 Upgrade

dnf upgrade -y --refresh
dnf install -y dnf-plugin-system-upgrade
dnf system-upgrade download --releasever=33

dnf system-upgrade reboot

dnf system-upgrade clean
dnf clean packages



#source
#https://www.linuxjournal.com/content/how-upgrade-fedora-32-fedora-33-cli-graphical-methods

Same faster way to generate ramdom data and store into a file

openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero > /tmp/randomfile.bin


#source, idea
#https://dev.to/thojest/comment/ilfi

Thursday, March 4, 2021

Fedora 32/33 time not synced

... this is now done via Chrony...

 

timedatectl
              Local time: Thu 2021-03-04 13:15:06 EST
           Universal time: Thu 2021-03-04 18:15:06 UTC
                 RTC time: Thu 2021-03-04 18:14:27
                Time zone: America/New_York (EST, -0500)
System clock synchronized: no
              NTP service: active
          RTC in local TZ: no


systemctl status systemd-timesyncd
systemd-timesyncd.service - Network Time Synchronization
     Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; disabled; vendor preset: disabled)
     Active: inactive (dead)
       Docs: man:systemd-timesyncd.service(8)

systemctl start systemd-timesyncd
systemctl enable systemd-timesyncd
hwclock --systohc


timedatectl

              Local time: Thu 2021-03-04 13:16:06 EST
           Universal time: Thu 2021-03-04 18:16:06 UTC
                 RTC time: Thu 2021-03-04 18:16:27
                Time zone: America/New_York (EST, -0500)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no