'Computer/Linux'에 해당되는 글 19건
- Xen Geust Image 생성 | 2011/07/27
- Opennebula Installation Guide | 2011/07/26
- Ubuntu에 Xen 설치하기 | 2011/05/17
- ARM Reference | 2010/07/06
- gcc built-in predefined macro (2) | 2010/06/21
- ARM cross compile toolchain | 2010/03/05
- [Ubuntu] X11 forwarding시에 인증 에러 해결법 | 2009/09/16
- iTPM driver | 2009/07/23
- blktrace시 debug filesystem 추가하기 (2) | 2008/11/12
- [Linux] Disk Driver 추가하기 | 2008/11/12
TPM AIK 생성하기 :: 2012/04/05 20:11
TPM을 이용하여 AIK를 생성하려면 private ca를 이용해서 받아야 한다.
이를 위해 http://www.privacyca.com/ 에서 제공하는 도구를 이용하여 AIK를 받는 소스를 수정.
컴파일
$ gcc -o identity identity.c -lcurl -ltspi
AIK 생성하기
$ ./identity [-p password] label outkeyblobfile outcertfile
원래 소스에서 수정한 것은 다음과 같다.
1. SRK 패스워드
tpm_takeownership을 할 때 SRK를 설정하지 않아서 (아무것도 입력하지 않고 enter를 입력함),
SRK가 NULL로 되어 있어서 이것을 적용함.
만약 SRK를 well-known scret으로 설정하려면 tpm_takeownership -z 옵션을 주면 됨
2. TPM 소유자 패스워드
tpm_takeowndership을 실행했을 때 -u 옵션을 주지 않으면 패스워드가 유니코드로 설정되지 않는다.
이를 위해서 유니코드로 변환하는 부분을 제거
참고 : http://www.privacyca.com/
Ubuntu 11.10에서 Xen 4.1 설치하기 :: 2012/03/27 21:26
Linux 3.0부터 xen과 통합이 되어서 설치가 무지 간단해 졌다.
관리도구도 설치를 하려면
$ sudo apt-get install virtinst virt-viewer virt-manager
이후에 부팅하고
/etc/xen/xend-config.sxp 에서 xend-unix-server yes 설정만 해 주면 끝.
참고 사이트 : http://jinutechworld.blogspot.com/2011/12/install-xen-41-on-ubuntu-1110.html
http://www.beyondlinux.com/2011/11/02/install-xen-4-1-and-setup-your-cloud-os-on-ubuntu-11-10/
virt-manager 사용법 : http://virt-tools.org/learning/start-install-with-virt-manager/
Xen Geust Image 생성 :: 2011/07/27 16:33
apt-get install libfile-slurp-perl libtext-template-perl perl-doc debootstrap libappconfig-perl
sudo xen-create-image --passwd --hostname=guest --ip=143.248.92.56 --gateway=143.248.92.1 --netmask=255.255.255.0 --memory=512M --size=8Gb --force --dist=hardy --mirror=http://archive.ubuntu.com/ubuntu/ --dir=<dest>
Opennebula Installation Guide :: 2011/07/26 14:11
http://marianmi.comp.nus.edu.sg/2010/08/opennebula-installation-and-configuration-guide.php
========================================================
nfs로 clone을 할 경우 경로명이 맞지 않아서 VM launch가 안되는 문제 발생.
lib/tm_commands/nfs/tm_clone.sh 에서
fix_paths에 comment를 추가해 준다. (지운다)
Ubuntu에 Xen 설치하기 :: 2011/05/17 18:36
기본 필요 패키지.
sudo apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl1.2-dev libjpeg62-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison flex ocamlduce gettext libc6-dev-i386
자세한 순서는 아래 링크 참조
https://help.ubuntu.com/community/Xen
수정 : 4.1.2 버전 패키지 추가
ARM Reference :: 2010/07/06 12:54
gcc built-in predefined macro :: 2010/06/21 21:19
x86용과 arm 용에서 컴파일러의 동작이 달라서 찾다가 보니 preprocessor에서부터 달라서 확인해 보니,
gcc 안에 이미 predefined 된 macro가 존재하고 있었다.
이것을 확인하는 방법!
|
# echo | gcc -E -dM - |
ARM cross compile toolchain :: 2010/03/05 21:53
크로스 컴파일 할때마다 찾아보고, 그 때마다 문제도 계속 다른 크로스 컴파일...
그래도 다시 한번 정리해 봅니다.
이번은 ubuntu 9.10에서 컴파일 하였습니다.
데비안에서 사용할 수 있는 스크립트를 구해서 조금 수정하였습니다.
출처 : http://www.hermann-uwe.de/blog/building-an-arm-cross-toolchain-with-binutils-gcc-newlib-and-gdb-from-source
사용법은 먼저 설치에 필요한 패키지를 먼저 설치합니다.
$ apt-get install flex bison libgmp3-dev libmpfr-dev autoconf texinfo build-essential libncurses5-dev
스크립트를 열어서 설치를 원하는 버젼으로 수정하고 설치 폴더를 설정한 이후에 스크립트를 실행. 끝!
[Ubuntu] X11 forwarding시에 인증 에러 해결법 :: 2009/09/16 16:13
ssh -X user@domain
위와 같은 명령어로 X11 forwarding이 가능하다. 하지만 간혹 인증 에러가 발생하는 경우가 있는데 이때의 해결책은 다음과 같다.
1. Make sure you are not running out of disk space
Run df and make sure you have sufficient disk space:$ df -H
If you are low on disk space remove unnecessary files from your system.
2. Make sure ~/.Xauthority owned by you
Run following command to find ownweship:
$ ls -l ~/.Xauthority
Run chown and chmod to fix permission problems
$ chown user:group ~/.Xauthority
$ chmod 0600 ~/.Xauthority
Replace user:group with your actual username and groupname.
3. Make sure X11 SSHD Forwarding Enabled
Make sure following line exists in sshd_config file:
$ grep X11Forwarding /etc/ssh/sshd_config
Sample output:
X11Forwarding yes
If X11 disabled add following line to sshd_cofing and restart ssh server:
X11Forwarding yes
4. Make sure X11 client forwarding enabled
Make sure your local ssh_config has following lines:Host *
ForwardX11 yes출처 : http://www.cyberciti.biz/faq/x11-connection-rejected-because-of-wrong-authentication/
identity.c
armref.pdf


