yggdrasil_ng/install_functions.sh

934 lines
20 KiB
Bash
Raw Normal View History

2017-12-30 22:08:45 +00:00
#------------------------------------------------------------------------------#
# Yggdrasil NG #
# compatibility : Mint 18, Ubuntu 16.04, Elementary and other derivatives #
# author : Francois B. (Makotosan/Shakasan) #
# licence : GPLv3 #
# website : https://makotonoblog.be/ #
2017-12-30 22:08:45 +00:00
#------------------------------------------------------------------------------#
#-----------------------------------------------------------------------------#
# install functions #
2017-12-30 22:08:45 +00:00
#-----------------------------------------------------------------------------#
#
# install Base Apps (headless)
#
function installBase () {
2018-03-30 07:38:57 +00:00
msg "Installing Base Apps"
2017-12-30 22:08:45 +00:00
installAppsFromList base
}
#
# install Base Apps (Menu)
#
function installBaseMenu () {
installAppsFromListMenu base
}
#
# install Office Apps (headless)
#
function installOffice () {
2018-03-30 07:38:57 +00:00
msg "Installing Office Apps"
2017-12-30 22:08:45 +00:00
installAppsFromList office
}
#
# install Office Apps (Menu)
#
function installOfficeMenu () {
installAppsFromListMenu office
}
#
# install Multimedia Apps (headless)
#
function installMultimedia () {
2018-03-30 07:38:57 +00:00
msg "Installing Multimedia Apps"
2017-12-30 22:08:45 +00:00
installAppsFromList multimedia
}
#
# install Multimedia Apps (Menu)
#
function installMultimediaMenu () {
installAppsFromListMenu multimedia
}
2018-01-05 06:14:58 +00:00
#
# install eBook Apps (headless)
#
2017-12-30 22:08:45 +00:00
function installEbook () {
2018-03-30 07:38:57 +00:00
msg "Installing eBook Apps"
2018-01-05 06:14:58 +00:00
installAppsFromList ebook
}
#
# install eBook Apps (Menu)
#
function installEbookMenu () {
installAppsFromListMenu ebook
2017-12-30 22:08:45 +00:00
}
#
# install Internet Apps (headless)
#
function installInternet () {
2018-03-30 07:38:57 +00:00
msg "Installing Internet Apps"
echo "opera-stable opera-stable/add-deb-source boolean false" | sudo debconf-set-selections
2017-12-30 22:08:45 +00:00
installAppsFromList internet
}
#
# install Internet Apps (Menu)
#
function installInternetMenu () {
2018-03-30 07:38:57 +00:00
echo "opera-stable opera-stable/add-deb-source boolean false" | sudo debconf-set-selections
2017-12-30 22:08:45 +00:00
installAppsFromListMenu internet
}
2018-03-21 07:14:10 +00:00
#
# Viber (headless)
#
function installViber () {
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
viber.deb
}
2017-12-30 22:08:45 +00:00
2018-03-21 07:14:10 +00:00
#
# Viber (Menu)
#
function installViberMenu () {
2018-03-30 07:38:57 +00:00
msg "Install Viber"
2017-12-30 22:08:45 +00:00
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
viber.deb
2018-03-21 07:14:10 +00:00
}
2017-12-30 22:08:45 +00:00
#
# Franz (headless)
#
function installFranz () {
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.17/franz_5.0.0-beta.17_amd64.deb \
franz.deb
}
#
# Franz (Menu)
#
function installFranzMenu () {
2018-03-30 07:38:57 +00:00
msg "Install Franz"
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.17/franz_5.0.0-beta.17_amd64.deb \
franz.deb
2017-12-30 22:08:45 +00:00
}
#
# install Misc Utilities Apps (headless)
#
function installMiscUtilities () {
2018-03-30 07:38:57 +00:00
msg "Installing utilities Apps"
2017-12-30 22:08:45 +00:00
installAppsFromList utilities
}
#
# install Misc Utilities Apps (Menu)
#
function installMiscUtilitiesMenu () {
installAppsFromListMenu utilities
}
#
# install Wine Build (headless)
#
function installWine () {
2018-03-30 07:38:57 +00:00
msg "Installing Wine Apps"
2017-12-30 22:08:45 +00:00
installAppsFromList wine
}
#
# install Wine Build (Menu)
#
function installWineMenu () {
installAppsFromListMenu wine
}
#
# install Game Apps (headless)
#
function installGames () {
2018-03-30 07:38:57 +00:00
msg "Installing Games apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList games
}
#
# install Game Apps (Menu)
#
function installGamesMenu () {
installAppsFromListMenu games
}
2018-03-23 11:29:52 +00:00
#
2018-03-30 07:38:57 +00:00
# Steam (Menu only, due to licence agreement)
2018-03-23 11:29:52 +00:00
#
function installSteamMenu () {
installPackage apt steam
}
2017-12-30 22:08:45 +00:00
#
# install Burning Apps (headless)
#
function installBurningTools () {
2018-03-30 07:38:57 +00:00
msg "Installing CD/DVD/BD Burning apps and tools"
installAppsFromListMenu burningtools
2017-12-30 22:08:45 +00:00
}
#
# install Burning Apps (Menu)
#
function installBurningToolsMenu () {
installAppsFromListMenu burningtools
}
#
# install Network Apps (headless)
#
function installNetTools () {
2018-03-30 07:38:57 +00:00
msg "Installing Network apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList nettools
}
#
# install Network Apps (Menu)
#
function installNetToolsMenu () {
installAppsFromListMenu nettools
}
#
# install Caja Plugins (headless)
#
function installCajaPlugins () {
2018-03-30 07:38:57 +00:00
msg "Installing Caja extensions"
2017-12-30 22:08:45 +00:00
installAppsFromList cajaplugins
}
#
# install Caja Plugins (Menu)
#
function installCajaPluginsMenu () {
installAppsFromListMenu cajaplugins
}
#
# install Nautilus Apps + plugins (headless)
#
function installNautilusAndPlugins () {
2018-03-30 07:38:57 +00:00
msg "Installing Nautilus and extensions"
2017-12-30 22:08:45 +00:00
installAppsFromList nautilus
}
#
# install Nautilus Apps + plugins (Menu)
#
function installNautilusAndPluginsMenu () {
installAppsFromListMenu nautilus
}
#
# install Gimp plugins (headless)
#
function installGimpPlugins () {
2018-03-30 07:38:57 +00:00
msg "Installing Gimp extensions"
2017-12-30 22:08:45 +00:00
installAppsFromList gimp
}
#
# install Gimp plugins (Menu)
#
function installGimpPluginsMenu () {
installAppsFromListMenu gimp
}
#
# install RhythmBox plugins (headless)
#
function installRhythmBoxPlugins () {
2018-03-30 07:38:57 +00:00
msg "Installing RhythmBox extensions"
2017-12-30 22:08:45 +00:00
installAppsFromList rhythmbox
}
#
# install RhythmBox plugins (Menu)
#
function installRhythmBoxPluginsMenu () {
installAppsFromListMenu rhythmbox
}
#
# install Pidgin plugins (headless)
#
function installPidginPlugins () {
2018-03-30 07:38:57 +00:00
msg "Installing Pidgin extensions"
2017-12-30 22:08:45 +00:00
installAppsFromList pidgin
}
#
# install Pidgin plugins (Menu)
#
function installPidginPluginsMenu () {
installAppsFromListMenu pidgin
}
#
# install Nitrogen app (headless)
#
function installNitrogen () {
2018-03-30 07:38:57 +00:00
msg "Installing Nitrogren"
2017-12-30 22:08:45 +00:00
installAppsFromList nitrogen
}
#
# install Nitrogen app (Menu)
#
function installNitrogenMenu () {
installAppsFromListMenu nitrogen
}
#
# install Beta Apps (headless)
#
function installBeta () {
2018-03-30 07:38:57 +00:00
msg "Installing Beta Apps"
2017-12-30 22:08:45 +00:00
installAppsFromList beta
}
#
# install Beta Apps (Menu)
#
function installBetaMenu () {
installAppsFromListMenu beta
}
#
# install Nightly Apps (headless)
#
function installNightly () {
2018-03-30 07:38:57 +00:00
msg "Installing Nightly Apps"
2017-12-30 22:08:45 +00:00
installAppsFromList nightly
}
#
# install Nightly Apps (Menu)
#
function installNightlyMenu () {
installAppsFromListMenu nightly
}
#
# install GTK Themes (headless)
#
function installThemes () {
2018-03-30 07:38:57 +00:00
msg "Installing themes"
2017-12-30 22:08:45 +00:00
installAppsFromList gtkthemes
}
#
# install GTK Themes (Menu)
#
function installThemesMenu () {
installAppsFromListMenu gtkthemes
}
#
# install Icon Themes (headless)
#
function installIcons () {
2018-03-30 07:38:57 +00:00
msg "Installing icons"
2017-12-30 22:08:45 +00:00
installAppsFromList icons
}
#
# install Icon Themes (Menu)
#
function installIconsMenu () {
installAppsFromListMenu icons
}
#
# install Solaar App (headless)
#
function installSolaar () {
2018-03-30 07:38:57 +00:00
msg "Installing Solaar"
2017-12-30 22:08:45 +00:00
installAppsFromList solaar
}
#
# install Solaar App (Menu)
#
function installSolaarMenu () {
installAppsFromListMenu solaar
}
#
# install CardReader Apps (headless)
#
function installCardReader () {
2018-03-30 07:38:57 +00:00
msg "Installing CardReader and utils"
2017-12-30 22:08:45 +00:00
installAppsFromList cardreader
}
#
# install CardReader Apps (Menu)
#
function installCardReaderMenu () {
installAppsFromListMenu cardreader
}
#
# update AMD/Intel CPU Microcode
#
function updateMicrocode () {
oldMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1`
intel=`cat /proc/cpuinfo | grep -i Intel | wc -l`
amd=`cat /proc/cpuinfo | grep -i Amd | wc -l`
if [ "$intel" -gt "0" ]; then
installPackage apt intel-microcode
elif [ "$amd" -gt "0" ]; then
installPackage apt amd64-microcode
fi
newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1`
2018-03-20 03:20:15 +00:00
printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version"
printf "\n"
2017-12-30 22:08:45 +00:00
}
#
# fix some config issue with Intel Wireless 6320 cards
#
function fixWirelessIntel6320 () {
2018-03-20 03:20:15 +00:00
runCmd "sudo cp /etc/modprobe.d/iwlwifi.conf /etc/modprobe.d/iwlwifi.conf.bak" \
"backing up config file"
runCmd "echo options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8 | sudo tee /etc/modprobe.d/iwlwifi.conf" \
"applying new config"
2017-12-30 22:08:45 +00:00
printf "[INFO] reboot required !!!"
printf "\n"
}
#
# install Webcam Apps (headless)
#
function installWebcam () {
2018-03-30 07:38:57 +00:00
msg "Installing Apps needed for Webcams"
2017-12-30 22:08:45 +00:00
installAppsFromList webcam
}
#
# install Webcam Apps (Menu)
#
function installWebcamMenu () {
installAppsFromListMenu webcam
}
#
# install Nvidia Drivers (headless)
#
function installNvidia370 () {
2018-03-30 07:38:57 +00:00
msg "Installing Nvidia 370 driver"
2017-12-30 22:08:45 +00:00
installAppsFromList nvidia-370
}
#
# install Nvidia Drivers (Menu)
#
function installNvidia370Menu () {
installAppsFromListMenu nvidia-370
}
#
# install Nvidia Drivers (headless)
#
function installNvidia375 () {
2018-03-30 07:38:57 +00:00
msg "Installing Nvidia 375 driver"
2017-12-30 22:08:45 +00:00
installAppsFromList nvidia-375
}
#
# install Nvidia Drivers (Menu)
#
function installNvidia375Menu () {
installAppsFromListMenu nvidia-375
}
#
# install Nvidia Drivers (headless)
#
function installNvidia378 () {
2018-03-30 07:38:57 +00:00
msg "Installing Nvidia 378 driver"
2017-12-30 22:08:45 +00:00
installAppsFromList nvidia-378
}
#
# install Nvidia Drivers (Menu)
#
function installNvidia378Menu () {
installAppsFromListMenu nvidia-378
}
#
# install Nvidia Drivers (headless)
#
function installNvidia381 () {
2018-03-30 07:38:57 +00:00
msg "Installing Nvidia 381 driver"
2017-12-30 22:08:45 +00:00
installAppsFromList nvidia-381
}
#
# install Nvidia Drivers (Menu)
#
function installNvidia381Menu () {
installAppsFromListMenu nvidia-381
}
#
# install Nvidia Drivers (headless)
#
function installNvidia384 () {
2018-03-30 07:38:57 +00:00
msg "Installing Nvidia 384 driver"
2017-12-30 22:08:45 +00:00
installAppsFromList nvidia-384
}
#
# install Nvidia Drivers (Menu)
#
function installNvidia384Menu () {
installAppsFromListMenu nvidia-384
}
#
# install TLP App (headless)
#
function installTLP () {
2018-03-30 07:38:57 +00:00
msg "Installing TLP"
2017-12-30 22:08:45 +00:00
installAppsFromList tlp
}
#
# install TLP App (Menu)
#
function installTLPMenu () {
installAppsFromListMenu tlp
}
#TODO:
function installKeyIDuDev () {
2018-03-30 07:38:57 +00:00
msg "Adding UDEV rules"
2017-12-30 22:08:45 +00:00
sudo sh -c "echo '# this udev file should be used with udev 188 and newer\n\
ACTION!=\"add|change\", GOTO=\"u2f_end\"\n\
\n\
# Key-ID FIDO U2F\n\
KERNEL==\"hidraw*\", SUBSYSTEM==\"hidraw\", ATTRS{idVendor}==\"096e\", ATTRS{idProduct}==\"0850|0880\", TAG+=\"uaccess\"\n\
\n\
LABEL=\"u2f_end\"' > /etc/udev/rules.d/70-u2f.rules"
2018-03-20 03:20:15 +00:00
runCmd "sudo service udev restart" \
"restarting UDEV service"
2017-12-30 22:08:45 +00:00
}
#
# install Dev Apps (headless)
#
function installDevApps () {
2018-03-30 07:38:57 +00:00
msg "Installing base Dev apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList dev
}
#
# install Dev Apps (Menu)
#
function installDevAppsMenu () {
installAppsFromListMenu dev
}
2018-03-19 05:34:33 +00:00
#
# install Javascript env (headless)
#
function installJavascript () {
2018-03-30 07:38:57 +00:00
msg "Installing Javascript env"
2018-03-19 05:34:33 +00:00
installAppsFromList javascript
}
#
# install Javascript env (Menu)
#
function installJavascriptMenu () {
installAppsFromListMenu javascript
}
2017-12-30 22:08:45 +00:00
#
# install JAVA 9 (headless)
#
function installJava9 () {
2018-03-30 07:38:57 +00:00
msg "Installing Java9 + set as Default"
2017-12-30 22:08:45 +00:00
installAppsFromList java9
}
#
# install JAVA 9 (Menu)
#
function installJava9Menu () {
installAppsFromListMenu java9
}
#
# install Mongo DB 3 CE (headless)
#
function installMongo3CE () {
2018-03-30 07:38:57 +00:00
msg "Installing Mongo DB 3 CE Apps"
2017-12-30 22:08:45 +00:00
installAppsFromList mongodb-org
}
#
# install Mongo DB 3 CE (Menu)
#
function installMongo3CEMenu () {
installAppsFromListMenu mongodb-org
}
#
# install Python Apps (headless)
#
function installPython () {
2018-03-30 07:38:57 +00:00
msg "Installing Python apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList python
}
#
# install Python Apps (Menu)
#
function installPythonMenu () {
installAppsFromListMenu python
}
#
# install PHP Apps (headless)
#
function installPHP () {
2018-03-30 07:38:57 +00:00
msg "Installing PHP apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList php
}
#
# install PHP Apps (Menu)
#
function installPHPMenu () {
installAppsFromListMenu php
}
#
# install QT Apps/tools (headless)
#
function installQT () {
2018-03-30 07:38:57 +00:00
msg "Installing QT apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList qt
}
#
# install QT Apps/tools (Menu)
#
function installQTMenu () {
installAppsFromListMenu qt
}
#
# install LUA Apps (headless)
#
function installLUA () {
2018-03-30 07:38:57 +00:00
msg "Installing LUA apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList lua
}
#
# install LUA Apps (Menu)
#
function installLUAMenu () {
installAppsFromListMenu lua
}
#
# install Ruby Apps (headless)
#
function installRuby () {
2018-03-30 07:38:57 +00:00
msg "Installing Ruby apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList ruby
}
#
# install Ruby Apps (Menu)
#
function installRubyMenu () {
installAppsFromListMenu ruby
}
#TODO:
function installAndroidEnv () {
msg="Installing Android environment"
2018-03-20 03:20:15 +00:00
runCmd "touch /home/$myHomedir/.bashrc" \
"creating .bashrc file if necessary"
2017-12-30 22:08:45 +00:00
sh -c "echo '\n\nexport PATH=${PATH}:/home/'$myHomedir'/Android/Sdk/tools:/home/'$myHomedir'/Android/Sdk/platform-tools' >> /home/$myHomedir/.bashrc"
msg "Adding UDEV rules"
sudo sh -c "echo 'SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0502\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Acer\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0b05\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Asus\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"413c\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Dell\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0489\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Foxconn\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"04c5\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Fujitsu\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"04c5\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Fujitsu-Toshiba\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"091e\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Garmin-Asus\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"18d1\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Google-Nexus\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"201E\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Haier\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"109b\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Hisense\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0bb4\", MODE=\"0666\", OWNER=\""$myHomedir"\" # HTC\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"12d1\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Huawei\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"8087\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Intel\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"24e3\", MODE=\"0666\", OWNER=\""$myHomedir"\" # K-Touch\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"2116\", MODE=\"0666\", OWNER=\""$myHomedir"\" # KT Tech\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0482\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Kyocera\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"17ef\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Lenovo\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"1004\", MODE=\"0666\", OWNER=\""$myHomedir"\" # LG\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"22b8\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Motorola\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0e8d\", MODE=\"0666\", OWNER=\""$myHomedir"\" # MTK\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0409\", MODE=\"0666\", OWNER=\""$myHomedir"\" # NEC\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"2080\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Nook\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0955\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Nvidia\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"2257\", MODE=\"0666\", OWNER=\""$myHomedir"\" # OTGV\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"10a9\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Pantech\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"1d4d\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Pegatron\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0471\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Philips\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"04da\", MODE=\"0666\", OWNER=\""$myHomedir"\" # PMC-Sierra\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"05c6\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Qualcomm\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"1f53\", MODE=\"0666\", OWNER=\""$myHomedir"\" # SK Telesys\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"04e8\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Samsung\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"04dd\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Sharp\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"054c\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Sony\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0fce\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Sony Ericsson\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0fce\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Sony Mobile Communications\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"2340\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Teleepoch\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0930\", MODE=\"0666\", OWNER=\""$myHomedir"\" # Toshiba\n\
SUBSYSTEM==\"usb\", ATTR{idVendor}==\"19d2\", MODE=\"0666\", OWNER=\""$myHomedir"\" # ZTE' > /etc/udev/rules.d/99-android.rules"
2018-03-20 03:20:15 +00:00
runCmd "sudo service udev restart" \
"restarting UDEV service"
2017-12-30 22:08:45 +00:00
createAppShortcut "/home/"$myHomedir"/tools/Android/Sdk/tools/android" \
"/home/"$myHomedir"/.icons/android.png" \
"GNOME;GTK;Development;IDE" \
"Android SDK" \
"local" \
update-menus
}
#
# install Atom App (headless)
#
function installAtom () {
2018-03-30 07:38:57 +00:00
msg "Installing Atom and extensions"
2017-12-30 22:08:45 +00:00
installAppsFromList atom
}
#
# install Atom App (menu)
#
function installAtomMenu () {
2018-03-30 07:38:57 +00:00
msg "Installing Atom and extensions"
2017-12-30 22:08:45 +00:00
installAppsFromListMenu atom
}
#
# install Anjuta Apps (headless)
#
function installAnjuta () {
2018-03-30 07:38:57 +00:00
msg "Installing Anjuta"
2017-12-30 22:08:45 +00:00
installAppsFromList anjuta
}
#
# install Anjuta Apps (Menu)
#
function installAnjutaMenu () {
installAppsFromListMenu anjuta
}
#
# install Brackets Apps (headless)
#
function installBrackets () {
2018-03-30 07:38:57 +00:00
msg "Installing Brackets"
2017-12-30 22:08:45 +00:00
installAppsFromList brackets
}
#
# install Brackets Apps (Menu)
#
function installBracketsMenu () {
installAppsFromListMenu brackets
}
#
# install CodeBlocks Apps (headless)
#
function installCodeBlocks () {
2018-03-30 07:38:57 +00:00
msg "Installing CodeBlocks"
2017-12-30 22:08:45 +00:00
installAppsFromList codeblocks
}
#
# install CodeBlocks Apps (Menu)
#
function installCodeBlocksMenu () {
installAppsFromListMenu codeblocks
}
#
# install Geany Apps (headless)
#
function installGeany () {
2018-03-30 07:38:57 +00:00
msg "Installing Geany and extensions"
2017-12-30 22:08:45 +00:00
installAppsFromList geany
}
#
# install Geany Apps (Menu)
#
function installGeanyMenu () {
installAppsFromListMenu geany
}
#TODO:
function installEclipse () {
if which umake >/dev/null; then
msg "Umake installing : Eclipse"
sudo umake ide eclipse
fi
}
#
# install IDEA Apps (headless)
#
2017-12-30 22:08:45 +00:00
function installIdea () {
2018-03-30 07:38:57 +00:00
msg "Installing Intellij-IDEA"
installAppsFromList idea
}
#
# install IDEA Apps (Menu)
#
function installIdeaMenu () {
installAppsFromListMenu idea
2017-12-30 22:08:45 +00:00
}
#
# install Pycharm Apps (headless)
#
function installPyCharm () {
2018-03-30 07:38:57 +00:00
msg "Installing PyCharm"
2017-12-30 22:08:45 +00:00
installAppsFromList pycharm
}
#
# install Pycharm Apps (Menu)
#
function installPyCharmMenu () {
installAppsFromListMenu pycharm
}
2018-02-12 16:01:27 +00:00
#
2018-02-12 17:39:41 +00:00
# install Visual Studio Code Apps (headless)
2018-02-12 16:01:27 +00:00
#
2017-12-30 22:08:45 +00:00
function installVisualStudioCode () {
2018-03-30 07:38:57 +00:00
msg "Installing Visual Studio Code"
2018-02-12 16:01:27 +00:00
installAppsFromList code
}
#
2018-02-12 17:39:41 +00:00
# install Visual Studio Code Apps (Menu)
2018-02-12 16:01:27 +00:00
#
2018-02-12 17:39:41 +00:00
function installVisualStudioCodeMenu () {
2018-02-12 16:01:27 +00:00
installAppsFromListMenu code
2017-12-30 22:08:45 +00:00
}
2018-02-12 17:39:41 +00:00
#
# install Android-Studio Apps (headless)
#
2017-12-30 22:08:45 +00:00
function installAndroidStudio () {
2018-03-30 07:38:57 +00:00
msg "Installing Android-Studio"
installAppsFromList androidstudio
2017-12-30 22:08:45 +00:00
}
2018-02-12 17:39:41 +00:00
#
# install Android-Studio Apps (Menu)
#
function installAndroidStudioMenu () {
installAppsFromListMenu androidstudio
}
2018-02-12 17:39:41 +00:00
2017-12-30 22:08:45 +00:00
#
# install SublimeText Apps (headless)
#
function installSublimeText() {
2018-03-30 07:38:57 +00:00
msg "Installing Sublime-Text"
2017-12-30 22:08:45 +00:00
installAppsFromList sublime-text
}
#
# install SublimeText Apps (Menu)
#
function installSublimeTextMenu() {
installAppsFromListMenu sublime-text
}
#
# install CAD Apps (headless)
#
function installCAD () {
2018-03-30 07:38:57 +00:00
msg "Installing CAD apps and tools"
2017-12-30 22:08:45 +00:00
installAppsFromList cad
}
#
# install CAD Apps (Menu)
#
function installCADMenu () {
installAppsFromListMenu cad
}
#
# install Teamviewer 13 (headless)
#
function installTeamViewer13 () {
2018-03-30 07:38:57 +00:00
msg "Install Teamviewer 13"
2017-12-30 22:08:45 +00:00
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
2018-03-21 07:05:00 +00:00
teamviewer13.deb
2017-12-30 22:08:45 +00:00
}
#
# install Teamviewer 13 (Menu)
#
function installTeamViewer13Menu () {
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
2018-03-21 07:05:00 +00:00
teamviewer13.deb
}
#
# install/enable Unboud (headless)
#
function enableUnbound () {
2018-03-30 07:38:57 +00:00
msg "Installing Unbound"
installAppsFromList unbound
}
#
# install/enable Unboud (Menu)
#
function enableUnboundMenu () {
installAppsFromListMenu unbound
2017-12-30 22:08:45 +00:00
}