Update $PATH variable on Mac Permanently

If you’re a developer or you commonly run apps from directory locations other than the default Mac locations, you probably hate typing out the full directory when running the app or script. To update the $PATH variable within the Terminal you just need to type: export PATH=/new/path:$PATH To update the $PATH variable PERMANENTLY you just … Continue Reading

Setup vsftpd on Linux

Most vanilla installs of Linux don’t come with an FTP server. There’s a really easy way to remedy that when your server has internet access! Just install vsftpd! First you install it: yum install vsftpd Then you edit the config file cd /etc/vsftpd vi vsftpd.conf Then you change the root directory: local_root=/ftp Then you start … Continue Reading

Set or Change the Date and Time on FreeBSD

If you ever need to set or change the time on a FreeBSD (JUNOS) box, here’s how: Show the current date Command:


Set the date to the desired time Command: (yymmddhhmmss)

Date Output Afterward:

Clear DNS Cache on a Mac (OS X)

If you’re ever messing with DNS records, you may run into times when you have stale entries in your DNS Cache. Here’s you how clear your cache in Mac OS X: dscacheutil -flushcache

I’ve gone overboard…

And landed directly in the clouds. In the process of cleaning up unused docs & apps on my Mac I noticed something rather peculiar. ┬áMy virtual stuff is EVERYWHERE!!! I probably have over 20 cloud and/or storage solutions: Dropbox (for quick access to files) Sugarsync (for gigs and gigs of free storage to backup my … Continue Reading

Change Timezone in Ubuntu

If you want to change the timezone in Ubuntu, there is an easy text-based menu-driven way to do so. From the CLI type: sudo dpkg-reconfigure tzdata After you select the time zone, you should see something like this: Current default timezone: ‘America/Los_Angeles’ Local time is now: Thu Dec 8 09:39:56 PST 2011. Universal Time is … Continue Reading

Update/Setup MRTG (ubuntu)

If you’re running an MRTG server on Ubuntu, you may need to update it occasionally when new interfaces/routers are added. Stop the Service sudo /etc/init.d/mrtg stop Move the current config just in case something goes wrong sudo mv /etc/mrtg/mrtg.cfg /etc/mrtg/mrtg.cfg.old Make the configuration (I’m connecting to 3 devices) sudo cfgmaker –output=/etc/mrtg/mrtg.cfg sinatra@ sinatra@ sinatra@ Edit … Continue Reading

Mount Apple TimeCapsule in Linux

If you have a linux server and you want to mount your Apple Time capsule, this is how: Mount with SMB (Time Capsules run this when file sharing is turned on) sudo mount -t smbfs -o username=ben,password=yourpassword,file_mode=0777,dir_mode=0777 “//” /timecapsule Verify Mount with “df -h” command ben@Ubuntu-VM-server:/$ df -h Filesystem Size Used Avail Use% Mounted on … Continue Reading

How-to: Update Dropbox Website Indices with pyndexer

pyndexer is a python script to automatically index all of your public dropbox folders and place the index files in your dropbox. Like This. ┬áThis allows you to create a web-based file directory for users to view your dropbox files instead of having to know the exact URL of a file. First off, this how-to … Continue Reading