Skip to content

Instantly share code, notes, and snippets.

@jpiwowar-zz
Last active June 3, 2019 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpiwowar-zz/6725209 to your computer and use it in GitHub Desktop.
Save jpiwowar-zz/6725209 to your computer and use it in GitHub Desktop.
Supporting files for a blog post (http://www.pythian.com/blog/getting-ready-to-install-ebs-12-2-vision-quickstart-notes/) covering quick start for an EBS 12.2 Vision install.
#!/bin/bash
# Grab files from EDelivery, as listed in a file called 'urls'.
# If this weren't a one-off, it would be more fancy with error-checking and less hard-coding. :)
# Takes an option argument to start multiple wget sessions, since EDelivery sensibly
# seems to throttle bandwidth per session.
# You will also need to log in to EDelivery first, and capture your cookies in a file
# called cookies.txt
NUM_SESSIONS=$1
if [[ -z $NUM_SESSIONS ]]
then
NUM_SESSIONS=1
echo "Defaulting to 1 download session"
fi
function getFile {
fname=`echo $1 | awk -F"=" '{print $NF;}'`
if [[ -e $fname ]]
then
echo "Skipping $fname; exists"
else
wget --no-check-certificate --load-cookies=cookies.txt -nv -a ${fname}.log $1 -O $fname
echo "Completed $fname with status: $?"
fi
}
for download_url in `cat urls`
do
while [ `jobs | wc -l` -ge $NUM_SESSIONS ]
do
echo "MB downloaded:" `du -sk . | awk '{print $1/1024}'`
sleep 60
done
getFile $download_url &
done
# Kickstart file automatically generated by anaconda.
#version=DEVEL
install
cdrom
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto static --ip 192.168.58.17 --netmask 255.255.255.0 --noipv6 --nameserver 8.8.8.8 --hostname breen.local.org
network --onboot yes --device eth1 --bootproto dhcp --noipv6
rootpw --iscrypted $6$I2avXM9g1aZ5Q$lbfUJL48tv4qnHjyP3m7PVfkgeKwgIOtmFTylnFrbGuqvjvYzNYtyncmNV8XOZoKIS1
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone --utc America/Vancouver
bootloader --location=mbr --driveorder=sda,sdb,sdc --append="crashkernel=auto rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --all --drives=sda,sdb,sdc
#part /boot --fstype=ext4 --size=500
#part / --fstype=ext3 --grow --maxsize=5803 --asprimary --size=1
#part swap --size=6144
#part /u01 --fstype=ext3 --grow --size=1
#part /mnt/stage --fstype=ext3 --grow --size=1
%packages
@base
@client-mgmt-tools
@console-internet
@core
@debugging
@hardware-monitoring
@network-file-system-client
@performance
@perl-runtime
@server-platform
@server-policy
@system-admin-tools
@x11
pax
python-dmidecode
sgpio
device-mapper-persistent-data
perl-DBD-SQLite
%end
binutils.x86_64
compat-libstdc++-296.i686
compat-libstdc++-33.i686
gcc.x86_64
gcc-c++.x86_64
glibc.i686
glibc.x86_64
glibc-common.x86_64
glibc-devel.i686
glibc-devel.x86_64
libgcc.i686
libgcc.x86_64
libstdc++-devel.i686
libstdc++-devel.x86_64
libstdc++.i686
libstdc++.x86_64
libXi.i686
libXp.i686
libXp.x86_64
libaio.i686
libaio.x86_64
libgomp.x86_64
make.x86_64
gdbm.i686
gdbm.x86_64
sysstat.x86_64
util-linux-ng.x86_64
compat-libcap1.x86_64
compat-libstdc++-33.x86_64
elfutils-libelf-devel.x86_64
libaio-devel.i686
libaio-devel.x86_64
unixODBC.i686
unixODBC-devel.i686
xorg-x11-utils
oracle-rdbms-server-11gR2-preinstall.x86_64
libXt.i686
tigervnc-server
xterm
xorg-x11-twm
liberation-mono-fonts
https://edelivery.oracle.com/EPD/Download/process_download/V39571-01.zip?file_id=64602720&aru=16752854&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V39571-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35215-01_1of3.zip?file_id=64844077&aru=15611521&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35215-01_1of3.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35215-01_2of3.zip?file_id=64844078&aru=15611521&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35215-01_2of3.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35215-01_3of3.zip?file_id=64844079&aru=15611521&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35215-01_3of3.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35230-01_1of2.zip?file_id=55668662&aru=15611541&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35230-01_1of2.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35230-01_2of2.zip?file_id=55668663&aru=15611541&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35230-01_2of2.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35231-01_1of5.zip?file_id=55668754&aru=15611542&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35231-01_1of5.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35231-01_2of5.zip?file_id=55668756&aru=15611542&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35231-01_2of5.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35231-01_3of5.zip?file_id=55668757&aru=15611542&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35231-01_3of5.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35231-01_4of5.zip?file_id=55668758&aru=15611542&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35231-01_4of5.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35231-01_5of5.zip?file_id=55668759&aru=15611542&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35231-01_5of5.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35802-01.zip?file_id=56878349&aru=15769404&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35802-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35803-01_1of3.zip?file_id=56878832&aru=15769405&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35803-01_1of3.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35803-01_2of3.zip?file_id=56878835&aru=15769405&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35803-01_2of3.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35803-01_3of3.zip?file_id=56878843&aru=15769405&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35803-01_3of3.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35804-01_1of2.zip?file_id=56878797&aru=15769406&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35804-01_1of2.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35804-01_2of2.zip?file_id=56878798&aru=15769406&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35804-01_2of2.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35807-01.zip?file_id=56878827&aru=15769494&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35807-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35808-01.zip?file_id=56878818&aru=15769495&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35808-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35809-01.zip?file_id=56878821&aru=15769496&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35809-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35810-01.zip?file_id=56878474&aru=15769497&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35810-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35811-01.zip?file_id=56878796&aru=15769498&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35811-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35812-01.zip?file_id=56878567&aru=15769499&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35812-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V35813-01.zip?file_id=56878365&aru=15769500&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V35813-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V37515-01_1of6.zip?file_id=64783483&aru=16133346&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V37515-01_1of6.zip
https://edelivery.oracle.com/EPD/Download/process_download/V37515-01_2of6.zip?file_id=64783484&aru=16133346&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V37515-01_2of6.zip
https://edelivery.oracle.com/EPD/Download/process_download/V37515-01_3of6.zip?file_id=64783485&aru=16133346&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V37515-01_3of6.zip
https://edelivery.oracle.com/EPD/Download/process_download/V37515-01_4of6.zip?file_id=64783486&aru=16133346&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V37515-01_4of6.zip
https://edelivery.oracle.com/EPD/Download/process_download/V37515-01_5of6.zip?file_id=64783487&aru=16133346&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V37515-01_5of6.zip
https://edelivery.oracle.com/EPD/Download/process_download/V37515-01_6of6.zip?file_id=64783488&aru=16133346&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V37515-01_6of6.zip
https://edelivery.oracle.com/EPD/Download/process_download/V39615-01.zip?file_id=64631826&aru=16756718&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V39615-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V29764-01.zip?file_id=46319887&aru=14390969&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V29764-01.zip
https://edelivery.oracle.com/EPD/Download/process_download/V29856-01.zip?file_id=46448789&aru=14401412&userid=5445355&egroup_aru_number=16809533&country_id=124&patch_file=V29856-01.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment