Add automated package installs
This commit is contained in:
parent
2b3a33d6a6
commit
844334b9c1
9 changed files with 97 additions and 45 deletions
6
apt/add-apt-sources.sh
Normal file
6
apt/add-apt-sources.sh
Normal file
|
@ -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
|
19
apt/applications.md
Normal file
19
apt/applications.md
Normal file
|
@ -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
|
23
apt/apt-installs-core.json
Normal file
23
apt/apt-installs-core.json
Normal file
|
@ -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",
|
||||
]
|
8
apt/apt-installs-extra.json
Normal file
8
apt/apt-installs-extra.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
"hipchat",
|
||||
"insync",
|
||||
"kodi",
|
||||
"virtualbox-5.0",
|
||||
"owncloud-client",
|
||||
"zeal"
|
||||
]
|
6
apt/apt-keys.json
Normal file
6
apt/apt-keys.json
Normal file
|
@ -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"
|
||||
]
|
4
apt/apt-repos.json
Normal file
4
apt/apt-repos.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
"ppa:team-xbmc/ppa",
|
||||
"ppa:zeal-developers/ppa"
|
||||
]
|
|
@ -1,13 +0,0 @@
|
|||
filezilla
|
||||
git
|
||||
htop
|
||||
python-dev
|
||||
python-pip
|
||||
python3-dev
|
||||
python3-pip
|
||||
python3-venv
|
||||
sl
|
||||
ssh
|
||||
steam
|
||||
thunderbird
|
||||
vlc
|
|
@ -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
|
31
wscript
31
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.")
|
||||
|
|
Loading…
Reference in a new issue