Sunday, November 26, 2017

Day 4 on industrial training


Installing Apache Maven on Ubuntu


You can download the latest stable version of Apache Maven from its official website, otherwise you can download it directly with the following command:

cd /opt/
wget http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz




Once the download has completed, extract the downloaded archive.

sudo tar -xvzf apache-maven-3.3.9-bin.tar.gz
 
Next, rename the extracted directory.
sudo mv apache-maven-3.3.9 maven 
 
 
 
 
Next, you will need to setup the environment variables such as M2_HOME, M2, MAVEN_OPTS, and PATH. You can do this by creating a mavenenv.sh file inside of the

/etc/profile.d/ directory.

sudo nano /etc/profile.d/mavenenv.sh 
 
Add the following lines:

export M2_HOME=/opt/maven export PATH=${M2_HOME}/bin:${PATH}
 
Day 3 on industrial Traning



Being familiar with ubuntu text editors

Emac


 Vim


Sunday, November 5, 2017

Installing Tools on ubuntu

Day3(2017/11/06)



1.Installing Intellij IDEA  on ubuntu



install using scripts
step 1
  • Download the script accordingly from following   links
intellij-idea-ultimate_xxxx.xx_all.deb (ultimate edition)



intellij-idea-community_xxxx.xx-1_all.deb (community version)



step 2
  • Then open terminal via Ctrl+Alt+T or by searching for it from app launcher, and run command to install the script:



sudo dpkg -i ~/Downloads/intellij-idea-community_*_all.deb



Replace community in the command with ultimate for ultimate version.

2.Installing JDK 8

 Check Do you have JDK alredy installed or not.
java -v

If you have OpenJDK installed on your system it may look like this:
  • java version "1.7.0_15"
    OpenJDK Runtime Environment (IcedTea6 1.10pre) (7b15~pre1-0lucid1)
    OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) 


 If you have OpenJDK installed on your system, you have the wrong vendor version of Java installed

Type/Copy/Paste: sudo apt-get purge openjdk-\*
This command will completely remove OpenJDK/JRE from your system


Type/Copy/Paste: sudo mkdir -p /usr/local/java
This command will create a directory to hold your Oracle Java JDK and JRE binaries.

Download the Oracle Java JDK/JRE for Linux.

 Copy the Oracle Java binaries into the /usr/local/java directory. In most cases, the Oracle Java binaries are downloaded to: /home/"your_user_name"/Downloads.
  • 32-bit Oracle Java on 32-bit Ubuntu Linux installation instructions:
    Type/Copy/Paste: cd ~/Downloads
    Type/Copy/Paste: sudo cp -r jdk-8u152-linux-i586.tar.gz /usr/local/java
    Type/Copy/Paste: sudo cp -r jre-8u152-linux-i586.tar.gz /usr/local/java
    Type/Copy/Paste: cd /usr/local/java
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions
  • Type/Copy/Paste: cd ~/Downloads
    If you downloaded the JDK then Type/Copy/Paste: sudo cp -r jdk-8u152-linux-x64.tar.gz /usr/local/java
64-bit Oracle Java on 64-bit Ubuntu Linux installation instructions:
  • If you downloaded the JDK then Type/Copy/Paste: sudo tar xvzf jdk-8u152-linux-x64.tar.gz

Type/Copy/Paste: ls -a
jdk1.7.0_45

Type/Copy/Paste: sudo gedit /etc/profile


If you are installing the JDK then Type/Copy/Paste:
JAVA_HOME=/usr/local/java/jdk1.7.0_45
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH

If you are installing the JDK then Type/Copy/Paste: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_45/jre/bin/java" 1


If you are installing the JDK then Type/Copy/Paste: sudo update-alternatives --set java /usr/local/java/jdk1.7.0_45/jre/bin/java
Type/Copy/Paste: . /etc/profile

REBOOT
3. installing mysql 5.5

  • Uninstall any existing version of mysql


sudo rm /var/lib/mysql/ -R
  •  Delete the mysql profile
sudo rm /etc/mysql/ -R
  •  Automatically uninstall mysql
sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor
  • Download version 5.5.51 from MySQL site
