Skip to content

Commit 2985eeb

Browse files
committed
centos6/sshd_config.sh
1 parent 8a27638 commit 2985eeb

File tree

9 files changed

+26
-143
lines changed

9 files changed

+26
-143
lines changed

ntpd/ntp-centos6.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

ntpd/ntp.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

os/centos7.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ yum localinstall -y http://ftp.cuhk.edu.hk/pub/linux/fedora-epel/7/x86_64/e/epel
99

1010
yum update -y
1111

12-
cat >> /etc/security/limits.conf <<EOF
12+
cat >> /etc/security/limits.d/20-nofile.conf <<EOF
1313
1414
* soft nofile 4096
1515
* hard nofile 4096
16+
1617
www soft nofile 65535
1718
www hard nofile 65535
1819
@@ -43,5 +44,5 @@ sysctl -p
4344

4445
cat >> /etc/bashrc <<EOF
4546
46-
export HISTTIMEFORMAT="%Y-%m-%d-%H:%M:%S "
47+
export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
4748
EOF

ssh/centos6/sshd_config.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

ssh/security.sh

Lines changed: 0 additions & 86 deletions
This file was deleted.

ssh/sshd_config.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

ssh/sudo.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.

virtualization/kvm.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#================================================================================
3+
# CentOS KVM Installing script by Neo <[email protected]>
4+
# http://netkiller.sourceforge.net/ , http://netkiller.github.io/
5+
# $Id$
6+
#================================================================================
7+
if [ $(egrep -c '(vmx|svm)' /proc/cpuinfo) == 0 ]; then
8+
exit
9+
fi
10+
#================================================================================
11+
yum install -y qemu-kvm libvirt virt-install bridge-utils
12+
systemctl start libvirtd
13+
systemctl enable libvirtd
14+
#================================================================================
15+
nmcli c add type bridge autoconnect yes con-name br0 ifname br0
16+
nmcli c modify br0 ipv4.addresses "192.168.2.5/24 192.168.2.254" ipv4.method manual
17+
nmcli c modify br0 ipv4.dns 8.8.8.8
18+
nmcli c delete enp2s0
19+
nmcli c add type bridge-slave autoconnect yes con-name enp2s0 ifname enp2s0 master br0
20+
systemctl stop NetworkManager; systemctl start NetworkManager
21+
22+
#echo "net.ipv4.ip_forward = 1"|sudo tee /etc/sysctl.d/99-ipforward.conf
23+
#sysctl -p /etc/sysctl.d/99-ipforward.conf

0 commit comments

Comments
 (0)