Saturday, August 18, 2018

Australian teenager hacked Apple’s network multiple times, accessed 90GB worth of files

Court documents reveal that a 16-year-old hacker from Australia allegedly broke into tech giant Apple’s computer systems and may have downloaded internal files.

The Age newspaper reports that the teenager’s actions were driven by an admiration for the company, and that the boy stored the stolen files in a folder entitled “hacky hack hack.” The teen reportedly downloaded over 90 gigabytes of data and accessed customer accounts without exposing his identity.

Saturday, August 11, 2018

Reliable Backup And Disaster Recovery, With Microsoft Azure and Hyper v



In this tutorial I'm planing to do the give you and idea how to set up a Azure DR site Hybrid setup (I'm amusing that you have already config the Virtual machine manger onsite and VMs are reporting to tat as well )


First you have to create recovery service vault



Then click on the Site recovery and then click on the PrepareInfrastructure





Then select the virtual environment you have in internally (This supports Hyper v/VMware  as well) In this example we are taking Hyper v as our platform   


Please follow the steps given by the system to add your environment to the ASR


After completion of the above step you will be able to access the bellow mention window populating Source Location and the cloud (*you have to create separate clouds on VMM server )


In this window you have to select *Resource group and the storage account 


In this window you will be able to select the virtual machines that you want to get protected by the ASR (Please note this will on show only the virtual machines which are part of that specific cloud)


In this step you only need to select the OS disk and the OS type (Based on the VM you are planing to get replicate)


Now you are good to go,You have to check and confirm the replication policy and confirm by clicking OK


Now you will be able to find the status of the replications 


You are Done And Dusted 



Friday, August 10, 2018



# Minikube Cluster supports

    * Dashboard to manage cluster.
    * ConfigMaps to store configurations.
    * Secrets to store secrets related to your application.
    * NodePorts
    * Various Container Runtime like: Docker, rkt etc
    * Container Network Interface (CNI)
    * Ingress

# End Goal
  
  *Minikube installed.
    *Little hands on with Minikube commands

# Prerequisites
   
    *Hypervisor installed. For Linux: VirtulBox or KVM, for OSX: VirtualBox or HyperKit.
    *Kubectl installed.


curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.26.1/minikube-linux-amd64&& chmod +x minikube && sudo mv minikube /usr/local/bin/




02 Minikube Useful Commands

1. To start Minikube Cluster


$ minikube start
Starting local Kubernetes cluster...
Running pre-create checks...
Creating machine...
Starting local Kubernetes cluster...


2. To stop Minikube Cluster


$ minikube stop
Stopping local Kubernetes cluster...
Stopping "minikube"..

3. To check Status

$ minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100

4. To launch dashboard


$ minikube dashboard
Opening kubernetes dashboard in default browser...

Wednesday, August 1, 2018

Install elasticsearch ubuntu 18


Install elasticsearch ubuntu 18


01 Install java


Set JAVA_HOME edit file /etc/environment and add the content shown below in comments


sudo apt-get update
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
java -version
echo $JAVA_HOME
sudo vi /etc/environment
#PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
#JAVA_HOME="/usr/lib/jvm/java-8-oracle"
source /etc/environment
echo $JAVA_HOME



02 Install Elasticsearch-6.3


echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -  
sudo apt-get update && sudo apt-get install elasticsearch
ls /etc/init.d/elasticsearch
sudo service elasticsearch status

03 Change bind address and JVM heap option as per requirement


Change network.host to 0.0.0.0 in elasticsearch.yml and set -Xms 4g & -Xmx 4g in jvm.options
sudo vi /etc/elasticsearch/elasticsearch.yml
sudo vi /etc/elasticsearch/jvm.options


04 Install Kibana

sudo apt-get update && sudo apt-get install kibana
sudo service kibana restart

05 Install nginx

sudo apt-get -y install nginx

06 Add nginx config file for kibana

