Oct 9, 2012
How to use PowerShell to create HTML from a Text File
Recently I was tasked with creating a Cluster Health Report for the Windows 2008 R2 Clusters. I was able to do this with PowerShell using the failovercluster cmdlets. This was outputted to a text file and emailed to the support for review daily. To expand / enhance the report it was suggested to create it in HTML format. So back to PowerShell we go and low and behold we find the ConvertTo-Html cmdlet.... read more
Oct 5, 2012
How to set a Directory Sticky Bit in Linux
There are times on Linux / Unix that you need to set the permissions on a directory so that only the owner and root can delete / rename files or sub-directories in the directory. This is true by default with the /tmp directory. This is commonly referred to as the sticky bit. If you want to keep the permissions the same on the directory and just add the sticky bit you can do this by using the chmod command... read more
Oct 3, 2012
How to lock down files in Linux using chattr
As system admins there is always a few trouble users that keep changing files we don’t want them to, such as /etc/resolv.conf. We can do that using the chattr command. Here is the file with no flags using the lsattr command. lsattr – list file attributes on a Linux second extended file system $ lsattr resolv.conf ————-e- resolv.conf So lets lock down the file using -i... read more
Oct 2, 2012
How To Disable fsck at boot on RHEL
Recently ran into the need to disable fsck on a large filesystem at boot. This is not recommended to do by RedHat but in this case it was a evil that had to be put in place with the caveat of making sure to manually run fsck at a later time. According to RedHat: Red Hat does not typically suggest disabling the on-boot fsck except in situations where the machine does not boot, the file system is extremely... read more
Oct 1, 2012
How To Print Directly To PDF in Fedora 17
Admit it, you know you like PDF format, it is portable and the reader is available everywhere it is convenient to have your go to docs in the format. I do it all the time for those commands and programs that I cannot remember the details. No matter what OS I am using I always like the ability to print directly to PDF for sending and storing information. With Windows systems I am a fan of PDFCreator but... read more
