Setting up a Mac VM inside Windows 7

# February 2, 2012 - 1:16 by
Last Update: 4.2.2012 - 17:48

1. Intro

Because of some changes in my company I now have to code for iOS. This is why I need to learn Cocoa (the programming language for developing iOS  software). So tonight I have set up a virtual machine with Mac OS X Lion 10.7.2 to play a little bit around with Xcode – the preferred IDE.

Till now I thought setting up a Mac-VM is very difficult and hard to obtain but it was very easy and I hadn´t any problems. To help all you guys out there that like to do the same, here is my how to ;-)

For this how to I assume that you have already played around with VMware and also know how to open a terminal window in Mac OS X.

2. Getting the software

  • For the virtualization I have used a VMware Workstation 7.0.0, can´t say if there are problems if you use the Fusion or the Player, if you like to test it I would appreciate a comment about your  experience ;-)
  • The next thing you need ist the “Mac OS X Lion Bootable .vmdk (For VMware)“, google it, download it – should around 4, 12GB
  • VMware unlocker: mirror1 mirror2 (contains unlocker for VMware Fusion, Player & Workstation – Linux only for Workstation)
  • VMware guest installation: mirror
  • Audio driver: mirror
  • Mac Os X update to 10.7.2 from Apple: link

3. Prepare

  • Execute the VMware unlocker (Mac OS X Lion VMware Files.exe), it extracts the unlocker and a predefined VM.
  • Your directory should now look like this (Mac Os X update to 10.7.2 isn´t listed  - sorry!):
  • Now, if you have installed the Workstation run the windows.bat in the directory: VMware Workstation Unlocker – Windows. If you use Fusion, Player or Linux take the appropriate folder ;-)
  • A little bit intel, what are you installing?
    This is in the windows.bat

    net stop vmauthdservice
    
    "%~dpn0_32.exe" %*
    
    net start vmauthdservice

    The windows.bat stops the VMware service, installs a patch and then starts the service again. At this point you have to trust the patch that he does what you’re expecting and isn´t a virus..

  • Now go to the Mac OS X Lion folder and double-click the Mac OS X Lion.vmx that should start the VMware – likewise you can start the VMware first and browse for the file.
  • Now you see the VM in VMware:
  • Edit the VM settings and add another (existing) hard drive, the Mac OS X Lion Installer.vmdk that you have downloaded earlier – around 4,12GB, you remember?
  • Also edit the CD device and add the darwin_snow.iso
  • Now it should look like this:

4. Installation

  • Start the VM!
  • Select “I moved it
  • If VMware asks you to repair the hard drive, let VMware do it.
  • Now follow the Mac OS X instructions for installing the OS.
  • When you´r done and reached the Mac desktop open the CD drive of your VM and install the VMware Tools. After that you have to reboot. From now on the resolution will automatic fitt to the screen size and a share drive shows up on your Mac desktop. If you now setting up a share in your VMware Workstation you can reach it from within the VM via that share drive – cool, isn´t it :-)
  • Now shutdown the VM, make a snapshot, add a soundcard (in the settings) and power it on again, we will now update the VM to 10.7.2!

5. Update to Mac OS X Lion 10.7.2

  • After booting you have to open a terminal window in the Mac VM.
  • We now backup a file - the dot at the end isn´t accidentally!
    cp -r /System/Library/Extensions/AppleLSIFusionMPT.kext .
  • Copy the Mac Os X update to 10.7.2 to your share drive and install it within the VM. Don´t reboot!
  • Now we remove the AppleLSIFusionMPT.kext that was created by the installation and replace it with our backup file:
    sudo rm -rf /System/Library/Extensions/AppleLSIFusionMPT.kext
    
    sudo cp -r AppleLSIFusionMPT.kext /System/Library/Extensions
  • Now reboot the VM, copy the EnsoniqAudioPCI_v1.0.3_Lion.pkg to the share and install it within the VM. After a reboot you should have working sound :-)
  • If your screen resolution won´t change dynamically any more it´s because of the system update, you can fix it by installing the VMware tools again ;-)

6. Clean up

  • Shutdown your VM. Remove the second hard drive and the mounted CD-iso, you do not need them any more.
  • Take a final snapshot!
  • Now you hopefully have a working Mac OS X Lion 10.7.2 VM in the Mac OS X Lion directory, feel free to move your VM to another location of your hard drive and remove/backup the installation files.

