From 844334b9c1f4ac3eb546693e55a4fc8820d67673 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 7 Feb 2016 16:19:03 +0000 Subject: [PATCH] Add automated package installs --- apt/add-apt-sources.sh | 6 ++++++ apt/applications.md | 19 +++++++++++++++++++ apt/apt-installs-core.json | 23 +++++++++++++++++++++++ apt/apt-installs-extra.json | 8 ++++++++ apt/apt-keys.json | 6 ++++++ apt/apt-repos.json | 4 ++++ bash/apt-installs-core.txt | 13 ------------- gnome/applications.md | 32 -------------------------------- wscript | 31 +++++++++++++++++++++++++++++++ 9 files changed, 97 insertions(+), 45 deletions(-) create mode 100644 apt/add-apt-sources.sh create mode 100644 apt/applications.md create mode 100644 apt/apt-installs-core.json create mode 100644 apt/apt-installs-extra.json create mode 100644 apt/apt-keys.json create mode 100644 apt/apt-repos.json delete mode 100644 bash/apt-installs-core.txt delete mode 100644 gnome/applications.md diff --git a/apt/add-apt-sources.sh b/apt/add-apt-sources.sh new file mode 100644 index 0000000..bfac3c3 --- /dev/null +++ b/apt/add-apt-sources.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +echo "deb http://downloads.hipchat.com/linux/apt stable main" > /etc/apt/sources.list.d/atlassian-hipchat.list +echo "deb http://apt.insynchq.com/ubuntu wily non-free contrib" > /etc/apt/sources.list.d/insync.list +echo "deb http://download.virtualbox.org/virtualbox/debian wily contrib" > /etc/apt/sources.list.d/virtualbox.list +echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/xUbuntu_15.10/ /' >> /etc/apt/sources.list.d/owncloud-client.list diff --git a/apt/applications.md b/apt/applications.md new file mode 100644 index 0000000..227780c --- /dev/null +++ b/apt/applications.md @@ -0,0 +1,19 @@ +# SDK +- Android SDK +- Java +- node +- nvm + +# Applications not installed automatically +- Astrill +- Atom +- GitKraken +- Messenger for desktop +- PlayOnLinux +- skype +- slack +- spotify +- thefuck +- WPS office +- xampp +- Yandex diff --git a/apt/apt-installs-core.json b/apt/apt-installs-core.json new file mode 100644 index 0000000..257458f --- /dev/null +++ b/apt/apt-installs-core.json @@ -0,0 +1,23 @@ +[ + "arduino", + "arduino-core", + "chromium-browser", + "filezilla", + "gimp", + "git", + "gnome-paint", + "gparted", + "htop", + "nautilus-dropbox" + "python-dev", + "python-pip", + "python3-dev", + "python3-pip", + "python3-venv", + "sl", + "ssh", + "steam", + "terminator", + "thunderbird", + "vlc", +] diff --git a/apt/apt-installs-extra.json b/apt/apt-installs-extra.json new file mode 100644 index 0000000..0cba809 --- /dev/null +++ b/apt/apt-installs-extra.json @@ -0,0 +1,8 @@ +[ + "hipchat", + "insync", + "kodi", + "virtualbox-5.0", + "owncloud-client", + "zeal" +] diff --git a/apt/apt-keys.json b/apt/apt-keys.json new file mode 100644 index 0000000..36e5c59 --- /dev/null +++ b/apt/apt-keys.json @@ -0,0 +1,6 @@ +[ + "https://www.hipchat.com/keys/hipchat-linux.key", + "https://d2t3ff60b2tol4.cloudfront.net/services@insynchq.com.gpg.key", + "https://www.virtualbox.org/download/oracle_vbox.asc", + "http://download.opensuse.org/repositories/isv:ownCloud:desktop/xUbuntu_15.10/Release.key" +] diff --git a/apt/apt-repos.json b/apt/apt-repos.json new file mode 100644 index 0000000..fc24841 --- /dev/null +++ b/apt/apt-repos.json @@ -0,0 +1,4 @@ +[ + "ppa:team-xbmc/ppa", + "ppa:zeal-developers/ppa" +] diff --git a/bash/apt-installs-core.txt b/bash/apt-installs-core.txt deleted file mode 100644 index 78ef361..0000000 --- a/bash/apt-installs-core.txt +++ /dev/null @@ -1,13 +0,0 @@ -filezilla -git -htop -python-dev -python-pip -python3-dev -python3-pip -python3-venv -sl -ssh -steam -thunderbird -vlc diff --git a/gnome/applications.md b/gnome/applications.md deleted file mode 100644 index ec4bd97..0000000 --- a/gnome/applications.md +++ /dev/null @@ -1,32 +0,0 @@ -- Arduino IDE -- Astrill -- Atom -- Chromium -- Dropbox -- GIMP -- GitKraken -- Gnome Paint -- gparted -- hipchat -- insync -- kodi -- messenger for desktop -- virtualbox -- owncloud client -- PlayOnLinux -- skype -- slack -- spotify -- terminator -- thefuck -- Wine -- WPS office -- xampp -- yandex -- zeal - -# SDK -Android SDK -Java -node -nvm diff --git a/wscript b/wscript index 735ceba..247e994 100644 --- a/wscript +++ b/wscript @@ -1,4 +1,35 @@ #!/usr/bin/env python3 +import json, os + +DIR = os.getcwd() + +def apt_install_core(ctx): + packages = json.load(open(DIR + '/apt/apt-installs-core.json')) + for package in packages: + print("apt-get install {} -y".format(package)) + + +def add_apt_keys(ctx): + keys = json.load(open(DIR + '/apt/apt-keys.json')) + for key in keys: + print("wget -O - {} | apt-key add -".format(key)) + + +def add_apt_sources(ctx): + os.system('apt/add-apt-sources.sh') + + +def add_apt_repos(ctx): + repos = json.load(open(DIR + '/apt/apt-repos.json')) + for repo in repos: + print("add-apt-repository {} -y".format(repo)) + + +def apt_install_extras(ctx): + packages = json.load(open(DIR + '/apt/apt-installs-extra.json')) + for package in packages: + print("apt-get install {} -y".format(package)) + if __name__ == '__main__': print("Please run this file using waf, not directly.")