https://community.bigbeartechworld.com/t/setting-up-openwrt-on-a-virtual-machine-with-proxmox/257
https://images.linuxcontainers.org/images/openwrt/23.05/amd64/default/20231123_11:57/rootfs.tar.xz
#!/usr/bin/env bash | |
set -o errexit | |
echo $(date):Random read | |
fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 \ | |
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test | |
echo $(date):Random write | |
fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 \ |
pct create <id> /var/lib/vz/template/cache/centos-7-default_20170504_amd64.tar.xz \ | |
-arch amd64 \ | |
-ostype <centos|ubuntu|etc> \ | |
-hostname <hostname> \ | |
-cores <cores> \ | |
-memory <memory(MB)> \ | |
-swap <swap(MB)> \ | |
-storage local-lvm \ | |
-password \ | |
-net0 name=eth0,bridge=<bridge>,gw=<gateway>,ip=<cidr>,type=veth &&\ |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCex711i4cPpmtO366GL6EBD5njVOKE+Kf4ZsQuj/lsGlA5xYypa/ITZ/x5fkLcLQI+Qo7q3D7x6scmpaTaT9xFJI8qnVZRSulkzxgFeDn1JMUJO3dvr7Cxs+tyKyYFYt6/hmFT4aGDShCJBAmo3IBMmQdeMQX5Nd8e9Vx2Rubj2AYSRRzGJF9TQXqlg92wu85fsi2VrC6mWWKrsRnFfINZ+P+jnosXNRSZeLdz/OSLF5IO4H80hE7hO3bm2otnJR3mOJsFmBtJCM0TaOky6B18JUiDaWsxFgMvg0TJKnHMpgYqBU9UbvHJ7D93h2iZBD9nyr69MqXh1+OqVM1ENiKb | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKMGR0UwikZrdMlRZlvnDdwQ88F2wTBc+c9WknoBEujQUtCnqYyxW84BPN4f89JAyWOaiiWfRi2PVg5wFyshCoUminyB35Ip4R/wtjp6YmtfgS7cymMxta1cvi6qOw/cTMTJWMEYvGpoWsohhsFiRRLHwCD8Jn6DybmHAnqcohWfiNwFZfU3hEpkKA0NDzkJKMhuI14ET1ZbSzExaWp42bbNJKAi2W3cYaZGNXk9a1eRKo+NS8Zf/0EFkCMPIPSWYwudKpm2hEElLiC+5xYzFiszpXjBSmKr5sb6AFRIWYTsHfyEsYkQPa5VDP3IPWWHUBlBfEqC2gpP0XIQhFZICz | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/jx0T5KbSmQi29axjSQeDAMUUoJ/BVlk4RsRpwt7kDzEc1jpZK4Lzts5UVuGMH/+5GJigJ0GYCg4DjVcNSyt3xaIMhf8nZjX6XMPfKJGChq595QYCybDg1orqL3Zx5a/Ik7CyXVtIQksfvaYbr2i+3U1wpOyhUbJHJv4L+s3I86Aw3fpxdKLWs17MbNqsbBBifM75BjytLGJopjTUy8mtRHZUpquvGu |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted |
@@||activate.adobe.com^$important | |
@@||assets.adobedtm.com^$important | |
@@||entitlement.auth.adobe.com^$important | |
@@||fpdownload.adobe.com^$important | |
@@||lm.licenses.adobe.com^$important | |
@@||akadns.net^$important | |
@@||akamai.net^$important | |
@@||akamaihd.net^$important | |
@@||akamaitechnologies.com^$important | |
@@||akamaized.net^$important |
https://community.bigbeartechworld.com/t/setting-up-openwrt-on-a-virtual-machine-with-proxmox/257
https://images.linuxcontainers.org/images/openwrt/23.05/amd64/default/20231123_11:57/rootfs.tar.xz
Usage:
To access HOSTC via HOSTA and HOSTB (same user):
mssh HOSTA HOSTB HOSTC
To access HOSTC via HOSTA and HOSTB and use non-default SSH-portnumbers and different users:
mssh user1@HOSTA:1234 user2@HOSTB:1222 user3@HOSTC:78231
# syno-vpn-keepalive.sh | |
# --- | |
# Script to keep VPN alive on Synology DSM. | |
# Checks if IP is pingable and if not: | |
# disconnect VPN, reconnect VPN & add routes | |
# --- | |
# Modify vars: | |
# - CHECKIP: IP to check to be pingable before reconnecting VPN | |
# - NAME (Synology VPN name), | |
# - ID (Synology VPN ID), SSH to NAS & run this to find ID |
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen