This file contains 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
# How to use a GPG key for SSH authentication | |
# Tested on Ubuntu 20.04 LTS | |
# Enable SSH support in gpg-agent: | |
echo enable-ssh-support > ~/.gnupg/gpg-agent.conf | |
# Cache GPG & SSH passwords for 24 hours (the reboot will clear the password cache) | |
echo max-cache-ttl 86440 >> ~/.gnupg/gpg-agent.conf | |
echo max-cache-ttl-ssh 86440 86440 >> ~/.gnupg/gpg-agent.conf | |
echo default-cache-ttl 86440 >> ~/.gnupg/gpg-agent.conf |
This file contains 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
# disable background scan (might prevent standby) | |
sdparm --quiet --clear=EN_BMS --save /dev/disk/by-id/scsi-????????????????? | |
# enable standby (powers down drive motor) | |
sdparm --flexible --quiet --save -p po --set=STANDBY=1 /dev/disk/by-id/scsi-????????????????? | |
# set standby to 30min | |
sdparm --flexible --quiet --save -p po --set=SCT=18000 /dev/disk/by-id/scsi-????????????????? | |
# enable idle (drives spins but servos are off) | |
sdparm --flexible --quiet --save -p po --set=IDLE_B=1 /dev/disk/by-id/scsi-????????????????? | |
# set idle to 5min | |
sdparm --flexible --quiet --save -p po --set=ICT=3000 /dev/disk/by-id/scsi-????????????????? |
This file contains 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
# So you want switch your HPE H240 controller to HBA mode for use with ESXi or UnRaid? | |
# online you'll find the follow command for HP controllers, like the P420i. | |
ssacli controller slot=0 modify hbamode=on | |
# For me, it was: | |
ssacli controller slot=255 modify raidmode=off | |
# while you are at it, you can also switch the power mode: | |
ssacli controller slot=255 modify powermode=minpower |