dana.satriya

May 17, 2008

/etc/environment

Filed under: Uncategorized

PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games” LANG=”enUS.UTF-8″ JAVAHOME=”/usr/lib/jvm/java-6-sun-1.6.0.03″

May 8, 2008

Cara membaca flash disk di *nix

Filed under: Fundamental Network

root@schrodinger:/home/dana# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sdb1 on /media/dana type vfat (rw)

root@schrodinger:/home/dana# mount -t vfat /dev/sdb /media/dana
 

 

May 7, 2008

mengakses asadmin untuk deploy file xml

Filed under: Uncategorized

gagal.. emoticon

root@IMS:/home/dana/Desktop/sailfin/samples/sipservlet# cd ClickToDial
root@IMS:/home/dana/Desktop/sailfin/samples/sipservlet/ClickToDial# /home/dana/Desktop/sailfin/bin/asadmin
Use "exit" to exit and "help" for online help.
asadmin> ls
CLI147 Invalid command, ls
Closest matching command(s):
    list-connector-connection-pools
    list-jdbc-connection-pools
    list-threadpools
Use "help" command for a list of valid commands.
asadmin> asadmin deploy dist/ClickToDIal.war
CLI147 Invalid command, asadmin
Use "help" command for a list of valid commands.
asadmin> deploy      
Usage: deploy [–terse=false] [–echo=false] [–interactive=true] [–host localhost] [–port 4848|4849] [–secure | -s] [–user admin_user] [–passwordfile file_name] [–virtualservers virtual_servers] [–contextroot context_root] [–force=true] [–precompilejsp=false] [–verify=false] [–name component_name] [–upload=true] [–retrieve local_dirpath] [–dbvendorname dbvendorname] [–createtables=true|false | –dropandcreatetables=true|false] [–uniquetablenames=true|false] [–deploymentplan deployment_plan] [–enabled=true] [–generatermistubs=false] [–availabilityenabled=false] [–libraries jar_file[(pathseparator)jar_file]*] [–target target(Default server)] filepath
CLI020 Operand is required.
asadmin> deploy dist/ClickTODial.war
java.io.IOException: Unable to connect to admin-server at given host: [localhost] and port: [4848].
Please check if this server is up and running and that the host and port provided are correct.
CLI137 Command deploy failed.
asadmin> deploy dist/ClickToDial.war
CLI175 The target null is invalid. Valid target types are cluster, domain, unclustered server instance, domain administration server.
CLI137 Command deploy failed.
asadmin> deploy
Usage: deploy [–terse=false] [–echo=false] [–interactive=true] [–host localhost] [–port 4848|4849] [–secure | -s] [–user admin_user] [–passwordfile file_name] [–virtualservers virtual_servers] [–contextroot context_root] [–force=true] [–precompilejsp=false] [–verify=false] [–name component_name] [–upload=true] [–retrieve local_dirpath] [–dbvendorname dbvendorname] [–createtables=true|false | –dropandcreatetables=true|false] [–uniquetablenames=true|false] [–deploymentplan deployment_plan] [–enabled=true] [–generatermistubs=false] [–availabilityenabled=false] [–libraries jar_file[(pathseparator)jar_file]*] [–target target(Default server)] filepath
CLI020 Operand is required.
asadmin>     

(HAYO!!! emoticon )

Cara mengubah Java runtime Environment di Ubuntu

root@IMS:/home/dana# java -version
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Client VM (build 1.6.0-b09, mixed mode, sharing)
root@IMS:/home/dana# javac -version
javac 1.6.0_06
root@IMS:/home/dana# update-alternatives –config java

There are 2 alternatives which provide `java’.

  Selection    Alternative
———————————————–
          1    /usr/lib/jvm/java-6-sun/jre/bin/java
+        2    /usr/lib/jvm/java-6-openjdk/jre/bin/java

Press enter to keep the default[
], or type selection number: 1
Using ‘/usr/lib/jvm/java-6-sun/jre/bin/java’ to provide ‘java’.
root@IMS:/home/dana# update-alternatives –config javac

There is only 1 program which provides javac
(/usr/lib/jvm/java-6-sun/bin/javac). Nothing to configure.

Get free blog up and running in minutes with Blogsome
Theme designed by Ian Main