Senin, 23 Mei 2011

How to create Windows XP Live CD, complete with preinstalled programs

Update: Looking for Windows 7 Live CD?

To create a Windows XP Live CD we will require

1. Bart PEbuilder
2. A CD burner like Nero
3. A bootable Windows XP CD and
4. Some pebuilder plugins to customize the CD.

Step 1: Download PeBuilder from here and install it. Make sure you have enough free space on the drive where you install the program. After you have finished adding all programs it will create an ISO to be burned into a disk. The size of the ISO will depend upon how many programs you add to your live CD. I would recommend atleast 700MB of free space.

Step 2: You may want to set a wallpaper that will appear on the desktop when you boot the CD. For this open the folder where you have installed PEbuilder and replace the file bartpe.bmp with the wallpaper of your choice.

Step 3: Download XPE plugin from here (direct download link). It's the GUI shell of the XP Live CD that will create the XP start button and taskbar. You are free to download as many plugin (applications) you want. Currently there are more than 500 applications to choose from. Both freewares and commercial applications are available. Antivirus programs like Kaspersky, NOD32, Avast; burning program Nero; media players like VLC; OpenOffice, Foxit PDF reader, Acrobat Reader etc are available.

Pebuilder plugins repository
More Plugins here

Step 4: After you have finished downloading all your favourite programs, open PEbuider and specify the source path to the Windows XP installation bootable CD. You can copy the CD to your hard disk and point the source to the copied file.



Step 5: Click Plugins and add all the plugins you have downloaded. Since we have added XPE, disable nu2shell and the startup group from the list of plugins.

Step 6: Specify the ISO image file and click Build. The program will integrate the plugins and create an ISO image.

Step7: Burn the image into a disk using any burning software and your live CD is ready.



The Live CD Desktop



Running Abiword



Running VLC Media Player

PXE dan Kickstart, Instalasi Otomatis untuk Linux melalui WDS

Hari ini saya memutuskan untuk instalasi setup otomatis untuk distro Linux (RHEL, Fedora, CentOS), mirip dengan bagaimana kita menyebarkan kita instalasi Windows via PXE. Karena kami sudah memiliki WDS berjalan untuk menginstal Windows, itu hanya masalah konfigurasi ulang WDS, menyiapkan struktur yang diperlukan dan file kickstart untuk instalasi otomatis kami Linux. Sementara saya tidak mencakup proses WDS instalasi awal, saya akan mencoba untuk membahas langkah-langkah yang dilakukan setelah menginstal WDS dasar (asli atau campuran).

Apa yang anda butuhkan:

* Windows server WDS berjalan (dan bekerja melalui DHCP).
* Salinan terbaru dari SYSLINUX (diekstrak ke folder tempat pada server WDS).
* HTTP atau anonymous server FTP untuk menahan media instalasi anda.


Saat ketika aku boot komputer saya dengan PXE diaktifkan, saya diminta untuk memukul F12 untuk boot jaringan. Ketika saya tekan F12, saya diminta oleh "Boot Manager Windows" untuk memilih gambar boot saya yang saya setup pada WDS. Karena saya tidak dapat menginstal Linux gambar langsung menggunakan antarmuka WDS, gambar boot alternatif diperlukan. Itu adalah di mana SYSLINUX / pxelinux mengambil alih.

Pra-Setup

     Buat struktur direktori yang diperlukan di dalam direktori RemoteInstall WDS (ini ditentukan selama instalasi WDS).
         Di dalam folder x86 (RemoteInstall \ Boot x86 \ \), membuat folder berikut (termasuk pxelinux.cfg):
             conf
             img
             knl
             pxelinux.cfg

Menyiapkan Instalasi Media

     Setup server FTP untuk menahan media instalasi anda (HTTP bekerja juga): Saat ini ukuran rata-rata dari suatu distribusi Red Hat adalah tentang 5GB, jadi pastikan server yang Anda pilih akan memiliki ruang disk yang diperlukan. Anda akan membutuhkan media instalasi terpisah untuk kedua 32bit distribusi tertentu dan 64bit menginstal. Jika Anda ingin Fedora 9, CentOS 5.2, dan RHEL 5.2 gambar (baik 32bit dan 64bit), yang akan sekitar 30GB. Selama Anda tidak pengarsipan distribusi tua, ini seharusnya tidak menjadi masalah.
         Pada server FTP saya di root / path, saya membuat sebuah direktori untuk setiap media instalasi saya. Juga, menciptakan konvensi penamaan standar akan membantu mengedit konfigurasi file nantinya dan isu-isu sensitivitas kasus apapun. Contoh: nama direktori saya adalah DistroVersion_arc (Fedora9_32bit), karena anda akan lihat nanti.
         Copy seluruh instalasi dvd media untuk direktori yang sesuai Anda buat (bukan iso., ekstrak seluruh isinya).


