Saturday, June 28, 2014

NetBackup - Listing all clients and their versions

Quick Post -
After sorting through a few old files I found a nice little bash script that I used in the past. I was tasked with updating the NetBackup Linux clients to the most recent version which for me was 7.5. One of the nice features about having the NetBackup master installed on a RHEL server was that I could push client updates to my Linux servers without needing root (or any account) access. The command to do this is update_clients which will need a -ClientList parameter passed as well. As -ClientList suggests it needs a list of clients. To make my life easier for creating a list of clients I used this script to output every client and other details that I used to format and filter the clients I needed. Check it out!


Sunday, June 1, 2014

Compiling Skippy-xd on Fedora 20 / Xfce 4

I'm a pretty big fan of the Xfce desktop environment mainly due to its stability and responsiveness with any type of hardware. I tend to play around with other DE's but I always end up coming back to Xfce because it is dependable. Lately I've been using i3wm but that's a story for another time. Something I would like to see added to Xfce is an Apple Exposé type feature. Meaning a full window task switcher which is already included in some DE's like Gnome 3. I set out to find something similar to Exposé for Xfce but surprisingly didn't find much at all. I stumbled across skippy-xd which seemed to be the only real answer (What about Compiz? I decided it was too many fancy effects that I don't need!). Skippy-xd has been in development since 2004 but passed along to three different developers. Up until recently it didn't seem that there was much work done on it so I'll be expecting bugs. Check out this link of skippy-xd in action. Unfortunately it is only packaged for Debian so Fedora users will have to compile from source. Here is what I did to compile and hotkey skippy-xd in Xfce 4.

  1. Make sure you have the following packages installed:
     yum install giflib, libxcomposite, libxdamage, libxft, libxinerama  
    
  2. Grab skippy-xd source files from git repo
     git clone git://github.com/richardgv/skippy-xd.git  
    
  3. At this point I decided to run "make" in the skippy-xd directory but ran into two errors basically complaining that it could not find two header files. After doing some research I found out that I needed the following two packages installed.
     yum install giflib-devel.x86_64 libjpeg-turbo-devel.x86_64  
    
  4. Run "make" in the skippy-xd directory to compile. There should already be a makefile in the directory so running make alone should work fine.
     make  
    
  5. You will have the compiled binary called skippy-xd. Copy this to /usr/bin/ or a location of your choice.
     cp skippy-xd /usr/bin/  
    
  6. At this point you can bind it to any key you would like. You can do this by launching xfce4-keyboard-settings and configuring a shortcut to launch an application.
     xfce4-keyboard-settings  
    
So far it seems to work okay. I do want to note that their is a known bug with minimized windows and some have provided a work around for it. You'll have to search for it since I haven't had time to do it :).