http://echenh.blogspot.co.nz/2010/04/how-to-extend-lvm-on-vmware-guest-os.html
http://conrey.org/2011/05/18/lvm-and-vmware-linux-guests-just-do-it/
1. Increase Disk Size
2. Create Partition for used space using cfdisk / Primary Disk
3. pvcreate /dev/sda3
4. vgextend vg_vmlinuxcentos6 /dev/sda3
5. lvextend -l +100%FREE /dev/vg_vmlinuxcentos6/lv_root
6. lvdisplay
7. resize2fs /dev/vg_vmlinuxcentos6/lv_root
September 05, 2019
April 29, 2019
Creating ASA Cert Package from LetsEncrypt certs on Linux
openssl pkey -des -in /etc/letsencrypt/live/asa.wjw.nz/privkey.pem -pubout /etc/letsencrypt/live/asa.wjw.nz/pubkey.pem
openssl base64 -in /etc/letsencrypt/live/asa.wjw.nz/cert.pem > cert.base64
openssl base64 -in /etc/letsencrypt/live/asa.wjw.nz/privkey-enc.pem > cert.base64
openssl pkcs12 -export -out /etc/letsencrypt/live/asa.wjw.nz/certificate.pfx -inkey /etc/letsencrypt/live/asa.wjw.nz/privkey.pem -in /etc/letsencrypt/live/asa.wjw.nz/cert.pem -certfile /etc/letsencrypt/live/asa.wjw.nz/fullchain.pem
cp /etc/letsencrypt/live/asa.wjw.nz/certificate.pfx /media/nas-backup
May 05, 2018
Increase default Plex Volume
PortaPlex:~/.plexht/userdata # nano guisettings.xml
<volumeamplification>30.000000</volumeamplification>
<volumeamplification>30.000000</volumeamplification>
November 15, 2017
One-Wire Temperature collection, publishing to EmonCMS using OmegaOnion
I needed a quick solution to log the temperature of my hot water cylinder at home, had an Omega Onion lying about so used that.
OmegaOnion
OmegaOnion EXP Dock
2 x DS18B20 Sensors, wired together with a 5K7 pull-up resistor
From a factory reset:
OmegaOnion
OmegaOnion EXP Dock
2 x DS18B20 Sensors, wired together with a 5K7 pull-up resistor
From a factory reset:
- echo "w1-gpio-custom bus0=0,19,0" > /etc/modules.d/55-w1-gpio-custom
- reboot
- Find the names of the sensors, "ls /sys/devices/w1_bus_master1/
- opkg install curl
- opkg install nano
- nano temp.sh
#!/bin/ash
temp1=$(awk -F= '/t=/ {printf "%.03f\n", $2/1000}' /sys/devices/w1_bus_master1/28-000006560975/w1_slave)
temp2=$(awk -F= '/t=/ {printf "%.03f\n", $2/1000}' /sys/devices/w1_bus_master1/28-0000065711e6/w1_slave)
curl --data "data={temp1:$temp1,temp2:$temp2}" "http://192.168.1.129/emoncms/input/post.json?node=55&apikey=xxxxxxxxxxxx"
printf "\n"$temp1"\t"$temp2
- Then all you need is to create a cron job, crontab -e
*/5 * * * * /root/temp.sh >/dev/null
November 13, 2017
EFA TLS Cert with Intermediate
Export Cert from NAS
Edit /etc/postfix/ssl/rsa_smtpd.pem
Remove the current contents
Paste in your private key
Then your certificate
Then your chain
save file
restart postfix - service postfix restart
Edit /etc/postfix/ssl/rsa_smtpd.pem
Remove the current contents
Paste in your private key
Then your certificate
Then your chain
save file
restart postfix - service postfix restart
August 28, 2017
ESXi 6.5 Install Realtek NIC Drivers
esxcfg-info | less -i
https://www.v-front.de/2015/03/vsphere-6-is-ga-ultimate-guide-to.html
Install Realtek R8168 drivers
# Lower the system's acceptance level to allow Community supported packages
esxcli software acceptance set --level=CommunitySupported
# open firewall for outgoing http requests:
esxcli network firewall ruleset set -e true -r httpClient
# Install e.g. net55-r8168 from the V-Front Online Depot
esxcli software vib install -d https://vibsdepot.v-front.de -n net55-r8168
# Reboot
reboot
https://www.v-front.de/2015/03/vsphere-6-is-ga-ultimate-guide-to.html
Install Realtek R8168 drivers
# Lower the system's acceptance level to allow Community supported packages
esxcli software acceptance set --level=CommunitySupported
# open firewall for outgoing http requests:
esxcli network firewall ruleset set -e true -r httpClient
# Install e.g. net55-r8168 from the V-Front Online Depot
esxcli software vib install -d https://vibsdepot.v-front.de -n net55-r8168
# Reboot
reboot
Subscribe to:
Posts (Atom)