Skip to content

Commit

Permalink
Merge pull request #65 from barriosnahuel/hotfix/disable-each-module
Browse files Browse the repository at this point in the history
Let users disable each module
  • Loading branch information
barriosnahuel committed May 12, 2016
2 parents 04804d8 + 9c12462 commit 1f2bb75
Show file tree
Hide file tree
Showing 22 changed files with 46 additions and 20 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EFU (Easy-Fast-Upgradable): The SH script you need to finish your Ubuntu/MacOS X
## Use it
1. Download [latest release](https://github.com/barriosnahuel/efu/releases).
2. `cd` into downloaded directory.
3. Edit `properties.sh` with your custom info.
3. Edit `properties.sh` with your custom info. Properties are required in order tu setup GIT.
4. `sh install.sh [osx | ubuntu | lubuntu]`
5. In a new tab of your terminal: `tail –f ~/Downloads/efu.log`
6. Once finished, take a look to: `~/Downloads/summary.efu.log`
Expand All @@ -24,7 +24,7 @@ If you want to run EFU on **Ubuntu**, you can just:

1. Download [latest release](https://github.com/barriosnahuel/efu/releases) on your `~/Downloads` directory.
2. `cd` into downloaded directory.
3. Edit `properties.sh` with your custom info.
3. Edit `properties.sh` with your custom info. Properties are required in order tu setup GIT.
4.
```shell
gnome-terminal --working-directory ~/Downloads/ \
Expand Down Expand Up @@ -59,14 +59,13 @@ With a little of your interaction, EFU will:
- Heroku toolbelt
- Kotlin
- Maven
- [Mixxx](http://www.mixxx.org/)
- [Mixxx](http://www.mixxx.org/): DJ software
- NodeJS
- [sdkman](http://sdkman.io/)
- Tomcat
- ZSH and [Oh-My-ZSH](https://github.com/robbyrussell/oh-my-zsh)
- Install (and setup) many software (OS X only):
- Homebrew (OS X only)
- Transmission torrents client
- Install (and setup) many software (Ubuntu only):
- Common packages to compress and uncompress common files
- Dropbox
Expand All @@ -77,16 +76,14 @@ With a little of your interaction, EFU will:
- TeamViewer
- WebP command line tools
- ++
- Suggest (with direct links) to download latest version of:
- Suggest (with links) to download latest version of:
- Android Studio
- Java 7 and 8
- [JDownloader](http://jdownloader.org/home/index)
- JetBrains [Intellij IDEA](https://www.jetbrains.com/idea/) (EAP)
- [Macs Fan Control](http://www.crystalidea.com/macs-fan-control)
- Transmission torrents client

## Repo usage
*Do not clone or push to* **master** *branch.*

Create branch or fork from **develop**, then push or create pull requests (if you don't have access) to that branch.
## Contributing

The repo uses [this branching model](http://nvie.com/posts/a-successful-git-branching-model/).
The repo uses [this branching model](http://nvie.com/posts/a-successful-git-branching-model/).
2 changes: 1 addition & 1 deletion Ubuntu/core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ preInstallationLog "GParted with NTFS support"
sudo apt-get -fy install gparted ntfs-3g


logInfo "Adding repositories for Rhythmbox and its plugins..."
log "Adding repositories for Rhythmbox and its plugins..."
sudo add-apt-repository ppa:fossfreedom/rhythmbox -y
sudo add-apt-repository ppa:fossfreedom/rhythmbox-plugins -y
sudo apt-get update
Expand Down
3 changes: 0 additions & 3 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ fi
. modules/nodejs.sh

. modules/android.sh
cd "${CURRENT_DIR}"
. modules/sublime-text.sh

# Remember that go.sh requires Homebrew.sh.
Expand All @@ -46,14 +45,12 @@ cd "${CURRENT_DIR}"

. modules/java.sh
. modules/gimp.sh
cd "${CURRENT_DIR}"
. modules/google-app-engine.sh

# Remember that heroku.sh requires Homebrew.sh.
. modules/heroku.sh

. modules/tomcat.sh
cd "${CURRENT_DIR}"
. modules/mixxx.sh

# sdkman at the end because SDKMAN_DIR environment variable must be at the end to work.
Expand Down
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ logInfo "Remember to download the following plugins for both IDEA/Android Studio
logInfo "Download JDownloader2 from: http://jdownloader.org/download/index"


# Required because we're moving away from current directory when creating directories or uncompressing software =(
CURRENT_DIR="$( cd "$( dirname "$0" )" && pwd )"


log "Creating coding directories tree"
. ./createDirectoriesTree.sh
log "Coding directories tree created ok"
cd "${CURRENT_DIR}"


log "Loading properties file..."
cd "${CURRENT_DIR}"
. ./properties.sh
log "Properties file loaded ok"

Expand Down
2 changes: 2 additions & 0 deletions modules/android.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 17/3/16.

cd "${CURRENT_DIR}"

log "Configuring Android development environment..." &&

if [ "$(isUbuntu "$PLATFORM")" ]; then
Expand Down
1 change: 1 addition & 0 deletions modules/gimp.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Created by Nahuel Barrios on 25/3/16.

cd "${CURRENT_DIR}"

if [ "$(isUbuntu "$PLATFORM")" ]; then

Expand Down
1 change: 1 addition & 0 deletions modules/git.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Created by Nahuel Barrios on 17/3/16.

cd "${CURRENT_DIR}"

if ! command -v git >/dev/null; then

Expand Down
3 changes: 2 additions & 1 deletion modules/go.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/bash
# Created by Nahuel Barrios on 24/3/16.

cd "${CURRENT_DIR}"

if ! command -v go >/dev/null; then

preInstallationLog "Go language"

if [ "$(isUbuntu "$PLATFORM")" ]; then

logInfo "Adding repositories for Go language"
log "Adding repositories for Go language"

sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
Expand Down
2 changes: 2 additions & 0 deletions modules/google-app-engine.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 25/3/16.

cd "${CURRENT_DIR}"

preInstallationLog "Google App Engine SDK"

cd ~/Coding/xDKs/
Expand Down
3 changes: 2 additions & 1 deletion modules/google-drive.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/bin/bash
# Created by Nahuel Barrios on 24/3/16.

cd "${CURRENT_DIR}"

if ! command -v drive >/dev/null; then

preInstallationLog "Google Drive client"

if [ "$(isUbuntu "$PLATFORM")" ]; then
logInfo "Adding repositories for Google Drive client..."
log "Adding repositories for Google Drive client..."

sudo add-apt-repository ppa:twodopeshaggy/drive
sudo apt-get update
Expand Down
4 changes: 3 additions & 1 deletion modules/heroku.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 25/3/16.

cd "${CURRENT_DIR}"

if ! command -v heroku >/dev/null; then
preInstallationLog "Heroku toolbelt"

Expand All @@ -16,7 +18,7 @@ if ! command -v heroku >/dev/null; then
log "Adding existent public keys to Heroku to be able to run commands..." &&
heroku keys:add

logInfo "Heroku account configured successfully."
log "Heroku account configured successfully."
else
logAlreadyInstalled "Heroku toolbelt"
fi
Expand Down
2 changes: 2 additions & 0 deletions modules/homebrew.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 18/3/16.

cd "${CURRENT_DIR}"

preInstallationLog "Homebrew"
if ! command -v brew >/dev/null; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Expand Down
1 change: 1 addition & 0 deletions modules/java.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Created by Nahuel Barrios on 24/3/16.

cd "${CURRENT_DIR}"

if grep "JAVA_HOME" ~/.zshrc; then
logAlreadyInstalled "Java"
Expand Down
2 changes: 2 additions & 0 deletions modules/maven.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 25/3/16.

cd "${CURRENT_DIR}"

if ! command -v mvn >/dev/null; then
preInstallationLog "Apache Maven"

Expand Down
3 changes: 2 additions & 1 deletion modules/mixxx.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash
# Created by Nahuel Barrios on 25/3/16.

cd "${CURRENT_DIR}"

if [ "$(isUbuntu "$PLATFORM")" ]; then

preInstallationLog "Mixxx DJ Software"

logInfo "Adding repositories for Mixxx DJ software..."
log "Adding repositories for Mixxx DJ software..."
sudo add-apt-repository ppa:mixxx/mixxx -y
sudo apt-get update
sudo apt-get -fy install mixxx libportaudio2
Expand Down
1 change: 1 addition & 0 deletions modules/nodejs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Created by Nahuel Barrios on 24/3/16.

cd "${CURRENT_DIR}"

if ! command -v node >/dev/null; then
preInstallationLog "NodeJS (with NPM)"
Expand Down
2 changes: 2 additions & 0 deletions modules/oh-my-zsh.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 24/3/16.

cd "${CURRENT_DIR}"

preInstallationLog "ZSH"
if [ "$(isUbuntu "$PLATFORM")" ]; then
sudo apt-get -fy install zsh
Expand Down
1 change: 1 addition & 0 deletions modules/sdkman/sdkman.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# Created by Nahuel Barrios on 17/3/16.

cd "${CURRENT_DIR}"

if ! command -v sdk >/dev/null; then
preInstallationLog "sdkman"
Expand Down
2 changes: 2 additions & 0 deletions modules/ssh.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 25/3/16.

cd "${CURRENT_DIR}"

logInfo "Generating a new SSH Key for $USER_EMAIL" &&

# Creates a new ssh key, using the provided email as a label
Expand Down
3 changes: 2 additions & 1 deletion modules/sublime-text.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash
# Created by Nahuel Barrios on 25/3/16.

cd "${CURRENT_DIR}"

if [ "$(isUbuntu "$PLATFORM")" ]; then
logInfo "Adding repositories for Sublime Text 3..."
log "Adding repositories for Sublime Text 3..."
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y
sudo apt-get update

Expand Down
2 changes: 2 additions & 0 deletions modules/tomcat.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 25/3/16.

cd "${CURRENT_DIR}"

preInstallationLog "Apache Tomcat"

cd ~/Coding/servers/
Expand Down
3 changes: 3 additions & 0 deletions properties.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
# Created by Nahuel Barrios on 24/3/16.

#########################################
#### Will be used for in GIT module. ####
#########################################
USER_FULL_NAME="Nahuel Barrios"
USER_EMAIL="[email protected]"

0 comments on commit 1f2bb75

Please sign in to comment.