Showing posts with label Install. Show all posts
Showing posts with label Install. Show all posts

Monday, April 23, 2018

Install phantomjs in ubuntu 14.04.5

Find below-mentioned steps to configure phantomjs in ubuntu Mahcine.

root@ubuntu:/motadata/motadata/phantomjs# cd /usr/local/share/

root@ubuntu:/usr/local/share# wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2

linux-root@ubuntu:/usr/local/share# tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2

root@ubuntu:/usr/local/share# ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/

root@ubuntu:/usr/local/share# ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/

root@ubuntu:/usr/local/share# ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/

root@ubuntu:/usr/local/share# cd

root@ubuntu:~# phantomjs -v
2.1.1

Tuesday, October 17, 2017

Install / Uninstall JAVA In Linux/Unix

JAVA installation

# mkdir -p /usr/local/java

# tar xvzf /opt/jdk-8u131-linux-x64.tar.gz -C /usr/local/java

# echo "JAVA_HOME=/usr/local/java/jdk1.8.0_131" >> /etc/profile

# echo "PATH=$PATH:$HOME/bin:$JAVA_HOME/bin" >> /etc/profile

# echo "export JAVA_HOME" >> /etc/profile

# echo "export PATH" >> /etc/profile

# update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_131/bin/java" 1

# update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.8.0_131/bin/javac" 1

# update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.8.0_131/bin/javaws" 1

# update-alternatives --set java /usr/local/java/jdk1.8.0_131/bin/java

# update-alternatives --set javac /usr/local/java/jdk1.8.0_131/bin/javac

# update-alternatives --set javaws /usr/local/java/jdk1.8.0_131/bin/javaws

# source /etc/profile

--------------------

Delete/Remove Java

# sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk<version>/bin/java"

# sudo update-alternatives --remove "javac" "/usr/lib/jvm/jdk<version>/bin/javac"

# sudo update-alternatives --remove "javaws" "/usr/lib/jvm/jdk<version>/bin/javaws"

verify that the symlinks were removed

# java -version

# javac -version

# which javaws

# cd /usr/lib/jvm

# sudo rm -rf jdk<version>

# sudo update-alternatives --config java

# sudo update-alternatives --config javac

# sudo update-alternatives --config javaws

# sudo vi  /etc/environment

Delete the line with JAVA_HOME 1

Java for MOtadata----------------------

# JAVA_HOME="/motadata/motadata/jdk/"

# source /etc/environment

# echo $JAVA_HOME
/motadata/motadata/jdk/

# echo "JAVA_HOME=/motadata/motadata/jdk">> /etc/profile

# echo "PATH=$PATH:$HOME/bin:$JAVA_HOME/bin" >> /etc/profile

# echo "export JAVA_HOME" >> /etc/profile

# echo "export PATH" >> /etc/profile

# update-alternatives --install "/usr/bin/java" "java" "/motadata/motadata/jdk/bin/java" 1

# update-alternatives: using /motadata/motadata/jdk/bin/java to provide /usr/bin/java (java) in auto mode

# update-alternatives --install "/usr/bin/javac" "javac" "/motadata/motadata/jdk/bin/javac" 1

# update-alternatives: using /motadata/motadata/jdk/bin/javac to provide /usr/bin/javac (javac) in auto mode

# update-alternatives --install "/usr/bin/javaws" "javaws" "/motadata/motadata/jdk/bin/javaws" 1      

update-alternatives: using /motadata/motadata/jdk/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode

# update-alternatives --set java /motadata/motadata/jdk/bin/java

# update-alternatives --set javac /motadata/motadata/jdk/bin/javac

# update-alternatives --set javaws /motadata/motadata/jdk/bin/javaws

# source /etc/profile

# java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

How to install XenCenter on Linux

Install OpenXenManager on Debian or Ubuntu


 $ sudo apt-get install git python-gtk2 glade python-gtk-vnc python-glade2 python-configobj
 $ git clone https://github.com/OpenXenManager/openxenmanager.git
 $ cd openxenmanager
 $ sudo python setup.py install

Install OpenXenManager on CentOS, Fedora or RHEL

$ sudo yum install pygtk2 gtk-vnc-python rrdtool
$ git clone https://github.com/OpenXenManager/openxenmanager.git
$ cd openxenmanager
$ sudo python setup.py install

Manage XenServer Host Remotely with OpenXenManager

To launch OpenXenManager, just type the following command:

$ openxenmanager
Connect to a remote XenServer host by clicking on "Add New Server" button on the top.


Installing ClickHouse

Check System requirements

This is not a cross-platform system. It requires Linux Ubuntu Precise (12.04) or newer, x86_64 architecture with SSE 4.2 instruction set.
To test for SSE 4.2 support, do

# grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported"

We recommend using Ubuntu Trusty or Ubuntu Xenial or Ubuntu Precise.
The terminal must use UTF-8 encoding (the default in Ubuntu).

Installation

For testing and development, the system can be installed on a single server or on a desktop computer.

Installing from packages

In /etc/apt/sources.list (or in a separate /etc/apt/sources.list.d/clickhouse.list file), add the repository:
On Ubuntu Trusty (14.04):

deb http://repo.yandex.ru/clickhouse/trusty stable main

For other Ubuntu versions, replace trusty to xenial or precise.
Then run:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 # optional
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server-common

You can also download and install packages manually from here:

ClickHouse contains access restriction settings. They are located in the 'users.xml' file (next to 'config.xml').

By default, access is allowed from everywhere for the default user without a password. See 'user/default/networks'. For more information, see the section Configuration Files

Installing from source

Build following the instructions in build.md

You can compile packages and install them. You can also use programs without installing packages.

Client: src/dbms/src/Client/
Server: src/dbms/src/Server/

For the server, create a catalog with data, such as:

/opt/clickhouse/data/default/
/opt/clickhouse/metadata/default/

(Configured in the server config.)
Run 'chown' for the desired user.
Note the path to logs in the server config (src/dbms/src/Server/config.xml).

Other methods of installation

The Docker image is located here: ClickHouse Server
There is Gentoo overlay located here: ClickHouse Overlay

Launch

To start the server (as a daemon), run:

# sudo service clickhouse-server start

View the logs in the catalog

# /var/log/clickhouse-server/

If the server doesn't start, check the configurations in the file

# vim /etc/clickhouse-server/config.xml

You can also launch the server from the console:

# clickhouse-server --config-file=/etc/clickhouse-server/config.xml

In this case, the log will be printed to the console, which is convenient during development. If the configuration file is in the current directory, you don't need to specify the '--config-file' parameter. By default, it uses './config.xml'.

You can use the command-line client to connect to the server:
# clickhouse-client

The default parameters indicate connecting with localhost:9000 on behalf of the user 'default' without a password.

The client can be used for connecting to a remote server. For example:

clickhouse-client --host=example.com

For more information, see the section "Command-line client".
Checking the system:
root@localhost# ./clickhouse-client
ClickHouse client version 0.0.18749.
Connecting to localhost:9000.
Connected to ClickHouse server version 0.0.18749.
:slight_smile: SELECT 1
SELECT 1
┌─1─┐
│ 1 │
└───┘
1 rows in set. Elapsed: 0.003 sec.
:slight_smile:
Congratulations, it works!