linuxmint.sh 3.59 KB
Newer Older
Dimitris T's avatar
Dimitris T committed
1 2
#!/bin/sh

Dimitris T's avatar
Dimitris T committed
3 4 5 6 7
MYUSER=`whoami`
    if [ "${MYUSER}" = "root" ]; then
        echo "[X] This script should not be executed as root!! run as user without sudo!!"
    fi

Dimitris T's avatar
Dimitris T committed
8 9 10 11 12 13 14
# keyboard layout & screensaver fixes
echo 'keyboard layout & screensaver settings...'
gsettings set org.mate.peripherals-keyboard-xkb.kbd layouts "['us', 'gr']"
gsettings set org.mate.peripherals-keyboard-xkb.kbd options "['terminate\tterminate:ctrl_alt_bksp', 'currencysign\teurosign:e', 'grp\tgrp:alt_shift_toggle', 'grp_led\tgrp_led:scroll']"
gsettings set org.mate.screensaver lock-enabled 'false'
gsettings set org.mate.session idle-delay '60'

15
# package sources
16 17
#echo 'updating package sources...'
#sudo wget https://framagit.org/stinpriza/linuxmint-priza/raw/master/official-package-repositories.list -O /etc/apt/sources.list.d/official-package-repositories.list
18

19
# system upgrades
20
sudo apt-get update -y
Dimitris T's avatar
Dimitris T committed
21
echo "repositories updated! removing unecessary packages, installing new ones, and upgrading system now..."
22 23 24
# remove unnecessary packages
sudo apt-get purge -y blueberry* bluetooth* bluez-cups* bluez-obexd* brltty* espeak* espeak-data* gir1.2-gnomebluetooth-1.0* gnome-bluetooth* gnome-orca* hexchat* hexchat-common* libespeak1* libgnome-bluetooth13* pulseaudio-module-bluetooth* speech-dispatcher*
# remove asian fonts
Dimitris T's avatar
Dimitris T committed
25
sudo apt-get purge -y fonts-deva-extra fonts-gubbi fonts-gujr-extra fonts-guru-extra fonts-lohit-beng-assamese fonts-lohit-beng-bengali fonts-lohit-deva fonts-lohit-gujr fonts-lohit-guru fonts-lohit-knda fonts-lohit-mlym fonts-lohit-orya fonts-lohit-taml fonts-lohit-taml-classical fonts-lohit-telu fonts-nanum fonts-orya-extra fonts-pagul fonts-smc fonts-telu-extra fonts-tlwg-garuda fonts-tlwg-kinnari fonts-tlwg-laksaman fonts-tlwg-loma fonts-tlwg-mono fonts-tlwg-norasi fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush fonts-tlwg-waree fonts-wqy-microhei 
26
# packages install
Dimitris T's avatar
Dimitris T committed
27
sudo apt-get install -y myspell-el-gr psensor libreoffice-l10n-el ttf-dejavu fonts-inconsolata xfonts-terminus-oblique xfonts-terminus libreoffice-help-el fonts-mgopen deborphan bash-completion pidgin-otr pidgin-plugin-pack mate-tweak xul-ext-ublock-origin
28
# update mintupdate first
Dimitris T's avatar
Dimitris T committed
29
sudo apt-get -y install mintupdate
30
# system upgrades
Dimitris T's avatar
Dimitris T committed
31
sudo apt-get update && sudo apt-get -y upgrade
Dimitris T's avatar
Dimitris T committed
32
sudo apt-get -y dist-upgrade
Dimitris T's avatar
Dimitris T committed
33
echo 'system upgraded! continuing...'
34

Dimitris T's avatar
Dimitris T committed
35 36 37 38 39 40 41 42 43 44
# package cleanup
echo 'done, cleaning up...'
sudo apt-get -f install
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 'basic installation, settings and cleaning up is done!'

Dimitris T's avatar
Dimitris T committed
45
# fix mint-update
a priza's avatar
a priza committed
46 47
#echo 'adjusting update manager to check for new packages weekly...'
#wget https://framagit.org/stinpriza/linuxmint-priza/raw/master/mintUpdate.conf -O ~/.config/linuxmint/mintUpdate.conf
Dimitris T's avatar
Dimitris T committed
48

Dimitris T's avatar
Dimitris T committed
49
# weather
Dimitris T's avatar
Dimitris T committed
50
echo 'adjusting settings needed for panel weather...'
Dimitris T's avatar
Dimitris T committed
51
#gsettings set org.mate.panel.applet.clock:/org/mate/panel/objects/clock/prefs/ cities "['<location name="" city="Athens" timezone="Europe/Athens" latitude="37.933334" longitude="23.933332" code="LGAV" current="true"/>']"
Dimitris T's avatar
Dimitris T committed
52 53 54 55 56
gsettings set org.mate.panel.applet.clock:/org/mate/panel/objects/clock/prefs/ format '24-hour'
gsettings set org.mate.panel.applet.clock:/org/mate/panel/objects/clock/prefs/ speed-unit 'Beaufort scale'
gsettings set org.mate.panel.applet.clock:/org/mate/panel/objects/clock/prefs/ show-weather true
gsettings set org.mate.panel.applet.clock:/org/mate/panel/objects/clock/prefs/ show-temperature true

Dimitris T's avatar
Dimitris T committed
57
echo 'you can also set your location in the mate panel, to get weather updates (right click on the Clock -> Preferences)'
Dimitris T's avatar
Dimitris T committed
58 59 60 61

echo 'thats all! please reboot now!'

exit 0