Wednesday, September 4, 2019

VMware - Increasing Disk sizes in Linux

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

Sunday, April 28, 2019

Creating ASA Cert Package from LetsEncrypt certs on Linux

openssl pkey -des -in /etc/letsencrypt/live/ -pubout /etc/letsencrypt/live/

openssl base64 -in /etc/letsencrypt/live/ > cert.base64
openssl base64 -in /etc/letsencrypt/live/ > cert.base64
openssl pkcs12 -export -out /etc/letsencrypt/live/ -inkey /etc/letsencrypt/live/ -in /etc/letsencrypt/live/ -certfile /etc/letsencrypt/live/

cp /etc/letsencrypt/live/ /media/nas-backup

Friday, May 4, 2018

Increase default Plex Volume

PortaPlex:~/.plexht/userdata # nano guisettings.xml


Tuesday, November 14, 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 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
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}" ""
printf "\n"$temp1"\t"$temp2

  • Then all you need is to create a cron job, crontab -e
*/5 * * * * /root/ >/dev/null

Sunday, November 12, 2017


HL-58S V1.2

IO Ports



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

Sunday, August 27, 2017

ESXi 6.5 Install Realtek NIC Drivers

esxcfg-info | less -i

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 -n net55-r8168
# Reboot