aims-restricted-extras-setup 2.52 KB
Newer Older
Jonathan Carter's avatar
Jonathan Carter committed
1 2 3 4
#!/bin/sh

# Setting up PPAs...

5
# Enable for geogebra
6 7 8 9 10 11 12 13
# Doing this here will enable geogebra.list, upgrade Debian stable geogebra to
# geogebra from geogebra.list at next apt upgrades to a broken state, and
# not install geogebra-classic. This is moved out to aims-install-geogebra
#echo " * Enabling GeoGebra repositories..."
#if [ -f /usr/share/aims/ppalists/geogebra.list ]; then
#    cp /usr/share/aims/ppalists/geogebra.list \
#       /etc/apt/sources.list.d/geogebra.list
#fi
14 15 16 17 18 19 20

# Enable for google-chrome
echo " * Enabling Google Chrome repositories..."
if [ -f /usr/share/aims/ppalists/google-chrome.list ]; then
    cp /usr/share/aims/ppalists/google-chrome.list \
       /etc/apt/sources.list.d/google-chrome.list
fi
Jonathan Carter's avatar
Jonathan Carter committed
21 22

# Enable for google-talkplugin
23
echo " * Enabling Google Talkplugin repositories..."
Jonathan Carter's avatar
Jonathan Carter committed
24 25 26 27 28
if [ -f /usr/share/aims/ppalists/google-talkplugin.list ]; then
    cp /usr/share/aims/ppalists/google-talkplugin.list \
       /etc/apt/sources.list.d/google-talkplugin.list
fi

29 30 31 32 33 34 35
# enable signal-desktop repositories
echo " * Enabling Signal repositories"
if [ -f /usr/share/aims/ppalists/signal-xenial.list ]; then
    cp /usr/share/aims/ppalists/signal-xenial.list \
       /etc/apt/sources.list.d/signal-xenial.list
fi

Jonathan Carter's avatar
Jonathan Carter committed
36 37 38 39 40 41 42
# enable skype repositories
echo " * Enabling Skype repositories"
if [ -f /usr/share/aims/ppalists/skype-stable.list ]; then
    cp /usr/share/aims/ppalists/skype-stable.list \
       /etc/apt/sources.list.d/skype-stable.list
fi

43 44 45 46 47 48 49
# enable virtualbox repositories
echo " * Enabling VirtualBox repositories"
if [ -f /usr/share/aims/ppalists/virtualbox.list ]; then
    cp /usr/share/aims/ppalists/virtualbox.list \
       /etc/apt/sources.list.d/virtualbox.list
fi

Jonathan Carter's avatar
Jonathan Carter committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
# enable non-free
echo " * Enabling contrib and non-free components of debian repositories"
if [ -f /usr/share/aims/ppalists/debian-nonfree.list ]; then
    cp /usr/share/aims/ppalists/debian-nonfree.list \
       /etc/apt/sources.list.d/debian-nonfree.list
fi
if [ -f /usr/share/aims/aptconf/99ignore-multiple-definitions ]; then
    cp /usr/share/aims/aptconf/99ignore-multiple-definitions \
       /etc/apt/apt.conf.d/99ignore-multiple-definitions
fi

# Update package lists
# i386 for skype
dpkg --add-architecture i386
echo " * Updating package indexes..."
apt-get -qq update

# Install software
68
apt-get -y install google-talkplugin nautilus-dropbox signal-desktop skypeforlinux #pepperflashplugin-nonfree
Jonathan Carter's avatar
Jonathan Carter committed
69 70 71 72 73 74 75

# Post-install configuration
# Get rid of annoying nautilus-dropbox messages
rm -f /var/lib/update-notifier/user.d/dropbox-*start-required

echo "That's it! All done."