달력

5

« 2024/5 »

  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2009. 3. 13. 19:09

Leopard 시스템 리소스 etc2009. 3. 13. 19:09

'etc' 카테고리의 다른 글

MAC Pro ^ ^ , UEFI  (3) 2009.04.01
Leopard 시스템 리소스  (0) 2009.03.13
Don't try to hack my System.  (0) 2009.03.12
Don't try to hack my System.  (0) 2009.03.12
How to build Haiku on Mac OS X  (0) 2009.03.10
:
Posted by Ritz®™
2009. 3. 12. 01:08

Don't try to hack my System. etc2009. 3. 12. 01:08

Don't try to hack my System.

cfile3.uf@16270C4B4D0809D60D1195.jpg

'etc' 카테고리의 다른 글

Leopard 시스템 리소스  (0) 2009.03.13
Leopard 시스템 리소스  (1) 2009.03.13
Don't try to hack my System.  (0) 2009.03.12
How to build Haiku on Mac OS X  (0) 2009.03.10
Windows와 MAC의 역사  (0) 2009.03.10
:
Posted by Ritz®™
2009. 3. 12. 01:08

Don't try to hack my System. etc2009. 3. 12. 01:08

Don't try to hack my System.

cfile29.uf@196E840C4BB553AE4ACFF8.jpg

'etc' 카테고리의 다른 글

Leopard 시스템 리소스  (1) 2009.03.13
Don't try to hack my System.  (0) 2009.03.12
How to build Haiku on Mac OS X  (0) 2009.03.10
Windows와 MAC의 역사  (0) 2009.03.10
Windows와 MAC의 역사  (0) 2009.03.10
:
Posted by Ritz®™
2009. 3. 10. 23:13

How to build Haiku on Mac OS X etc2009. 3. 10. 23:13

Requirements

  • You will need the Xcode Tools: use the installer on your Mac OS X Install DVD, or download the latest version from Apple Developer Connection (free registration required).
  • You must be logged in as administrator to install some tools.
  • MacPorts will also be required (see Step 3 for installation tips)

Step 1: Case-sensitive disk image

The Mac OS file system, HFS+, is case-insensitive by default. This causes troubles during the
build of some Haiku components, because of wrong headers inclusion ("String.h" (from Haiku) instead of "string.h" (from the system) for instance).
If your Mac OS X partition is not in case-sensitive HFS+ (which is very likely), you need to create a case-sensitive disk image and put Haiku buildtools and source code on it.

1) Open Disk Utility (in /Application/Utilities)
2) Click "New Image", and enter the following parameters:

  • Volume name: You should enter a short name without special character or spaces.
  • Volume size: this is just a size limit. Do not worry, you can enter here a big value (20GB or more), only the consumed space will be used on your hard drive.
  • Volume format: Mac OS Extended (Case-sensitive, Journaled)
  • Encryption: You should say "none", unless you really want to slow down Haiku building…
  • Partitions: (Tiger users will not have this - just skip it): Choose No partition map.
  • Image format: Choose “sparse disk image”.

The image is automatically mounted on the Desktop. If you want to remount it later, just double-click on the image file.

Step 2: Fetching the buildtools and the Haiku source code

Open a Terminal (in /Application/Utilities), and enter:

cd /Volumes/Haiku/

"/Volumes/Haiku" refers here (and in all this tutorial) to the mounted disk image name. I named it "Haiku", so if you chose another name, use it instead of "Haiku" after "/Volumes/".

Checkout the buildtools:

svn checkout svn://svn.berlios.de/haiku/buildtools/trunk buildtools

[ Note to Tiger users: IIRC, Subversion is not available with Xcode 2.5. You have to install it manually. ]
And the sourcecode:

svn checkout svn://svn.berlios.de/haiku/haiku/trunk haiku

You should now have two folders "haiku" and "buildtools" into the mounted disk image.

Step 3: Install required software

First, install MacPorts (A standard Installer package is provided)
Close your Terminal, and enter in a new one:

sudo port install gnuregex gawk

(You will be prompted for the administrator password of the current account - Do not worry if nothing you type shows after the Password prompt, this is intended ;-) )

If you get an error "port: command not found", create/edit your .bash_profile file :

nano ~/.bash_profile

Add at the end of the file :

export PATH=/opt/local/bin:$PATH
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info

To save the file and quit the editor, type Ctrl-X, Y and Return.
You can now retry the port install... command in a new Terminal.

After MacPorts finished installing the tools, install the modified Haiku jam:

cd /Volumes/Haiku/buildtools/jam
make
sudo ./jam0 install
[Enter your password]
cd ..

Reopen a new Terminal, and enter jam -v.
You should get:

