Category: CLI

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

    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 usage…

  • Duplicate your Ubuntu Installation….

    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…

  • FFmpeg commands for ipod video encoding…

    So I found out the hard way that the new ipod’s (with video out) can actually play 640×480 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 videos BIT_RATE <= 1500 kbps…

  • ffmpeg command line quickies…..

    Here are a bunch of ffmpeg command lines that will do just about everything you need. Getting info from a video file ffmpeg -i video.avi Turn a sequence of images into video ffmpeg -f image2 -i image%d.jpg video.mpg Turn a video into a sequence of images ffmpeg -i video.mpg image%d.jpg Encode video for Ipod/IPhone ffmpeg…

  • Speed up Mac OS X Mail application…..

    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…

  • How to make a ISO out of a DMG file under OSX

    Here is a quick command line for all you OSX ppl. If you’re ever in need of turning/converting a .dmg file into a .iso use the following command line: hdiutil makehybrid -iso -o newfile.iso yourfilename.dmg Where newfile is the name of the iso you want, and yourfilename.dmg is the dmg. Have Fun……

  • How to mount CD/DVD images from command line under Linux

    Here are some quick CLI commands to get those CD/DVD images mounted under Linux (without having to burn them first). # ISOmount -t iso9660 -o loop,user file.iso /path/mount_directory # MDFmount imagen.mdf /path/mount_directory -o loop=/dev/loop0 # NRGmount -o loop,offset=307200 imagen.nrg /path/mount_directory

  • Basic APT commands

    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…

  • Activate expanded Save and Print menu’s in OSX

    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…

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

    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…