User Tools

Site Tools

cat > << 'EndOfScript'

cat > /etc/apt/sources.list << 'EoT'

deb stretch main contrib

# security updates
deb stretch/updates main contrib


cat > /etc/apt/sources.list.d/pve-enterprise.list << 'EoT'

deb stretch pve-no-subscription


cat > /etc/apt/sources.list.d/ceph-uclv.list << 'EoT'

deb stretch main


apt-get update
apt-get -y dist-upgrade
apt-get -y install screen mc sudo tmux rdate iptraf tcpdump atop htop iotop aptitude net-tools munin-node

#Creación de alias
cat << 'EoT' >> /etc/bash.bashrc
alias ll='ls -al --color=yes'

rdate -n

cat >> /etc/network/interfaces << 'EoT'

auto vmbr101
iface vmbr101 inet manual
bridge_ports eno2.101
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes
# red 10.12.1.x

auto vmbr1
iface vmbr1 inet manual
bridge_ports eno2
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes
# generico para usar con vlan tag

auto vmbr222
iface vmbr222 inet manual
bridge_ports eno2.222
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes
# internet

auto vmbr5
iface vmbr5 inet manual
bridge_ports eno2.5
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes
# backbone

auto vmbr254
iface vmbr254 inet manual
bridge_ports eno2.254
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes
# gestion


timedatectl set-ntp false
apt-get install ntpdate

cat > /etc/default/ntpdate << 'EoT'
# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.

# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.

# List of NTP servers to use  (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.

# Additional options to pass to ntpdate

ntpdate -v

cat <<EoT >/etc/rc.local
#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.


exit 0

chmod +x /etc/rc.local
systemctl daemon-reload
systemctl start rc-local
systemctl status rc-local


chmod +x ./


proxmox/1_2_3_fresh_5.x_proxmox.txt · Last modified: 2020/04/10 17:38 (external edit)