Posts

Setup Jenkins: A continuous integration and continuous deployment toll on Ubuntu 14.04 machine for an Angular4 appication

How to setup jenkins in ubutu 14.04 SRC: https://vexxhost.com/resources/tutorials/how-to-install-configure-and-use-jenkins-on-ubuntu-14-04/ 1) sudo apt-get update 2) Basic Web Server [Only if you want build to be server by a web-server] apt-get install nginx Check service status: service nginx status 3) Java Installation sudo apt-get install openjdk-7-jdk verify the installation: java –version 4) Jenkins Installation and Configuration a) wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add – b) sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' c) sudo apt-get install Jenkins Default user name [jenkin] Jenkins Continuous Integration Server is running with the pid 16997 Port: 8080 If you need to update the configurations of Jenkins as per your requirements, then you can find its configuration file under the `/etc/default/` directory and can make the changes...

Install Genymotion: A simulator tool for react-native applications and other mobile application in Ubuntu 14.04

Install genymotion 1) Download bin file https://www.genymotion.com/fun-zone/ 2) Give it executeable permissions chmod +x genymotion-2.1.0_x64.bin 3) cd genymotion 4) ./genymotion this will run the genymotion but it needs virtual box... 5) Download the virtual box from here... https://www.virtualbox.org/wiki/Linux_Downloads download linux for 64 bits or 32 based on OS sudo dpkg -i /path/to/deb/file followed by sudo apt-get install -f . ISSUES IN GENYMOTION 1) `CXXABI_1.3.8' not found (required by genymotion player issue while starting device SOL: https://stackoverflow.com/questions/37817792/how-to-fix-genymotion-in-linux-elementaryos-with-error-cxxabi-1-3-8-not-found/37817981 Execute the following 5 steps to solve it: LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH export LD_LIBRARY_PATH sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.9 g++-4...

Install watchman in Ubuntu 14.04

Install watchman:- SRC: https://facebook.github.io/watchman/docs/install.html Helper links: https://stackoverflow.com/questions/33592197/how-to-install-facebook-watchman-on-ubuntu https://www.howtoinstall.co/en/ubuntu/trusty/inotify-tools Installing from source You can use these steps below to get watchman built. You will need autoconf, automake and libtool (or glibtool on OS X). You may optionally build watchman without pcre and python support (see configuration options below). For python support, you will need setuptools and may need to install a python-dev or python-devel package. To build the C++ client library you will need to install libfolly. See below for some more information on options to configure your build. $ git clone https://github.com/facebook/watchman.git $ cd watchman $ git checkout v4.9.0  # the latest stable release $ ./autogen.sh [Issue1,2] $ ./configure $ make [Issue3] $ sudo make install ISSUE1: your system lacks libtooli...

Setup react-native in Ubuntu 14.04

https://facebook.github.io/react-native/docs/getting-started.html 1) Install build tools sudo apt-get install -y build-essential 2) Install react-native cli npm install -g react-native-cli 3)Install android studio - From: https://developer.android.com/studio/install.html download android studio go to path to bin ./studio.sh 3B) setup android stdio Choose a "Custom" setup when prompted to select an installation type. Make sure the boxes next to all of the following are checked: Android SDK Android SDK Platform Android Virtual Device Then, click "Next" to install all of these components. If the checkboxes are grayed out, you will have a chance to install these components later on. 3c) Install required JDK download the sdk for android 6.0 marshmallo The SDK Manager can also be found within the settings-> Android Studio "Preferences" dialog, under Appearance & Behavior → System Settings → Androi...

How to install mongodb on an ubuntu EC2 instance

Follow these simple steps to set up mongodb into an ec2 ubuntu instance Import public key sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 Create a list file echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list sudo apt-get update sudo apt-get install -y mongodb-org Start a service  sudo service mongod star     **In my case: Job was already running Connect the mongo... :) mongo  Stop the service ..If you want. sudo service mongod stop

Deploy Angular4 application on an ec2 instance

Here are the some easy steps to deploy an angular4 application into an ec2 instance install angular-cli  sudo npm install -g @angular/cli node with version greater than 6 must be installed  see my last post describes to setup an node application Port should be open from security group inbound rules. Clone the repo:- Run:  npm install serve to required port and public ip   ng serve --disable-host-check --host 0.0.0.0 --port 3100  --public  xx.xx.xx.xxx Run in background  Start a client nohup ng serve --disable-host-check --host 0.0.0.0 --port 3100  --public  xx.xx.xx.xxx  1>./log.txt 2>./err.txt & Stop a client  kill $( lsof -t -i:3100) Or by using screen screen -S newSession  screen -r More detail over screen

How to publish an Node application on Ubuntu.

Image
Do you have a dream of seeing your nodeJS application running on a live server?   But all such dreams ended up in a nightmare because you don't know anything about how to use a remote machine? And the dream remains a dream throughout your lifetime. If so then I have my empathy for you because I had been sharing the same nightmare a few days ago ever since when a friend of mine made this simple and made me took a step ahead.  Let me make it  Prerequisites: Make sure you have a running remote machine in Ubuntu14.04, say EC2 instance. If you don't know how to set up a remote machine I promise I will help you up in my upcoming posts. You have an established connection to the remote machine. So that you can access your remote machine. You can use any client say Putty or directly the ssh command. Will surely post about this well. Here are some very simple bullets points to set up a node application: After you successfully connected to the remot...