Jam 2.5-haiku-20080327. OS=MACOSX. Copyright 1993-2002 Christopher Seiwald.

Step 4: Let's Patch

With your favorite text editor, open the file [Mounted Disk Image]/buildtools/legacy/gcc/config.guess.
Find (line 522):

    *:FreeBSD:*:*)
        if test -x /usr/bin/objformat -a "elf" = "`/usr/bin/objformat`"; then
          echo ${UNAME_MACHINE}-unknown-freebsdelf
        else
	  echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
      fi
	exit 0 ;;

Add before:

    *:Darwin:*:*)
    echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
    exit 0 ;;

Warning! When you copy-paste preformatted text from a web page, some versions of Safari replace every space with a no-break space.
You can use the search/replace function of your text editor to replaces these “spaces” with real ones. (or copy the text by hand… or use another browser…)

Save the file, and open [Mounted Disk Image]/buildtools/legacy/gcc/Makefile.in.
Replace (line 144):

MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \
	then echo $$r/texinfo/makeinfo/makeinfo ; \
	else echo makeinfo ; fi`

By:

MAKEINFO = `if which -s makeinfo ; \
	then echo makeinfo ; \
	else echo $$r/texinfo/makeinfo/makeinfo ; fi`

These patches are from the haiku-development mailing list, thank to their authors !

Step 5: Building the buildtools ;-)

Now, you can compile GCC2 with:

cd /Volumes/Haiku/haiku
./configure --build-cross-tools ../buildtools

If you want to build Haiku with GCC4, use :

./configure --build-cross-tools-gcc4 x86 ../buildtools/

If you do not now which one you should use, choose gcc2 : Original BeOS R5 binaries (and many Haiku optional packages) will not run on a gcc4 build.

./configure has some more options: use ./configure --help to list them.

After a (long) time, you should get:

binutils and gcc for cross compilation have been built successfully!

Step 6: Building Haiku

Since on-disk install from Mac OS X does not seems possible at this time, you will need to use an emulation or virtualisation software.

Instructions for VMWare Fusion:

The command:

cd /Volumes/Haiku/haiku
jam -q haiku-vmware-image

will build a VMWare disk image: [Mounted Disk Image]/haiku/generated/haiku.vmdk.
To use it, follow these steps:

  1. Create a folder at the root of the disk image.
  2. Copy [Mounted Disk Image]/3rdparty/vmware/haiku.vmx inside this folder, and edit the copy.
  3. Change ide0:0.fileName = "haiku.vmdk" to ide0:0.fileName = "../haiku/generated/haiku.vmdk". Save the file.
  4. Double-clicking on the file should start VMWare Fusion and launch Haiku.

VMWare will create some files in the folder you put haiku.vmx.
If you want easy access to the virtual machine file, make an alias of the haiku.vmx file (or put it into the Dock).
Lanching this alias will mount the disk image and start the VM, automatically. Cool, isn't it ? ;-)

Instructions for other virtualisation/emulation software:

I haven't tested all of them, but Haiku should run in Q (free), Parallels Desktop (commercial) or VirtualBox (free).
Some of them (Parallels, …) can use the VMWare disk image (see above).
For the others, you can create a raw disk image with:

cd /Volumes/Haiku/haiku
jam haiku-image

The image will be created in [Mounted Disk Image]/haiku/generated/haiku.image.

'etc' 카테고리의 다른 글

Don't try to hack my System.  (0) 2009.03.12
Don't try to hack my System.  (0) 2009.03.12
Windows와 MAC의 역사  (0) 2009.03.10
Windows와 MAC의 역사  (0) 2009.03.10
윈도우즈에서 걱정하는 백신 프로그램  (1) 2009.03.10
:
Posted by Ritz®™
2009. 3. 10. 23:10

Windows와 MAC의 역사 etc2009. 3. 10. 23:10

MACOS와 WINDOWS의 역사를 간단명료하게 잘 설명해 두었군요.



사실 Windows NT 나올시에 Digital Equipment Corporation사의 수석 개발자가 빌 게이츠와 손을 잡고 마이크로소프트사로 옮겨 D.E.C 사의 VMS 의 GUI버전인 WNT를 출시하였을 때는 반신반의 했었지요.

VMS  -->  WNT
WNT

운영체제 이름에도 저렇게 교묘하게 VMS보다는 차세대 운영체제라는 개념을 집어 넣었습니다.
무슨 뜻인지 아시겠죠?

아키텍처 구조 역시 VMS와 흡사하여 D.E.C.사의 직원들은 나름 허탈해 했을 것도 같습니다만,,,

그 당시에 D.E.C.은 64비트 기반의 알파칩을 개발하여 오라클사와 손잡고 연일 D.E.C 64비트 알파칩 기반의 OpenVMS나 Ultrix기반에서 운영하는 오라클 DB가 제일 빠르다라는 기사가 나오고 있었고 
IBM사에서는 머리(CPU)만 64비트면 뭐할라구?  손발이 32비트인데..따라서 현재는 32비트 CPU로서 충분하다." 라고 응수하는 기사가 자주 나오곤 했었지요.  ^ ^

'etc' 카테고리의 다른 글

Don't try to hack my System.  (0) 2009.03.12
How to build Haiku on Mac OS X  (0) 2009.03.10
Windows와 MAC의 역사  (0) 2009.03.10
윈도우즈에서 걱정하는 백신 프로그램  (1) 2009.03.10
MAC용 외장형 하드디스크  (1) 2009.03.10
:
Posted by Ritz®™
2009. 3. 10. 23:10

Windows와 MAC의 역사 etc2009. 3. 10. 23:10

MACOS와 WINDOWS의 역사를 간단명료하게 잘 설명해 두었군요.



사실 Windows NT 나올시에 Digital Equipment Corporation사의 수석 개발자가 빌 게이츠와 손을 잡고 마이크로소프트사로 옮겨 D.E.C 사의 VMS 의 GUI버전인 WNT를 출시하였을 때는 반신반의 했었지요.

VMS  -->  WNT
WNT

운영체제 이름에도 저렇게 교묘하게 VMS보다는 차세대 운영체제라는 개념을 집어 넣었습니다.
무슨 뜻인지 아시겠죠?

아키텍처 구조 역시 VMS와 흡사하여 D.E.C.사의 직원들은 나름 허탈해 했을 것도 같습니다만,,,

그 당시에 D.E.C.은 64비트 기반의 알파칩을 개발하여 오라클사와 손잡고 연일 D.E.C 64비트 알파칩 기반의 OpenVMS나 Ultrix기반에서 운영하는 오라클 DB가 제일 빠르다라는 기사가 나오고 있었고 
IBM사에서는 머리(CPU)만 64비트면 뭐할라구?  손발이 32비트인데..따라서 현재는 32비트 CPU로서 충분하다." 라고 응수하는 기사가 자주 나오곤 했었지요.  ^ ^
:
Posted by Ritz®™
2009. 3. 10. 22:57

윈도우즈에서 걱정하는 백신 프로그램 etc2009. 3. 10. 22:57

PC에 맥을 설치하면서 백신 프로그램 뭘로 쓸까?하는 고민을 날려 버렸습니다.

아직까지는 MAC에서는 이렇다할 바이러스가 없어서 순간순간 백신 프로그램을 뭘 깔아야 하나? 업데이트 했었던가?라는 윈도우즈 환각 증상이 깜짝 깜짝 놀래키기는 합니다만,,,,,,헉!!
:
Posted by Ritz®™
2009. 3. 10. 16:06

MAC용 외장형 하드디스크 etc2009. 3. 10. 16:06

USB용 하드디스크는 기본적으로 지원이 잘 됩니다. 
대용량의 파일을 복사할때는 속도 문제가 좀 있지요. 
하지만 USB용 하드디스크로 부팅하여 사용할 수 있을정도로 가능합니다. 
조금더 욕심을 내자면 IEE1349, E-STAT까지 접속방식이 지원되고 컴퓨터 보드에서 지원만 된다면 E-SATA로 부팅이 가능하구요. 
IEE1349로 부팅을 지원하는 메인보드가 거의 없으므로 1EEE1349로 부팅하기에는 무리가 있고 단지 복사나 데이타 저장용으로 가능합니다.

다음과 같이 요약할 수 있겠군요.

1. USB접속방식의 하드디스크
   - 이건 요즈음 디자인도 깔끔하고 사이즈가 작은 제품들이 많이 판매되고 있습니다.

2. USB, E-SATA 접속방식의 하드디스크
   - 이것두 디자인과 사이즈를 고민하시면 될 것 같구요.
3. USB, IEE1349, E-SATA 접속방식의 하드디스크
   - 보통 이 세가지 접속방식을 제공하는 제품들은 사이즈가 위 두제품군들보다 조금 큽니다.

* 반드시 매장에서 직접확인하시고 특히 사이즈나 접속방식, 물론 내부 하드디스크 접속방식은 SATA 방식이 좋음.
IDE방식은 구형 IDE방식의 하드디스크가 많을 경우 케이스만 구입하면 좋음.

참고 상품



새로텍 FHD-354, USB, IEE1349, E-SATA 지원되지만 사이즈가 큰것이 흠이고 다른 사용자들 말로는 문제점이 많이 발견되고 있지만 본인은 아주 잘 이용하고 있음.

:
Posted by Ritz®™