-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·71 lines (47 loc) · 1.91 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# maybe this script is avaliable via wget, so it can start with:
# sudo apt-get install git
# git clone [email protected]:ygneo/linux-confs.git conf
## Add ppas and repositories keys ##
# docker
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
## Install packages ##
REQUIRED_PACKAGES="chromium-browser hamster-indicator terminator vim ipython python-pip virtualenvwrapper pidgin lxc-docker virtualbox emacs23 openvpn gimp apache2-utils filezilla unrar pwgen curl python-tk idle python-pmw libjpeg8 libjpeg-dev libfreetype6 libfreetype6-dev"
OPTIONAL_PACKAGES="postgresql-client libpq-dev libgeos-dev python-dev libmysqlclient-dev mysql-server mercurial pepperflashplugin-nonfree gitg npm"
POSTGIS_PACKAGES="postgis* pgadmin3"
SYSTEM_PACKAGES="$REQUIRED_PACKAGES $OPTIONAL_PACKAGES"
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install $SYSTEM_PACKAGES
### Configure user enviroment and directories ###
# bash
if [ -f ~/.bashrc ]; then
mv ~/.bashrc ~/.bashrc.old
fi
ln -s $(pwd)/.bashrc ~/.bashrc
source ~/.bashrc
# emacs
ln -s $(pwd)/.emacs.d ~/.emacs.d
ln -s $(pwd)/.emacs ~/.emacs
if [ ! -d ~/dev ]; then
mkdir ~/dev
fi
if [ ! -d ~/vpns ]; then
mkdir ~/vpns
fi
# sudo
source add_sudoer_commands.sh
# TODO: Add /etc/hosts to this repo and ln -s to /etc
# This repo must be private first
# TODO: clone repos if they're not present
# TODO: create virtualenv / dockers
# TODO: keep in this repo virtualenvs hooks (whole directories?)
## Configure packages ##
# git
git config --global user.email "[email protected]"
git config --global user.name "ygneo"
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
# TODO pidgin configuration file