wget https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz
  • Add mysql user group
sudo groupadd mysql
  • Add mysql (not the current user) to mysql user group
sudo useradd -g mysql mysql
  • Extract  to /usr/local
sudo tar -xvf mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz /usr/local/
  • Create mysql folder in /usr/local by moving the untarred folder
cd /usr/local
sudo mv mysql-5.5.49-linux2.6-x86_64 mysql
  • Set mysql directory owner and user group
cd mysql
sudo chown -R mysql:mysql *
  • Install the required lib package (works with 5.6 as well)
sudo apt-get install libaio1
  • Execute mysql installation script
sudo scripts/mysql_install_db --user=mysql
  • Set mysql directory owner from outside the mysql directory
sudo chown -R root .
  • Set data directory owner from inside mysql directory
sudo chown -R mysql data
  • Copy the mysql configuration file
sudo cp support-files/my-medium.cnf /etc/my.cnf (mysql 5.5)
sudo cp support-files/my-default.cnf /etc/my.cnf (mysl 5.6)
  • Start mysql
sudo bin/mysqld_safe --user=mysql &
sudo cp support-files/mysql.server /etc/init.d/mysql.server
  • Initialize root user password
sudo bin/mysqladmin -u root password '[your new password]'
  • Add mysql path to the system
sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql
  • Reboot the system
  • Start mysql server
sudo /etc/init.d/mysql.server start
  • Stop mysql server
sudo /etc/init.d/mysql.server stop
  • Check status of mysql
sudo /etc/init.d/mysql.server status
  • Enable myql on startup
sudo update-rc.d -f mysql.server defaults
Disable mysql on startup (Optional)
sudo update-rc.d -f mysql.server remove
  • Reboot the system
  • Now directly use the command below to start mysql if it hasn’t
sudo service start mysql -u root -p



Thursday, November 2, 2017

Represent basic terminal commands using XMind

Day2(2017/11/02) Represent basic terminal commands using XMind

Getting familiar with Linux terminal commands

Day1: (2017/01/11)Getting familiar with Linux terminal commands


  1. Create a new user (preferably using your name as login name)
    Use the command : adduser newuser.
  2. Reset password of user
    Use the command : sudo passwd newuser.
  3. Create a directory called my_group at home and give permissions to user and group
    Use the command mkdir my_group (This will create a folder call my_group).
    And then use the chmod to provide permission
  4. Create a directory called my_user at home and give permissions to user only
    Use the command : chmod
  5. How many network interfaces your computer has?
    Use the command : ls /sys/class/net
  6. Install xmind on your desktop without using yum.
    Steps followed
            1.Download xmind zip folder
            2.Unzip the folder
            3.type the command sudo then drag nad drop the setup.sh file to the terminal.
  7. How you get last 5 entries of /var/log/messages
    Use the command : tail -n 5 /var/log/syslog  (in latest Linux versions /var/log/messages is replaced with /var/log/syslog  ).

  8. How you get first 5 entries of /var/log/messages
    Use the command : head -n 5 /var/log/syslog 
  9. Sort directory/file list based on time inside your home directory.
     Use the command : gsettings set org.gnome.nautilus.preferences     default-sort-order "mtime"
  10. Rename your directory my_group to my_group1
     Use the command : mv my_group my_group1.
  11. How you view partition information?
      Use the command : sudo lsblk -o     NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
  12. How you get total sizes of sub directories inside /var using single command?
    Use the command : du -sh
  13. Change system date to yesterday using command line
    Use the command : sudo date 110114232017.24 (here the format is MMddhhmmyyyy.ss. eg: here mention date and time is 2017/11/01  14:23:24)
  14. Remove directory my_group
     Use the command: rm my_group1
  15. What are the following utilizations of your desktop
    1. CPU : sudo apt-get install htop
              then to run type ‘htop
    2. Memory: watch -n 5 free -m
    3. Disk: df -h

Saturday, May 6, 2017

Cloud computing

