Managing Multiple Dockers with http://kubernetes.io/

http://kubernetes.io/
https://cloud.google.com/container-engine/

Revolutionary way to do horizontal scaling on demand / easily / quickly.

#docker

Docker came “Virtual Machines” gone … : )

Docker_(container_engine)_logo

When I gone through Docker documentation felt very good and relived.
Here are the advantages of Docker quickly….
1. Foot print is very small
2. Installing Oracle take lot of time…..just download Oracle Docker File and start using Oracle.
docker-oracle-xe-11g/
3. Easy to role out complex applications with minimum steps to start using it.
4. Easy to use developer system for demo. Make docker file and ship to sales rep in field.
5. Easy to trouble shoot Level 1 issues. Request customer to simulate issue and send docker file back.
6. Focus on learning and dont’ worry about installing / configuring complex software

Now your turn to go through these links
What is Docker?
Docker Public Register…you can download MySQL / Oracle /Wordpress / Ubuntu…etc and use it
Docker History
Go Programming Language
Boot 2 Docker

-o-

SSH Connection Manager

PuttyCM – Putty Connection Manager is giving trouble in windows 7.

Best software found to use is : http://www.mremoteng.org/download

Unix Monitoring Commands

Use this commands from Java Telnet Application and monitor any number of servers.

CPU Usage *****
>top -b -n 1 | grep java | awk ‘{sum +=$9}; END {print sum}’

Memory Usage *****
>top -b -n 1 | grep java | awk ‘{sum +=$10}; END {print sum}’

Gives total wait threads *****
>netstat -anp | grep TIME_WAIT | wc -l

Provides all states of connections change port number as required.
>netstat -an|grep “:80″|awk ‘/tcp/ {print $6}’|sort| uniq -c

===Established connections *****
>netstat -anp | grep ESTABLISHED | wc -l

===Database connections *****
>netstat -anp | grep 1521 | wc -l

=== Get diskspace utilization for given folder *****
>df | grep local | tail -1 | rev | cut -f2 -d’ ‘|rev
>df | grep apps | tail -1 | rev | cut -f2 -d’ ‘|rev

================ Check given web service is working or not ====================

curl –header ‘content-type: text/xml’ –data @test_request.xml -X POST http://server:1234/XYZWebService

#useful-unix-commands

Cr-48 Chrome Notebook

Cr-48 Chrome Notebook Notes

——————————————————-

How to remove owner in Google Chrome OS

1 Remove the battery
2 Flip the Dev switch
3 Power on
4 When you see the sad face hit “ctrl” and “D”
5 Let the format process finish
6 When you get to the set up screen power down
7 Flip the switch back to regular and power on again
8 It will format the drive and go back through set up again
9 System is back to factory settings.

——————————————————-

Question: How to go to shell in Google Chrome OS
CTRL+ALT+T
Type help to see available commands.
It is having very limited set of commands.
>help

——————————————————-
How to boot with Linux from USB?
http://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/cr-48-chrome-notebook-developer-information

——————————————————-

#cr-48-chrome-notebook

Ubuntu ….freedom from M$

Up to now I tried and struggled with Knoppix. Today installed Ubuntu 10.x on USB and started working. This is very very nice experience.

I installed Chrome first.

Initially struggled with Eenadu fonts. Please check 

http://abhinay.wordpress.com/2006/10/15/telugu-rendering-in-ubuntu-linux/

>sudo apt-get install ttf-telugu-fonts language-pack-te

After this restarted chrome and life is pretty cool….


Performance … Monitoring ….. : )

Performance Monitoring ……easy to do….when you have tools and time in hand….

Is there any one minute technique to solve performance issues ….? : )

Simple …..dont look at the application for a minute ……

Few tools to use ….
http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html
http://www.opensourcetesting.org/
http://www.webnms.com/linux-monitor/index.html

Knoppix on USB Drive

