$ pecl install SCGI
$ nano /etc/nginx/sites-available/default
location /backuppc {
alias /usr/share/backuppc;
}
location /BackupPC_Admin {
include /etc/nginx/scgi_params;
| $ mkdir /tmp/a | |
| $ cd /tmp/a | |
| $ unsquashfs /media/sd**/boot/modloop-lts | |
| $ mv squashfs-root/ lib | |
| $ tar -xzvf /etc/apk/cache/zfs-lts-*.apk | |
| $ depmod -b /tmp/a | |
| $ mksquashfs lib/ modloop-lts -noappend -always-use-fragments | |
| $ mount -o rw,remount /media/sd** | |
| # do backup but not as /filename or /boot/filename, alpine will be use it) | |
| $ mv /tmp/a/modloop-lts /media/sd**/boot/modloop-lts |
| # be careful, goofys does not support fsync, software performing check will return an error | |
| $ wget https://github.com/kahing/goofys/releases/latest/download/goofys | |
| $ chmod +x goofys | |
| $ mv goofys /usr/bin/goofys | |
| $ mkdir /root/.aws | |
| $ echo -e "[default]\naws_access_key_id = $accesskey\naws_secret_access_key = $secretkey" > /root/.aws/credentials | |
| $ echo 'goofys#bucket /mnt/bucket-name fuse _netdev,allow_other,--endpoint=https://s3.fr-par.scw.cloud/,--file-mode=0755,--dir-mode=0755,--uid=65534,--gid=65534 0 0' >> /etc/fstab |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>GlobalQuota</key> | |
| <integer>250000000000</integer> | |
| </dict> |
| @see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/resource_management_guide/sec-modifying_control_groups | |
| 2.3. MODIFYING CONTROL GROUPS | |
| Each persistent unit supervised by systemd has a unit configuration file in the /usr/lib/systemd/system/ directory. To change parameters of a service unit, modify this configuration file. This can be done either manually or from the command-line interface by using the systemctl set-property command. | |
| 2.3.1. Setting Parameters from the Command-Line Interface | |
| The systemctl set-property command allows you to persistently change resource control settings during the application runtime. To do so, use the following syntax as root: | |
| ~]# systemctl set-property name parameter=value | |
| Replace name with the name of the systemd unit you wish to modify, parameter with a name of the parameter to be changed, and value with a new value you want to assign to this parameter. | |
| Not all unit parameters can be changed at runtime, but most of those related to resource co |
$ pecl install SCGI
$ nano /etc/nginx/sites-available/default
location /backuppc {
alias /usr/share/backuppc;
}
location /BackupPC_Admin {
include /etc/nginx/scgi_params;
symptoms under loads:
[84579.236440] sky2 0000:01:00.0: error interrupt status=0x40000008
[84579.268416] sky2 0000:01:00.0 enp1s0: rx error, status 0x7ffc0001 length 132
$ iptables -A FORWARD -o enp1s0 -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1492
$ nano /etc/network/interfaces
| user1,user2 no password login | |
| user3 both | |
| classical $home/.ssh usage | |
| $home must be root owned | |
| only $home/subdirs as chrooted-user could be writeable | |
| note: recent openssh server require password (random it) |
| # see https://wiki.debian.org/InstallingDebianOn/Apple/MacBook/2-1 | |
| # use debian jessie as host (recent grub don't support target/efi-directory) | |
| $ apt-get install grub-efi-ia32-bin p7zip-full dosfstools | |
| # format usb as DOS + W95 FAT32 partition + vfat filesystem | |
| # mount usb as /mnt/usb | |
| # buster 32 bits | |
| $ wget http://ftp.de.debian.org/debian/dists/buster/main/installer-i386/current/images/netboot/mini.iso |
| # Red = GND | |
| # Black = 5V | |
| # Green = Data + | |
| # White = Data - | |
| # non-free repo needed | |
| $ apt-get install -y firmware-brcm80211 | |
| $ modprobe brcmfmac; echo "043e 3004" > /sys/bus/usb/drivers/brcmfmac/new_id; |
| #!/bin/bash | |
| ip=`dig +short domain.tld` | |
| if [ ! -f /tmp/.ip-sync ]; then | |
| logger "ip-sync: create ip rule to $ip" | |
| pvesh create /cluster/firewall/ipset/net --cidr $ip | |
| echo $ip > /tmp/.ip-sync | |
| else | |
| if [ `cat /tmp/.ip-sync` != $ip ]; then |