Fix eth0 upon cloning in VirtualBox

Thanks to: #vi if grep -q eth1 /etc/udev/rules.d/70-persistent-net.rules; then sed -i ‘/eth0/d’ /etc/udev/rules.d/70-persistent-net.rules; sed -i ‘s/eth1/eth0/g’ /etc/udev/rules.d/70-persistent-net.rules; ETHERNET=`grep eth0 /etc/udev/rules.d/70-persistent-net.rules | awk -F”,” ‘{print $4}’ | awk -F”\”” ‘{print $2}’`; echo Ethernet Addr: $ETHERNET; sed -i ‘s/HWADDR=”.*”/HWADDR=”‘$ETHERNET'”/’ /etc/sysconfig/network-scripts/ifcfg-eth0; /sbin/start_udev /sbin/service network restart; fi

Powershell script to auto install of IIS 7 and above

With certain changes from using help we are able to install IIS from power shell with custom role services.I have the code here and the link to the blog is: # ——————————————————————– # Checking Execution Policy # ——————————————————————– #$Policy = “Unrestricted” $Policy = “RemoteSigned” If ((get-ExecutionPolicy) -ne $Policy) { Write-Host “Script Execution is disabled. Enabling […]

Fix Corrupt Windows 7 Temporary Profile

Thanks to While working with Microsoft’s Windows 7 operating system over the past few months I have noticed that sometimes when working with multiple profiles that they can sometimes get corrupted. The error I would receive says that “You are logged into a Temporary Profile.” This means that anything that user would do under that […]

Compare SnapRaid vs ZFS and others

Thanks to: SnapRAID is a recent entry in the well populated set of not standard RAID solutions for disk arrays. The main factor to categorize the existing solutions is when the redundancy information is updated. In realtime redundancy solution the redundancy data is updated in realtime, without an explicit action of the user. Just like RAID. In snapshot redundancy solutions the redundancy […]

How to install and configure SnapRAID on Ubuntu Server

Thanks to: NOTE: This guide has been written for Ubuntu Precise Pangolin 12.04 & Lucid Lynx 10.04 although it may work equally well on earlier or later versions of Ubuntu. Overview You may have read already that I currently have six 2TB drives in my server which hold all my CD, DVD & Blu-ray rips. […]

Can we use tailf on linux as in windows? Yes, do it with PowerShell

Thansk to Get-Content Get the content of the item at the specified location. Get-Content reads the content one line at a time and returns an object for each line. Syntax Get-Content [ [-path] | -literalPath ] string[] [-ReadCount Int64] [-TotalCount Int64] [-include string[]] [-exclude string[]] [-filter string] [-force] [-credential PSCredential] [-Encoding] [-Delimiter String] [-Wait] [-Raw] […]

Replace Dropbox with BitTorrent Sync and a Raspberry Pi

Thanks to: Enter BitTorrent Sync BitTorrent Sync is a free utility that uses the bittorrent protocol to keep folders in sync across devices. It can be used with OS X, Windows, Android and Linux. It is not however open source, which might be a deal breaker for some. But if this isn’t too big a pill […]

Unattended/silent lamp installation on Ubuntu

Thanks to: Example that installs Apache 2, PHP 5, MySQL, the Java JDK, NetBeans, and C++. Where PASSWORD needs to be your MySQL password (found that here): #!/bin/sh apt-get update apt-get -y install apache2 apt-get -y install php5 libapache2-mod-php5 /etc/init.d/apache2 restart echo mysql-server-5.1 mysql-server/root_password password PASSWORD | debconf-set-selections echo mysql-server-5.1 mysql-server/root_password_again password PASSWORD | debconf-set-selections apt-get install […]