Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -rp "Do you want to create commands to individually update, upgrade, autoremove packages, a command to do all of that at once, and commands to shutdown and reboot your system, do you want to install Amolith's favourite applications, or do you want to install Mycroft? (c/a/m)" q
- if [ "$q" = "c" ]; then
- cd
- #Create simple commands
- zenity --password > auth.txt
- echo "cat auth.txt | sudo -S apt-get update" > ud
- echo "cat auth.txt | sudo -S apt-get -y dist-upgrade" > ug
- echo "cat auth.txt | sudo -S apt -y autoremove" > remove
- echo "ud && ug && remove" > maintain
- echo "cat auth.txt | sudo -S shutdown now" > po
- echo "cat auth.txt | sudo -S shutdown -r now" > rb
- #Make the commands above executable and actual commands
- chmod +x ud
- chmod +x ug
- chmod +x remove
- chmod +x maintain
- chmod +x po
- chmod +x rb
- sudo cp ud /bin/ud
- sudo cp ug /bin/ug
- sudo cp remove /bin/remove
- sudo cp maintain /bin/maintain
- sudo cp po /bin/po
- sudo cp rb /bin/rb
- rm ud ug remove maintain rb po
- if [ "$q" = "a" ]; then
- #System maintenance
- maintain
- #Preload daemon
- sudo apt-get install -y preload
- #Wallpaper downloader/changer
- sudo apt-get install -y variety
- #British spell-checker
- sudo apt-get install -y hunspell-en-gb
- #Indicator Bulletin (clipboard manager)
- sudo add-apt-repository -y ppa:1047481448-2/sergkolo
- sudo apt-get update
- sudo apt-get install indicator-bulletin
- #Required for Windscribe
- sudo apt-get install -y apt-transport-https
- #Debian package installer
- sudo apt-get install -y gdebi
- #Gedit text editor
- sudo apt-get install -y gedit
- #Graphical partition editor
- sudo apt-get install -y gparted
- #LibreOffice
- sudo apt-get install -y libreoffice
- #LibreOffice theme
- sudo apt-get install -y libreoffice-style-breeze
- #Firefox
- sudo apt-get install -y firefox firefox-locale-en
- #Rhythmbox
- sudo apt-get install -y rhythmbox
- #Remove Pidgin
- sudo apt-get purge -y pidgin
- #Remove Chromium
- sudo apt-get purge -y chromium-browser
- #Remove Orage
- sudo apt-get purge -y orage
- #Remove deadbeef
- sudo apt-get purge -y deadbeef
- #Remove mousepad text editor
- sudo apt-get purge -y mousepad
- #Nautilus File Manager
- sudo apt-get install -y nautilus
- #KDE Connect
- sudo add-apt-repository -y ppa:webupd8team/indicator-kdeconnect
- sudo apt-get update
- sudo apt install -y indicator-kdeconnect
- #FluxGUI
- sudo add-apt-repository -y ppa:nathan-renniewaldock/flux
- sudo apt-get update
- sudo apt-get install -y fluxgui
- #Albert (distro-agnostic launcher)
- sudo add-apt-repository -y ppa:nilarimogard/webupd8
- sudo apt-get update
- sudo apt-get install -y albert
- #Signal Private Messenger
- curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
- echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
- sudo apt-get update
- sudo apt-get install -y signal-desktop
- #Creates a directory for .deb files to download into
- cd
- cd Downloads
- mkdir Programs
- cd Programs
- #Download Etcher image writer
- wget -O etcher https://github.com/resin-io/etcher/releases/download/v1.1.2/etcher-1.1.2-linux-x86_64.zip
- unzip etcher -d /Programs
- rm etcher-1.1.2-linux-x86_64.zip
- zenity --info --text="Now, Etcher is in the Programs folder and you can open that directory in Nautilus, double-click on it, and it gives you the option to install a desktop launcher."
- #Franz Messenger Hub
- wget -O franz.deb https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.14/franz_5.0.0-beta.14_amd64.deb
- sudo dpkg -i franz.deb
- sudo apt-get install -f -y
- #Atom text editor
- wget -O atom.deb https://atom.io/download/deb
- sudo dpkg -i atom.deb
- sudo apt-get install -f -y
- #Dropbox
- wget -O dropbox.deb https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2015.10.28_amd64.deb
- sudo dpkg -i dropbox.deb
- sudo apt-get install -f -y
- #Unified Remote Server
- wget -O urserver.deb https://www.unifiedremote.com/download/linux-x64-deb
- sudo dpkg -i urserver.deb
- sudo apt-get install -f -y
- #Mailspring email client
- wget -O mailspring.deb https://updates.getmailspring.com/download?platform=linuxDeb
- sudo dpkg -i mailspring.deb
- sudo apt-get install -f -y
- #Teamviewer
- wget -O teamviewer.deb https://download.teamviewer.com/download/teamviewer_i386.deb
- sudo dpkg -i teamviewer.deb
- sudo apt-get install -f -y
- #Joplin (Evernote alternative)
- wget -O joplin.AppImage https://github.com/laurent22/joplin/releases/download/v0.10.25/Joplin-0.10.25-x86_64.AppImage
- sudo chmod +x joplin.AppImage
- ./joplin.AppImage
- #MultiBootUSB
- wget -O mbusb.deb https://github.com/mbusb/multibootusb/releases/download/8.9.0/python3-multibootusb_8.9.0-1_all.deb
- sudo dpkg -i mbusb.deb
- sudo apt-get install -f -y
- #Slack
- wget -O slack.deb https://downloads.slack-edge.com/linux_releases/slack-desktop-3.0.2-amd64.deb
- sudo dpkg -i slack.deb
- sudo apt-get install -f -y
- #Download cursor theme Bridge and unpack straight into the icons directory so it shows up in Settings
- cd
- wget -O /tmp/bridge.tar.gz https://dl.opendesktop.org/api/files/download/id/1464728434/164587-bridge.tar.gz
- sudo tar -xvzf /tmp/bridge.tar.gz -C /usr/share/icons
- #Download icon theme Papirus and unpack straight into the themes directory so it shows up in Settings
- wget -O /tmp/papirus.zip https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/archive/master.zip
- sudo unzip /tmp/papirus.zip -C /usr/share/themes
- #Install Numix GTK theme
- sudo apt install numix-gtk-theme
- zenity --info --text="Make sure you select Bridge as the cursor, Papirus as the icon theme AND the window border theme, and Numix as the GTK+ theme when you go into Customise Look and Feel"
- #Use the cursor theme, Bridge, system-wide
- cd
- zenity --info --text="Replace whatever is here with Bridge"
- sudo gedit /usr/share/icons/default/index.theme
- #Install Windscribe VPN
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key FDC247B7
- echo 'deb https://repo.windscribe.com/ubuntu zesty main' | sudo tee /etc/apt/sources.list.d/windscribe-repo.list
- sudo apt-get update
- sudo apt-get install -y windscribe-cli
- xfce4-terminal -e "windscribe login && windscribe start"
- #Just to be sure we don't have any missing dependencies
- sudo apt-get install -f -y
- maintain
- #Finished
- zenity --info --text="Connect to Windscribe with windscribe connect best"
- zenity --info --text="Activate clipboard manager with indicator-bulletin"
- zenity --info --text="Scroll through the output and look for any errors so they can be fixed"
- cd
- if [ "$q" = "m" ]; then
- read -rp "Mycroft will take a long time to install. Do you want to continue? (y/n) " q2
- if [ "$q2" = "y" ]; then
- cd ~/
- git clone https://github.com/MycroftAI/mycroft-core.git
- cd mycroft-core
- bash dev_setup.sh
- #Make commands for starting Mycroft in different modes
- cd
- echo "cd ~/mycroft-core && ./start-mycroft.sh debug" > mycroft_cli
- echo "cd ~/mycroft-core && ./start-mycroft.sh all" > mycroft
- echo "cd ~/mycroft-core && ./start-mycroft.sh cli" > mc_cli
- echo "cd ~/mycroft-core && ./stop-mycroft.sh" > stop_mycroft
- #Make commands executable
- sudo chmod +x mycroft_cli mycroft mc_cli stop_mycroft
- sudo cp mycroft_cli /bin/mycroft_cli
- sudo cp mycroft /bin/mycroft
- sudo cp mc_cli /bin/mc_cli
- sudo cp stop_mycroft /bin/stop_mycroft
- rm mycroft_cli mycroft mc_cli stop_mycroft
- zenity --info --text="Start Mycroft with command line interface with mycroft_cli"
- zenity --info --text="Start Mycroft withOUT command line interface with mycroft"
- zenity --info --text="Bring up the command line AFTER you've started Mycroft with mc_cli"
- zenity --info --text="Stop Mycroft with stop_mycroft"
- if [ "$q2" = "n" ]; then
- sed -n '203, 229p' gallium_installer.sh > install_mycroft.sh
- sudo chmod +x mycroft_installer.sh
- zenity --info --text="You can install Mycroft later with ./install_mycroft.sh"
- fi
- fi
- fi
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement