Doc and script updated

This commit is contained in:
Éder F. Zulian
2019-02-20 21:56:16 +01:00
parent 147e3a2565
commit d2c99b9f1c
2 changed files with 25 additions and 8 deletions

View File

@@ -32,17 +32,18 @@
#
# Author: Éder F. Zulian
distro=$(cat /etc/os-release | grep "^ID=" | sed 's/.*=//' | awk '{print tolower($0)}')
# Check distro. This script supports Debian/Ubuntu
distro=`lsb_release -is`
if [ "$distro" != "Debian" ] && [ "$distro" != "Ubuntu" ]; then
if [ "$distro" != "debian" ] && [ "$distro" != "ubuntu" ]; then
echo -e "Error unsupported distribution (${distro}). This script supports Debian/Ubuntu." 1>&2
exit 1
exit 1
fi
# Ensure the newest versions of all packages currently installed
sudo apt-get update
sudo apt-get upgrade
# Required dependencies
# Required dependencies and useful tools
deplist="
g++
libc6
libstdc++6
gitk
@@ -70,6 +71,14 @@ libqt5svg5-dev
libqt5sql5
libqt5widgets5
libqt5core5a
lsb-core
gedit
sublime-text
vim-gtk
kate
wget
gtkwave
openssh-server
"
for d in $deplist; do
sudo apt-get -y install $d