7. Enjoy

Slitaz-Server manuell aufsetzen

# December 25, 2010 - 15:45 by
Last Update: 7.12.2011 - 20:19

Slitaz-Server aufsetzen

In diesem Post möchte ich erklären wie man einen Server mit der Linux-Distribution Slitaz manuell aufsetzt.

Verwendete Komponenten

Mein Server besteht aus einem NOVA-4899:

  • 300 MHz CPU
  • 256 MB RAM
  • CompactFlash Cardreader intern + CF-Karte mit 128MB
  • CD-Laufwerk

Die verwendete Slitaz-ISO ist:

slitaz-3.0-base.iso [8.0M] – Base system in text mode and including useful commandline tools.

Installation

Zuerst brennen wir die Live-CD. Danach booten wir mit Hilfe von ihr und loggen uns mit Username: root und Passwort: root ein.

Partitionierung

Via

fdisk -l

lässt man sich nun alle Festplatten + Partitionen ausgeben. In meinem Fall wird die CF-Karte erkannt und als

/dev/hdc

ausgegeben.

Nun geht es an das Partitionieren, mit

fdisk /dev/hdc

starten wir fdisk mit meine zu Partitionierenden Festplatte. Als nächstes legen wir eine primäre Partition im ext3-Format an (Defaultformat bei dem erstellen einer Partition via fdisk - ID 83), und machen sie durch ein Boot-Flag bootbar.

Fdisk-Tastenkürzel:

D – Partition Löschen (delete)
L – Partitions-ID nummer anzeigen (list)
M – Online-Hilfe (menu)
N – neue Partition anlegen (new)
P – Partitonsliste anzeigen (print)
Q – Programm beenden (ohne Partitonstabelle zu verändern; quit)
T – Partitionstabelle überprüfen (verify)
W Partitionstabelle ändern (write)

Formatierung

Nachdem wir die Partition angelegt haben formatieren wir sie noch (hdc1 ist die erste Partition auf der Festplatte hdc)

mkfs.ext3 /dev/hdc1

Systeminstallation

Danach mounten wir die Partition sowie das CD-Laufwerk:

mount /dev/hdc1 /mnt/
mount /dev/cdrom /media/cdrom

Erstellen das Bootverzeichniss auf unserer neuen Festplatte, kopieren die Systemdaten auf die Festplatte, wechseln mit unserem aktuelle Verzeichnis auf die Festplatte und extrahieren die Systemdaten, löschen nicht mehr benötigtes Archiv (mit der Tabulatortaste lassen sich Befehle, Verzeichnisse,Pfade vervollständigen).

mkdir /mnt/boot
mkdir /mnt/boot/grub

cp -a /media/cdrom/boot/vmlinuz-... /mnt/boot/
cp /media/cdrom/boot/rootfs.gz /mnt/

cd /mnt/
lzma d rootfs.gz -so | cpio -id
rm rootfs.gz init

Bootloader installieren

Als Bootloader verwenden wir GRUB. Dieser muss von dem Livesystem auf die Festplatte kopiert werden und dort dann installiert werden. Zuerst der Kopiervorgang:

