Tag Archives: Ubuntu

Install Jenkins on Ubuntu

Install Jenkins on Ubuntu steps from here . Works for me with my Ubuntu 14.04 and latest Jenkins 1.567:

Type following commands in terminal:
$ wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
$ sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
$ sudo apt-get update
$ sudo apt-get install jenkins

Jenkins will install and configured to run as a daemon. Check the installation by opening http://localhost:8080 in browser

It also can be useful for further Jenkins configuration:
$ sudo usermod -G shadow jenkins

Stop Jenkins:
$ sudo /etc/init.d/jenkins stop

Most used s3cmd commands

This article contains my most used s3cmd and other commands for my Ubuntu server.

Upload folder to S3:
$ s3cmd put mylocalfile.ext s3://mybucket/myfolder/myfile.ext

Download file from S3
$ s3cmd get s3://mybusket/myfolder/mufile.ext mylocalfile.ext

Download S3 folder to local file system (sync)
$ s3cmd sync s3://mybusket/myfolder mylocalfolder

Continue reading

Install Hive on Ubuntu

Configuration

My configuration is Apache Hive 0.13.0 on machine with Ubuntu 14.04 and  Apache Hadoop 2.2.0

(About Hadoop installation – http://dmitrypukhov.pro/install-hadoop-on-ubuntu)

Download and unpack Hive

Download latest Hive release from Apache web site http://www.apache.org/dyn/closer.cgi/hive/

Unpack to /opt/hive folder. Change owner to Hadoop user and group, hduser and hadoop in my case

$ sudo chown -R hduser:hadoop /opt/hive

Continue reading

Install PostgreSQL on Ubuntu

Today I installed one more PostgreSql on one more Ubuntu. That’s why I decided to memorize my steps here for quick reference.

Install postgresql and related packages

Type in terminal:
sudo apt-get install postgresql postgresql-contrib
sudo apt-get install pgadmin3

Setting password for postgres user

To set password for postgres user, open psql command prompt:
sudo -u postgres psql postgres
Type command
\password postgres
type password twice when prompted and please don’t forget it 🙂
press ctrl-D to exit

Continue reading

Install Hadoop on Ubuntu

The best article of Hadoop installation I found is http://codesfusion.blogspot.ru/2013/10/setup-hadoop-2x-220-on-ubuntu.html 

I adopted it a little for my configuration: Ubuntu 14.04, Hadoop 2.2.0 single node, JDK 6. Not latest versions of Java and Hadoop but I had to reproduce existing production system.  

My steps are:

Install prerequisites

JDK 6 and ssh:

$ sudo apt-get install oracle-java6-installer
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo  apt-get update
$ sudo apt-get install oracle-java6-installer
$ sudo apt-get install ssh

Continue reading

Eclipse menu does not appear in Ubuntu 14.04

Tested with Ubuntu 14.04, Eclipse Kepler SR2

Eclipse itself works fine but menus File, Edit etc. does not open and cut off.

To fix this, open eclipse.desktop file for edit. It's located at

~/.local/share/applications/eclipse.desktop

or at /usr/share/applications/eclipse.desktop

Find the line Exec=… and replace the whole line with

Exec = env UBUNTU_MENUPROXY = /opt/eclipse/eclipse

replace /opt/eclipse/eclipse with a path to your Eclipse.

Install Oracle JDK 7 on Ubuntu 13.10

Install JDK from repository (oracle-java7-installer from this ppa is JDK)
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Set this version to be used by default
sudo update-java-alternatives -s java-7-oracle
Set up environment variables
sudo apt-get install oracle-java7-set-default

How to install JBoss AS on Ubuntu

Today I installed JBoss AS 7.1 on our Ubuntu 13.04 stend. I'm sure it is not the last time when I prepare JBoss application server, so I decided to memorize my steps in this post.

The installation procedure is:

Install JDK 7

Install JDK from repository (oracle-java7-installer from this ppa is JDK)
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Set this version to be used by default
sudo update-java-alternatives -s java-7-oracle
Set up environment variables
sudo apt-get install oracle-java7-set-default

Continue reading