Featured

Linux Cloud Technologies 2013

  Build the cloud on Linux!  This year looks very promising for Linux when it comes to building your private cloud using open source technologies.  Finally, Linux-based software and application

Read More
Linux Cloud Technologies 2013

Connect to SQL Server with Python

0
by on July 5, 2013 at 2:23 pm

Recently I was tasked to rewrite some Perl cgi scripts.  My time is valuable to me, so I rewrote them in Python!  One of the functions of the cgi scripts was to connect to a Microsoft SQL Server 2008 r2 instance.  A quick glance at the perl scripts showed me we were using ODBC to connect to SQL Server.  After a few hours of reading online, I settled upon what I believe is the best method, using pyodbc.

pyodbc is an open source library for python, available at https://code.google.com/p/pyodbc/  Installation is pretty straight forward, but I will outline the steps here and help you connect to SQL Server as well.

(more…)

in How-To, Red Hat

, , , ,

Centos 6 Apache Kerberos AD SSO

14
by on May 21, 2013 at 7:22 pm

I recently setup a RHEL / Centos 6 Apache websever at work that integrates with Active Directory (AD) and Kerberos for a single sign on (SSO) web resource.  This took me a lot more time than I thought it would, but that’s because the tutorials I was reading were either wrong, or didn’t apply to my situation.  I am outlining the steps I took below to help others who may wish to have a similar setup.

(more…)

in CentOS, How-To, Red Hat

, , , , , , ,

Ad goes here

Install vSphere CLI in CentOS 6

0
by on May 7, 2013 at 4:04 pm

I recently installed VMware’s vSphere CLI 5.1 tools on a CentOS 6 x86_64 VM.  Despite the rather reassuring documentation released by VMware, installing these tools was no simple task.  I will outline the steps that I took for a successful installation of the vSphere CLI software, as some of it is not very obvious, especially for beginners.

(more…)

, , , ,

Start iptables in Debian Automatically

5
by on February 21, 2013 at 9:47 pm

If you are trying to make iptables survive a reboot in Debian Squeeze or Wheezy, you may find the following of use.  After you get your iptables all squared away, save them to a text file with the incredibly handy /sbin/iptables-save command:

/sbin/iptables-save > /root/iptables.saved

This will create a text file in the /root directory containing lines that will be parsed by iptables when used with the  iptables-restore command.

Next, add the following script to your system:

(more…)

in Debian, How-To

, , , ,

Fedora 18 won’t boot

10
by on February 11, 2013 at 3:27 am

Recently I filed a bug report with bugzilla regarding Fedora 18′s inability to boot after successful installation from all types of installation methods. Check the comment section of the Fedora 18 Review post for a direct link to the bug report.

Fedora 18, like many other fresh distros, utilizes GRUB2.  However, Fedora 18 is the only distro I have personally encountered this problem of not booting after a successful install.  This problem seems to be related to older hardware, or devices that lack the ability / video memory to use the highly graphical GRUB2 boot screen.  There is no science in my previous statement, just an educated guess.

(more…)

in Fedora, How-To

,

GlusterFS Tips and Tricks CentOS

17
by on February 10, 2013 at 4:39 pm

I’ve been playing around with the latest stable release of GlusterFS, currently 3.3.1, for the last couple of weeks.  GlusterFS is a scale-out cluster storage system that is extremely easy to setup and get running.  However, during my short time working with it, I’ve stumble across a few items that were a little tricky to solve, and not well documented in the FAQ or elsewhere (that I found).

Problem: Attaching a Peer

The first problem I ran into was the inability to successfully attach a peer.  After running gluster peer attach gluster-node2 I would receive “Probe unsuccessful” “Probe returned with unknown errno 107″  Suffice to say that when an application gives you an “unknown error” it is very demoralizing.  Especially if you read Gluster’s documentation about how easy it is to setup.  If you check in /var/log/glusterfs/etc-glusterfs-glusterd.vol.log you can generally find some text that points to the problem.

(more…)

in CentOS, How-To, Reviews

, ,

RHCSA Study Guide RHEL 6

0
by on February 9, 2013 at 9:29 pm

If you are considering obtaining a certification in Linux to advance your career, a great certificate to hold is the Red Hat Certified System Administrator (RHCSA).  Red Hat is the premier enterprise Linux distribution, used in countless production environments worldwide.  Red Hat certifications require a candidate to sit for a practical exam; there are no multiple choice questions, you must actually configure a live system.

Please excuse the formatting of this post.  I am working to clean it up.
Throughout the web, you can find a collection of study guides for the RHCSA.  I have created my own, which is a collection of my own notes and the notes of others.  I highly recommend using the following book:
RHCSA/RHCE Red Hat Linux Certification Study Guide (Exams EX200 & EX300), 6th Edition (Certification Press)

Current exam objectives can be found here:  http://www.redhat.com/training/courses/ex200/examobjective

SELinux user guide:  http://docs.fedoraproject.org/en-US/Fedora/13/html/SELinux_FAQ/index.html#id3028666

(more…)

in Distros, Red Hat

Fedora 18 Review

4
by on February 7, 2013 at 6:37 pm

Fedora FreedomFedora 18 was released in the middle of last month without too much fanfare.  I suspect this is likely because the beta was extremely buggy; many people had trouble installing Fedora 18 Beta using the new Anaconda installer interface, and I myself even filed a bug report for GRUB2 not loading after installation (which is still outstanding).

Why should you be interested in Fedora 18?  Well, aside from the fact that it’s already a very popular desktop distro, according to this article from ServerWatch.com, Fedora 17 and Fedora 18 will debut some of the features slated for release in RHEL 7, which is due out within the next year or so.

(more…)

,

KVM and GlusterFS 3.3.1 performance on CentOS 6

7
by on January 30, 2013 at 6:32 pm

Currently I am testing the usability and performance of GlusterFS as a suitable virtual image store for the KVM hypervisor on Centos 6.

Setup:

Hypervisor: Centos 6 x64, AMD Phenom II 1090T, 16G RAM DDR3 1033mhz. HDD: 7200RPM SATA II.
Storage Node: Fedora 18 x64. HP Proliant DL380 G4. 4G RAM DDR. RAID 1 SAS 10k.
VM-remote: Debian 6 x64. 2G RAM, 2 Virtual CPUs. RAW 8G disk on glusterfs volume.
VM-local: N/A (coming soon)
Network: Direct patch 1Gbps ethernet.

(more…)

, , ,

Ubuntu: install packages from CD

0
by on January 12, 2013 at 10:18 pm

Recently I installed a system with Ubuntu Server, and neglected to install openssh-server.  While I had terminal access, I didn’t have internet access, so I simply couldn’t run apt-get to install the missing packages.  I was stuck in the data center (virtually stuck, anyway) with a decision:  Spending another 40 minutes re-installing the operating system, or somehow install the packages from the installation disk.  I chose the latter, and while it took more time than just re-installing the system to figure it out, it will surely save me time in the long run as this is most likely not the last time I will encounter this missing package problem.

(more…)

in Distros, How-To, Ubuntu

, , , ,

Categories