Sunday, January 27, 2008

:: change psybnc server messages ::

ever wanted to change the default message such as simon says: rehashing (while you delete psybnc user) and changing server (while you use /jump ?)

here is the tricks..

edit psybnc/lang/english.lng and find the appropriate words to change
you will need to compile your psybnc again by using make or gmake in order for the changes to take effects

cheers

Thursday, January 24, 2008

:: upgrade FreeBSD 6.2 system from RELEASE to STABLE ::

upgrade FreeBSD 6.2 OS from RELEASE branch to STABLE branch made easy by following the guides below:-

1. simple yet efficient guidance on upgrade process (use other browser than IE to open this site)


http://lofotenmoose.info/bsd/note/upgrading-from-release-to-stable/




-- the site describe upgrading FreeBSD through cvsup, which mean cvsup must
first be installed to the system

(you can install it through ports: /usr/ports/net/cvsup)



-- define FreeBSD release tag in stable-supfile configuration:

*default release=cvs tag=RELENG



--
replace RELENG with RELEASE Tags which you can refer from here:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html




2. official FreeBSD Handbook on buildworld/upgrading


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

Friday, November 23, 2007

::locate database error::

$ locate
locate: database too small: /var/db/locate.database

solution:

cd to /etc/periodic/weekly
and then:

$ ./310.locate

it should build up the database now

::freebsd - updating ports::

portsnap fetch
portsnap extract
portsnap fetch update

Wednesday, October 17, 2007

::installing adobe reader 8.1.1 for slackware linux::

installing adobe reader 8.1.1 for slackware linux

since there is no Adobe Reader package (*.tgz) for Slackware, we have to compile it from source *.tar.gz

1. download the source at Adobe Reader Homepage

2. select the source and download it
Operating System: Linux
Select a version: Linux x86 (.tar.gz)
Select a language: English

3. once download finish, cd to the directory of downloaded file and issue:
tar -zxvf adobe-reader-version.tar.gz
e.g
$ tar -zxvf AdobeReader_enu-8.1.1-1.i486.tar.gz
AdobeReader/
AdobeReader/INSTALL
AdobeReader/ReadMe.htm
AdobeReader/COMMON.TAR
AdobeReader/ILINXR.TAR

4. cd to AdobeReader/ and run:
./install

5. once asked, specify where do you want Adobe Reader to be installed. By default, on Linux, Adobe Reader is installed in /opt/Adobe. But I choose mine on /usr/lib/adobe

6. cd to the installation path (e.g /opt/Adobe or /usr/lib/adobe) and run:
$ acroread
(or you may double click Adobe Reader icon at the Desktop)

7. I do have minor issue while installing the reader saying that Adobe Reader cannot find gtk library.
Error: "Unable to find the HTML rendering library (libgtkembedmoz)."

explanation from Adobe.com:
This happens if acroread was unable to find libgtkembedmoz.so and related component files on your system.
solution is here

what is libgtkembedmoz library for?
- This library is required for rendering HTML content in Adobe Reader.

since I got Mozilla Firefox installed, i just search for file name libgtkembedmoz and point Adobe Reader to its directory
$ locate libgtkembedmoz
/usr/lib/seamonkey-1.1.4/libgtkembedmoz.so

8. open Adobe Reader >> Edit >> Preferences >> Internet >> libgtkembedmoz Folder >> put in the directory (e.g /usr/lib/seamonkey-1.1.4/), click OK and you're done!

Monday, October 15, 2007

::colorful bash::

colorful bash tricks

if you wish to add color to your bash, e.g during listing files in a directory using ls, use this tricks

$ export CLICOLOR="yes"

and if you wish to make colorful bash as default for all users in shell, edit /etc/profiles and add the above line inside

Sunday, October 14, 2007

::fping::

fping

use fping to ping a set of IP ranges or simply to resolve the IP to hostname
Linux - fping (a program to hosts in parallel)
download: fping

Basic usage:
$ fping -s -g -d 72.20.25.185 72.20.25.190 -r 1

results:

security.org.au is alive
your.on.ugly-people.org is alive
put.your.pix.up.on.ugly-people.org is unreachable
Bush.can.save-teh.US is unreachable
is.here.to.save-teh.US is unreachable
highly.p0ision.us is unreachable

6 targets
2 alive
4 unreachable
0 unknown addresses

24 timeouts (waiting for response)
24 ICMP Echos sent
2 ICMP Echo Replies received
0 other ICMP received

0.00 ms (min round trip time)
0.00 ms (avg round trip time)
0.00 ms (max round trip time)
4.268 sec (elapsed real time)

for more usage refer to "man fping" or linuxscrew.com

one good tools for Windows with the same functions is Angry IP scanner
download: angryziber.com

Saturday, October 13, 2007

::change user informations::

how to change user informations (finger) such as:

Shell:
Full Name:
Office Location:
Office Phone:
Home Phone:
Other information:

this can be done using command: chfn

Wednesday, September 12, 2007

::change window manager::

how to change window manager in Linux
$ xwmconfig

selection to change to or from:

kde - K Desktop Environment
xfce - The Cholesterol Free Desktop Environment
fluxbox - Fluxbox window manager
blackbox - Blackbox window manager
wmaker - WindowMaker
fvwm2 - F Virtual Window Manager 2
twm - Tab Window Manager

run this command as a normal user, no special permission needed

Wednesday, September 5, 2007

::lsof & fuser::

check for open files:
$ lsof | grep /dev/device

or

fuser

http://www.idevelopment.info/data/Unix/General_UNIX/GENERAL_Troubleshootingthedeviceisbusy.shtml

// stats


afraid.org / freedns.afraid.org