Author: Chris Carey

  • SSH KeepAlive

    By default, your ssh daemon probably will kick you out after a period of no activity. I like to set the following in sshd_config:

    TCPKeepAlive yes
    ClientAliveInterval 60

  • UtahFM iPhone App

    Making good progress on the UtahFM iPhone App. Got a progress bar working so now it spins while music is playing. I’d like to get some more testers but you have to be willing to upgrade to iPhoneOS 3.0beta5.

    Main Screen

    The About Page:

    About Page

  • Netatalk on Intrepid once again

    This sequence of commands work well for me to get a SSL-enabled version of Netatalk compiled “the Debian way” or “the Ubuntu way”, where you get a nice .deb file:

    [code]
    mkdir -p ~/src/netatalk
    cd ~/src/netatalk
    sudo apt-get install devscripts cracklib2-dev dpkg-dev libssl-dev build-essential
    sudo apt-get build-dep netatalk
    apt-get source netatalk
    cd netatalk-2.0.3
    DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -us -uc
    sudo debi
    [/code]
    Now you can install the .deb package that was just created.

    You will want to set Netatalk “on hold” so that it will not update, killing your custom SSL version:

    [code]
    echo "netatalk hold" | sudo dpkg –set-selections
    [/code]

  • iPhone Google Calendar Sync

    So,  I upgraded to iPhone OS 3.0 and want to get the Google Calendar Sync up and running on the new OS.

    Search for “iphone google calendar sync” at Google. Not a single link on the first page has the instructions on how to do it. Had to search forever just to find the server name to enter which is

    m.google.com
    

    Sheesh. So I make this blog post so I never have to search again for this.

    Fantastic announcement, no howto:

    http://googlemobile.blogspot.com/2009/02/google-sync-beta-for-iphone-winmo-and.html

    has some great information about the product, but no install instructions:

    http://www.google.com/mobile/apple/sync.html

    Finally found this after about 10 minutes:

    http://www.appleiphoneapps.com/2009/02/how-to-setup-google-sync-on-your-iphone/

  • Recursive grep search with filenames and line numbers

    Slack and Bill at worked helped me out with a nice recursive grep search. It is now my favorite:

    egrep -irHn <searchterm> <path>

  • Keeping PDAnet free on your iPhone

    Recent versions of PDAnet are no longer free. PDAnet changed to a $30 pay version as of version 1.40. Here is how to roll back to the old free version:

    http://www.virtuadave.com/2008/11/19/keeping-pdanet-free-on-the-iphone/

  • How to modify iPhone Calendar colors on Jailbroken iPhone

    *EDIT* updated for iOS5 here http://chriscarey.com/wordpress/2012/01/07/changing-calendar-colors-on-a-jailbroken-iphone-running-ios-5/


    After installing Google Sync for iPhone, I had a problem that the iPhone Calendar colors did not match the colors of the calendars in Google Calendar.

    I am republishing a post by michael.ansel. I found a post by him to be the best way to change calendar colors.

    One thing he failed to mention in the following steps is to install sqlite3 which is not installed by default. On your jailbroken iPhone, launch Cydia and install sqlite3.

    Then proceed with these steps…

    (more…)

  • Mounting a lvm crypted device via the command line

    #cryptsetup luksOpen /dev/HARDDISK DEVICENAME
    #lvmdiskscan
    #vgchange -ay
    #ls -l /dev/mapper
    #mkdir /media/crypt
    #mount /dev/mapper/DEVICENAME /media/crypt

  • Streaming a webcam in Linux with VLC

    I wanted a simple way to make my Linux security camera server stream live video to my TV.

    The server ususally runs “motion”. I disable motion, and launch this command on the server:

    vlc v4l:/dev/video0:size=640×480:channel=1:norm=ntsc:fps=12 –sout ‘#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=mmsh,mux=asfh,dst=:8080}}’ -v –noaudio

    and this on a Linux client to test:

    mmsh://10.4.4.25:8081/

    Then, once that is all working, I use VLC on the AppleTV to play the video to the TV. I used iScripts to get it launching.

    The only problem I have right now is a 8 or so second delay.