티스토리 툴바


달력

01

« 2012/01 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
  •  
  •  
2011/07/19 16:22

임의의 크기의 파일 생성기 분류없음2011/07/19 16:22


이외 dd 를 이용해 원하는 사이즈 값 만큼 생성해 내는 방법도 있다. 아래의 예는,
/dev/zero 를 이용해 test.bin 을 생성하는데, 그 사이즈는 50 메가 이다.


# time dd if=/dev/zero of=test.bin bs=50000000 count=1
1+0 records in
1+0 records out
50000000 bytes (50 MB) copied, 0.326928 s, 153 MB/s

real    0m0.346s
user    0m0.000s
sys     0m0.136s


초당 153M가 나왔고, 0.3 초 정도 걸렸다. 이런 방법들은 디스크 성능 측정에 유용하기도 하고, 패킷 전송률 같은 것을 테스트 할때도 임의의 데이터 파일을 생성해 전송해 보는데도 유용하다.

Windows의 경우:
fsutil file createnew <filename> <size_in_byte>
Linux의 경우:
dd if=/dev/zero of=<filename> bs=<block_size> count=<count>

※참조 : http://www.packetinside.com/2010/12/blog-post_27.html
저작자 표시
Posted by 보안인
2011/07/04 22:35

우분투 Ubuntu 10.04 jdk 설치 리눅스 상식2011/07/04 22:35

jdk, jre 설치

 
apt-get으로 설치한다.

sudo apt-get install sun-java6-jdk

 

//ubuntu 10 이상 현재 달라진 점:

아래와 같은 메시지를 받을 수 있다.

 패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
sun-java6-jdk 패키지를 사용할 수 없습니다.  하지만 다른 패키지가 참조하고 있습니다.
해당 패키지가 누락되었거나 지워졌다는 뜻입니다. 아니면 또 다른 곳에서
패키지를 받아와야 하는 경우일 수도 있습니다.

E: 'sun-java6-jdk' 패키지는 설치할 수 있는 후보가 없습니다

openjdk로 밀고있는 듯 하다.

partner repository 경로 추가.

sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"

소스까지 하고싶으면

sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu maverick partner"

해준뒤

sudo apt-get update

이러면 갱신된 레퍼지토리로 업데이트작업함.

이후에

sudo apt-get install sun-java6-jdk

해주면 SUN java를 설치할 수 있다.

 

 

java 설치된 디렉토리(JAVA_HOME):

/usr/lib/jvm/java-6-sun

JAVA 실행파일의 alias 위치:

/usr/bin/java, /usr/bin/javac 등등..

위 alias를 따라가보면

/etc/alternatives/java 로 실행되므로 기본 자바 실행의 연결이 gcj나 openjdk 등이 아닌 이번에 새로 설치한

SUN사의 jdk를 사용하고 있다는 것을 알 수 있다.

 

이걸 구체적으로 알아보려면 다음과 같이 확인해볼 수 있다.

 sudo update-alternatives --config java

1,2,3 과 같이 여러 개가 나오면

 java-6-sun 이름이 있는 것으로 선택을 바꿔준다.


※참조 : http://ammoguy.springnote.com/pages/354463?print=1

저작자 표시
Posted by 보안인
2011/03/04 00:08

vTPM Description 분류없음2011/03/04 00:08


 

vTPM Description

 

 

  We designed a virtual TPM facility in software that provides TPM functionality to virtual machines. This section first describes the structure of the vTPM and the overall system design. It proceeds with describing our extensions to the TPM 1.2 command set to support virtualization of the TPM. Then it introduces our protocol for virtual TPM migration and concludes with considering security aspects of the vTPM platforms and run-time environments involved in the migration.

  Figure 1 illustrates the vTPM building blocks and their relationship. The overall vTPM facility is composed of a vTPM manager and a number of vTPM instances. Each vTPM instance implements the full TCG TPM 1.2 specification [11]. Each virtual machine that needs TPM functionality is assigned its own vTPM instance.

  The vTPM manager performs functions such as creating vTPM instances and multiplexing requests from virtual machines to their associated vTPM instances. Virtual machines communicate with the vTPM using a split device-driver model where a client-side driver runs inside each virtual machine that wants to access a virtual TPM instance.

The server-side driver runs in the virtual machine hosting the vTPM.


출처 :
 vTPM: Virtualizing the Trusted Platform Module
Stefan Berger Ram´on C´aceres Kenneth A. Goldman
Ronald Perez Reiner Sailer Leendert van Doorn
{stefanb, caceres, kgoldman, ronpz, sailer, leendert}@us.ibm.com
IBM T. J. Watson Research Center
Hawthorne, NY 10532 USA

저작자 표시
Posted by 보안인