Dalam root direktori FTP untuk media yang Anda disalin, membuat file kickstart (ks.cfg). (Contoh: ftp://ftpserver.domain.com/Fedora9_32bit/ks.cfg) Saya telah menyertakan file kickstart contoh di bagian bawah artikel ini.
     Setelah Anda telah menyalin media instalasi untuk distro ke server FTP Anda, Anda perlu menyalin 2 file dari bahwa media distro khusus untuk server WDS Anda.
         Dari (media instalasi \ images \ pxeboot) direktori, salin berikut:
             Salin vmlinuz ke direktori berikut ini di server WDS (RemoteInstall \ Boot \ x86 \ knl \). Ubah nama file ke nama yang mengidentifikasi seperti vmlinuz-fedora9-32bit.
             Initrd.img Salin ke direktori berikut ini di server WDS (RemoteInstall \ Boot \ x86 \ img \). Ubah nama file ke nama yang mengidentifikasi seperti initrd-fedora9-32bit.

Ketika tiba saatnya untuk mengkonfigurasi menu pilihan Anda, Anda perlu menentukan file-file untuk setiap versi / distro anda berencana untuk membuat tersedia.

Konfigurasi WDS

     Dari dalam arsip SYSLINUX download, salin file-file berikut:
         pxelinux.0 dari direktori (syslinux \ inti) untuk Anda (RemoteInstall \ Boot x86 \ \) direktori di server WDS.
         menu.c32 dan vesamenu.c32 dari (syslinux \ com32 \ menu) direktori untuk Anda (RemoteInstall\Boot x86 \ \) direktori di server WDS.
     Di dalam (RemoteInstall \ Boot \ \ x86) direktori, membuat salinan dari file berikut, mengubah nama mereka sesuai (Anda bisa copy paste kemudian mengganti nama):
         Membuat salinan dari pxeboot.n12, simpan sebagai pxeboot.0
         Membuat salinan dari abortpxe.com, simpan sebagai abortpxe.0
     Di dalam (RemoteInstall \ Boot \ x86 \ pxelinux.cfg \), buat file bernama default. Ini akan menjadi menu awal yang Anda lihat saat boot PXE, mengedit file tersebut dan berikan isi berikut:

    --------------------------------------------------------------------------------
# File: wdspath\RemoteInstall\Boot\x86\pxelinux.cfg\default
       # Default boot option to use
       DEFAULT menu.c32
       TIMEOUT 50
       # Prompt user for selection
       PROMPT 0
       # Menu Configuration
       MENU WIDTH 80
       MENU MARGIN 10
       MENU PASSWORDMARGIN 3
       MENU ROWS 12
       MENU TABMSGROW 18
       MENU CMDLINEROW 18
       MENU ENDROW 24
       MENU PASSWORDROW 11
       MENU TIMEOUTROW 20
       MENU TITLE Main Menu
 
       # Menus
       # Windows
 LABEL Windows
 MENU LABEL Windows Installer
 KERNEL pxeboot.0
       # x86
       LABEL x86
         MENU LABEL Linux 32bit Installs (x86)
         KERNEL menu.c32
         APPEND conf/x86.conf
       # x64
       LABEL x64
         MENU LABEL Linux 64bit Installs (x64)
         KERNEL menu.c32
         APPEND conf/x64.conf
 # Windows
 LABEL Exit
 MENU LABEL Exit
 KERNEL abortpxe.0
---------------------------------------------------------
 
Sekarang anda perlu menciptakan file-file sub-menu konfigurasi untuk 32 dan 64 
Anda menginstal bit yang Anda tetapkan di file default Anda 
(RemoteInstall\Boot\x86\conf\x86.conf dan RemoteInstall\Boot\x86\conf\x64.conf
masing-masing ). File-file ini akan daftar distro yang tersedia untuk menginstal,
dan path ke kernel disalin\file gambar, termasuk berkas kickstart Anda yang berisi
path untuk Anda FTP atau media instalasi HTTP. Setiap opsi harus menunjuk
ke kernel tertentu dan citra yang diciptakan dari media instalasi sebelumnya.     

-----------------------------------------------------------------------------

# File: wdspath\RemoteInstall\Boot\x86\conf\x86.conf
       # Default boot option to use
       DEFAULT menu.c32
       # Prompt user for selection
       PROMPT 0
       # Menu Configuration
       MENU WIDTH 80
       MENU MARGIN 10
       MENU PASSWORDMARGIN 3
       MENU ROWS 12
       MENU TABMSGROW 18
       MENU CMDLINEROW 18
       MENU ENDROW 24
       MENU PASSWORDROW 11
       MENU TIMEOUTROW 20
       MENU TITLE Linux32Bit (x86) OS Selection
       # Return to Main Menu
       LABEL MainMenu
         MENU DEFAULT
         MENU LABEL ^Main Menu
         KERNEL menu.c32
       #
       # Blank boots
       #
       LABEL Fedora 9 32bit
         MENU LABEL Fedora 9 32bit
         KERNEL knl/vmlinuz-fedora9-x86
         APPEND initrd=img/initrd-fedora9-x86.img  
                ks=ftp://ftpserver.mydomain.com/Fedora9_32bit/ks.cfg


--------------------------------------------------------------------------------------------

# File: wdspath\RemoteInstall\Boot\x86\conf\x64.conf
       # Default boot option to use
       DEFAULT menu.c32
       # Prompt user for selection
       PROMPT 0
       # Menu Configuration
       MENU WIDTH 80
       MENU MARGIN 10
       MENU PASSWORDMARGIN 3
       MENU ROWS 12
       MENU TABMSGROW 18
       MENU CMDLINEROW 18
       MENU ENDROW 24
       MENU PASSWORDROW 11
       MENU TIMEOUTROW 20
       MENU TITLE 64Bit (x64) OS Choice
       # Return to Main Menu
       LABEL MainMenu
         MENU DEFAULT
         MENU LABEL ^Main Menu
         KERNEL menu.c32
       #
       # Blank boots
       #
       LABEL CentOS 5.2 64bit
         MENU LABEL CentOS 5.2 64bit
         KERNEL knl/vmlinuz-centos52-x64
         APPEND initrd=img/initrd-centos52-x64.img ks=ftp://ftpserver.mydomain.com/CentOS52_64bit/ks.cfg
       LABEL Fedora 9 64bit
         MENU LABEL Fedora 9 64bit
         KERNEL knl/vmlinuz-fedora9-x64
         APPEND initrd=img/initrd-fedora9-x64.img ks=ftp://ftpserver.mydomain.com/Fedora9_64bit/ks.cfg
       LABEL RHEL 5.2 64bit
         MENU LABEL RHEL 5.2 64bit
         KERNEL knl/vmlinuz-rhel52-x64
         APPEND initrd=img/initrd-rhel52-x64.img ks=ftp://ftpserver.mydomain.com/RHEL52_64bit/ks.cfg
 ---------------------------------------------------------------------------------
 
Terakhir, set WDS untuk menggunakan boot image pxelinux.0. Jika Anda perlu untuk 
pergi ke boot image WDS normal, Anda bisa menggunakan opsi Windows Installer 
dibuat dalam menu default Anda.
     Buka Windows Deployment Services pada server WDS Anda. Klik kanan server -> Properties. Pada tab Boot, mengatur program Default boot untuk arsitektur x86 (Boot x86\ \ pxelinux.0), atau browse ke file pxelinux.0 kita buat sebelumnya. Anda bisa membiarkan arsitektur lain sendiri atau perubahan sesuai keinginan Anda.

**For Windows 2008 R2 installations you must set the bootimage via command-line as followed:

wdsutil /set-server /bootprogram:boot\x86\pxelinux.0 /Architecture:x86
wdsutil /set-server /bootprogram:boot\x86\pxelinux.0 /Architecture:x64
wdsutil /set-server /N12bootprogram:boot\x86\pxelinux.0 /Architecture:x86
wdsutil /set-server /N12bootprogram:boot\x86\pxelinux.0 /Architecture:x64
Contoh Kickstart File

Berikut adalah contoh berkas kickstart untuk Fedora 9. Untuk setiap distro baru yang saya biasanya melakukan instalasi cd dengan pilihan saya yang diinginkan, kemudian gunakan root / hasil /-anaconda cfg.ks untuk bantuan. Perhatikan bahwa file kickstart menetapkan jalur FTP media instalasi anda yang telah anda buat pada awal artikel ini.
#Version=F9
#32bit
install
text
url --url ftp://ftpserver.mydomain.com/Fedora9_32bit
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$X.qPQYdk$L.YRbuORBd30
firewall --disabled
authconfig --enableshadow --enablemd5 --passalgo=sha512
selinux --disabled
timezone America/Chicago
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
clearpart --all --drives=sda
part /boot --fstype ext3 --size=1000
part swap --size=2048
part / --fstype ext3 --size=1 --grow
%packages
@editors
@development-tools
@text-internet
@core
@base
@hardware-support
@admin-tools
grub
openldap
openldap-devel
openldap-client
net-snmp*
ntp
 
http://www.ohjeah.net/2008/09/24/pxe-and-kickstart-automated-installations-for-linux-via-wds/ 
http://www.edugeek.net/forums/o-s-deployment/7196-tips-beginners-4.html
 
 

Selasa, 17 Mei 2011

How To Setup Windows Deployment Services with PXELinux

Setting WDS PXELinux di Windows 2003 Server DHCP

Download syslinux from http://www.kernel.org/pub/linux/utils/boot/syslinux/
file aslinya adalah : syslinux-4.04.zip kemudian Extract dan copy file2 sbb:
syslinux\core\pxelinux.0
syslinux\com32\menu\vesamenu.c32
syslinux\com32\modules\chain.c32
contoh server saya lokasi D:\RemoteInstallnya\..................
dan copykan file2 tersebut ke masing2 folder berikut ini:

D:\RemoteInstall\Boot\x86\pxelinux.0
                                         \vesamenu.c32
                                         \chain.c32
D:\RemoteInstall\Boot\x64\pxelinux.0
                                         \vesamenu.c32
                                         \chain.c32
D:\RemoteInstall\Boot\$arch\pxelinux.0 -->rubah jadi pxelinux.com
                                           \vesamenu.c32
                                           \chain.c32

buatlah file text dan beri nama default isinya sbb :

DEFAULT      vesamenu.c32
PROMPT       0
NOESCAPE     0
ALLOWOPTIONS 0
# Timeout in units of 1/10 s
TIMEOUT 300
MENU MARGIN 10
MENU ROWS 16
MENU TABMSGROW 21
MENU TIMEOUTROW 26
MENU COLOR BORDER 30;44  #20ffffff #00000000 none
MENU COLOR SCROLLBAR 30;44  #20ffffff #00000000 none
MENU COLOR TITLE 0   #ffffffff #00000000 none
MENU COLOR SEL   30;47  #40000000 #20ffffff
MENU BACKGROUND MyMenuBackgroundPicture640x480.jpg
MENU TITLE PXE Boot Menu
#---
LABEL wds
MENU LABEL Windows Deployment Services
KERNEL pxeboot.0
#---
LABEL Abort
MENU LABEL AbortPXE
Kernel abortpxe.0
#---
LABEL local 
MENU DEFAULT
MENU LABEL Boot from Harddisk
LOCALBOOT 0
Type 0x80



buatlah folder barudan copykan file DEFAULT ke folder berikut ini  :
D:\RemoteInstall\Boot\x86\pxelinux.cfg\default
D:\RemoteInstall\Boot\x64\pxelinux.cfg\default

di folder :
D:\RemoteInstall\Boot\x86\file: pxeboot.n12   jadi pxeboot.0 (jangan lupa copy file dulu biar tdk mumet)
                                               abortpxe.com jadi abortpxe.0  
D:\RemoteInstall\Boot\x64\file: pxeboot.n12   jadi pxeboot.0 (jangan lupa copy file dulu biar tdk mumet)
                                               abortpxe.com jadi abortpxe.0
buat folder lagi di:
D:\RemoteInstall\Boot\x86\Linux
D:\RemoteInstall\Boot\x64\Linux

Buka Windows Deployment Services Console,
Klik-kanan di Server and Select Properties,
Dari Boot Tab change the default boot program untuk (x86 dan x64)
D:\RemoteInstall\Boot\x86\pxelinux.com
D:\RemoteInstall\Boot\x64\pxelinux.com  respectively.

sekarang pc client sudah bisa booting dari server, selanjutnya menanbahkan ISO nya
(saya mau ambil contoh gunakan OS Centos 5.3) jadi selanjutnya :
Untuk Debian  download ini netboot files yaitu : initrd.gz and linux dari debian/ubuntu mirror
untuk x86
untuk x64

buatlah folder lagi :
D:\RemoteInstall\Boot\$arch\Linux\initrd.gz (copy disini)
                                                     \linux
D:\RemoteInstall\Boot\$arch\pxelinux.cfg\default

Download juga file text.cfg di : download site under boot-screens (di website nya)

D:\RemoteInstall\Boot\$arch\Linux\gentoo\


lihat link ini juga :
http://oss.netfarm.it/guides/ris-linux.php
http://oss.netfarm.it/guides/pxe.php
http://www.eggheadcafe.com/software/aspnet/30846864/deploying-windows-xp-via-windows-deployment-services.aspx
http://www.ssnsoftware.com/ghost-tftp-and-pxe-network-booting-norton-ghost-pxes/
http://datanotes.wordpress.com/2007/11/26/how-to-deploy-xp-using-windows-deployment-services-wds-2/
http://98.129.119.162/articles/using-windows-deployment-services-ghost-solution-suite-25
http://technet.microsoft.com/en-us/library/bb680753.aspx
http://blog.augustoalvarez.com.ar/2008/12/12/installing-and-configuring-wds-windows-deployment-services-full-images-deployment-part-i/
http://blogs.technet.com/b/askcore/archive/2007/10/21/how-to-set-up-windows-deployment-services-on-2003-sp2-servers-for-installs-of-windows-2003-and-xp.aspx
http://www.eggheadcafe.com/microsoft/Windows-Server/31549623/using-wds-to-deploy-windows-xp-images-across-subnets.aspx