# Tell anaconda we're doing a fresh install and not an upgrade
install
text
reboot
# Use the cdrom for the package install
cdrom
lang en_US.UTF-8
keyboard us
skipx
# You'll need a DHCP server on the network for the new install to be reachable via SSH
network --device eth0 --bootproto dhcp
# Set the root password below !! Remember to change this once the install has completed !!
rootpw urpassword
# Enable iptables, but allow SSH from anywhere
#firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --disabled
services --enabled=sshd,httpd,squid,qlproxy --disabled=iptables
timezone --utc Asia/Jakarta
# Storage partitioning and formatting is below. We use LVM here.
bootloader --location=mbr --driveorder=sda --append=" rhgb creashkernel=auto quiet"
zerombr
clearpart --all
part /boot --fstype ext4 --size=250
part pv.2 --size=5000 --grow
volgroup VolGroup00 --pesize=32768 pv.2
logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=512
# Defines the repo we created
repo --name="internet filter" --baseurl=file:///mnt/source --cost=100
%pos
# create linux as gateway router
echo 1 > /proc/sys/net/ipv4/ip_forward
/bin/sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/' /etc/sysctl.conf
# load scripts in wsgi.conf
cat > /etc/httpd/conf.d/wsgi.conf << EOF_load_WSGI
[Desktop Entry]
LoadModule wsgi_module modules/mod_wsgi.so
WSGISocketPrefix /var/run/wsgi
EOF_load_WSGI
%end
reboot --eject
No comments:
Post a Comment