- Get ISO from Microsoft Evaluation Center
- Install in Proxmox VM: 2 vCPU, 4GB RAM, 50GB disk, VirtIO network
- Pick Windows Server 2022 Standard (no Desktop Experience)
My ISP provides a dynamic IP with a DHCP lease that expires roughly 24 hours after the last reboot. When it expires, PPPoE renegotiation sometimes takes too long and I end up rebooting the router or SSH'ing in to clear the session.
This scheduler forces a clean reconnect at a fixed time so the renewal happens on my terms.
configure
set system task-scheduler task reconnect-pppoe crontab-spec "0 6 * * *"
set system task-scheduler task reconnect-pppoe executable path "/opt/vyatta/bin/vyatta-op-cmd-wrapper"install mailserver
add an account
hostname config
install postfix
sudo apt install postfix
Optional : Setup an Ubuntu VM in Proxmox
https://gist.github.com/adiberr/1d9e3b2551bd8eae11c8bda809c7d183
Install Docker and Docker Compose
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; doneDownload a cloud image :
- Ubunut : https://cloud-images.ubuntu.com/
- Debian : https://cloud.debian.org/images/cloud/
- Oracle Linux : https://yum.oracle.com/oracle-linux-templates.html
# Example: Download Ubuntu Cloud Image
curl -LO https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @SpringBootApplication | |
| public class App { | |
| public static void main(String[] args) { | |
| SpringApplication.run(App.class, args); | |
| } | |
| } | |
| @RestController | |
| class UploadController { |
- Proxmox ISO : https://enterprise.proxmox.com/iso/proxmox-ve_8.2-1.iso
- Bootable USB : https://rufus.ie/en/ (DD mode)
Connect as SYSDBA :
sqlplus / as sysdbaFix a down Database :
STARTUP MOUNT;
ALTER DATABASE OPEN;Extract the source ip address and destination port :
sed -n 's/^.*SRC=\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\).*DPT=\([0-9]\+\).*$/\1 \2/p' <<< $(sudo cat /var/log/ufw.log) \
| uniq -c \
| sort \
| column -tExample (details omitted for simplicity):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import webbrowser | |
| import sys | |
| import json | |
| CLIENT_ID= | |
| CLIENT_SECRET= | |
| REDIRECT_URI= | |
| def get_authorization_url(): |
NewerOlder