November 22, 2014

Clone a directory tree without files

Sometimes you need to clone a whole directory tree but leave make it empty. This is useful if you’re purging out old files and just need to start from scratch. This can be done with:

rsync -vaA –progress -f”+ */” -f”- *” source/ destination/

I like the –progress flag so that I can see what it’s copying and the -A flag keeps ACLs, which can be important in shared environments.… Read the rest

September 3, 2014

NVIDIA cards and compute mode vs WDDM mode

NVIDIA high-end GPUs (Tesla, Quadro, etc) can be configured to run in either Tesla Compute Cluster (TCC) mode or Windows Display Driver Model (WDDM) mode. The difference between the two is that in TCC mode, the cards dedicate themselves completely to compute and are not meant to have a local display.… Read the rest

August 26, 2014

dd-wrt and Active Directory DNS

If you have a router running the dd-wrt firmware and have configured Active Directory internally, you’ll need to set a few options to make things work. The goal is to use the router for general DNS queries through the ISP (or public) DNS servers, as well as the static leases function from DNSMasq, while routing AD DNS requests through the Windows Server.… Read the rest

July 15, 2013

Using a proxy in Linux

Often times you will run into machines that are on a restricted network and you have a proxy server that you can bounce through click over here now. To use a proxy in Linux, set the environment.

export http_proxy=http://server-ip:port/


(a) Representative image of AAV2 2 CBA transduced axons in the midsagittal plane from WT and hSOD1G93A in the cervical and lumbar CST.… Read the rest
July 14, 2013

LSI RAID card tools and tips

Many useful tools for LSI RAID cards

Silence alarm

# MegaCli -AdpSetProp -AlarmSilence -aALL

Tools for monitoring
<a style="font-weight: inherit; font-style: inherit; color: #1b8be0;" href="http://hwraid.le-vert generic”>



Injury forced Ponder to the bench this week, but the more efficient play of Matt Cassel may keep him there.… Read the rest

Debian init scripts in CentOS

While trying to port an LSI RAID monitoring script over, I found that it was a Debian start/stop script that needed start-stop-daemon and used the log_begin_message commands. To get this working while I did a complete port, I tracked down some resources.… Read the restRoblox Free Unlimited Robux and Tix

July 13, 2013

Email relay in Linux

Being able to send out emails is ciritcal if you are monitoring things or need other services. There are a few parts to get this done and we will use CentOS 6.4 for our example.

  1. Mail server (MTA)
  2. Relay server


Read the rest
July 8, 2013

Setting up new hard drives

Ensure the new drive is seen by the operating system by using any of the following:

tail -f /var/log/messages
ls /dev/sd*
lsscsi (need to install)
lshw (need to install)

Confirm that it is the correct drive:

fdisk -l /dev/sdf      -> You should see a drive w/o any partitions and the correct size

Make a partition on the drive

parted -a optimal /dev/sdf     --> aligns the partition to the nearest boundary.
Read the rest
April 25, 2009

Linux Software RAID

Create a software raid

Locate your disks:

ls /dev/sd*

Partition the disks:

 fdisk /dev/sdb
 'n' = New partition
 'p' = Primary
 accept the defaults
 't' = Change filesystem type
 'fd' = Linux RAID Autodetect
 'w' = write the changes

Once the disk is installed create a partition of type ‘Linux raid autodetect’ (type fd) that is the same size as the remaining drives in the raid.Read the rest

September 16, 2008

Disk Recovery in Linux

Recovery instructions

You use a combination of parted, ddrescue, and mount.

Parted will give you the offset to get to the filesystem.
ddrescue will recover the data from the disk and make an imagefile.
mount will allow you to mount the filesystem

These were based from Andre Miller’s website.Read the rest