Commit 0c7427c6 authored by Dimitris T's avatar Dimitris T

reorder script, weekly updates check

parent 6f6def47
#!/bin/sh
# package sources
echo 'updating package sources...'
wget https://raw.githubusercontent.com/stinpriza/lmde2-priza/master/official-package-repositories.list
sudo rm -f /etc/apt/sources.list.d/*
sudo mv official-package-repositories.list /etc/apt/sources.list.d/
echo "repositories updated, upgrading system now..."
# fix mint-update
wget https://raw.githubusercontent.com/stinpriza/lmde2-priza/master/mintUpdate.conf
rm -f ~/.config/linuxmint/mintUpdate.conf
mv mintUpdate.conf ~/.config/linuxmint/
# keyboard layout & screensaver fixes
echo 'keyboard layout & screensaver settings...'
gsettings set org.mate.peripherals-keyboard-xkb.kbd layouts "['us', 'gr']"
......@@ -19,24 +7,37 @@ gsettings set org.mate.peripherals-keyboard-xkb.kbd options "['terminate\ttermin
gsettings set org.gnome.desktop.screensaver lock-enabled "false"
gsettings set org.gnome.desktop.session idle-delay "3600"
# fix mint-update
echo 'adjusting update manager to check for new packages weekly...'
wget https://raw.githubusercontent.com/stinpriza/lmde2-priza/master/mintUpdate.conf
rm -f ~/.config/linuxmint/mintUpdate.conf
mv mintUpdate.conf ~/.config/linuxmint/
# package sources
echo 'updating package sources...'
wget https://raw.githubusercontent.com/stinpriza/lmde2-priza/master/official-package-repositories.list
sudo rm -f /etc/apt/sources.list.d/*
sudo mv official-package-repositories.list /etc/apt/sources.list.d/
echo "repositories updated, upgrading system now..."
#system upgrades
sudo apt-get update
#remove unnecessary packages
sudo apt-get purge -y speech-dispatcher brltty virtualbox-* hexchat
# packages install
sudo apt-get install -y myspell-el-gr chromium psensor pepperflashplugin-nonfree ntfs-3g libreoffice-l10n-el ttf-mscorefonts-installer console-terminus ttf-dejavu fonts-droid fonts-inconsolata xfonts-terminus task-greek-desktop libreoffice-help-el fonts-mgopen deborphan
#update mintupdate first
sudo apt-get -y install mintupdate
#system upgrades
sudo apt-get -y upgrade
sudo apt-get dist-upgrade
echo 'system upgraded! installing new packages...'
# packages install
sudo apt-get update
sudo apt-get install -y myspell-el-gr chromium psensor pepperflashplugin-nonfree ntfs-3g libreoffice-l10n-el ttf-mscorefonts-installer console-terminus ttf-dejavu fonts-droid fonts-inconsolata xfonts-terminus task-greek-desktop libreoffice-help-el fonts-mgopen deborphan
# package cleanup
echo 'done, cleaning system...'
sudo apt-get purge -y speech-dispatcher brltty virtualbox-* hexchat
sudo apt-get purge -y `deborphan`
sudo apt-get purge -y `deborphan`
sudo apt-get purge -y `deborphan`
sudo apt-get autoremove -y
sudo apt-get clean
echo 'all done, reboot now!'
......@@ -14,7 +14,7 @@ security_safe = False
[refresh]
timer_minutes = 0
timer_hours = 0
timer_days = 14
timer_days = 7
[update]
dist_upgrade = True
[icons]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment