Hodžův blog

Archive for the 'Scriptíky' Category

09 Kvě

Create desktop shortcut to windows update (Windows 10/Windows Server 2019)

1. Right-click an empty area on the desktop and select New > Shortcut 2. In the Location field, enter the following URI and click Next ms-settings:windowsupdate 3. In the next field type in a shortcut name (Windows Update) and click Finish

09 Kvě

GPG error: https://download.jitsi.org stable/ InRelease: The following signatures couldn’t be verified

Error: # apt update Hit:1 http://security.debian.org/debian-security buster/updates InRelease Hit:2 http://deb.debian.org/debian buster InRelease Get:3 https://download.jitsi.org stable/ InRelease [1,882 B] Err:3 https://download.jitsi.org stable/ InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY B4D2D216F1FD7806 Reading package lists… Done Building dependency tree Reading state information… Done 12 packages can be upgraded. Run ‚apt […]

24 Bře

The following signatures were invalid: EXPKEYSIG B188E2B695BD4743

Error: root@mailgw:~# apt update Hit:1 http://deb.debian.org/debian buster InRelease Hit:2 http://security.debian.org/debian-security buster/updates InRelease Hit:3 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease Hit:4 https://packages.sury.org/php buster InRelease Err:4 https://packages.sury.org/php buster InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key Reading package lists… Done Building dependency tree Reading state information… Done All packages are up to date. W: An error […]

08 Úno

Xorg a rozlišení 2560×1440

Koupil jsem si nový monitor s rozlišením 2560×1440 pixelů, ale Xorg ho nerozpoznal korektně xrandr –listmonitors Monitors: 1 0: +*HDMI-1 1920/725×1440/428+0+0 HDMI-1 …takže jsem musel rozlišení nastavit ručně. Nejdříve jsem si vygeneroval adekvátní modeline (rozlišení 2560×1400 pixelů při 60Hz): $ cvt 2560 1440 60 # 2560×1440 59.96 Hz (CVT 3.69M9) hsync: 89.52 kHz; pclk: 312.25 […]

04 Úno

.CSR, .CRT a .KEY aneb patří k sobě?

Dnes jsem zákazníkovi obnovoval certifikáty. Jelikož jsem generování a stažení certifikátů dělal z různých počítačů, chtěl jsem mít 100% jistotu, že soubory k sobě patří. S OpenSSL to lze naštěstí velmi snadno ověřit: # CSR $ openssl req -in domena.cz.csr -pubkey -noout -outform pem | sha256sum a9a2390ea6ea6a3d5a186b5ee137f89909f533031fab9e2010a8f2c237fb9b7e – # Certifikát $ openssl x509 -in domena.cz.crt […]

24 Lis

FortiGate – Problem with license information

After renewing a contract license, the kicense information widget indicates that all or some of the licenses are not available. QuickFix: Run the following commands in the CLI diag debug app update -1 diag debug en exec update-now

28 Srp

Odstranění diakritiky ze souboru

# sudo apt install recode # recode -f utf8..flat soubor.txt

24 Čvc

HowTo: Nextcloud – Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

# mysql -u root -p MariaDB [(none)]> use nextcloud; MariaDB [nextcloud]> set global innodb_large_prefix=on; MariaDB [nextcloud]> set global innodb_file_format=Barracuda; MariaDB [nextcloud]> quit; # sudo -u www-data php occ maintenance:repair

30 Dub

HowTo: Uninstalling Windows Defender with PowerShell

Uninstall-WindowsFeature -Name Windows-Defender

20 Led

Error installing VMware Remote Console plugin – (k)ubuntu 18.04

Quick Fix # apt-get install desktop-file-utils

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme