6th
NOV

Posting source code in Wordpress

Posted by Keith under Tips

http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/

[sourcecode language=’css’]
[ sourcecode language=’css’ ] .. [ /sourcecode ]
language= cpp, csharp, css, delphi, html, java, jscript, php, python, ruby, sql, vb, xml
[/sourcecode]

6th

chkconfig in Solaris

Posted by Keith under Unix/Linux

Adding services in Solaris 9 (and prior versions of Solaris) is a bit of pain compare to Linux.  There is no chkconfig like Fedora/RH by default or solaris pkg.  But I found this:

http://www.fastcoder.net/software/chkconfig/

It’s available in source code form, so compilation is necessary but it went smooth without any difficulties.

- For Ubuntu, it’s simpler than chkconfig:
[sourcecode language=’css’]
sudo update-rc.d name_of_the_script defaults
[/sourcecode]
- For Solaris 10, here’s info:

http://www.unix.com/sun-solaris/32936-solaris-10-add-new-svc.html