Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Ini by Murat EROGLU ( 13 years ago )
#########################################################################
#
# Oracle Enterprise Linux Kickstart Script
#
# version: OEL6
# [email protected]
# date : 15.01.2013
#
# Documents Referans : http://fedoraproject.org/wiki/Anaconda/Kickstart
#
#>> Bu sekilde baslayan satirlarda duzenleme yapmaniz gerekebilir.
#
#
#########################################################################
#version=DEVEL
install
# Use CDROM installation media
cdrom
# Kurulum/Sistem dili
lang en_US.UTF-8
# Kurulum/System Klayve Secenegi
keyboard trq
# Ag yapilandirmasi
#>> Ag ayarlarinizi kendinize gore ozellestirebilir kurulumda sormasini isteyebilirsiniz.
#>> network --device=eth0 --bootproto=query
network --onboot yes --device eth0 --bootproto static --ip 192.168.5.21 --netmask 255.255.240.0 --gateway 192.168.1.1 --noipv6 --nameserver 192.168.1.2 --hostname target.gridteknoloji.com
# Root sifresi
#>> root sifresini crypt edebilirsiniz yada --plaintext=sifrem seklinde yazabilirsiniz.
rootpw --iscrypted $6$SmEm1HhBXOaYEVkY$QtlqM45rEpdLJDYsMHU4.ztvT1xLKhKNSznYTsiHjVpmIcS/meuyi.AMiDNJgi03TTNLgpHYsqXQ3LCIDHxME. #encrypted "mandal"
# Kurulum tipi
text
# Use interactive kickstart installation method
#interactive
# Firewall Setting (Oracle icin disable olmasi onerilir. Ozellestirilebilinir.
firewall --disabled
#Sifreleme
authconfig --enableshadow --passalgo=sha512
# SeLinux disable ediliyor.
selinux --disabled
# TimeZone Istanbul olarak set ediliyor.
timezone --utc Europe/Istanbul
# Grup on yukleyici parametreleri
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
# MBR sifirlaniyor.
zerombr yes
# Butun diskler siliniyor.
clearpart --all
# Disk partitioning information
# /boot dizini icin partitipn olusturuluyor. 150M
part /boot --asprimary --fstype="ext4" --size=150
# boot dizini sonrasinda ki tum disk alani LVM olarak olusturuluyor.
part pv.008002 --grow --size=200
#>> vm_target benim volume group icin olusturdugum isim.
volgroup vg_target --pesize=4096 pv.008002
#>> Swap size 8GB olarak set ediliyor. --name degistirilebilir.
logvol swap --name=LogVolSWP --vgname=vg_target --size=8192
#>> root partition ext4 olarak geri kalan butun alan icin formatlaniyor. --grow parametresini kaldirip elle size girilebilir. --name degistirilebilir.
logvol / --fstype=ext4 --name=LogVolROOT --vgname=vg_target --size=1 --grow
# Reboot after installation - Kurulum sonrasi sistem yeniden baslatiliyor.
reboot
# Kurulumda yuklenecek paketler. Ihtiyaciniz olmayacagini dusunduklerinizi kapatabilirsiniz.
%packages
@additional-devel
@base
@client-mgmt-tools
@console-internet
@core
@debugging
@basic-desktop
@desktop-debugging
@desktop-platform
@desktop-platform-devel
@development
@directory-client
@fonts
@general-desktop
@graphical-admin-tools
@hardware-monitoring
@input-methods
@internet-browser
@java-platform
@large-systems
@legacy-x
@network-file-system-client
@performance
@perl-runtime
@remote-desktop-clients
@server-platform
@server-platform-devel
@server-policy
@system-admin-tools
@x11
@storage-client-fcoe
@storage-client-iscsi
@storage-client-multipath
@console-internet
libXinerama-devel
openmotif-devel
libXmu-devel
xorg-x11-proto-devel
startup-notification-devel
libgnomeui-devel
libbonobo-devel
libXau-devel
libgcrypt-devel
popt-devel
libdrm-devel
libXrandr-devel
libxslt-devel
libglade2-devel
libaio-devel
gnutls-devel
pax
python-dmidecode
oddjob
wodim
sgpio
genisoimage
mtools
systemtap-client
abrt-gui
desktop-file-utils
jpackage-utils
certmonger
pam_krb5
krb5-workstation
openmotif
libXmu
libXp
perl-DBD-SQLite
mc
oracle-rdbms-server-11gR2-preinstall
system-config-lvm
system-config-kickstart
# Isletim Sistemi kurulduktan sonra yapilacak islemler.
%post --log=/root/ks-post.log
# IPv6 Kapatiliyor.
echo "alias net-pf-10 off" >> /etc/modprobe.conf
# Hosts yapilandirmasi
echo 127.0.0.1 localhost localhost.localdomain > /etc/hosts
#>> network ayarlarinda verdigimiz ip ve hostname bilgisi bu alanda da duzenlenmeli.
#>> network --query kullandigiysaniz bu satiri kapatabilir yada daha sonra duzenleyebilirsiniz.
echo 192.168.5.21 target.gridteknoloji.com target >> /etc/hosts
# Oper grubu ekleniyor ve oracle kullanicisi oper'e uye yapiliyor.
groupadd -g 503 oper
usermod -a -G oper oracle
# oracle kullanici sifresi oracle olarak set ediliyor.
echo -e "oracle\noracle" | passwd oracle
# Oracle Database kurulumu icin klasorler olusturuluyor
mkdir -p /u01/app/oracle/product/11.2.0/db_1
# oracle kullanicisina kurulum yapilacak dizine sahiplik veriliyor.
chown -R oracle:oinstall /u01
# Oracle Database kurulumu yapilacak klasore oracle kullanicisi ve oinstall grubu icin tam yetki veriliyor.
chmod -R 775 /u01
# oracle kullanicisi icin Oracle Database environment parametreleri .bash_profile ekleniyor.
echo "# Oracle Settings" >> /home/oracle/.bash_profile
echo "TMP=/tmp; export TMP" >> /home/oracle/.bash_profile
echo "TMPDIR=\$TMP; export TMPDIR" >> /home/oracle/.bash_profile
#>> hostname bu satirda da network ayarlarina gore duzenlenmeli.
echo "ORACLE_HOSTNAME=target.gridteknoloji.com; export ORACLE_HOSTNAME" >> /home/oracle/.bash_profile
#>> ORACLE_UNQNAME=orcl Oracle Database orcl olarak kurlucaktir. Kendinize gore bir db_unqname belirleyebilirsiniz. mydb gibi.
echo "ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME" >> /home/oracle/.bash_profile
echo "ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE" >> /home/oracle/.bash_profile
echo "ORACLE_HOME=\$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME" >> /home/oracle/.bash_profile
#>> ORACLE_SID=orcl Oracle Database orcl olarak kurlucaktir. Kendinize gore bir db_name belirleyebilirsiniz. mydb gibi.
echo "ORACLE_SID=orcl; export ORACLE_SID" >> /home/oracle/.bash_profile
echo "PATH=/usr/sbin:\$PATH; export PATH" >> /home/oracle/.bash_profile
echo "PATH=\$ORACLE_HOME/bin:\$PATH; export PATH" >> /home/oracle/.bash_profile
echo "LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH" >> /home/oracle/.bash_profile
echo "CLASSPATH=\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlib; export CLASSPATH" >> /home/oracle/.bash_profile
echo "# Oracle Setting End -- Created By @MURAT" >> /home/oracle/.bash_profile
chown oracle:oinstall /home/oracle/.bash_profile
# Kurulum text modda devam ettigi icin login ekrani gelmiyor. Islemlerin sonrasinda init level 5 e cekiliyor.
cp /etc/inittab /tmp
cat /tmp/inittab | sed 's/id:3/id:5/' > /etc/inittab
# auto-login Eger otomatik login istenmiyor ise asagidaki satirlari kapatin.
sed '2,4d' /etc/gdm/custom.conf
cat >> /etc/gdm/custom.conf << FOE
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=oracle
FOE
# auto-login end.
# Public Yum Server ekleniyor. internet gerekli.
wget -O /etc/yum.repos.d/public-yum-ol6.repo http://public-yum.oracle.com/public-yum-ol6.repo
yum list
#echo "yum -y update" | at now + 5 min
%end
Revise this Paste
Children: 68497