Quantcast
Image

Search Results for: download

How to install kibana in centos / redhat

By  •  May 28, 2018
  1. Add elasticsearch repo to yum
    1. Download and install the public signing key

       rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    2. /etc/yum.repos.d/elasticsearch.repo

      [elasticsearch-6.x]
      name=Elasticsearch repository for 6.x packages
      baseurl=https://artifacts.elastic.co/packages/6.x/yum
      gpgcheck=1
      gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
      enabled=1
      autorefresh=1
      type=rpm-md
  2. yum install -y kibana
  3. configure elasticsearch /etc/kibana/kibana.yml server.host: “0.0.0.0”
  1. enable firewall

    firewall-cmd --add-port=5601/tcp --permanent
    firewall-cmd --reload
  2. systemctl start kibana

– systemctl enable kibana

  1. test

    curl 127.0.0.1:9200
    {
      "name" : "l_cUCzP",
      "cluster_name" : "elasticsearch",
      "cluster_uuid" : "ueCIZ5AqSEWsMRb7VU90cw",
      "version" : {
        "number" : "6.2.1",
        "build_hash" : "7299dc3",
        "build_date" : "2018-02-07T19:34:26.990113Z",
        "build_snapshot" : false,
        "lucene_version" : "7.2.1",
        "minimum_wire_compatibility_version" : "5.6.0",
        "minimum_index_compatibility_version" : "5.0.0"
      },
      "tagline" : "You Know, for Search"
    }

How to configure owncloud client in CentOS / Red Hat

By  •  May 28, 2018
rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key

curl -L https://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -o /etc/yum.repos.d/ownCloud.repo

yum clean expire-cache
yum install -y epel-release
yum update -y
yum install -y owncloud-client

mkdir owncloud

owncloudcmd -u jm2_site01 -p jm2_site01 owncloud/ http://192.168.225.145/owncloud

How to convert PuTTY’s .ppk to SSH key

By  •  May 28, 2018

You won’t be able to directly use your PuTTY‘s key in Linux‘s OpenSSH because the keys are of different format. You’ll need to first convert PuTTY‘s key to OpenSSH‘s key format by following these steps;

  1. Download PuTTY Key Generator (puttygen.exe) from the following URL

    https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
  2. Launch the program and click on the Load button and select your PuTTY‘s key file, which normally ends with .ppk extension.

  3. Enter the key’s passphrase if prompted.
  4. Details of the imported key will be displayed.
  5. Go to Conversions → Export OpenSSH key from the menu.
  6. Save your converted key to a new file and location.

How to enable auto complete for Python in Vim

By  •  May 28, 2018

Beginning version 7 of vim, it has this nice auto completion feature. It is by default however limited to words that has already been in the current workspace. To use it, simply press [ctrl] +n or [ctrl] + p key while in edit mode. For example:

We can however *teach* vim to autocomplete a whole bunch of other stuffs as well, by using something so called Dictionaries. With this idea we can have auto completion for Python, Ruby, PHP, Bash, and any other programming languages code.

For an example, let’s try to install Python dictionary, by downloading it from here:

http://www.vim.org/scripts/script.php?script_id=850

The next thing to do is to extract the downloaded file to the appropriate folder:

shakir@herugrim ~ $ mkdir ~/.vim
shakir@herugrim ~ $ tar xf pydiction-0.5.tar.gz -C ~/.vim

and add this lines to your ~/.vimrc (be sure to replace “/home/shakir” to your own home directory)

if has("autocmd")
    autocmd FileType python set complete+=k/home/shakir/.vim/pydiction-0.5/pydiction isk+=.,(
endif " has("autocmd"

and let’s see the result:

There are many other scripts available at Vim’s script page worth trying as well.

How to configure owncloud server in CentOS / Red Hat

By  •  May 28, 2018
rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key

curl -L https://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -o /etc/yum.repos.d/ownCloud.repo

yum clean expire-cache
yum install -y owncloud-files

yum install -y mariadb-server

systemctl start mariadb
systemctl enable mariadb
mysql -u root 

MariaDB [(none)]> CREATE DATABASE owncloud;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit
Bye

yum install -y httpd
systemctl start httpd
systemctl enable httpd

[root@owncloud ~]# firewall-cmd --permanent --add-service=http
success
[root@owncloud ~]# firewall-
firewall-cmd          firewall-offline-cmd
[root@owncloud ~]# firewall
firewall-cmd          firewalld             firewall-offline-cmd
[root@owncloud ~]# firewall-cmd --reload
success

yum install -y epel-release
yum update -y
yum install -y owncloud

This version of ownCloud requires at least PHP 5.6.0
You are currently running 5.4.16. Please update your PHP version.

yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install -y yum-utils
yum-config-manager --enable remi-php56

yum update -y

php --version


yum install -y php-gd php-intk php-mbstring php-process.x86_64 php-xml


yum install -y policycoreutils-python


chcon -R -t httpd_sys_rw_content_t /var/www/html/owncloud/

yum install php-mysql

How to convert SSH key to PuTTY’s .ppk

By  •  May 28, 2018

SSH and PuTTY keys are of different formats and will have to be converted to each other’s format if you want to use the same key between the 2 programs. Follow these steps to convert SSH‘s key to PuTTY‘s.

  1. Download PuTTY Key Generator (puttygen.exe) from the following URL.

    https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
  2. Launch the program and click on the Load button.
  3. Set the Files of type to All Files (*.*) and select your SSH‘s key file.
  4. Enter your key’s passphrase if prompted.
  5. A prompt will pop up once conversion is successful. Click on Save private key.
  6. Choose the filename and folder to save the file to.

How to install Internet Explorer in Linux

By  •  May 28, 2018

The prerequisites for installing IE in Linux is wine and cabextract. To install these 2 packages in Ubuntu, simply run the following command;

$ sudo apt-get install wine cabextract

Next is to download and run the installer script provided by the nice guys at the IEs4Linux project;

$ wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
$ tar xf ies4linux-latest.tar.gz
$ ies4linux-*/ies4linux

The installer will then download and install the neccessary files and programs after clicking the Ok button at the following screen;

In the end, just execute the following command to run the installed Internet Explorer version of choice;

$ ~/bin/ie6

How to install Logstash on CentOS / Red Hat

By  •  May 28, 2018
  1. Add Elasticsearch repository to yum.

    Logstash package resides in the same repository as Elasticsearch

    1. Download and install the public signing key.

      # rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    2. Add the following lines to /etc/yum.repos.d/elasticsearch.repo.

      [elasticsearch-6.x]
      name=Elasticsearch repository for 6.x packages
      baseurl=https://artifacts.elastic.co/packages/6.x/yum
      gpgcheck=1
      gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
      enabled=1
      autorefresh=1
      type=rpm-md
  2. Install Logstash package via yum.

    # yum install -y logstash
Top