Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Change to root

Code Block
su -

Update and Install Packages

Code Block
apt-get -y update
apt-get -y upgrade
apt-get -y install sudo unzip rsync sysstat cifs-utils nmap tcpdump tmux virt-what chrony

Configure Sudo for jtel User

The following command adds the jtel user to the sudo group:

Code Block
adduser jtel sudo

Setup chrony

The following commands install chrony and modify the basic chrony.conf file to remove usage of the default pool and any configured servers, and replace this with the 3 (very reliable) time servers from the German PTB.

Code Block
# Replace all existing servers
sed -i -e "s/^server /# server /" /etc/chrony/chrony.conf
# Replace pool setting
sed -i -e "s/^pool /# pool /" /etc/chrony/chrony.conf
# Add PTB Servers
cat << EOFF >> /etc/chrony/chrony.conf

# Servers to use
server ptbtime1.ptb.de iburst
server ptbtime2.ptb.de iburst
server ptbtime3.ptb.de iburst
EOFF

# Enable Chrony
systemctl enable chrony

# Stop (just in case it was started), then start and get status
systemctl stop chrony
systemctl start chrony

Check chrony

Code Block
systemctl status chrony
chronyc sources

Warning when using git as root

The following command makes it (intentionally) more difficult to use git as the root user. 

Code Block
cat <<EOFF >> ~/.bashrc
alias git='printf "It looks like you are trying to run GIT as ROOT.\nFor jtel installations, GIT should always be run from the jtel user.\nIf you really want to run git as root, you will need to access it directly, using /usr/bin/git for example.\n"'
EOFF
source ~/.bashrc

Detect the Hypervisor

Code Block
virt-what

VMWare

The tools are installed as follows:

...

Consult the manufacturer for further detals.

Reboot

Reboot to load the new kernel if one was downloaded and make sure the guest tools are running OK.