cp /usr/lib/grub/i386-pc/* /mnt/boot/grub/

Menu.lst erstellen

Zuerst wechseln wir in das Verzeichnis von Grub und legen die menu.lst an. In dieser Datei wird angegeben was Grub booten soll, hier können später auch weitere Systeme einegtragen werden. (‘a’, ‘Esc’, ‘:wq’ sind Befehle für den Texteditor namens Vi)

cd /mnt/boot/grub/
vi menu.lst
i
timeout 5
title Slitaz
root (hd0,0)
kernel /boot/vmlinuz-... root=/dev/hdc1
Esc
:wq

Installation

Danach starten wir Grub und legen die Festplatte fest auf der Grub Installiert werden soll, in meinem Fall ist das die erste Festplatte und davon die erste Partition. Danach überprüfen wir mit find ob Grub alle benötigten Daten findet, um zum Schluss Grub den Befehl zur Installation zu geben.

grub
root (hd0,0)
find /boot/grub/stage1
    found (hd0,0)

setup (hd0)

Das wars! Jetzt noch mit

reboot

neustarten und sich freuen wenn es keine unerwarteten Fehler gibt ;-)

Konfiguration des Domänencontroller unter Windows

# November 18, 2010 - 10:55 by
Last Update: 24.12.2011 - 20:16

Auf der Seite wintotal.de ist eine gute Beschreibung wie man dies erledigt. Anbei der Link sowie der Text als *.doc falls der Link offline geht.

Konfiguration von DNS-/WINS- und DHCP-Serverdienst Einstellungen auf den Clients + Hineinheben der Clients in die Domäne:

Link: http://www.wintotal.de/artikel/artikel-2005/80-windows-server-2003-konfiguration-als-domaenencontroller-und-weitere-moeglichkeiten-teil-3.html

Konfiguration des DNS
Konfiguration des DNS
Konfiguration des DNS.docx
486.4 KiB
139 Downloads
Details...

Informations About SharePoint

# by
Last Update: 17.12.2011 - 15:09

Eine kleine Zusammenstellung von mir:

Infos SharePoint 2007
Infos SharePoint 2007
Informations About SharePoint.doc
428.5 KiB
124 Downloads
Details...

SharePoint 2007 Installation

# November 4, 2010 - 9:25 by
Last Update: 17.12.2011 - 15:11

Vorgehensweise bei der Installation:

Server aufsetzen:

1.       Server 2003 aufsetzen

2.       Feste IP und Namen des Servers einrichten

3.       ActiveDirectory installieren (dcpromo)

4.       (Test)User anlegen

5.       DNS/Wins installieren und konfigurieren (*.doc link)

6.       POP3/SMTP installieren

7.       POP3 Postfächer anlegen

8.       IIS installieren

9.       RDP Freigabe konfigurieren (optional)

10.   SQL 2008 installieren (Option: “Berichtsserver installieren, aber nicht Konfigurieren.” auswählen)

11.   Office 2007 installieren (optional)

12.   MOSS 2007 SP2 installieren (Benutzerdefiniert: Vollständig)

13.   Adobe iFilter installieren

14.   Adobe Icon in MOSS einpflegen:

15.   SQL RAM begrenzen

Server konfigurieren:

Immer DOMAIN\ vor username
Anwendungsverw->InfoPath-> SSL häckchen weg

Vorgänge->Features für vorhandene Websites aktivieren / da wo steht „Benötigtes Feature“ aktivieren (werden beim aktivieren konfiguriert)

SharedServices1 installieren

Verwendung GemeinsammerDienste:

  • Neuer SSP

o   NeueWebanwendung erstellen

§  Port ändern, nicht auf 80 belassen (Range?)

§  Anwendungspool: Konfigurierbar: user/pw

§  Eindeutiger Datenbankname

o   MySite erstellen

§  Gleich wie oben

Mails:

Vorgänge -> Einstellungen für ausgehende E-Mails-> SMTP = PC-Name oder IP

Webanwendung (eigentliche Seite) erstellen:

  • Anwendungsverwaltung

o   Webanwendung erstellen:

§  Port: 80

§  DB-Name -> eindeutig!

o   Webseitsammlung erstellen:

§  Webanwendung PRÜFEN!

INFO zu Bilderwebparts

Auf bearbeitung-> löschen gehen, das X-Icon löscht nur den link auf das Bild, Bild bleibt in der SQL-DB!

SQL einstellen:

SQL-Managementstudio->Verbindungen->R-Maustaste->Eigenschaften->Arbeitsspeicher: BEGRENZEN ca. 50% des RAMS sonst kann der SQL-Server den Ram volllaufen lassen.

PDF ICON:

Bild nach: C:\Programme\Gemeinsame Dateien\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES

C:\Programme\Gemeinsame Dateien\Microsoft Shared\web server extensions\12\TEMPLATE\XML\DOCICON.xml editieren/hinzufügen:        <Mapping Key=”pdf” Value=”pdf.gif”/>

CMD: IISReset -  net stop osearch – net start osearch

SharedServices1->Suchverwaltung->Datentypen->NeuerTyp->PDF

 

Sever Templates anpassen:

Am besten vor Seiten erstellen – aufwand danach ist zu groß.
org. dabei nicht ersetzen, neuer ordner anlegen sonnst geht der support/garanty (auch für hw) flöten zudem können updates den server zerstören

Serverberechtigungen setzen:

(Team)Seiten anlegen:

Sharepoint 2007 install
Sharepoint 2007 install
SP2007 installieren.docx
16.7 KiB
119 Downloads
Details...