Archive for the 'linux' 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

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 !!!

bash script accept parameter when called

example :

#!/bin/bash

echo this is the first parameter supplied $1, and this is script name is $0

Drawing shapes in Gimp

Ever wonder why Gimp does not have shapes drawing functions? It has, just need to adapt to its way of working.

1. choose the shape,

2. choose the border color,

3.draw the shape then click Edit –> Stroke Selection … and press okay

Voila !

Next Page »