Introduction
when we talk about the computing data plays a major roll on it.So from the begining we used so device to store our data .In previous ages those devices were low in capacity,bulk and high in expensive.But these were developed step by step .So what will happen in the future?
the future is directed to "cloud based computing".
Cloud computing is a on demand service which provides IT resources and service from application to data centre over the internet.We can find three major Section in cloud computing
Software as a service(SaaS)
Infrastructure as a service(IaaS)
Platform as a service(PaaS)

On this article I am not going to explain these three .purpose of this article is to share some  basic ideas on cloud computing.

Characteristics

On demand self service
Broad network access
Resource pooling
Rapid elasticity
Measured service

Goals & Benefits

Flexibility
Cloud service provides employees with flexible service.They can add or remove features and user from cloud according to their needs.

Cost saving
All most  all the cloud services are pay-as-you-go system.So nobody need to pay for what they have not used.Hence enterprise users can get their products to market with out worrying  infrastructure cost.
Disaster recovery
The entire server,including the operating system, applications, patches and data are encapsulated into a single software bundle or virtual server. This virtual server can be copied or backed up to an different data center and spun up on a virtual host in a matter of minutes in the event of a disaster.

Saturday, January 21, 2017

Microsoft is researching on storing data in DNA molecule.

Technology is being developed rapidly.Because of that in an every second the world produces millions of gigabytes of data,which are stored in huge data centers all over the world.IoT(Internet Of Things) revolution will multiply this amount by thousands of times.So where we store & how we store these data ?

Microsoft one of the world’s biggest technology firms is trying to introduce a advance solution for data storing
The solution is DNA (deoxyribonucleic acid).DNA is the molecule which stores the genetic information of protein synthesis on a living cell.These information is stored as a sequences of base pairs called (A)denine, (C)ytonine, (G)uanine and (T)hymine.
       
So Microsoft is working on storing digital data in DNA molecules which are consist of 1s & 0s,using the similar technique used in natural genetic information storing .To understand the story,we should have a clear picture of the structure of a DNA molecule .Nucleotides are the building blocks of the DNA .These nucleotide are made up of base pairs called (A)denine, (C)ytonine, (G)uanine and (T)hymine,A sugar group called deoxeribe sugar,a phosphate group.A polynucleotide is build by connecting these nucleotides together.These kind of two polynucleotides are made a one DNA molecule.

 Microsoft purchased 10 million strands of synthetic DNA from a company called Twist Bioscience.their target was to test whether digital data can be store in a DNA.this research was conducted at University of Washington.this was carried out by a research team from Microsoft and University of Washington under the supervision of Douglas Carmean, project leader and partner architect, Microsoft .when we are seeking for a technology to store data we need to consider storage density and durability. Using DNA to archive data is an attractive possibility because it is extremely dense (up to about 1 exabyte per cubic millimeter) and durable (half-life of over 500 years). 

 In this research The team stored digital versions of works of art (including a high-definition video by the band OK Go!), the Universal Declaration of Human Rights in more than 100 languages, the top 100 books of Project Guttenberg and the nonprofit Crop Trust’s seed database on DNA strands.



Storing digital data on DNA works like this:

First the data is translated from 1s and 0s into the “letters” of the four nucleotide bases of a DNA strand — (A)denine, (C)ytosine, (G)uanine and (T)hymine.

Then they have vendor Twist Bioscience “translate those letters, which are still in electronic form, into the molecules themselves, and send them back

Reading the data uses a biotech tweak to random access memory (RAM), another concept borrowed from computer science. The team uses polymerase chain reaction (PCR), a technique that molecular biologists use routinely to manipulate DNA, to multiply or “amplify” the strands it wants to recover. Once they’ve sharply increased the concentration of the desired snippets, they take a sample, sequence or decode the DNA and then run error correction computations.


       

Friday, January 20, 2017

How to create a Desktop shortcut for any website.

Step1

      Launch a SeaMonkey web broswer which is from mozilla .

Step2

      Type the url of the web site you want to create the shortcut.

Step3

       Search for that site.

Step4

      After the site is loaded,you can see icon shown below in the url bar of your brower.drag and
     drop  that icon on to the desktop.


Step5

     Double clik on that icon .Then You will be taken to the particular site by your default browser.