Freitag, 26. Mai 2023

SAH512 password in python

 in case you need to update a mysql db with a SHA512 password:


Install the correct lib: sudo apt-get install -y python-passlib


then:

python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())"

Montag, 22. Mai 2023

Tomcat and certbot

 In case you need an automated update of your let's encrypt certs:

make a script (best: put in in cron)


#!/bin/bash


logfile="/var/log/renew_$(date -Is).log"

echo "$(date +%T):" >$logfile

/usr/bin/certbot renew --quiet

cp /etc/letsencrypt/live/YOURDOMAIN.COM/{cert,chain,privkey}.pem /opt/tomcat/latest/conf/

chown tomcat:tomcat /opt/tomcat/latest/conf/*.pem




Mittwoch, 17. Mai 2023

VMWARE esxi 8 certificates

 In case you want to change the certificate:

change to

/etc/vmware/ssl 


make a backup of rui.crt and rui.key


delete rui.crt and rui.key


copy your own certs to rui.crt and rui.key


Restart the proxy: /etc/init.d/rhttpproxy restart



In case you have trouble re-create the default certs: /sbin/create_certificates

Montag, 15. Mai 2023

Linux remove old kernels für update to UBUNTU 22.0

 in case you need more space at /boot while updating to UBUNTU 22

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge


Donnerstag, 4. Mai 2023

Ubuntu 22 DNS with resolvconf

 in case you need to modify the DNS of UBUNTU 22


vi /etc/resolvconf/resolv.conf.d/head

add new nameserver i.e.

nameserver 1.1.1.1

nameserver 1.0.0.1


sudo resolvconf --enable-updates

sudo resolvconf -u

sudo systemctl restart resolvconf.service

sudo systemctl restart systemd-resolved.service

to check: resolvectl status


Mittwoch, 12. April 2023

MAC ssh Config

 In case your have problems to get a ssh connection after a MAC OS upgrade:

just add these two lines at the end of: /etc/ssh/ssh_config

HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

Mittwoch, 15. März 2023

internet explorer IE on Windows 11

 in case you need for some reasons an old IE plug-in to run....


Open Windows menu and enter internetoptions

go to tab Programs, then manage add-ons

left down on this windows click on "Learn more..."

Now you have an old IE running..

Mittwoch, 22. Februar 2023

Openfire Update


1. Stop openfire service

2. Make a backup of installation directory

3. unzip the latest tar  (4_7_4).tar.gz and move to   /opt/openfire 

4. put backuped  conf – embedded-db – plugins – und resources – to  /opt/openfire kopieren

5. start service

Dienstag, 21. Februar 2023

VMware ESXi update 6.7 to 8

 in case you want to do an offline update:


esxcli software profile  update -d /vmfs/volumes/datastore1/VMware-ESXi-8.0b-21203435-depot.zip -p ESXi-8.0b-21203435-standard

Montag, 20. Februar 2023

VMWare ESXi 6.7 missing datastore

 in case you miss your datastore after an ESXi update:


 esxcli storage vmfs snapshot list

esxcfg-volume -l

esxcfg-volume -M "here your label like 4dffdg504bf-ddfg4gthfdf-dfgd-0dfgddfga

Axis cam reset

In case you have trouble with your Axis cam.


Try this to reset:

//<servername>/axis-cgi/factorydefault.cgi

Freitag, 17. Februar 2023

ESXi VMWARE Custom Boot Image

 In case you struggle with a missing RAID driver....

1.) Install Windows PowerShell 4.8

2.) Install Python 3.7 from https://www.python.org/downloads/release/python-370/.

Download the script get-pip.py  from https://bootstrap.pypa.io/get-pip.py.

Install it with python.exe get-pip.py

Install the required Python modules \Scripts\pip3.7.exe install six psutil lxml pyopenssl

In PowerShell: Set-PowerCLIConfiguration -PythonPath <python3.7-directory>\python.exe -Scope User

In PowerShell: Set-ExecutionPolicy RemoteSigned

Create your own working directory: i.e. VMISO

Cd C:\VMISO

Add your Software

Add-EsxSoftwareDepot .\VMware-ESXi-xxx-depot.zip

Add your Driver

Add-EsxSoftwareDepot .\aacraid-xxxxbundle-1475991.zip

Check your work:

$DefaultSoftwareDepots

Get-EsxImageProfile

Create your new image:

New-EsxImageProfile -CloneProfile ESXixxx-standard

Name your new own bundle

Set-EsxImageProfile -ImageProfile "yourBundle" -AcceptanceLevel VMwareCertified

Check, if your driver is included:

Get-EsxSoftwarePackage

Export-EsxImageProfile -ImageProfile "yourBundle" -FilePath C:\VMISO\VMISO.iso -NoSignatureCheck -ExportToISO


Burn it to CD...

Have Fun...

Dienstag, 17. Januar 2023

Jitisi Meet User control

 In case you have to:

  • add a user: sudo prosodyctl register <username> <server-url> <password>

  • delete a user: sudo prosodyctl unregister <username> <server-url>
to list users: prosodyctl mod_listusers