ntp fixes, oam additions, some new features rising
This commit is contained in:
28
newSrv.sh
28
newSrv.sh
@ -91,7 +91,7 @@ echo "Completed running $FUNCNAME"
|
|||||||
|
|
||||||
|
|
||||||
if [[ ! -f /root/ntpserver ]]; then
|
if [[ ! -f /root/ntpserver ]]; then
|
||||||
curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ntp.conf > /etc/ntp.conf
|
curl --silent https://dl.knownelement.com/FetchApplyDistPoint/ntp.conf > /etc/ntp.conf
|
||||||
export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes -o Dpkg::Options::="--force-confold" install ntp ntpdate
|
export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes -o Dpkg::Options::="--force-confold" install ntp ntpdate
|
||||||
systemctl stop ntp && ntpdate pool.ntp.org && systemctl start ntp
|
systemctl stop ntp && ntpdate pool.ntp.org && systemctl start ntp
|
||||||
fi
|
fi
|
||||||
@ -194,6 +194,8 @@ ngrep \
|
|||||||
lsb-release \
|
lsb-release \
|
||||||
screen \
|
screen \
|
||||||
tmux \
|
tmux \
|
||||||
|
vim \
|
||||||
|
vim-solarized \
|
||||||
lldpd \
|
lldpd \
|
||||||
net-tools \
|
net-tools \
|
||||||
gpg \
|
gpg \
|
||||||
@ -212,17 +214,39 @@ tshark \
|
|||||||
tcpdump \
|
tcpdump \
|
||||||
lynis \
|
lynis \
|
||||||
glances \
|
glances \
|
||||||
qemu-guest-agent \
|
virt-what \
|
||||||
zsh \
|
zsh \
|
||||||
zsh-autosuggestions \
|
zsh-autosuggestions \
|
||||||
zsh-syntax-highlighting \
|
zsh-syntax-highlighting \
|
||||||
fonts-powerline \
|
fonts-powerline \
|
||||||
webmin \
|
webmin \
|
||||||
usermin \
|
usermin \
|
||||||
|
iotop \
|
||||||
|
tuned \
|
||||||
cockpit \
|
cockpit \
|
||||||
telnet \
|
telnet \
|
||||||
postfix
|
postfix
|
||||||
|
|
||||||
|
#Coming soon , virt guest tuning
|
||||||
|
|
||||||
|
#export VIRT_TYPE
|
||||||
|
#VIRT_TYPE="$(virt-what)"
|
||||||
|
|
||||||
|
#export VIRT_GUEST
|
||||||
|
#VIRT_GUEST="$(echo "$VIRT_TYPE"|egrep 'hyperv|' )"
|
||||||
|
|
||||||
|
#export KVM_GUEST
|
||||||
|
#KVM_GUEST="$(echo "$VIRT_TYPE"|grep 'kvm' )"
|
||||||
|
|
||||||
|
#if [ $VIRT_GUEST = 1 ]; then
|
||||||
|
# tuned-adm profile virtual-guest
|
||||||
|
#fi
|
||||||
|
|
||||||
|
#if [ $KVM_GUEST = 1 ]; then
|
||||||
|
# apt -y install qemu-guest-agent
|
||||||
|
#fi
|
||||||
|
|
||||||
|
|
||||||
#Coming very soon, 2fa for webmin/cockpit/ssh
|
#Coming very soon, 2fa for webmin/cockpit/ssh
|
||||||
#libpam-google-authenticator
|
#libpam-google-authenticator
|
||||||
|
|
||||||
|
3
ntp.conf
3
ntp.conf
@ -1,6 +1,5 @@
|
|||||||
driftfile /var/lib/ntp/ntp.drift
|
driftfile /var/lib/ntp/ntp.drift
|
||||||
leapfile /usr/share/zoneinfo/leap-seconds.list
|
leapfile /usr/share/zoneinfo/leap-seconds.list
|
||||||
server 10.251.33.6
|
server pfv-netboot.taile3044.ts.net
|
||||||
server 10.251.33.7
|
|
||||||
restrict 127.0.0.1
|
restrict 127.0.0.1
|
||||||
restrict ::1
|
restrict ::1
|
Reference in New Issue
Block a user