Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Quang tru HUYNH
ISB2017
Commits
afe54b1b
Commit
afe54b1b
authored
Jul 06, 2017
by
Quang tru HUYNH
Browse files
moved EPEL packages into %post
parent
f137b239
Changes
2
Hide whitespace changes
Inline
Side-by-side
C7.x86_64.ISB2017.cfg
View file @
afe54b1b
...
...
@@ -179,9 +179,7 @@ zsh
# pymol
glew-devel
glew
msgpack-devel
#
htop
#
%end
...
...
@@ -197,7 +195,18 @@ curl https://gitlab.pasteur.fr/tru/ISB2017/raw/master/centos-autorized_keys.sh|
# isb2017 ssh-keys
curl https://gitlab.pasteur.fr/tru/ISB2017/raw/master/isb2017-autorized_keys.sh | sh
# from EPEL
yum -y groupinstall mate-desktop-environment
yum -y install \
hdf5-devel \
hdf5-static \
msgpack-devel \
nedit \
pdsh-rcmd-ssh \
htop \
parallel \
x2goserver \
xpdf
# missing systemctl disable initial-setup.service
# https://bugzilla.redhat.com/show_bug.cgi?id=1213114
...
...
C7.x86_64.us-optiplex7020-isb2017.cfg-atsukau
0 → 100644
View file @
afe54b1b
# C7.x86_64.us-optiplex7020-isb2017.cfg
sshpw --username=root centos7 --plaintext
install
#url --url=http://atsukau.bis.pasteur.fr:81/pub/centos/7/os/x86_64
#repo --name="updates" --baseurl=http://atsukau.bis.pasteur.fr:81/pub/centos/7/updates/x86_64/ --cost=500
#repo --name="extras" --baseurl=http://atsukau.bis.pasteur.fr:81/pub/centos/7/extras/x86_64/ --cost=1000
lang en_US.UTF-8
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/ --cost=1000
keyboard --vckeymap=us --xlayouts='us'
#network --device eth0 --bootproto dhcp --hostname optiplex7020
network --bootproto=dhcp --device=em1 --onboot=on --ipv6=off
rootpw --plaintext centos7
selinux --enforcing
services --enabled="chronyd"
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone Europe/Paris
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto"
#text
graphical
firewall --enabled --service=ssh
# X Window System configuration information
xconfig --startxonboot
eula --agreed
firstboot --disable
reboot
#clearpart --all --drives=sda --initlabel
#initial setup only
#------------------
part / --fstype ext4 --onpart=sda5
part swap --fstype swap --onpart=sda6
user --groups=centos --homedir=/home/centos --name=centos --password=isb2017
# centos is the admin user with sudo access and remote ssh access
user --groups=isb2017 --homedir=/home/isb2017 --name=isb2017 --password=changemenow
# student account
%packages
@^gnome-desktop-environment
@base
@compat-libraries
@core
@development
@fonts
@gnome-apps
@gnome-desktop
#@guest-agents
#@guest-desktop-agents
@input-methods
@internet-applications
@internet-browser
@java-platform
@legacy-x
@multimedia
@network-file-system-client
@networkmanager-submodules
@office-suite
@print-client
@security-tools
@x11
chrony
# building tools for bcga2017:
@additional-devel
@platform-devel
@technical-writing
-libvirt-client
-libvirt-docs
#
environment-modules
elinks
epel-release
# circos
gd-devel
#
-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
# ISB2017
#@mate-desktop-environment
tree
vim-enhanced
tmux
java-1.8.0-openjdk.x86_64
environment-modules
x2goserver.x86_64
zlib-devel
ncurses-devel
bzip2-devel
xz-devel
curl-devel
openssl-devel
bash-completion
emacs
gedit
nedit
gd-devel
libreoffice
evince
xpdf
eog
elinks
cmake
parallel
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
libxml2-devel # R/tidyverse
vim-X11
pdsh-rcmd-ssh.x86_64
perl-Digest-MD5
bind-utils
perl-Digest
nano
zsh
# pymol
glew-devel
glew
#
#
%end
%post --nochroot
cp /etc/resolv.conf /mnt/sysimage/etc/resolv.conf
%end
%post
# ssh with keys only:
curl https://gitlab.pasteur.fr/tru/ISB2017/raw/master/c7-sshd_config.sh | sh
# centos ssh-keys
curl https://gitlab.pasteur.fr/tru/ISB2017/raw/master/centos-autorized_keys.sh| sh
# isb2017 ssh-keys
curl https://gitlab.pasteur.fr/tru/ISB2017/raw/master/isb2017-autorized_keys.sh | sh
# from EPEL
yum -y groupinstall mate-desktop-environment
yum -y install \
hdf5-devel \
hdf5-static \
msgpack-devel \
nedit \
pdsh-rcmd-ssh \
htop \
parallel \
x2goserver \
xpdf
# post install from rpm -qa on the prototype
#curl http://atsukau.bis.pasteur.fr:81/ks/isb2017-2017-07-11-2138.rpm-qa.sh |sh
# /isb2017 tarball
#curl http://atsukau.bis.pasteur.fr:81/ks/isb2017-2017-07-11-2138.local.sh | sh
# build the proper initrd?
# 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
#
cat <<XXX > /etc/grub.d/15-win7
#!/bin/sh -e
echo "adding win7" >&2
cat <<EOF
menuentry "win7" {
#set root (hd0,1)
set root='hd0,msdos1'
chainloader +1
}
EOF
XXX
chmod 755 /etc/grub.d/15-win7
grub2-mkconfig -o /boot/grub2/grub.cfg
# cleanup ssh keys etc
/bin/rm -rf /etc/ssh/*hosts*
%end
%addon com_redhat_kdump --disable
# instead of --enable --reserve-mb='auto'
%end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment