File: ubuntu-provision.sh

package info (click to toggle)
getmac 0.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 976 kB
  • sloc: python: 2,133; sh: 84; makefile: 23
file content (19 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Basic Provisioning for Ubuntu

set -e

sudo apt-get update -y
sudo apt-get install -y \
    git make dos2unix nano \
    python python-pip python-setuptools python-virtualenv python-dev \
    python3 python3-pip python3-setuptools python3-virtualenv python3-dev

# Pull down the codebase
cd "$HOME" || exit
git clone https://github.com/GhostofGoes/getmac.git

# Create Python virtual environments
mkdir -p "$HOME/.virtualenvs/"
python3 -m virtualenv --python=python3 "$HOME/.virtualenvs/getmac3"
python -m virtualenv --python=python2 "$HOME/.virtualenvs/getmac27"