Commit 97770eaf authored by Tru  HUYNH's avatar Tru HUYNH

initial ks

parent a9d97511
#sshpw --username=root centos7 --plaintext
# remote ssh during installation:
# enable by commenting out the 1st line and add to the install command line:
# inst.sshd=1
#
#version=RHEL7
# reboot after installation: don't wait for ever for someone to press [reboot]
reboot
# Use CDROM installation media
#cdrom
# pasteur local mirror:
url --url=http://ftp.pasteur.fr/mirrors/CentOS/7/os/x86_64
repo --name="updates" --baseurl=http://ftp.pasteur.fr/mirrors/CentOS/7/updates/x86_64/ --cost=500
repo --name="extras" --baseurl=http://ftp.pasteur.fr/mirrors/CentOS/7/extras/x86_64/ --cost=1000
repo --name="EPEL" --baseurl=http://dl.fedoraproject.org/pub/epel/7/x86_64
# Use graphical install
graphical
eula --agreed
# DONT Run the Setup Agent on first boot
firstboot --disable
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on --ipv6=auto --activate
network --hostname=localhost.localdomain
rootpw --plaintext bcga2017
# System services
services --enabled="chronyd"
# System timezone
timezone Europe/Athens --isUtc --ntpservers=0.centos.pool.ntp.org,1.centos.pool.ntp.org,2.centos.pool.ntp.org,3.centos.pool.ntp.org
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
# X Window System configuration information
xconfig --startxonboot
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
# Partition clearing information
clearpart --all --initlabel --drives=sda
# Disk partitioning information
#part /boot --fstype="ext4" --ondisk=sda --size=500
#part /boot/efi --fstype="efi" --ondisk=sda --size=200 --fsoptions="umask=0077,shortname=winnt"
#part / --fstype="ext4" --ondisk=sda --size=102400
#part swap --fstype="swap" --ondisk=sda --size=8000
#part /opt --fstype="ext4" --ondisk=sda --size=1796628
part /boot --fstype=ext3 --ondisk=sda --size 1000 --asprimary
part / --fstype=xfs --onpart=sda --size 30000 --grow --asprimary
%packages
@base
@compat-libraries
@core
#@desktop-debugging
@development
#@dial-up
@directory-client
@fonts
@guest-agents
@guest-desktop-agents
@input-methods
@internet-browser
@java-platform
#@kde-apps
#@kde-desktop
@legacy-x
@multimedia
@network-file-system-client
@networkmanager-submodules
@office-suite
@print-client
@x11
chrony
#kexec-tools
@gnome-apps
@gnome-desktop
#@additional-devel
#@platform-devel
#@technical-writing
#
-initial-setup
-gnome-initial-setup
# minimal
wget
sudo
lftp
curl
screen
rsync
sysstat
yum-utils
-libvirt-client
-libvirt-docs
# added Tru
epel-release
environment-modules
elinks
atlas-static
atlas-devel
fftw
fftw-devel
fftw-static
libuv
libuv-devel
libuv-static
# BGA2017
epel-release
vim-enhanced wget screen tmux
java-1.8.0-openjdk.x86_64
environment-modules
@mate-desktop-environment
x2goserver.x86_64
zlib-devel # bwa
ncurses-devel bzip2-devel xz-devel curl-devel openssl-devel # samtools
bash-completion
emacs
gedit nedit
gd-devel
libreoffice
evince xpdf
eog elinks
cmake parallel # freebayes
hdf5-static.x86_64 hdf5-devel.x86_64
glibc-static libstdc++-static # muscle build for micca
atlas-devel blas-devel lapack-devel # R
readline-devel libXt-devel.x86_64 # R
libtiff-devel cairo-devel libicu-devel # R
libxml2-devel # R/tidyverse
vim-X11
pdsh-rcmd-ssh.x86_64
perl-Digest-MD5 bind-utils perl-digest
nano zsh
%end
%post --no-chroot
cp /etc/resolv.conf /mnt/sysimage/etc/resolv.conf
%end
%post
# ssh with keys only:
curl http://tru_tru.homenet.org/ks/c7-sshd_config.sh | sh
# tru ssh-keys
curl http://tru_tru.homenet.org/ks/c7-add-tru.sh | sh
# missing systemctl disable initial-setup.service
# https://bugzilla.redhat.com/show_bug.cgi?id=1213114
# https://bugzilla.redhat.com/show_bug.cgi?id=968582
systemctl disable initial-setup-graphical.service
#
# cuda installation
# curl http:// | sh
%end
%addon com_redhat_kdump --disable
# instead of --enable --reserve-mb='auto'
%end
%pre
# workaround clearpart initlabel not able to initialise sda
parted -s /dev/sda mklabel msdos
%end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment