mathz.nu Asterisk Blacklist Hobby webbhotell

2024/09/04

Post scripts for Proxmox

Filed under: Uncategorized — Mathz @ 16:03

https://raw.githubusercontent.com/tteck/Proxmox/main/misc/post-pve-install.sh

2024/08/02

Check your hardware info

Filed under: Uncategorized — Mathz @ 12:11

dmidecode -t baseboard  (for motherboard)

2024/03/18

Proxmox master fail

Filed under: Uncategorized — Mathz @ 15:57
  • Promote another node to be the master node: pmgcm promote
  • Tell other nodes that the master has changed: pmgcm sync --master_ip <master_ip>
iscsiadm -m session
fdisk -l
pvs
vgs
lvs

2024/02/27

Proxmox VE

Filed under: Server — Mathz @ 21:52

Remove a host from cluster

systemctl stop pve-cluster
systemctl stop corosync

Start local cluster

pmxcfs -l


Delete corosync config
rm /etc/pve/corosync.conf
rm -r /etc/corosync/*


Restore normal status
killall pmxcfs
systemctl start pve-cluster
rm /var/lib/corosync/*



On the working node remove the removed node
pvecm delnode oldnode
pvecm expected 1

Ports needed for VE-cluster

8006/TCP
22/TCP
5405/UDP for corosync

2023/10/01

Proxmox backup

Filed under: Uncategorized — Mathz @ 17:26
Proxmox-install.sh

#!/bin/bash
echo "deb http://download.proxmox.com/debian/pbs-client bullseye main" >> /etc/apt/sources.list.d/pbs-client.list
wget https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
apt-get update
apt-get install proxmox-backup-client

Some error that occur on Ubuntu 22.04;

The following packages have unmet dependencies:
 proxmox-backup-client : Depends: libssl1.1 (>= 1.1.0) but it is not installable
Solution;
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb

 

Install DEB package for client.

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
wget http://download.proxmox.com/debian/…amd64/proxmox-backup-client_2.4.1-1_amd64.deb
apt-get install qrencode
dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
dpkg -i proxmox-backup-client_2.4.1-1_amd64.deb

2023/07/07

Start docker-compose.yaml file during startup

Filed under: Uncategorized — Mathz @ 14:11
# /etc/systemd/system/docker-compose-app.service

[Unit]
Description=Docker Compose Application Service
Requires=docker.service
After=docker.service

[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/srv/docker
ExecStart=/usr/local/bin/docker-compose up -d
ExecStop=/usr/local/bin/docker-compose down
TimeoutStartSec=0

[Install]
WantedBy=multi-user.target

2023/05/31

Update to PHP 8.1 on Ubuntu 22.04

Filed under: Uncategorized — Mathz @ 14:23
Add PPA for PHP 8.1
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Install PHP 8.1
sudo apt install php8.1

Install PHP 8.1 Packages
sudo apt install php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-intl -y

PHP 8 Enable
sudo a2dismod php<old-php-version>
sudo a2enmod php8.1  
sudo service apache2 restart


Enable PHP version for Console
sudo update-alternatives --config php 

2023/04/17

Clean docker images and volumes

Filed under: Uncategorized — Mathz @ 17:50
docker image prune -a
docker volume prune -f
docker system prune -a -f

2022/10/08

Secret API URL for Home Assistant Pollenkollen

Filed under: Uncategorized — Mathz @ 22:24

https://github.com/JohNan/home-assistant-pollenkoll/ 

https://pollenkoll.se/wp-json/pollenkoll/v1/app-complete?secret=830842cf-4d86-412d-a343-16edc27f5c75&platform=android&version=3

2022/04/04

Test drive speed and IO

Filed under: Uncategorized — Mathz @ 15:12

fio --ioengine=libaio --filename=test --size=10G --time_based --name=fio --group_reporting --runtime=60 --iodepth=32 --rw=read --bs=1M --numjobs=24

Older Posts »

Powered by WordPress