Archive for the 'Apple' Category

ifconfig - NIC capabilities / functions

find out what is the capability of an network interface, e.g. :

ifconfig -m vr0

configure / set media types of a NIC, e.g :

ifconfig vr0 media 100baseTX
ifconfig vr0 media autoselect

MacPorts - tweaking the ports

Have you thinking of tweaking the ports for some reason, e.g. sources downloading are slow, checksum error from a site and etc. Below are the configs and directories :

ports file is store at /opt/local/var/macports/sources/rsync.macports.org/release/ports/

source downloaded are kept in /opt/local/var/macports/distfiles/

Happy tweaking !!!

macports - port common usage

update port database with the latest list :
e.g. port -v selfupdate

search for a port :
e.g. port search apache

install a port with verbose output :
e.g. port -v install apache2

wild card search of a port :
e.g. port list apache*

list variants of a port :
e.g. port variants apache2

information of a port :
e.g. port info apache2

installed port on the system :
e.g. port installed

Firefox 3 - “force” your add on compatible with it

  • On the url bar, type “about:config”
  • Right click on any of the empty space, click new –> boolean
  • In the box, preference name –> extensions.checkCompatibility
  • specified the value –> false

restart firefox and Voila !!!

mount hfsplus (mac os file system) under Debian linux

Have an external hard disk with hfsplus or hfs+ partition on it? This is how you can mount it under linux (specifically, Debian) :

in os x :

  • disable journaling in the partition/external hdd in disk utility or use run the command “diskutil disableJournal /dev/disk1s1″ in terminal.

in linux :

  • apt-get install hfs*
  • mount -t hfsplus -o rw /dev/sdb1 /mnt/extdisk

Voila !!!

Next Page »