sudo vi /etc/nginx/conf.d/kibana.conf
Replace mykibana.com with your server_name or IP. We will setup auth in next step, hence we have placed a line for auth_basic in kibana.conf

 server {
    listen 80;
    server_name mykibana.com;
    auth_basic "Restricted Access";
    auth_basic_user_file /etc/nginx/htpasswd.users;

    location / {
        proxy_pass http://localhost:5601;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}


07 Setup auth

sudo apt-get install apache2-utils
sudo htpasswd -c /etc/nginx/htpasswd.users admin
sudo service nginx restart



08 Web view of Kibana



Monday, November 20, 2017

Install Kubernetes Cluster on Microsoft Azure




If you've been following the industry in the past two years then odds are you've seen use of containers. Container technology is like docker have truly changed the game by standardizing application development and production infrastructure I experienced this firsthand. Docker changed the game for me and my team by allowing us to build ship and run our applications in any language we wanted. This worked out fantastically for us until it's time to go to production there were all sorts of great tooling and development but really nothing available to run our applications in production. We decided to roll our own infrastructure in deployment tooling naturally this took us months and those are hard in difficult months half a year later. We had something that worked it wasn't fancy, but it got the job done. So, it's almost three years ago and let me tell you things have changed a lot since then. Now we have mature tools to work with containers all the way from development up into production. We have tools like kubernetes docker swarm these orchestration tools provide engineers for the toolbox to automate deploying scaling and operating containerized applications in production this course. Is all about my personal favorite kubernetes this course will teach you to deploy containerized applications. Using kubernetes will cover the features required by most common applications, i'll also equip you for the real world by covering the kubernetes ecosystem and preparing you for production deploying applications.


First you have to deploy Two virtual machines on Azure. I have  deployed "Ubuntu Server 16.04 LTS VM" as my teasing nodes.


Hear you have to select one node as master node .In my  scenario i will select "Kubernetes"
 as my master node.

Installing dependencies


The first thing you must do is install the necessary dependencies. This will be done on all machines that will join the Kubernetes cluster. The first piece to be install is apt-transport-https (a package that allows using https as well as http in apt repository sources). This can be installed with the following command:
sudo apt-get update && apt-get install -y apt-transport-https
Our next dependency is Docker. Our Kubernetes installation will depend upon this, so install it with:

sudo apt install docker.io

Then start the service by with:
sudo systemctl start docker

Installing Kubernetes

To install the  you need to add following repository by creating the file /etc/apt/sources.list.d/kubernetes.list and enter the following content:
deb http://apt.kubernetes.io/ kubernetes-xenial main 
Save and close that file. Install Kubernetes with the following commands:
apt-get update
apt-get install -y kubelet kubeadm kubectl kubernetes-cni

Initialize your master

With everything installed, go to the machine that will serve as the Kubernetes master and issue the command:
sudo kubeadm init


Before you join a node, you need to issue the following commands (as a normal  user):
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

Joining a node to yore Cluster

With everything in place, you are ready to join the node to the master. To do this, go to the node's terminal and issue the command:In this scenario you have to log on to the  Kubernetes1 node to run the following command :

kubeadm join --token <cccccccccccccccc23c> 10.1.2.4:6443 --discovery-token-ca-cert-hash sha<256:>
Which will display on the end of above command :sudo kubeadm init

If above process success you will be able to run following command to check other connected nodes :
kubectl get nodes

To see the pod network you have run following command :
kubectl get services --all-namespaces


 watch kubectl get pods --all-namespaces



Your Kubernetes cluster is ready

Now have a basic Kubernetes cluster, consisting of a master and a single node. Of course you can scale your cluster by installing and adding more nodes. With these instructions, that should now be easy..

Next tutorial Deploying service on this cluster 


Saturday, November 18, 2017

Containers on Windows 2016 What you Can do??






IT delivers thousands of applications to meet the needs of your business many have different requirements. They also use different languages databases and tools to deploy configure manage and maintain this complexity tasks.People expertise and the right systems infrastructure and architecture this translates to time and money. Today there's a better way to package applications and their necessary components with Containers, Containers help organizations become more consistent and agile they abstract the underlying host operating system as a result applications can be packaged
with all of their dependencies. So your developers can choose the environments and tools that best suit their projects and operations can deliver applications anywhere in consistent way. It's easy to see the benefits when you deploy your first container based app.

In this tutorial we will see how to install container on On sever 2016 and run some services on top of it


Run this Command on Power Shell
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force


Then reassert computer by running this command " Restart-Computer -Force"

Ensure your Windows Server system is up-to-date by running:" sconfig"



This shows a text-based configuration menu, where you can choose option 6 to Download and Install Updates:


Then run following command install the container in the dsidred node 





After you have done success full instantiation of Docker and Containers  you will be able to run following commands:docker version



If the above step successful which means that you have successfully instaled the docker

Then pull the image of the server core in order to run it :"docker pull microsoft/windowsservercore"



Then run following command to show the downloaded images : docker images



Then run the image which you just downloaded :docker run -it microsoft/windowsservercore powershell

you will receive following screen,I will run ipconfig command to display the ip address of the container (microsoft/windowsservercore) we have just installed



With this you have successfully deploy server core on docker.




Monday, November 13, 2017

How to install Laravel 5.4 on Ubuntu 16.04.3 LTS



First yo have to install all dependency to host website E.g :PHP, MySql Like Etc...

Then   Logon to your server  with sufficient privileges



Next Run following command:

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Then yo will receive following


 Next Run folloiwng code ,Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:

composer create-project --prefer-dist laravel/laravel project-name



Finally you required to receive following success install message



Restart the terminal.