Wednesday, March 7, 2018

Custom Stencils Datacenter Design

MS Visio Professional 2013

download stencils
http://www.visiocafe.com/hpe.htm

extract stencils files
C:\Users\xxx\Documents\My Shapes

Visio Menu
Shapes-More Shapes-My Shapes

Monday, March 5, 2018

how to build tor from source

$ hostnamectl
   Static hostname:
         Icon name: computer-vm
           Chassis: vm
        Machine ID:
           Boot ID:
    Virtualization: oracle
  Operating System: Ubuntu 16.04.3 LTS
            Kernel: Linux 4.13.0-32-generic
      Architecture: x86-64

tar zxvf tor-0.3.2.10.tar.gz


sudo apt-get install libevent-dev
sudo apt-get install libssl-dev
sudo bash ./configure
sudo make

Wednesday, February 28, 2018

how to install Java SE Development Kit 8 ubuntu 14.04

ubuntu 14.04 Java SE Development Kit 8
Java SE Development Kit 8u102


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

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


Download the Oracle Java JDK/JRE for Linux. Make sure you select the correct compressed binaries for your system architecture 32-bit or 64-bit (which end in tar.gz).
Select
Linux x64    172.95 MB      jdk-8u102-linux-x64.tar.gz


Copy the Oracle Java binaries into the /usr/local/java directory.
sudo cp -r jdk-8u102-linux-x64.tar.gz /usr/local/java

Unpack the compressed Java binaries, in the directory /usr/local/java
sudo tar xvzf jdk-8u102-linux-x64.tar.gz


Edit the system PATH file /etc/profile and add the following system variables to your system path


Scroll down to the end of the file using your arrow keys and add the following lines below to the end of your /etc/profile file:

JAVA_HOME=/usr/local/java/jdk1.8.0_102
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH


Inform your Ubuntu Linux system where your Oracle Java JDK/JRE is located.
If you are installing the JDK then Type/Copy/Paste:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_102/jre/bin/java" 1

Only if you are installing the JDK then Type/Copy/Paste:
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.8.0_102/bin/javac" 1



Inform your Ubuntu Linux system that Oracle Java JDK/JRE must be the default Java.
If you are installing the JDK then Type/Copy/Paste:
sudo update-alternatives --set java /usr/local/java/jdk1.8.0_102/jre/bin/java
If you are installing the JDK then Type/Copy/Paste:
sudo update-alternatives --set javaws /usr/local/java/jdk1.8.0_102/bin/javaws

test jdk installation
http://www.javatester.org

java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)


64-bit Oracle Java instructions
To enable your Java plug-in in your web browsers you must make a symbolic link from the web browsers plug-in directory to the location of the Java plug-in included in your distribution of Oracle Java.

cd /usr/lib/firefox-addons/plugins/
sudo ln -s /usr/local/java/jdk1.8.0_102/jre/lib/amd64/libnpjp2.so

oracle java control panel to add website in exception list
/usr/local/java/jdk1.8.0_102/bin/ControlPanel

how to install docker Ubuntu Xenial 16.04 (LTS)

install Docker Community Edition (Docker CE) on Ubuntu  Xenial 16.04 (LTS)

 To install Docker CE, you need the 64-bit version

 Uninstall old versions
 sudo apt-get remove docker docker-engine docker.io
 The contents of /var/lib/docker/

 The Docker CE package is now called docker-ce.

 Some users download the DEB package
 Most users set up Docker’s repositories and install from them, for ease of installation and upgrade tasks. This is the recommended approach.
 Some users download the DEB package and install it manually and manage upgrades completely manually. This is useful in situations such as installing Docker on air-gapped systems with no access to the internet.
 In testing and development environments, some users choose to use automated convenience scripts to install Docker.

Update the apt package index
$sudo apt-get update

Requirements

$sudo apt-get install apt-transport-https
$sudo apt-get install ca-certificates
$sudo apt-get install curl
$sudo apt-get install software-properties-common

Add Docker’s official GPG key
$curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Verify  key
$sudo apt-key fingerprint 0EBFCD88

