Category Archives: centos6

[DEPRECATED] CentOS 6: Install WSO2 Data Services Server

Versions

  • CentOS 6.3
  • Oracle Java JDK 1.6
  • WSO2 Data Services Server 3.0.1

Prerequisties

Install

1. Download
Download Data Services Server from WSO2 website: http://wso2.com/products/data-services-server/
Note: can’t link directly since currently requires filling out a form to download.

2. Extract

Note: update version as required
2. Move

Configure

1. Create wso2 user if missing

2. Update permissions

3. Create service script /etc/init.d/wso2dss

Note: the script hard codes JAVA_HOME, but this can be deferred to the /etc/sysconfig/wso2<product> script (which you must create) if desired. Note that the normal /etc/profile.sh is *not* run for system accounts.
TODO: find better way of setting JAVA_HOME, can’t execute /etc/profile or /etc/profile.d/java.sh directly

4. Make it executable

5. Start service

6. Start service on boot

7. Open the following ports as required:

  • 9443 – carbon admin and https port used to access data services
  • 9763 – http port used to access data services

See Open a port for iptables

Verify

Watch wso2dss logs:

Should see the following:

Visit your new Carbon website: https://<hostname>:9443/carbon/
WSO2 Data Services Server - Google Chrome_006
Initial login:

  • Username: admin
  • Password: admin

Important Note: if are you going to want to configure API Manager to use LDAP for logins, don’t log in using the default admin account!

[DEPRECATED] CentOS 6: Install WSO2 API Manager

Versions

  • CentOS 6.3
  • Oracle Java JDK 1.6
  • WSO2 API Manager 1.3.1

Prerequisties

Install

1. Download
Download API Manager from WSO2 website: http://wso2.com/products/api-manager/
Note: can’t link directly since currently requires filling out a form to download.
2. Extract

Note: update version as required

2. Move

Configure

1. Create wso2 user if missing

2. Update permissions

3. Create service script /etc/init.d/wso2am

Note: the script hard codes JAVA_HOME, but this can be deferred to the /etc/sysconfig/wso2am script (which you must create) if desired. Note that the normal /etc/profile.sh is *not* run for system accounts.
TODO: find better way of setting JAVA_HOME, can’t execute /etc/profile or /etc/profile.d/java.sh directly

4. Make it executable

5. Start service

6. Start service on boot

7. Open the following ports as required:

  • 9443 – carbon admin, publisher and store applications
  • 8243 – http port used by gateway to access API services
  • 8280 – https port used by gateway to access API services

See Open a port for iptables

Verify

Watch wso2dss logs:

Should see the following:

Visit your new Carbon website: https://XXX.XXX.XXX.XXX:9443/carbon/
WSO2 API Manager - Google Chrome_003
Initial login:

  • Username: admin
  • Password: admin

Configure LDAP

See Configure WSO2 to use LDAP

CentOS 6: Install Shutter a screen capture program

Versions

  1. CentOS 6.5

Install

Start

CentOS 6: Install IntelliJ IDEA

Versions

  1. CentOS 6.5 x86_64
  2. Oracle Java JDK 1.7
  3. IntelliJ IDEA Community 13.1.4

Install

Note
replace $VERSION below with the latest version of IntelliJ IDEA. After extraction, replace $BUILD with the build number located on the directory named idea-IC-$BUILD.

Download latest version of IntelliJ IDEA, extract and put in /usr/lib (file names vary with version number):

Example

Configure

  1. Add to /usr/bin:

    Typically, I need more memory for the JVM that runs IntelliJ IDEA. Edit /usr/lib/idea/bin/idea.vmoptions and change the following lines:

    Repeat the same edits above for /usr/lib/idea/bin/idea64.vmoptions

  2. Raise the inotify limit of watchable directories from 7k to a higher value, such as 512k, edit /etc/sysctl.conf

    Apply the change without reboot:

Verify

Start it up:

intellij-idea-complete-installation.png

intellij-idea-welcome.png

[DEPRECATED] CentOS 6: Install Apache Cassandra using Datastax

Versions

  • CentOS 6.3
  • Oracle Java JDK 1.6
  • Note: if running with WSO2 Data Services Server 3.0.1, only Apache Cassandra 1.1 is supported
  • Apache Cassandra 1.2.3 or 1.1.9
  • JNA 3.5.1

Prerequisites

  • WARNING: Cassandra will fail with no or an erroneous error message if run with openjdk 1.6!
  • Install Oracle JDK

Install

1. Edit /etc/yum.repos.d/datastax.repo

2. Install Cassandra

For Apache Cassandra 1.2.3:

For Apache Cassandra 1.1.9:

3. Install a copy of JNA jar just for Cassandra
Note: JNA from base repo is 3.2.4 while Cassandra requires 3.2.7+

4. Fix permissions

Configure

1. Edit /etc/profile.d/cassandra.sh

2. Load into current session:

3. Edit the following settings in /etc/cassandra/conf/cassandra.yaml:

Note: for more details about configuring and optimizing a multi-node cluster, see sources.

Example:

4. Open ports

  • 7199 for JMX
  • 9160 for Cassandra Thrift
  • 7000 for Cassandra Gossip

See Open a port for iptables

5. Start cassandra:

6. Start cassandra on boot:

Test

Test First Node

Note: only use this test on the first node of the cluster

Enter at cassandra-cli:

Verify:

Test Other Nodes

Output:

See Open a port for iptables

Sources

CentOS 6: Install EPEL yum repository


Versions

  1. CentOS 6.5
  2. EPEL 6.8

Install

Note

replace $MAJOR and $MINOR with the desired major and minor release. as of this writing it is 6 & 8

To discover latest major/minor, visit: http://dl.fedoraproject.org/pub/epel


Verify

CentOS 6: Install ntp to syncronize system time and date

Versions

  • CentOS 6.3

Install

Configure

Syncronize:

Start:

Start service on boot:

Verify

Ensure matches current time.

[DEPRECATED] CentOS 6: Install Chrome

Versions

  • CentOS 6.3

Install

Edit /etc/yum.repos.d/google-chrome.repo

Install:

Run

CentOS 6: Install sudo and setup sudoers to use wheel group

Versions

  1. CentOS 6.5

Install

Note
must be logged in as superuser

Configure

  1. Add write access to /etc/sudoers before edit:

  2. Edit /etc/sudoers and uncomment this line:

  3. Remove write access otherwise sudo won’t run:

+ NOTE: user must have primary group as wheel to sudo. See CentOS 6: Change existing user group