Posts

Showing posts with the label ubantu

Install Elastic search 5.x in ubuntu 20, 18, 16

Look for OpenJDK in APT sudo apt search openjdk Install OpenJDK 8 sudo apt-get install openjdk-8-jdk Add the proper GPG key for ElasticSearch wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - Make sure to install/update transport sudo apt-get install apt-transport-https Save the repo definition echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list Update APT and install ElasticSearch from APT sudo apt-get update && sudo apt-get install elasticsearch Reload the daemon sudo /bin/systemctl daemon-reload Allow ElasticSearch to start on boot sudo /bin/systemctl enable elasticsearch.service Lets fire up ElasticSearch... sudo systemctl start elasticsearch.service Lets see if we have some logs sudo ls -la /var/log/elasticsearch/ Have a look at the logs and make sure that ElasticSearch has properly initiated sudo cat /var/log/elasticsearch/elasticsearch.

install wine in ubuntu

Step 1 – Setup PPA sudo dpkg --add-architecture i386 wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - ###  Ubuntu 18.10  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main' ###  Ubuntu 18.04  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' ###  Ubuntu 16.04  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' Step 2 – Install Wine on Ubuntu sudo apt-get update sudo apt-get install --install-recommends winehq-stable sudo apt-get install aptitude sudo aptitude install winehq-stable Step 3 – Check Wine Version wine --version wine-4.0 How to Use Wine (Optional)? wine full_file_full_specified_name.exe

An error occurred while installing nokogiri (1.8.4), and Bundler cannot continue.

An error occurred while installing nokogiri (1.8.4), and Bundler cannot continue. Try this first and then bundle install again   sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev