-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos_init.sh
41 lines (35 loc) · 1.03 KB
/
centos_init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
# all commands executed from 'root' => 'sudo su' before use
# link to this file: https://raw.githubusercontent.com/Stikus/Scripts/master/centos_init.sh OR http://tiny.cc/stik_centos
# curl -sSL tiny.cc/stik_centos -o centos.sh
MAINUSER="bio"
yum -y install epel-release && yum -y update && yum -y install \
pkgconfig \
cmake \
curl \
wget \
time \
tzdata \
gawk \
bzip2 \
pigz \
zip \
unzip \
pigz \
mc \
nano \
parallel \
htop \
iotop \
git \
openssh-server \
openssh-clients \
qemu-guest-agent \
tree \
kernel-devel \
kernel-headers \
&& yum -y groupinstall 'Development Tools'
# Add GKS vm01 pub RSA-key for root
mkdir -p "$HOME/.ssh" && wget -q "ftp://bioftp.cspfmba.ru/certs/keys/GKS_id_rsa.pub" -O ->> "$HOME/.ssh/authorized_keys"
# Add GKS vm01 pub RSA-key for MAINUSER
sudo -Hu "$MAINUSER" bash -c 'mkdir -p "$HOME/.ssh" && wget -q "ftp://bioftp.cspfmba.ru/certs/keys/GKS_id_rsa.pub" -O ->> "$HOME/.ssh/authorized_keys"'