Posts

Showing posts from February, 2016

How to disable default certificate verification in Python 2.7.9 and above permanently on Mac?

Python from 2.7.9 and above now verifies the SSL certificate prior establishing the connection to server. This might cause problem in few servers which do not support certificate validation yet. In these circumstances the HTTPS connection requests fails due to new changes in python. For more information on the new changes please read more at : https://www.python.org/dev/peps/pep-0476/. This link describes the ways to establish ssl connection without certificate verification. In my case i was not using the httplib modules API directly hence i had to find out a crude approach to disable the SSL certificate  verification. I would not recommend the below change unless it is really required to do it as you might be opening a set of vulnerabilities as specified in this article.  However the below sample code tells you how disable SSL certificate  verification completely on your system. 
1. Open Terminal 2. Open with sudo privileges the following file [ Note: You may be required to disable …

How to disable USB ports on Mac OS X Mavericks, Yosemite or El Capitan ?

We might wonder how to disable the USB ports on Mac to prevent data copy to external USB mass storage devices. The USB kext on os x is loaded at the time of start of the system, this can be loaded / unloaded using kextload or kextunload command. To disable USB port on Mac , follow below steps:
On Macs running Mountain Lion, Mavericks  and Yosemite:
Unmount any connected USB devices to the system by running below command                  $diskutil unmount /Volumes/USBDISK.Now unload the USB related kernel extensions in the following order using kextunload command.sudo kextunload -b com.apple.driver.AppleUSBCardReader
sudo kextunload -b com.apple.driver.AppleUSBODD
sudo kextunload -b com.apple.iokit.IOUSBMassStorageClass

       This will unload the USB kext and disable the USB ports for storage devices on Mountain Lion, Mavericks  and Yosemite.
On Mac running El Capitan:
Unmount any connected USB devices to the system by running below command                  $diskutil unmount /Volumes/USBDI…

How to format an external hard disk or USB disk whose size is > 32GB as FAT32 ?

Formatting an external disk or usb disk of size more than 32 GB is a problem ? Then use the this tool available at below link. with this tool you can format the disk of size 2TB. A GUI BASED TOOL - http://www.ridgecrop.demon.co.uk/index.htm?fat32format.htm OR A COMMAND LINE BASED TOOL - http://www.ridgecrop.demon.co.uk/index.htm?fat32format.htm

How to create local RHEL DVD repository for package installations ?

This blog tells you how to create a local repository from a RHEL installer DVD iso image.
Firstly please note that  RHEL is not a free software.  To get access to the fully up-to-date repositories (RHN) a  paid subscription is required.Without this subscription it will not be possible to get security updates and the newest versions of packages. An alternative for using RHEL would be CentOSor Scientific Linux. Both are free and almost identical to RHEL. The below steps should only be used for testing, studying or evaluation purposes. The steps below are based on RHEL server 6.4 but the basics are the same for other versions.
Pre Conditions prior performing the following setup steps. - RHEL installed system, - ~4-8 GB free space on disk.

All the below steps are to be executed with root privileges.
1. A directory needs to be created which will contain the repository with following command: $ mkdir /mnt/rhel_repo
2. Mount the DVD disk or iso image with following command. $ mount /dev/dvd /media   …

How to decrypt the Filevault encrypted volume using Recovery HD ?

Image
There might be a time where you want decrypt the FileVault encrypted mac, but you are facing issues in logging into Mac to perform decryption using system preferences. In such cases the following steps will help you in decrypting the disk using Recovery HD. Reboot the Mac, Go to recovery HD partition of the system. (To start your computer from Recovery, restart your Mac and hold down the Command and R keys at startup.)Open Terminal application from Utilities -> Application. First will need to identify the Logical Volume UUID of the encrypted drive using the diskutil corestorage list command: diskutil corestorage list

      4.  Once you have the UUID of the logical volume as shown in above picture, you can then either             unlock or decrypt the encrypted volume using the following commands.
      a) Using the password of an authorised account or the recovery key ( Provided by the                                FileVault at the time of enabling it) on the command line            …