Fast install general linux tools

Moki Lv5
1
2
3
4
sudo sh -c "echo 'shopt -s histappend' >> /etc/bash.bashrc" && \
sudo sh -c "echo 'export PROMPT_COMMAND=\"history -a\"' >> /etc/bash.bashrc" && \
sudo apt update && \
sudo DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -yqq install sshpass sudo tzdata curl wget screen rsync htop iotop iftop vim parallel nfs-client powertop fail2ban jq fonts-lato git sshfs tmux qalc ncdu

User:

1
2
3
4
5
cat >> /etc/profile <<EOF
export PS1="\[\033[34m\][\D{%Y-%m-%d} \t] \[\033[1;32m\]\u@\h:\[\033[1;34m\]\w\[\033[37m\]\e[m\n$ "
export PS0="\e[33m>>> \\\$(date +%Y-%m-%d\ %T.%3N)\e[0m\\\\n\\\${t:0:\\\$((t=\\\$(date +%s%N),0))}"
export PROMPT_COMMAND='(( t )) && ( echo -n "\e[33m<<< \$(date +%Y-%m-%d\ %T.%3N)" ; printf ", Seconds: %d.%09ds, Status: \$?\\\n" \$((t=\$(date +%s%N)-t,t/1000000000)) \$((t%1000000000)) ; echo -en "\e[0m") ; t=0 ; '\$PROMPT_COMMAND
EOF

Root:

1
2
3
cat >> /root/.bashrc <<EOF
PS1="\[\033[34m\][\D{%Y-%m-%d} \t] \[\033[1;31m\]\u@\h:\[\033[1;34m\]\w\[\033[37m\]\e[m\n$ "
EOF
On this page
Fast install general linux tools