Tuesday, April 22, 2014

Troubleshooting - How do I use JDK 7 on Mac OSX?

@You get a error in eclipse in Mac, 
/Library/Java/JavaVirtualMachines/1.7.0.jdk cannot execute binary file
  1. I Downloaded the latest OpenJDK 1.7 universal (32/64 bits) JDK from Mac OS/X branch from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
  2. copied the jdk to /Library/Java/JavaVirtualMachines/ next to the default 1.6.0 one
  3. In Eclipse > Preferences > Java > Installed JREs you add a new one, of type MacOS X VM, and set the home as /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home and name Java SE 7 (OpenJDK)
  4. Click Finish
  5. Set the added JRE as default
@Thank you 
http://stackoverflow.com/questions/6267392/how-do-i-use-jdk-7-on-mac-osx

Monday, April 21, 2014

Install - VirtualBox on CentOs

#
#https://wiki.archlinux.org/index.php/Virtualbox#Failed_to_create_the_host-only_network_interface

@ If there is the error, install the following modules
$ yum install yum-plugin-priorities
$ yum groupinstall "Development Tools"
$ yum install kernel-devel

@Install VirtualBox-4.3 on CentOs
$ yum install VirtualBox-4.3

@Removing old VirtualBox kernel modules
@Recompiling VirtualBox kernel modules
$ service vboxdrv setup

Maven - Configuration setting.xml

@ For maven3
<!-- For maven 3 -->
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<id>server01</id>
<username>admin</username>
<password>password</password>
</server>
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central</id>
<name>libs-releases</name>
<url>http://xxx.xxx.xxx.xx:8081/artifactory/libs-releases</url>
</repository>
<repository>
<id>snapshots</id>
<name>libs-snapshots</name>
<url>http://xxx.xxx.xxx.xx:8081/artifactory/libs-snapshots</url>
</repository>
<repository>
<id>maven3-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/3/</url>
<layout>default</layout>
</repository>
</repositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
view raw setting.xml hosted with ❤ by GitHub

Link - Ruby

@ Deploying Tool
http://capistranorb.com/

Sunday, April 20, 2014

Linux - B85M-ITX

@I installed the CentOs6.5, but the lan card wasn't work.
@I tried to install the following module to fix the network problem.

$ wget http://elrepo.org/linux/elrepo/el6/x86_64/RPMS/kmod-alx-0.0-8.el6.elrepo.x86_64.rpm
$ rpm -Uvh ./kmod-alx-0.0-8.el6.elrepo.x86_64.rpm

@ Added the network file
$ vim /etc/sysconfig/network


@ Added the network file
$ vim /etc/sysconfig/network-scripts/ifcfg-eth0

Wednesday, April 9, 2014

OpenStack - Check points

@If you install a 32-bit version of your distribution on the compute node, attempting to start an instance using a 64-bit image will fail.

@