Photography

Starting Ensim Pro For Linux SSL Tunnel [FAILED]

At work, I was unable to access my Ensim control panel (on RHEL4); the browser kept timing out. So I thought I'd restart it to see if that would fix it. I did the usual: /etc/init.d/epld restart And got this error Stopping Ensim Pro For Linux Control Panel [ OK ]...

Your Linux Boot Disk Full?

While trying to run a YUM update on a CentOS server today, I got an error message about my /boot partition being full. I ran a df -h and sure enough, there was only 100k left. (My standard install uses 100MB for the boot partition.) Here's what I did to fix it. rpm -q...

Speed Up Mail.app

Mail.app seems to get slower and slower. Plus it crashes at least once a week. As I started looking around the web to find a solution I ran across this post from Tim Gaden at his blog: http://www.hawkwings.net/2007/03/01/a-faster-way-to-speed-up-mailapp/ He describes...

Using Linux Tail to Trim Your Files

This tip is for my friend Scarb. For years I've used the Linux command "tail -f" for watching logs... but only recently did I discover its versatility for extracting parts of files. Need to grab only the last 25 lines of a file? tail -n 25 somefile.txt How about the...

Sync your files across multiple machines

Dropbox is a service that allows you to keep files synchronized across multiple machines (and multiple platforms). Click through and checkout the video. It's pretty slick! Here is some additional info from ars technica.

Blackberry Now Supports IDLE on IMAP Accounts

Wahoo! Not sure when it started, but yesterday I noticed IMAP mail was flowing immediately to my Blackberry Curve (I'm a BIS user on T-mobile). Then today, I see this post over at Blackberry Cool which confirms I'm not the only one!...

Handbrake batch conversion using CLI shell script

I contributed to a Handbrake forum a while back. Thought you might find it useful too. This is my evolving script for transcoding DVDs from MacTheRipper. 1) Save the file in a logical place (I keep it in the Movies Folder... same place I rip movies to). It will loop...

Hosts File on Mac

I can never remember the path to the hosts file on my MacBook Pro. So, here it is: sudo nano /private/etc/hosts

Find Large Files in Linux

This doesn't work perfectly, but I often use it to start tracking down disk hogs: To return the 10 largest items in a given directory: du -cksh * |sort -rn |head -11 Some times it's helpful to view all du -cksh * |sort -rn If someone has a better approach, please...

Find Failed Login Attempts in Logs

Looking for a log to show you failed login attempts to your Linux machine? Look in: /var/log/btmp You can access it by running: /usr/bin/lastb It's similiar to the wtmp log of user login/logouts and the utmp log showing who is currently logged in.

Sync iCal with Google Calendar

Products like Spanning Sync allow you to sync your iCal with your Google calendar. Now Google has a new service called "Google Calendar CalDAV" that allows you to do the same thing. Details at: Enable Google Calendar in iCal I tried it and it works very good....

Change Runtime Settings for Linux Servers

I install RHEL on all my production machines and CentOS on all my test/development boxes. Installing the GUI is helpful for configuration, but you sure don't want to run them that way all the time. So after everything is installed, configured and tested, I make the...

Add a Virtual IP Address in Linux

nano /etc/sysconfig/network-scripts/ifcfg-eth0 Should look something like this DEVICE=eth0 BOOTPROTO=static BROADCAST=172.16.0.255 HWADDR=00:00:00:00:00:00 IPADDR=172.16.0.2 NETMASK=255.255.255.0 NETWORK=172.16.0.0 ONBOOT=yes Duplicate that and open the new file cp...

Use cURL instead of wget on Mac OS X

I use wget all the time on my Linux machines, but was surprised to find it missing on my MacBook Pro. Since Mac OS is based on BSD, it uses cURL instead. Here's a good way to scrape files from a remote server. curl -O...

Restart Ensim via CLI

After a few months of continuous use, I've found Ensim to start using too much swap space and getting sluggish. A quick restart via command line, always fixes both: /etc/init.d/epld restart

Pause a Linux Shell Script using Sleep

It's easy to pause a shell script during execution. Just add: sleep 10 (where 10 is the number of seconds you want the script to pause.) Some code for testing would be... #!/bin/sh before="$(date +%s)" echo $before sleep 3 after="$(date +%s)" echo $after...