lost and found ( for me ? )

install OpenPanel on Ubuntu 10.04 64bit

open panel is an open source web based system management panel

install open panel on ubuntu 10.04.
Seen from an installation documentation (http://www.openpanel.com/download/openpanel-download/), open panel officially supports 10.04 and .10.10.

root@ubuntu:~# tail -1 /etc/lsb-release ;uname -ri
DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"
2.6.32-50-server unknown

add following lines in /etc/apt/sources.lit file

# for open panel
deb http://download.openpanel.com/deb/ lucid main
deb-src http://download.openpanel.com/deb/ lucid main

oops, open panel supports precise as well.

--
or lucid, maverick, natty, oneiric or precise for Ubuntu.
--

install openpanel

  32  apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EAC69B9
  33  apt-get update
  34  aptitude install openpanel-suggested




During the installation, you will be asked to configure MySQL password and postfix setting.
As for postfix, set “internet site”

before logging in, configure password for “openpanel-admin”
move to openanel CLI mode with “openpanel-cli”
root@ubuntu:~# openpanel-cli
[openpanel]% password user openpanel-admin
Enter new password:                                
Retype new password:         
% Password updated
[openpanel]%   




log onto openpanel over HTTPS ( not HTTP )

root@ubuntu:~# /etc/init.d/openpanel status
* openpanel-authd is running
* openpanel-swupd is running
* openpanel-core is running

root@ubuntu:~# lsof -ni:4089
COMMAND     PID           USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
openpanel 10537 openpanel-core    1u  IPv6  24693      0t0  TCP 192.168.100.245:4089->192.168.100.1:37042 (ESTABLISHED)
openpanel 10537 openpanel-core    7u  IPv6  23846      0t0  TCP *:4089 (LISTEN)
openpanel 10537 openpanel-core   13u  IPv6  24686      0t0  TCP 192.168.100.245:4089->192.168.100.1:37035 (ESTABLISHED)
openpanel 10537 openpanel-core   14u  IPv6  24694      0t0  TCP 192.168.100.245:4089->192.168.100.1:37043 (ESTABLISHED)



openpanel listens to TCP 4089








about documentation for open panel.

install Ajenti ubuntu 13.04 64bit

In short, Ajenti is an open source web based control panel similar to webmin.

Here are logs when installing Ajenti within Ubuntu 13.04 64bit.

# tail -1 /etc/lsb-release ;uname -ri;freeDISTRIB_DESCRIPTION="Ubuntu 13.04"
3.8.0-19-generic x86_64

install Ajenti
  15  wget http://repo.ajenti.org/debian/key -O- | apt-key add -
  16  echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
  17  apt-get update && apt-get install ajenti

Signature ok
subject=/C=US/ST=NA/L=Nowhere/O=Acme Inc/OU=IT/CN=ubuntu
Getting Private key
:: SSL configured!
------------------------------------------------
Now start Ajenti with 'service ajenti restart'
Ajenti will listen on HTTPS port 8000 by default

Default username : root
Default password : admin
------------------------------------------------

# /etc/init.d/ajenti status
* Ajenti is running

# ps aux | grep ajenti | grep -v grep
root      2385  1.6  9.9 155876 50292 ?        S    23:18   0:17 /usr/bin/python /usr/bin/ajenti-panel -d

access to https:// IP:8000
user: root, pass: admin


The Installation is very easy:D

install Apache via GUI
GUI -> Plugins -> Apache -> install


After installing packages, you need to restart Ajenti process to refresh its GUI.

configure Apache




You can upgrade Ubuntu packages via GUI.
GUI -> Packages

use terminal via GUI








edit dashboard
GUI -> Dashboard -> +ADD WIDGET


You can delete a widget like this
drag a widget and move it to a trash.





open a log file

tshark small tips

collect MX query type DNS requests
# tshark -r foobar.pcap -R "dns.qry.type == MX and dns.flags.response == 0"

collects MX query DNS responses.
# tshark -r foobar.pcap -R "dns.qry.type == MX and dns.flags.response == 1"

A or AAAA query type DNS requests
# tshark -r foobar.pcap -R "dns.qry.type == A or dns.qry.type == AAAA and dns.flags.response == 0"

namebench

donwload namebench source code from https://code.google.com/p/namebench/.


build
# tar xzvf namebench-1.3.1-source.tgz
# cd namebench-1.3.1/


run namebench via CLI
Graphical results will be generated via CLI after finishing testing.
# ./namebench.py -x
namebench 1.3.1 - best source (automatic) on 2013-08-27 01:02:34.400136
threads=40/2 queries=250 runs=1 timeout=3.5 health_timeout=3.75 servers=11
------------------------------------------------------------------------------
- Reading Top 2,000 Websites (Alexa): data/alexa-top-2000-domains.txt (0.7MB)
- Reading Cache Latency Test (100% hit): data/cache-hit.txt (0.1MB)
- Reading Cache Latency Test (100% miss): data/cache-miss.txt (0.1MB)
- Reading Cache Latency Test (50% hit, 50% miss): data/cache-mix.txt (0.1MB)
- Generating tests from Top 2,000 Websites (Alexa) (33575 records, selecting 250 automatic)
- Selecting 250 out of 33542 sanitized records (weighted mode).


Fastest individual response (in milliseconds):
----------------------------------------------
Localhost IPv4   # 0.93007
NTT              ##### 7.96103
Google Public DN ##### 8.41498
IIAJ 4 JP        ##### 8.48103
IIJ4U-11 JP      ##### 8.97908
Miinet-2 JP      ##### 9.29594
DynGuide         ##### 9.51982
Sonet-2 JP       ##### 9.89699
Freebit JP       ###### 10.47587
OpenDNS          ########################## 51.40114
UltraDNS         ##################################################### 105.17502


Mean response (in milliseconds):
--------------------------------
Google Public DN ######## 63.80
NTT              ########## 81.55
IIJ4U-11 JP      ############ 98.84
Sonet-2 JP       ############ 99.93
IIAJ 4 JP        ############### 124.72
Freebit JP       ############### 132.14
Miinet-2 JP      ################# 143.20
DynGuide         ################# 150.71
UltraDNS         ################## 159.49
OpenDNS          #################### 171.20
Localhost IPv4   ##################################################### 469.96


Recommended configuration (fastest + nearest):
----------------------------------------------
nameserver 8.8.4.4         # Google Public DNS-2  
nameserver 127.0.0.1       # Localhost IPv4  
nameserver 129.250.35.250  # NTT  




********************************************************************************
In this test, Google Public DNS-2 is 636.6%: Faster
********************************************************************************



- Saving report to /tmp/namebench_2013-08-27_0112.html
- Saving detailed results to /tmp/namebench_2013-08-27_0112.csv




Here is my testing result.



online DNS visualization for free

you can use an online service called ICmyNet.DNS provided by ICmyNet, which is free.
http://www.icmynet.com/ -> Products -> ICmyNet.DNS




build OpenShift environment within KVM


KVM host
[root@localhost ~]# cat /etc/fedora-release ;uname -ri
Fedora release 19 (Schrödinger’s Cat)
3.10.9-200.fc19.x86_64 x86_64
[root@localhost ~]#

download openshift virtual machine image



# unzip openshift-origin.zip
Archive:  openshift-origin.zip
 inflating: openshift-origin.vmdk   
 inflating: openshift-origin.vmx    
 inflating: openshift-origin.ovf    
 inflating: openshift-origin.tdl

on KVM host, install mdns
The VM seems to use multicast DNS for name resolution.

on the KVM hsot

# yum install -y nss-mdns

edit /etc/nsswitch.conf

from
hosts:      files dns mdns4_minimal

to
hosts:      files mdns4_minimal [NOTFOUND=return] dns myhostname mdns4

convert VM image format from vmdk to row.
# qemu-img convert -O raw openshift-origin.vmdk openshift-origin.img

# mv openshift-origin.img /var/lib/libvirt/images/

register the VM via virt-manager






start the VM and access to the VM over HTTPS
user: admin, pass: admin