Pages

2015-02-02

[Ubuntu12.04]Mirroring Code from a Repository to Another on GitHub


For example, 

Original repository:
1. chilung/OCP_CI_Server_Certification_Test_Cases
2. HTTPS clone URL:
    https://github.com/chilung/OCP_CI_Server_Certification_Test_Cases.git

New repository:
1. opencomputeproject/ocp_ci_server_certification_test_cases
2. HTTPS clone URL:
    https://github.com/opencomputeproject/ocp_ci_server_certification_test_cases.git

And I want to duplicate code from original repository to new repository...

2014-11-21

[Ubuntu12.04]Build iTop Enviroment for Inventory Management

iTOP is a CMDB tool that we use it for inventory management.

[Requirements]

Download iTOP
http://sourceforge.net/projects/itop/files/itop/

MySQL version 5.0 or newer
PHP version 5.2.0 or newer
Web Server supporting PHP 5

2014-10-02

[Ubuntu12.04]Network Performance Test using iperf



Test Network Bandwidth

###Package: iperf

###Rx(Server)
#10G NIC card
#IP: 10.2.107.2

$ sudo apt-get install iperf
$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 10.2.107.2 port 5001 connected with 10.2.106.2 port 44400
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  10.9 GBytes  9.39 Gbits/sec


2014-10-01

[Ubuntu12.04]Commit Code to GitHub


Before commit code to GitHub, you need to apply an account of GitHub.
Here's the link,  https://github.com/

1. #move to a directory that use to save source code
    #for example, /opt
    $ cd /opt

2. #download the Project/Source Code you want from GitHub
    #for example, chilung/OCP_CI_Server_Certification_Test_Cases
    $ git clone https://github.com/chilung/OCP_CI_Server_Certification_Test_Cases.git

2014-09-30

[Ubuntu12.04]讓程式可以在背景執行

screen - an ubuntu package that can let program run in deamon


#download package "screen"
$ sudo apt-get install screen

#new a screen that can run somthing in deamon
$ screen

#then, you can run some command or program in the new screen

#use Ctrl+A+D to put the screen back to deoman

#once you want to use it, call the scrren(you have new before) to show up
$ screen -r

#termanal this screen(you will never call it back)
$ exit

[Ubuntu 12.04] 調整系統時間

#調整日期
ubuntu@ubuntu:~$ sudo date -s 2014/09/30
Tue Sep 30 00:00:00 CST 2014

#調整時間
ubuntu@ubuntu:~$ sudo date -s 10:49:40
Tue Sep 30 10:49:40 CST 2014

#將系統時間同步到BIOS
ubuntu@ubuntu:~$ sudo hwclock --systohc --utc

#查看系統時間
ubuntu@ubuntu:~$ date
Tue Sep 30 10:49:51 CST 2014

Note:
  • CST - 中原標準時間
  • UTC - 世界標準時間
  • GMT - 格林威治標準時間
  • GMT+8 = UTC+8 = CST

2014-09-19

Build Hardware Raid via LSI RAID Card using megacli command

Environment Information

OS : ubuntu12.04
RAID Card Model: LSI SAS 9285CV-8e
Ubuntu Package/command : megacli & megasasctl

Megacli Command

#Show RAID Card Info.
$ sudo megacli -CfgDsply -a0

==============================================================================
Adapter: 0
Product Name: LSI MegaRAID SAS 9285CV-8e
Memory: 1024MB
BBU: Absent
Serial No: SV21810332
==============================================================================
Number of DISK GROUPS: 0


2013-10-10

Memory(RAM)名詞解釋

DIMM: A DIMM or dual in-line memory module comprises a series of dynamic random-access memory integrated circuits.

ECC: Error-correcting code memory (ECC memory) is a type of computer data storage that can detect and correct the most common kinds of internal data corruption.

RDIMM: Registered Dual In-line Memory Module

UDIMM: Unbuffered Dual In-Line Memory Modules