Thứ Sáu, 25 tháng 12, 2009

Mediatomb & MiniDLNA

http://ubuntuforums.org/showthread.php?t=1198689

1) installed MediaTomb via Ubuntu's Software Center

2) open /etc/mediatomb/config.xml in your text editor of choice

3) remove the comment tags around the section and make that section look like this:






4) Under , add 5map from="avi" to="video/mpeg"

5) save and close config.xml and restart mediatomb (`sudo service mediatomb restart` from command line)

----------------------

Command to start MiniDLNA
Go to ~/minidlna_1.0.16.3_static/usr/sbin

./minidlna -d -f ../../etc/minidlna.conf

Thứ Ba, 22 tháng 12, 2009

Que sera sera

When I grew up and go to work,
I asked myself, "What lies ahead?
Will I have salary up day after day?"
Here's what I said to me ...
Que sera sera,
What ever will be, will be
You still got the salary, que sera sera

Chủ Nhật, 6 tháng 12, 2009

Connect to WLST and monitor Servers Status in WebLogic

You can invoke WLST by running “java weblogic.WLST”

I tried this on my WebLogic Server and straight hit error
_________

Exception in thread “main” java.lang.NoClassDefFoundError: weblogic/WLST
_________

I soon realised that jar file which contains class weblogic.WLST is missing from classpath and quick fix is to set environment variable using setWLSEnv.sh (under WL_HOME/server/bin) . For Fusion MiddleWare (FMW) 11g, it should be under $MW_HOME/ wlserver_10.3/ server/ bin


______
set environemnt variable for weblogic server
cd WL_HOME/server/bin
. ./setWLSEnv.sh
______

$ java weblogic.WLST

Initializing WebLogic Scripting Tool (WLST) …

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline>
__________

After connect to WLST,
To monitor Server Status I use this commands:

connect("weblogic","password","t3://ip_address_of_admin_server:7001")
# to get State of AdminServer
state("AdminServer")
# to change server's state to Admin state
suspend("ManagedServer_3", block="true")
# to change server's state from Admin to Running
resume("ManagedServer_3",block="true")
# to shutdown server
shutdown("ManagedServer_3",block="true")
# to star cluster
start('mycluster','Cluster')
# to shutdown cluster
shutdown('mycluster','Cluster')

Connect to NodeManager :

nmConnect('weblogic', 'weblogic_password', 'ip_address_of_wl_server', 'node_managed_port', 'domainName','/domain_directory','ssl')


:) Still dont successfully start server using WLST. If anyone have done it, pls share with me :)