24 Čvc
# 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
Posted in Debian, Linux, Scriptíky by: admin
No Comments
30 Dub
Uninstall-WindowsFeature -Name Windows-Defender
Posted in Scriptíky, Windows by: admin
No Comments
20 Led
Quick Fix
# apt-get install desktop-file-utils
Posted in Distribuce, Kernel, Linux, Scriptíky, Ubuntu, virtualizace by: admin
No Comments
17 Led
1. Power off (all) servers
2. Change the volume LUN ID to ID 0 on DE4000H
3. Power on (all) servers
Posted in Hardware, virtualizace, Ze života by: admin
No Comments
05 Říj
1. Forgot device from UniFi
2. SSH to UniFi AP (default credential ubnt/ubnt)
ssh root@ip_of_unifi_ap
3. Upload latest firmware image from UniFi web site (https://www.ui.com/download/unifi/unifi-ap)
cd /tmp
wget https://dl.ubnt.com/unifi/firmware/BZ2/4.0.15.9872/BZ.ar7240.v4.0.15.9872.181229.0259.bin --no-check-certificate
mv BZ.ar7240.v4.0.15.9872.181229.0259.bin fwupdate.bin
4. Run upgrade process
syswrapper.sh upgrade2 &
5. Wait a moment & adopt device in controller
Posted in Bezpečnost, Hardware, Linux, Scriptíky by: admin
No Comments
05 Říj
Edit Bind config file
vi /etc/bind/named.conf.options
...
options {
...
dnssec-enable yes;
dnssec-validation auto;
...
};
...
Continue Reading »
Posted in Bezpečnost, DNS, Linux, Scriptíky by: admin
No Comments
24 Zář
# Show controller slots
ssacli ctrl all show config
# Disable HBA Mode
ssacli controller slot=0 modify hbamode=off
# Recheck controller status
ssacli controller slot=0 show
Posted in Hardware, Kernel, Linux, Scriptíky, virtualizace by: admin
No Comments
21 Zář
# Set NTP servers
w32TM /config /syncfromflags:manual /manualpeerlist:pool.ntp.org /update
# Restart the time service
net stop w32time && net start w32time
# Resync the time
w32tm /resync
# Verify status
w32tm /query /status
Posted in Scriptíky, Windows by: admin
No Comments
21 Zář
Debian 10 (Buster) + latest NSClient++ on Windows 2019 server
Linux:
root@nagios:/# /usr/lib/nagios/plugins/check_nrpe -H 172.24.1.1 -c check_ad
CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with 172.24.1.1: 1
Windows:
2019-09-21 18:30:46: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol
2019-09-21 18:30:46: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings.
2019-09-21 18:30:48: error:c:\source\master\include\socket/connection.hpp:276: Failed to establish secure connection: sslv3 alert handshake failure: 1040
Quick FIX:
1. Generate DH key on Linux machine (it takes a long time)
openssl dhparam -C 2048 2> /dev/null|sed -n '/BEGIN/,/END/p'
Continue Reading »
Posted in Debian, Linux, Ostatní, Scriptíky, Služby, Windows by: admin
9 Comments
18 Zář
DISM /online /Get-CurrentEdition
DISM /online /Get-TargetEditions
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEULA
slmgr.vbs /upk
slmgr.vbs /ipk your_mak_key
slmgr.vbs /ato
Official KMS client keys
https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys
Posted in Scriptíky, Windows by: admin
2 Comments