Skip to content

Instantly share code, notes, and snippets.

@gnh1201
Created August 4, 2017 04:36
Show Gist options
  • Save gnh1201/c9123088ffe81d58a4a562bbd2167fe8 to your computer and use it in GitHub Desktop.
Save gnh1201/c9123088ffe81d58a4a562bbd2167fe8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#
# Copyright 2017 Gustavo Arjones (@arjones)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
echo "Updating System"
apt-get update
apt-get install -y vim net-tools
cat > /home/vagrant/.bash_aliases <<EOF
alias l1='ls -1 --color'
alias ll='ls -la --color'
alias lh='ls -lah --color'
alias grep='egrep --color'
EOF
. /home/vagrant/.bash_aliases
echo "Copying datasets to /opt/dataset"
mkdir /opt/dataset
chmod -R 777 /opt/dataset
cp -vR /vagrant/data/* /opt/dataset/
echo "Copying code example to /home/vagrant/samples"
mkdir /home/vagrant/samples/
chmod -R 777 /home/vagrant/samples
cp -vR /vagrant/code/* /home/vagrant/samples/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment