Category Archives: OS X

Adjust texmf-Path in OS X

This tip describes how to adjust the storage location of the texmf-path in a Macports LaTeX installation. The following file needs adjustments accordingly:

~~~
vi /opt/local/share/texmf/web2c/texmf.cnf
~~~

Install Privoxy 3.0.12 on OS X

This is merely an install log which pretty much describes the basic setup and maintenance work in itself:

$ sudo port install privoxy
Password:
---> Computing dependencies for privoxy
---> Fetching pcre
---> Attempting to fetch pcre-7.9.tar.bz2 from ftp://ftp.tin.org/pub/libs/pcre/
---> Verifying checksum(s) for pcre
---> Extracting pcre
---> Configuring pcre
---> Building pcre
---> Staging pcre into destroot
---> Installing pcre @7.9_0
---> Activating pcre @7.9_0
---> Cleaning pcre
---> Fetching privoxy
---> Attempting to fetch privoxy-3.0.12-stable-src.tar.gz from http://voxel.dl.sourceforge.net/ijbswa
---> Verifying checksum(s) for privoxy
---> Extracting privoxy
---> Configuring privoxy
---> Building privoxy
---> Staging privoxy into destroot
---> Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting privoxy with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.Privoxy.plist
###########################################################
---> Installing privoxy @3.0.12_0+darwin
---> Activating privoxy @3.0.12_0+darwin
---> Cleaning privoxy

Hide Application from OS X’s Dock

To hide an application from OS X's dock edit its plist-file and change the according lines to match the following:

~~~
LSUIElement
1
~~~

Quick Traffic Shaping in OS X

In order to enable bandwidth limitations in OS X the following can be useful. This example limits port 139/tcp and port 445/tcp to 5 MBit/s:
~~~
ipfw -f pipe flush
ipfw -f flush
ipfw add pipe 1 dst-port 139
ipfw add pipe 1 dst-port 445
ipfw pipe 1 config bw 5Mbit/s
ipfw pipe show
ipfw show
~~~

To release the limitation again the following lines do the trick:
~~~
ipfw -f pipe flush
ipfw -f flush

ipfw pipe show
ipfw show
~~~

Disable creation of DS_Store files on network volumes

In order to keep OS X from creating DS_Store files on network shares enter the following command in Terminal's CLI:
~~~
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
~~~