Posts with the tag CLI

control BOINC using the CLI boinccmd

boinccmd --join_acct_mgr user PASSWORD

If you get Authorization failure: -155 errors all the time, search for files named gui_rpc_auth.cfg and delete them if they are outside the /etc or /var directory.


Read on

Spotlight Search and Indexing

Terminal helpers (command line tools):

  • mdfind : Search Spotlight metadata indices.
  • mdimport : Force Spotlight to import metadata for a specific directory.
  • mdls : List the metadata attributes of a specific file.
  • mdutil : A utility for managing Spotlight indices.

To erase and rebuild the index on the root partition / do:


Read on

when - a tool to administer your schedule

when is a perl script to administer your schedule.

Its data backend is a simple text file!


Read on

How To Apply a Patch to Source Code

Learn by example:
Get a sourcecode package and a .diff.gz file and patch the source. The package is sane-backends_1.0.19.orig.tar.gz and the patch sane-backends_1.0.19-23ubuntu7.diff.gz:

cd ~/Downloads/
tar -xf sane-backends_1.0.19.orig.tar.gz
gunzip sane-backends_1.0.19-23ubuntu7.diff.gz
cd sane-backends-1.0.19/
patch -p1 < ../sane-backends_1.0.19-23ubuntu7.diff

An important parameter of patch is -p. It can be used if you apply a patch in...

Read on