Successfully created USB bootable Knoppix Pen Drive.
So that I can save my personal files and settings.

http://www.pendrivelinux.com/install-knoppix-6-to-a-usb-flash-drive-in-windows/

#knoppix-usb

My own Unix Server

Date: Jun-24-2009 Fulfilling the dream of having my own Unix Server (In Progress)

I am dreaming since long back of having my own Unix Server.
At last started working towards that goal.

Requirements:
1. I want to have my own Unix Server.
2. Should support installation of JBoss.
3. It is having default MySQL Database
4. Install latest Java
5. Setup Tomcat and Axis Web Services
6. Should be accessible from home computer
7. Need not to have expose this system on public network.
8. Should have internet connection
9. Should provide option to do whatever I like as root/admin
10. The total effort should be cost effective.

I will complete this soon…

Install Knoppix 5.3.1 to a Flash Drive using Windows

KNOPPIX Persistent – Saving settings to USB

-o-
Date: Sep-07-2010
Yesterday bought 8 GB flash drive for 13$ and setup Knoppix in it.
It is working fine. Hanging few times.

It took 1 YEAR, 2 MONTHS AND 14 DAYS
I am not lazy….but waited for good deal to buy the flash drive.
Looks funny….I spend money here and there….but waited long enough to buy this flash drive….
Finally story ended in peace.

Need to setup JBoss, MySQL and others…let us see…when I will complete this.

#knoppix-usb, #own-unix-server

Useful Unix Commands

Many people ask, where to start learning Linux.

Answer 1: Install Ubuntu on pen drive and boot your system. It wont disturb your existing OS. You can save files too on pen drive.

https://help.ubuntu.com/community/Installation/FromUSBStick

http://polimetla.com/2009/06/24/fulfilling-the-dream-of-having-my-own-unix-server-in-progress/

Answer 2: Search in google for free unix shells or free unix accounts. http://m-net.arbornet.org

Download Putty.exe and start accessing free unix accounts.

======== Basic Commands ========

Clear all screen
>clear

See all commands you typed before
>history

Shows date
>date

Calendar
>cal

Man means manual
>man cal

======== CHECK LOGS ========

Prints server.log file on console while app is running
>tail -f server.log

Shows last 100 lines
>tail -100 server.log

Shows first 100 lines
>head -100 server.log

Shows one page at a time
>more server.log

Use cat for small files. This prints whole file on console
>cat server.log

======== CHECK Processes ========

To see all running process
>ps -ef

To check specific process
>ps -ef | grep process name

======== Disk, CPU, Memory Usage ========
Check Disk Space
>df

Check CPU Usage

>top

Direcotry space in Unix
>du -sh dir1

To get CPU Details
>cat /proc/cpuinfo

uname will help us to find given os is 32 bit or 64 bit.

>uname -m
i386 / i686 ==> 32 bit
x86_64 ==> 64bit

To get OS information
cat /proc/version

To get CPU Usage
>ps -e -o pcpu,cpu,nice,state,cputime,args -sort pcpu | sed ‘/^ 0.0 /d’

http://www.pixelbeat.org/cmdline.html

Memory Information

>cat /proc/meminfo

To do profiling

>free -m

http://www.cyberciti.biz/faq/linux-system-memory-utilization/

======= VI Commands ===========
Please check any VI Commands cheat sheet

>vi file name

Takes to end of the file
>shift g

To quit
>esc :q!

To write
>esc :w!

======= Compress/Decompress Commands ===========

$tar -cvf file1.tar a.txt

$tar -xvf file1.tar

——————————

$gzip a.txt
Output: a.txt.gz

$gunzip a.txt.gz
Output: a.txt

——————————

How to change prompt to present working directory?

>export PS1=’$PWD>’

======================================
Search in google to get more command lists
======================================

#unix, #unix-commands, #unix-commands-for-day-to-day-use, #unix-commands-for-developer, #unix-commands-for-tester