TMS – The stuff Apple forgot to include in Time Machine GUI….

CLI, Opensource, OSX, osx Server, Time Machine
Just came across tms , what a great tool. It a command line tool for OSX 10.5+ that allows basic CVS style operations on your Time Machine volumes and It does its thing in read-only mode, so nothing gets changed/deleted.....woohooo. Here is the stuff you can do with it:help      - instructions on usageversion   - print the current version of this tooldisk      - print the current diskdisks     - print list of all Time Machine disksvolumes   - print list of all volumesmachine   - print the current machinemachines  - print the list of all machines backed up on the current diskstatus    - print the current configurationsnapshots - print the list of snapshots for the current machine on the current disksnaplog {} - print the…
Read More

Duplicate your Ubuntu Installation….

CLI, Linux, Ubuntu, Unix
As good as Ubuntu (and linux) are in general, once in a while you just get to a point where you need a reinstall. That's when the realization kicks in that you've got far too many packages installed since the initial Ubuntu install. It's okay, there is a way out. Make sure you have a USB key.On Ubuntu Workstation (with graphical interface):Run Synaptic package manager. Once inside Synaptic, go to File/Save Markings As menu option and choose a filename and location (USB stick). MAKE SURE YOU ALSO CHECK THE BOX "SAVE FULL STATE, NOT ONLY CHANGES". This will save a text file that contains every single package installed on your system (through apt system and all it's variants....manual compile/installs are something else). Now you can go ahead and reinstall the…
Read More

FFmpeg commands for ipod video encoding…

CLI, ffmpeg, iPod, iPodTouch, Opensource
So I found out the hard way that the new ipod's (with video out) can actually play 640x480 video and also figured out how to get iTunes to accept the encoded files (so that I could sync them with the device).......here is the run down:"TV-Out" mode - 1.5Mbit/s 640×480 H.264 videosBIT_RATE <= 1500 kbps640×480Up to 30 fps“Low-Complexity” H.264 Baseline Profile1 reference frameUp to H.264 level 3640 pixels maximum frame widthSample Aspect Ratio (SAR) must be 1:1UUID atom must exist containing the following hex data: 6B 68 40 F2 5F 24 4F C5 BA 39 A5 1B CF 03 23 F3....This allows you to add the video into iTunes. You need AtomicParsley for this which can be checked out from their subversion repository . See below for usage.For 1-pass encoding use:ffmpeg -i INPUT…
Read More

ffmpeg command line quickies…..

CLI, ffmpeg, Opensource
Here are a bunch of ffmpeg command lines that will do just about everything you need.Getting info from a video fileffmpeg -i video.aviTurn a sequence of images into videoffmpeg -f image2 -i image%d.jpg video.mpgTurn a video into a sequence of imagesffmpeg -i video.mpg image%d.jpgEncode video for Ipod/IPhoneffmpeg -i source_video_file.avi -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv -trell 1 -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output_file.mp4Encode video for PSPffmpeg -i source_video_file.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac output_file.mp4ORffmpeg -i "OriginalFile.avi" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320x240 "OutputFile.mp4"Extract audio from a video file and save it as mp3 formatffmpeg -i source_video_file.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output_file.mp3Convert…
Read More

Speed up Mac OS X Mail application…..

Apple, CLI, Macintosh, OSX, Tricks
Does your OSX Mail app crawl when you start it. Well here is a quick tip to speed things up again. Just issue this command from a terminal window (make sure you're not running Mail app first).sqlite3 ~/Library/Mail/Envelope\ Index vacuum;You should notice a bit of a performance improvement the next time you start the Mail application. This only works for the OSX mail.app, not other mail applications.
Read More

Basic APT commands

CLI, Linux, Shell Script, Ubuntu
Okay, now for a bit of CLI goodness. Here is a quick list of basic apt commands.  Debian and most derivatives (Ubuntu) use these for package maintenance.#searchapt-cache search packagename#package infoapt-cache show packagename#cleansudo apt-get cleansudo apt-get autoclean #old packages#checkapt-get check#get source codeapt-get source packagename#get depapt-get build-dep packagename#update/install/remove/upgradesudo apt-get updatesudo apt-get install packagenamesudo apt-get remove packagenamesudo apt-get upgradesudo apt-get dist-upgrade
Read More

Activate expanded Save and Print menu’s in OSX

Apple, CLI, Macintosh, OSX, osx Server, Tricks
Here are two commands to activate the expanded Print and Save menu's under OSX by default. You need to type these in a terminal window.1) For expanded Print menudefaults write -g PMPrintingExpandedStateForPrint -bool TRUELogoff and back in again to activate. Reissue the command replacing TRUE with FALSE to turn expanded functionality off.2) For expanded Save menudefaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUELogoff and back in again to activate. Reissue the command replacing TRUE with FALSE to turn expanded functionality off.Enjoy and Have fun
Read More

Quick command line trick to make your Leopard stacks look nice….

Apple, CLI, Leopard, Macintosh, OSX, osx Server, Tricks
Here is a quick command to make Leopard's stacks behave nicer when you move your mouse across the icons. You can type these two commands in terminal to activate the feature:defaults write com.apple.dock mouse-over-hilte-stack -boolean YESkillall Dockor alternatively if you don't like the look, type the following in terminal to reset it back:defaults write com.apple.dock mouse-over-hilte-stack -boolean NOkillall Dock
Read More