diff --git a/neon_kubuntu_install_deps.sh b/neon_kubuntu_install_deps.sh new file mode 100755 --- /dev/null +++ b/neon_kubuntu_install_deps.sh @@ -0,0 +1,64 @@ +#!/bin/bash +# +# Installs all Mycroft dependency packages in one scripts and +# should only need one "sudo" password prompt. +# + +# +# Cannot run as root or sudo the entire script, or copying the +# Python modules in the last step will fail (expansion of $USER) +# + +if [ $USER = 'root' ] + then + echo -e "\e[1m" + echo "Do not run this script as root or with sudo." + echo "You will be prompted for your sudo password." + echo + echo "Aborting installation." + echo -e "\e[0m" + exit +fi + +echo -e "\e[1m" +echo -e "Installing Mycroft core dependencies..." +echo +echo -e "Please enter your sudo password at the next prompt..." +echo -e "\e[0m" + +sudo apt-get install libkf5notifications-data libkf5notifications-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-controls qml-module-qtwebsockets qml-module-qt-websockets qtdeclarative5-qtquick2-plugin qtdeclarative5-models-plugin cmake cmake-extras cmake-data qml-module-qtquick-layouts libkf5plasma-dev extra-cmake-modules qtdeclarative5-dev build-essential g++ gettext libqt5webkit5 libqt5webkit5-dev libkf5i18n-data libkf5i18n-dev libkf5i18n5 qml-module-qtgraphicaleffects libqt5dbus5 libkf5dbusaddons-dev libdbus-1-dev libdbus-glib-1-dev -y -q + +echo -e "\e[1m" +echo -e "Core dependencies installed." +echo + +read -p "Press any key to continue..." -n1 -s + +echo +echo -e "Installing dependencies for Mycroft skills..." +echo -e "\e[0m" + +sudo apt-get install python-dbus python-pyqt5 pyqt5-dev python-sip python-sip-dev -y -q + +echo -e "\e[1m" +echo -e "Skills dependencies installed." +echo + +read -p "Press any key to continue..." -n1 -s + +echo +echo -e "Copying skill modules to Mycroft core..." +echo + +cp -R /usr/lib/python2.7/dist-packages/dbus* /home/$USER/.virtualenvs/mycroft/lib/python2.7/site-packages/ +cp -R /usr/lib/python2.7/dist-packages/_dbus* /home/$USER/.virtualenvs/mycroft/lib/python2.7/site-packages/ +cp -R /usr/lib/python2.7/dist-packages/PyQt5* /home/$USER/.virtualenvs/mycroft/lib/python2.7/site-packages/ +cp -R /usr/lib/python2.7/dist-packages/sip* /home/$USER/.virtualenvs/mycroft/lib/python2.7/site-packages/ + +echo -e "\e[1mSkill modules copied." +echo +echo -e "\e[1mAll Mycroft dependencies installed." +echo +echo -e "\e[44mThank you from the Mycroft team. We hope you enjoy using Mycroft!\e[0m" +echo +exit \ No newline at end of file