Skip to main content

Posts

VMware to Virtualbox Migration

After updating my Fedora Kernel , VMware Workstation 12 stopped working. This moment I thought to switch back to Virtualbox as it has support for latest Kernels. There are pretty some good documentation on how to migrate from VMware to Virutalbox format You can find a good document on Migration Here  . In Summary the steps are Power off your guest which you are migrating Open command promt as an Adminstrator and Navigate to    C:\Program Files (x86)\VMware\VMware Player\OVFTool Run   ovftool <source.vmx> <output.ovf> eg  ovftool "C:\Users\diaryfolio\Virtual Machines\Windows 7 x64\Windows 7 x64.vmx" C:\Users\diaryfolio\Win7Export.ovf This would take about 15mins . So please be patient Once complete Import into your Virtualbox using "Import Appliance" Errors that might occur Error: "Failed to open disk” - This normally happens when the Guest VM is not properly shutdown or stopped Error while importing to Virtualbox  Fail...

Chromecast vs AppleTV vs Raspberry Pi vs Roku vs Others (2015)

Never waste your money on buying SMART TV's :)  But buy one of these to make your LED/LCD tv smart and control with your phone/home automation Let's compare between  Chromecast vs AppleTV vs Raspberry Pi vs Roku vs Others in 2015. Previous version comparison can be found here Chromecast 2 Google came with a new design for Chromecast 2, with a much better antenna (802.11ac) and perfect price ($35) Built in apps like HBO, Spotify, Youtube, Netflix (but all its competitors have these apps) Though aesthetic is much better, In my opinion it doesn't matter as it sits behind the Television Much improved casting from your phone, Laptop.. almost any devices with a cast option Also I liked that it doesn't have a remote, coz you can control from your phone Lacking power to play games Apple TV4 Coming with Top Specs and a cool Remote Control (Though I feel your iPhone is more than sufficient), Apple TV4 released in 2015-September boasts of (Price around $150...

Encrypted Filesystem - Virtual filesystem with folder, file and content encryption

Linux is wonderful when it comes to security aspects and data protection. My challenge was Laptop having personal details in files and folders Have to encrypt these data so that if laptop is lost, the data shouldn't be replicated Have to use "git" to backup the data normally and version it Solution for Linux Design your folder/directory structure Ensure that all your personal files are well structured Ensure all files are put into a single directory/folder hierarchy  (eg "/home/myuser/personal/") Setting up encfs In Ubuntu, run  sudo apt-get install encfs Encrypted Directory and Mount location encDir="/home/diaryfolio/Docs/encr" # Where encrypted files are stored mntDir="/home/diaryfolio/Docs/mydocs" # Mount created # Create encrypted directory and mount directory encfs $encDir $mntDir # Press Enter which uses default encryption # Provide a strong password and REMEMBER it in future # C...

OpenVPN configuration for CentOS

This article is specifically for PrivateInternetAccess on CentOS. As you might see there are no written packages/support for CentOS. I've followed a very good article from this link , but that was not enough as I had to tweak a lot afterwards. Just to write down the key points here Install OpenVPN using yum (enable EPEL beforehand)  sudo yum install openvpn Please follow all steps as per this article.  Hope you have copied all VPN files in /etc/openvpn and the credentials to /root/.pia When you start, VPN it throws an error [root@localhost openvpn]# systemctl start openvpn@server.service Job for openvpn@server.service failed. See 'systemctl status openvpn@server.service' and 'journalctl -xn' for details. This is because you need to ensure the files/configurations you put in /etc/openvpn needs to be " Set files with the openvpn_etc_t type " How to set files with a specific type Please follow below instructions sudo ...

NUC5i5RYH - Barebone PC as Linux Server

After thinking of  installing VMWare ESXi on NUC5i5RYH barebone , I decided not to go ahead. This is because you need a separate system to manage (vSphere Client) to manage your lab which in my case was not helpful. I decided to go ahead and install CentOS 7 as my main OS(host) and install VMware workstation to support Windows Server (for ActiveDirectory) as guest. I faced few issues while installing CentOS into the i5 NUC. Mainly because the CentOS Kernel & drivers are bit outdated compared to NUC. Just to document what I've done to fix them !! Preparation  Download Minimal CentOS7 from main site Use "UNetbootin" to put the ISO into thumbdrive.  FAT32 formatting of your USB is best suited Installation Attach bootable USB to your NUC and enter ensure your USB as primary boot. Ensure you create a "root" user and password Reboot and CentOS installation is straight forward.  Network Issues Your Wi-Fi won't be listed in your detected dev...

Big Data - Jobs, tools and how to ace it

Big Data : Overview of Structure and Jobs  The demand for big data resources have increased dramatically in past few years. The requirements to create and get most out of "Big Data" environment is classified into 3 tiers Base Layer - DevOps and Infrastructure Mid  Layer - Understanding & manipulating data Front Layer - Analytics, data science I feel the jobs surrounding "Big Data" would also ultimately reflect this. Learning Big Data should be also based on these tiers. Software Suite/Tools Base Layer - Summary This layer forms the core infrastructure of "big data" platform and should be horizontally scalable. OS - Linux is the way forward for big data technologies. RedHat, SuSe, Ubuntu, CentOS Distributed Computing tools/software - Hadoop, Splunk Data Storage - Splunk, MongoDB, Apache Cassandra Configuration management - Ansible, Puppet, Chef Others - Networking knowledge, Version Control (Git) Mid Layer - Summary This...

DevOps : Search and replace files with JSON dataset and template Engine

Today's code build & continuous deployment models are highly diverse thus leading to handwritten and complicated perl/awk/sed scripts. DevOps should come out of age old hand-crafted find and replace scripts with much modern template engines.               Of course template engines are available in wide variety. All enterprise configuration management (chef, puppet, ansible ) software are equipped with their own flavour of template engines and playbooks.  This article however concentrate on "Mustache" template  which is logicless template system and work on any text based data (Web pages, scripts, dataset, config files etc..)               The example below focusses on replacing dynamic text using a JSON dataset. Let's define terminologies Source :   Template Parent Directory with all files/directories +  dynamic variables in it Dataset :    JSON based self defining dataset t...