Sunday, 22 June 2014

2 x FreeNAS Quick Fixes 9.2.0+

Fixes for FreeNAS

There is an error trying to install Plugins, It mentions Jails but it has NOTHING to do with the jails. 

See the issue here....

https://bugs.freenas.org/issues/4680

On a command line this is the fix.....

  • echo '64.62.136.38 cdn.freenas.org' >> /etc/hosts

Once you have upgraded to the latest version you cannot turn CIFS on and off. And consequently not change permissions. 

Fix for CIFS Share
As root and in SSH do the following commands:
  • cd /tmp
  • fetch https://bugs.freenas.org/attachments/download/768/fixup.sh.txt
  • chmod +x fixup.sh.txt
  • mv fixup.sh.txt fixup.sh
  • ./fixup.sh

Thursday, 19 June 2014

How To Wipe a Folder on Mac OS (Securely)

srm -f -r -m -z -v *.*

Broadband Terminology (BT UK)


  • SFI test (it stands for special faults investigation), including a PQ (pair quality) test.

  • "lift and shift". This involves an engineer disconnecting your line from one ADSL rack (a digital subscriber line access multiplexer, or DSLAM) in the exchange and connecting it to a different one.

Networking - North Korea IP Block


  • 175.45.176.0/22 - North Korea

Linux (ESXi) Update ESXi from Command Line


  • wget http://hostupdate.vmware.com/software/VUM/OFFLINE/release-331-20120408-206167/ESXi500-201204001.zip
  • vim-cmd hostsvc/maintenance_mode_enter
  • esxcli software vib update --depot=/vmfs/volumes/4f3ebfb7-0a4d1490-4fba-2c768aabd269/ESXi550-201404001.zip
  • vim-cmd hostsvc/maintenance_mode_exit
  • reboot

Linux (ESXi/Misc) Working with log files


  • find /var/log/ -name *.log -mtime +1 -exec ls -tl {} \;
  • find /var/log/ -name *.log -mtime +1 -exec rm -f {} \; 
  • egrep 'segfault|fail|denied|oops|warn' /var/log/*
  • tail -f /var/log/mcelog
  • tail -f /var/log/vmkernel.log
  • grep -c "hardware error" /var/log/mcelog
  • grep -i "hardware error" /var/log/mcelog
  • grep -c "hardware error" /var/log/vmkernel.log
  • grep -i "hardware error" /var/log/vmkernel.log
  • grep -r "audit" *
  • grep -r "error" *

  • Clear Log Files
  • cd /; find /vmfs/volumes/ -name vmware-*.log -mtime +1 -exec ls  {} \; 
  • cd /; find /vmfs/volumes/ -name vmware-*.log -mtime +1 -exec ls  {} \; | xargs rm

Linux (Misc) Performance Tweak and Disable IPV6

echo manual | sudo tee -a /etc/init/failsafe.override
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableiwrpv6.conf