Skip to content

Instantly share code, notes, and snippets.

@akiatoji
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akiatoji/7421bf9d339e04ca9839 to your computer and use it in GitHub Desktop.
Save akiatoji/7421bf9d339e04ca9839 to your computer and use it in GitHub Desktop.
# Enable eth0
vi network-scrips/ifcfg-eth0 # change to ONBOOT=yes
reboot now
# Install dependencies for VBoxGuest
yum -y install kernel-devel-2.6.32-431.el6..x86_64
yum -y groupinstall "Development tools"
yum -y groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
vi /etc/inittab # Change default run level to 5
/etc/init.d/vboxadd setup
reboot now
# install jre. Go to oracle and download it
# set up the downloaded location as a shared folder and mount
mount -t vboxsf host /mnt # remember this is effin vboxSF
# install jre
rpm -Uvh jre-7u67-linux-x64.rpm
# make it the default
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 200000
alternatives --config java # pick the one just installed
# make a couple of clones here for Cassandra cluster
#######
# On clones
# edit host name (VM should be running in bridged or host internal mode)
vi /etc/hosts
# Cassandra needs jna
yum install jna
# add datastax yum repository
vi /etc/yum.repos.d/datastax.repo
# add below
[datastax]
name = DataStax
baseurl = http://rpm.datastax.com/community
enabled = 1
gpgcheck = 0
# Install cassandra
yum install dsc20
# Start cassandra
service cassandra start
service cassandra status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment