Archive for the 'Software tips/tricks' 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

windows 2000 - network time sync with external server

configure / set network time server :

net time /setsntp:0.pool.ntp.org

start the network time services :

net stop w32time

net start w32time

check whether network time is in sync :

net time /querysntp

windows 2000 - command line (cmd) command auto completion

By default, windows 2k server does not activate this function. Do this to activate it :

  • start regedit
  • goto HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
  • change the keyword “CompletionChar” from 64 to 9
  • close all command line window and start and new window

Voila!

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

Next Page »