set up the stable repository
$sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Update the apt package index
$sudo apt-get update

Install the latest version of Docker CE
$sudo apt-get install docker-ce

$docker version

OS requirements
To install Docker CE, you need the 64-bit version of one of these Ubuntu versions:
    Zesty 17.04
    Xenial 16.04 (LTS)
    Trusty 14.04 (LTS)

Verify old versions are removed.
$sudo apt-get remove docker docker-engine docker.io

how to install Java SE Development Kit 8 ubuntu 15.10

ubuntu 14.04 Java SE Development Kit 8
Java SE Development Kit 8u102


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

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


Download the Oracle Java JDK/JRE for Linux. Make sure you select the correct compressed binaries for your system architecture 32-bit or 64-bit (which end in tar.gz). 
Select
Linux x64    172.95 MB      jdk-8u102-linux-x64.tar.gz


Copy the Oracle Java binaries into the /usr/local/java directory.
sudo cp -r jdk-8u102-linux-x64.tar.gz /usr/local/java

Unpack the compressed Java binaries, in the directory /usr/local/java 
sudo tar xvzf jdk-8u102-linux-x64.tar.gz


Edit the system PATH file /etc/profile and add the following system variables to your system path


Scroll down to the end of the file using your arrow keys and add the following lines below to the end of your /etc/profile file:

JAVA_HOME=/usr/local/java/jdk1.8.0_102
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH


Inform your Ubuntu Linux system where your Oracle Java JDK/JRE is located. 
If you are installing the JDK then Type/Copy/Paste: 
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_102/jre/bin/java" 1

Only if you are installing the JDK then Type/Copy/Paste: 
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.8.0_102/bin/javac" 1 



Inform your Ubuntu Linux system that Oracle Java JDK/JRE must be the default Java.
If you are installing the JDK then Type/Copy/Paste: 
sudo update-alternatives --set java /usr/local/java/jdk1.8.0_102/jre/bin/java
If you are installing the JDK then Type/Copy/Paste: 
sudo update-alternatives --set javaws /usr/local/java/jdk1.8.0_102/bin/javaws

test jdk installation
http://www.javatester.org

java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)


64-bit Oracle Java instructions
To enable your Java plug-in in your web browsers you must make a symbolic link from the web browsers plug-in directory to the location of the Java plug-in included in your distribution of Oracle Java.

cd /usr/lib/firefox-addons/plugins/
sudo ln -s /usr/local/java/jdk1.8.0_102/jre/lib/amd64/libnpjp2.so

oracle java control panel to add website in exception list
/usr/local/java/jdk1.8.0_102/bin/ControlPanel

how to reset root password

  • How to reset ESXi 5.x root password 

https://www.youtube.com/watch?v=Nehxe8j9lgg



  • Ubuntu 12.04, 14.04, 15.10 - Forgot Login Password? Change/Create New One. 

https://www.youtube.com/watch?v=qGpvCZO2oOc



  • Changing a forgotten root password on an ESX/ESXi host (1317898)

This article provides steps to reset a lost or forgotten root password of an ESX/ESXi host.If you have forgotten or do not know the password for the root user on an ESX host, you may be able to change it without reinstalling.Reinstalling the ESXi host is the only supported way to reset a password on ESXi.ESXi does not have a service console and as such traditional Linux methods of resetting a password, such as single-user mode.
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1317898




  • Alternate Root Shell Method 

All it takes is adjusting the boot parameters slightly and typing a command or two,
http://www.howtogeek.com/howto/linux/reset-your-forgotten-ubuntu-password-in-2-minutes-or-less



  • Linux İşletim Sistemlerinde “root” Parolası Sıfırlama Yapılandırması

http://www.koraykey.com/?p=4988

holla el mundo ruby script

@ubuntu:~/ruby_scripts$ vi a.rb

#!/usr/bin/env ruby

puts "holla el mundo"

# the very first ruby script


@ubuntu:~/ruby_scripts$ ruby a.rb
holla el mundo