using pkgutil

January 4, 2011

I’m trying using pkgutil to install rrdtool,

/opt/csw/bin/pkgutil -i rrdtool

and I get an error host is not known.

# /opt/csw/bin/pkgutil -i rrdtoolParsing catalog, may take a while…New packages: CSWcommon-1.8.0,REV=2010.05.01 CSWstl4-12.0,REV=2010.04.23 CSWiconv-1.13.1,REV=2009.07.01 CSWsunmath-5.9,REV=2009.04.30 CSWggettext-0.17,REV=2010.03.08 CSWzlib-1.2.5,REV=2010.06.10 CSWgcc4corert-4.5.1,REV=2010.09.01 CSWgdbm-1.8.3,REV=2006.01.01 CSWbdb44-4.4.20,REV=2007.01.27 CSWpng-1.2.43,REV=2010.04.25 CSWperl-5.8.8,REV=2008.03.25 CSWlibart-2.3.20,REV=2008.03.04 CSWftype2-2.3.12,REV=2010.04.06 CSWrrd-1.2.19,REV=2007.02.07Total size: 29.4 MB14 packages to fetch. Do you want to continue? [Y,n] YFetching CSWcommon-1.8.0,REV=2010.05.01…–09:18:48–  http://download.blastwave.org/csw/unstable/sparc/5.10/common-1.8.0,REV=2010.05.01-SunOS5.8-sparc-CSW.pkg.gz           => `/var/opt/csw/pkgutil/packages/common-1.8.0,REV=2010.05.01-SunOS5.8-sparc-CSW.pkg.gz’Resolving download.blastwave.org… failed: node name or service name not known.


Turn out it is because of the company proxy need to be set up.

So the proxy are exported as below :

export http_proxy=172.123.123.123:8001;export ftp_proxy=172.123.123.123:8001


Optimized Open Source Software Stack (Cool Stack)

January 4, 2011

A pre-package installer for Sun Solaris. Consist of most commonly used open source software.

Available at :
http://sunfreeware.com/coolstack.html


Getting *nix Processor Type

January 4, 2011

XXXXXX> # uname -p

sparc

 


Ganymede tutorial

October 20, 2008

Found this great resource of tutorials for doing stuff with Eclipse Ganymede

http://www.vogella.de/eclipse.html


Perl module reference

October 8, 2008

Referencing Perl module (similar with classpath in java)

http://www.devdaily.com/perl/edu/articles/pl010015/


Linux history tricks

September 16, 2008

1. The file contain all the history is at /home/$USER/.bash_history

2. The .bash_history file can be edited and it will reflect the output of $history command

3. Press Ctrl+r to search history in reverse manner

4. run command “!historyNumber” where history number is a number shown after command $history fired.


Command line editing tricks

September 16, 2008

1. Ctrl+a : move the command line to the beginning

2. Ctrl+e : move the command line to the end

3. Ctrl+k : remove the line from the current cursor until end of line

4. Ctrl+u : remove the line from the cursor until beginning of the line


CA.sh script – The missing link

May 28, 2008

If you following the tutorial on some self signed certificate, you may come across a step asking using CA.sh (line CA.sh –newCA). However most site missing the link for this script. Last time I install openssl also not provide this script.

Just in case you wonder where this script (and google bring you here), you can get it at http://web.mit.edu/crypto/share/openssl/misc/

There are 2 version, the batch script format (.sh) and also perl (.pl). If I remember correctly both do the job.

Hope this helps as I spent a lot of time last time searching for this “missing link” (O.o)

now some word to help google ;)

“download CA.sh”


X Forwarding Using Cygwin

May 23, 2008

Say that we want to access the GUI of remote linux machine from local Windows XP/Vista machine, using Cygwin in local machine will make it possible. Provided Cygwin is installed with X11 module.

In Cygwin :

1) $startx (X window will appear)

In X window

1) $ssh -X user@ipname

2) $gnome-panel

Then the remote linux machine top and bottom panel will appear.


Hello world!

May 9, 2008

This will be a place where I dump few stuff as my reference later on. My mind simply can’t remember everything so some logging mechanism needed.


Follow

Get every new post delivered to your Inbox.