"
39 | echo "Example: to delete hostname just run the command 'sudo delwebsite hostname'"
40 | fi
41 |
--------------------------------------------------------------------------------
/bin/includes/new-website:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | WEBROOT="/var/www/"
4 | VHOSTDIR="/etc/apache2/sites-available/"
5 | EXTENSION=".dev"
6 | RESTARTCMD="/usr/bin/sudo service apache2 reload"
7 | if [ "$1" != '' ]; then
8 | if [ ! -f "$VHOSTDIR$1.conf" ]; then
9 | cp "$VHOSTDIR/skeleton" "$VHOSTDIR$1$EXTENSION.conf"
10 | echo "created $VHOSTDIR$1$EXTENSION"
11 | else
12 | mv "$VHOSTDIR$1.conf" "$VHOSTDIR$1$EXTENSION.bak"
13 | cp "$VHOSTDIR/skeleton" "$VHOSTDIR$1$EXTENSION"
14 | echo "created $VHOSTDIR$1$EXTENSION and made a backup of the existing conf"
15 | fi
16 | find "$VHOSTDIR$1$EXTENSION.conf" -type f -exec sed -i "s/SKELETON/$1/" {} \;
17 | if [ ! -d "$WEBROOT$1/" ]; then
18 | mkdir "$WEBROOT$1/"
19 | chown -R $USER:$USER "$WEBROOT$1/"
20 | echo "created $WEBROOT$1/"
21 | sudo echo "127.0.1.1 $1$EXTENSION" >> /etc/hosts
22 | sudo touch $WEBROOT/$1/index.html
23 | sudo echo "Its works $1" >> $WEBROOT/$1/index.html
24 |
25 | else
26 | echo "$WEBROOT$1/ already exists"
27 | fi
28 | sudo a2ensite $1$EXTENSION.conf
29 | $RESTARTCMD
30 | echo "reloaded apache"
31 | elif [ "$1" = 'help' ] || [ "$1" = '' ]; then
32 | echo "usage:"
33 | echo "sudo new-website (newsite) "
34 | echo "Example: to create development environment just run the command 'sudo new-website hostname'"
35 | fi
36 |
--------------------------------------------------------------------------------
/CHANGELOG.txt:
--------------------------------------------------------------------------------
1 | a675032 (HEAD, master) Change Permission
2 | 3a86eeb Removing Grunt and Yeoman installation due to the issue https://github.com/darol100/lazydubuntu/issues/2#issuecomment-65826486
3 | ff7a64a Adding Variable to the lazy aliases
4 | 7f6d226 Adding SSMTP and configuration, Replacing Smartgit with Git-cola. Because Git-cola its a open source and it can be easly update with apt-get.
5 | 1305808 Adding the Virtual Host to the script and automation with the MYSQL & phpMyadmin credentials.
6 | 6bdc1ff Virtual Host Support: Fixes #1 and this files will allow to generated a virtual host and delete them.
7 | 3d2979d This will ask for credentials for the following packagaes: MYSQL, phpMyAdmin, Git, SSMTP.
8 | 539edf2 Apache License
9 | f4ed68f (origin/master, origin/HEAD) Addining #!/bin/bash
10 | b15612b Addining #!/bin/bash
11 | b2b9ba1 Addining #!/bin/bash
12 | 00c5d2d Addining #!/bin/bash
13 | d516fe9 Addining #!/bin/bash
14 | 1a8b605 Update basictools.sh
15 | 670b1b2 Update lampstack.sh
16 | 9b3fae9 Automate Build Essential
17 | 9a10d28 FTP, SSH Client & Server
18 | 6a6feb9 New Features (Grunt, NodeJs and Yeoman)
19 | c307b4e Remove To DO list
20 | d843508 This fixes #11 separation of files. In addition, I have remove sudo apm install atom-beautifier because it was not installing correctly.
21 | 97d3cce Composer Installer
22 | 2a34197 Automate Atom, Google Chrome and Firefox .
23 | 47b654f Developer Broswers
24 | a5cb19a Merge pull request #10 from DrTrills/patch-1
25 | 5b4fc64 Update README.md
26 | 521eb08 Fixing syntax error
27 | 873b318 Remove Markdown Preview
28 | 25c5d3f Automate Installation of Curl
29 | 07fceae Automate Installation of Git
30 | b906471 Update README.md
31 | be07a31 Updated README.md
32 | 446299e Updated README.md
33 | a1cea2f Lazy Aliases
34 | 4f338c9 Atom Packages for web development and Drupal, Git Configuration, Installation of SmartGit, Backup files, TODO List Markdown and README.md description.
35 | c7fa390 First Commit - Automation Drupal Development enviroment.
36 | a22069c Update README.md
37 | 1092267 Initial commit
38 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Lazy Dubuntu
2 | ===========
3 |
4 | ------------ Deprecated ------------
5 |
6 | I do not longer use Ubuntu as my development enviroment, for this reason I do not longer have interested on maintaining this project.
7 |
8 | [](https://gitter.im/darol100/lazydubuntu?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
9 |
10 | Setting Up my Drupal Environment in Ubuntu.
11 |
12 | The goal of this project is to be able to set-up a dev environment with one
13 | click. This script will run in your ubuntu and will set-up everything that you
14 | need to start developing website with Drupal and others technologies.
15 |
16 | ## Why?
17 | ### Fast
18 | This shell script it was created with the idea of speed up the process of setting up a development
19 | environment for Drupal and other technologies. This project will help you install
20 | a variety of Ubuntu packages with their proper configuration.
21 |
22 | -------------------------
23 |
24 | ### Flexible
25 | Since this project is open source you can pick and choose which packages that you want to be installed
26 | on your OS. For instance, if you do not want to install the text editor Atom because
27 | you already have the editor that you like. You can remove packages that you do not wanted on your OS.
28 |
29 | If you which removing packages please visit the usage page for more information.
30 |
31 | -------------------------
32 |
33 | ### Easy
34 | You do not need to spend hours trying to figure out what is the best configuration
35 | for you development Drupal environment. We configuration and documentation for you environment.
36 |
37 |
38 | ## Installation
39 | ### Before the installation
40 |
41 | We are asssuming that you have a clean installation of Ubuntu 14.04. Because this shell script is going to install a lot different packages and if your OS already have some packages with configuration it might be lost. This shell script it can be install either on a computer and/or virtual machine.
42 |
43 | ### Terminal Way
44 |
45 |
46 | wget https://github.com/darol100/lazydubuntu/archive/master.zip # Download Lazy Dubuntu
47 | unzip master.zip # Extract
48 | cd lazydubuntu-master
49 | sudo bash lazydubuntu.sh # Run the shell script
50 |
51 |
52 |
53 |
54 | ## Usage
55 | Please vist [Lazy Dubuntu Website](http://lazydubuntu.com/#usage "Lazy Dubuntu Website") for documentation usage.
56 |
--------------------------------------------------------------------------------
/bin/lampstack.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # LampStack
4 | # This shell script is going to contain Apache2 MySQL and PHP5.
5 |
6 | # Install LAMP Stack
7 | sudo apt-get update
8 |
9 | echo mysql-server-5.5 mysql-server/root_password password $MYSQLPassword | debconf-set-selections
10 | echo mysql-server-5.5 mysql-server/root_password_again password $MYSQLPassword | debconf-set-selections
11 |
12 | sudo apt-get install lamp-server^ -y
13 |
14 | # Apache Persmission For Virtual Host
15 | sudo chmod -R 755 /var/www
16 |
17 | # Enable mode_rewrite for clean urls.
18 | sudo a2enmod rewrite
19 |
20 | # This automate the phpMyAdmin installation.
21 | echo "phpmyadmin phpmyadmin/dbconfig-install boolean true" | debconf-set-selections
22 | echo "phpmyadmin phpmyadmin/app-password-confirm password $MYSQLPassword" | debconf-set-selections
23 | echo "phpmyadmin phpmyadmin/mysql/admin-pass password $MYSQLPassword" | debconf-set-selections
24 | echo "phpmyadmin phpmyadmin/mysql/app-pass password $MYSQLPassword" | debconf-set-selections
25 | echo "phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2" | debconf-set-selections
26 |
27 | # Install phpMyAdmin
28 | sudo apt-get install phpmyadmin -y
29 |
30 | # This will fix the MyScript complain on PhpMyadmin.
31 | ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini
32 | ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
33 | php5enmod mcrypt
34 |
35 | # Restart server to after the is enable mod_rewrite and the apache.conf
36 | sudo service apache2 restart
37 |
38 | # Installing Xdebug
39 | sudo apt-get install php5-xdebug
40 |
41 | # Configure Xdebug
42 | sudo echo '' >> /etc/php5/apache2/php.ini
43 | sudo echo '; Added for xdebug' >> /etc/php5/apache2/php.ini
44 | sudo echo 'zend_extension="/usr/lib/php5/20121212/xdebug.so"' >> /etc/php5/apache2/php.ini
45 | sudo echo 'xdebug.remote_enable=1' >> /etc/php5/apache2/php.ini
46 | sudo echo 'xdebug.remote_handler=dbgp xdebug.remote_mode=req' >> /etc/php5/apache2/php.ini
47 | sudo echo 'xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000' >> /etc/php5/apache2/php.ini
48 | sudo service apache2 restart
49 |
50 | # Virtual Host Support - Adding new virtual host file.
51 | sudo cp bin/includes/new-website /usr/local/bin/new-website
52 | sudo chmod +x /usr/local/bin/new-website
53 |
54 | # Virtual Host Support - Deleting virtual host.
55 | sudo cp bin/includes/delete-website /usr/local/bin/delete-website
56 | sudo chmod +x /usr/local/bin/delete-website
57 |
58 | # Adding Skeleton
59 | sudo cp bin/includes/skeleton /etc/apache2/sites-available
60 |
--------------------------------------------------------------------------------
/bin/basictools.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Variables
4 |
5 | SsmtpGmail="smtp.gmail.com:587"
6 | SsmtpConfig="/etc/ssmtp/ssmtp.conf"
7 |
8 | # Install SSMTP
9 | sudo apt-get update
10 | sudo apt-get install ssmtp -y
11 |
12 | # Configure SSMTP http://www.nixtutor.com/linux/send-mail-with-gmail-and-ssmtp/
13 | sudo sed -i -e "s/root=postmaster/root=$PostMaster/g" $SsmtpConfig
14 | sudo sed -i -e "s/mailhub=mail/mailhub=$SsmtpGmail/g" $SsmtpConfig
15 | sudo sed -i -e "s/hostname=username@gmail.com/$PostMaster/g" $SsmtpConfig
16 | sudo sed -i -e "s/#FromLineOverride=YES/FromLineOverride=YES/g" $SsmtpConfig
17 |
18 | sudo echo "AuthUser=$GmailUser" >> $SsmtpConfig
19 | sudo echo "AuthPass=$GmailPassword" >> $SsmtpConfig
20 | sudo echo "UseSTARTTLS=YES" >> $SsmtpConfig
21 |
22 | # Then add each account that you want to be able to send mail from by editing,
23 | # ‘/etc/ssmtp/revaliases‘:
24 | sudo echo "root:$PostMaster:$SsmtpGmail" >> /etc/ssmtp/revaliases
25 | sudo echo "localusername:$PostMaster:$SsmtpGmail" >> /etc/ssmtp/revaliases
26 |
27 | # Install git
28 | sudo apt-get update
29 | sudo apt-get install git -y
30 |
31 | # Setting Up Git
32 | git config --global user.name "$GitFullName"
33 | git config --global user.email $GitEmail
34 |
35 |
36 | # Install Git Cola
37 | sudo apt-get install git-cola -y
38 |
39 | # Install Curl
40 | sudo apt-get update
41 | sudo apt-get install curl -y
42 |
43 | # Install Composer
44 | php -r "readfile('https://getcomposer.org/installer');" | php
45 |
46 | # Access composer from anywhere on your system:
47 | sudo mv composer.phar /usr/local/bin/composer
48 |
49 | # Install Drush
50 | cd /usr/share
51 | sudo git clone --branch master https://github.com/drush-ops/drush.git
52 | cd drush
53 | composer install
54 | cd ~/
55 | # Access drush from anywhere on your system:
56 | ln -s /usr/share/drush/drush /usr/bin/drush
57 |
58 | # Install Atom (GUI Text Editor)
59 | sudo add-apt-repository ppa:webupd8team/atom -y
60 | sudo apt-get update
61 | sudo apt-get install atom -y
62 |
63 | # Installing Packages for Atom .
64 | # Drupal Packages:
65 |
66 | # language-drupal (http://drupal.org) syntax highlighting and snippets for Atom.
67 | sudo apm install language-drupal
68 |
69 | # drupal Drupal snippets, filetypes and hotkeys
70 | sudo apm install drupal
71 |
72 | # drupal-info-file Drupal info file syntax
73 | sudo apm install drupal-info-file
74 |
75 | # Atom Web Development
76 | # color-picker A Color Picker for the Atom Editor.
77 | sudo apm install color-picker
78 |
79 | #emmet The essential tool for web developers
80 | sudo apm install emmet
81 |
82 | #fancy-new-file Create files and directories by typing a relative path
83 | sudo apm install fancy-new-file
84 |
85 | # jshint Validate JavaScript with JSHint. In realtime or on save. Supports JSX
86 | sudo apm install jshint
87 |
88 | # atom-alignment A simple key-binding for aligning multi-line and multiple
89 | # selections in Atom (Based on the sublime text plugin)
90 | sudo apm install atom-alignment
91 |
92 | # change-case Change the case of selected text using node-change-case
93 | sudo apm install change-case
94 |
95 | # linter Validates your code using lintersatom-beautify
96 | sudo apm install linter
97 |
98 | # atom-html-preview A live preview tool for Atom Editor.
99 | sudo apm install atom-html-preview
100 |
101 | # bootstrap-3-snippetset A 'Twitter Bootstrap 3' snippetset.
102 | sudo apm install bootstrap-3-snippetset
103 |
104 | # Install Nano (Terminal Editor)
105 | sudo apt-get update
106 | sudo apt-get install nano
107 |
108 | # Installing Filezilla
109 | sudo apt-get update
110 | sudo apt-get install filezilla -y
111 |
112 | # Installing OpenSSH Client
113 | sudo apt-get update
114 | sudo apt-get install openssh-client -y
115 |
116 | # Installing OpenSSH Server
117 | sudo apt-get update
118 | sudo apt-get install openssh-server -y
119 |
120 | # Installing PHP cURL
121 | sudo apt-get install php5-curl -y
122 |
123 |
--------------------------------------------------------------------------------
/lazydubuntu.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Lazy Dubuntu
4 | # Setting Up my Drupal Enviroment in Ubuntu
5 | # Requiriment sudo
6 |
7 | if [[ $UID != 0 ]]; then
8 | echo "Please run this script with sudo:"
9 | echo "sudo $0 $*"
10 | exit 1
11 | fi
12 |
13 | # Git Configuration
14 | # To learn more about git configuration:
15 | # http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration
16 |
17 | EmailValidation="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
18 | echo
19 | echo ---------------------------------------------------------------------------
20 | echo "Git required to add your full-name and e-mail."
21 | echo "This will set-up the --global user.name and --global user.email"
22 | echo ---------------------------------------------------------------------------
23 | echo
24 | # Asking for a full name
25 | read -p "Enter Your Full Name: " GitFullName
26 |
27 | # Making the full name avaible across all the scripts
28 | export GitFullName
29 |
30 | # Asking for the e-mail and validate that is an e-mail.
31 | while true
32 | do
33 | read -p "Enter Email : " GitEmail
34 | echo
35 |
36 | if [[ $GitEmail =~ $EmailValidation ]] ; then
37 | export GitEmail
38 | break
39 | else
40 | echo "Invalid e-mail, Please enter a valid e-mail"
41 | fi
42 |
43 | done
44 |
45 | # MySQL & phpMyadmin Password.
46 | echo
47 | echo ---------------------------------------------------------------------------
48 | echo MySQL '&' phpMyAdmin
49 | echo This is going to be the root password.
50 | echo ---------------------------------------------------------------------------
51 |
52 | # Asking for password and a confirmation.
53 | while true
54 | do
55 | read -s -p "Password: " MYSQLPassword
56 | echo
57 | read -s -p "Confirm Password: " MYSQLPassword2
58 | echo
59 | [ "$MYSQLPassword" = "$MYSQLPassword2" ] && break
60 | echo "Password does not match, Please try again."
61 | done
62 |
63 | # Making the MySql Password avaible across all the scripts
64 | export MYSQLPassword
65 |
66 | echo
67 | echo ---------------------------------------------------------------------------
68 | echo Setting Up SSMTP to send emails from Ubuntu
69 | echo You would need an Gmail account.
70 | echo ---------------------------------------------------------------------------
71 | echo
72 |
73 |
74 | # Asking for the e-mail and validate that is an e-mail.
75 | while true
76 | do
77 | echo -------------------------------------------------------------------------
78 | echo "Pro Tip: You need make sure that you are typing your information"
79 | echo "correctly. If this credentials are wrong Drupal will not be able to send"
80 | echo "e-mails from you local envrironment."
81 | echo -------------------------------------------------------------------------
82 | echo
83 | read -p "Enter Your Gmail To Configure SSMTP: " PostMaster
84 | echo
85 |
86 | if [[ $PostMaster =~ $EmailValidation ]] ; then
87 | export PostMaster
88 | break
89 | else
90 | echo "Invalid e-mail, Please enter a valid e-mail"
91 | fi
92 |
93 | done
94 |
95 | echo ---------------------------------------------------------------------------
96 | echo 'Pro Tip: Usually Gmail Username can be found by deteling @gmail.com from'
97 | echo 'your gmail.com. For instance if your gmail is drupal@gmail.com, your'
98 | echo 'username will be drupal. Password should be the same as your gmail.'
99 | echo ---------------------------------------------------------------------------
100 | echo
101 | read -p "Enter Your Gmail Username: " GmailUser
102 |
103 | # Making the Gmail Username avaible across all the scripts
104 | export GmailUser
105 |
106 | # Asking for password and a confirmation.
107 | while true
108 | do
109 | read -s -p "Password: " GmailPassword
110 | echo
111 | read -s -p "Confirm Password: " GmailPassword2
112 | echo
113 | [ "$GmailPassword" = "$GmailPassword2" ] && break
114 | echo "Password does not match, Please try again."
115 | done
116 |
117 | # Making the Gmail Password avaible across all the scripts
118 | export GmailPassword
119 |
120 | # LampStack
121 | echo "Lamp Stack Installation"
122 | sudo -E bash bin/lampstack.sh
123 |
124 | # Basic Web Development Tools
125 | echo "Basic Web Development Tools"
126 | sudo -E bash bin/basictools.sh
127 |
128 | # Lazy Aliases
129 | echo "Lazy Aliases"
130 | sudo bash bin/lazyaliases.sh
131 |
132 | # Web Designers
133 | echo "Web Front-end Development Tools"
134 | sudo bash bin/webdesigner.sh
135 |
136 | # Web Developers
137 | echo "Web Back-end Development Tools"
138 | sudo bash bin/webdeveloper.sh
139 |
--------------------------------------------------------------------------------
/bin/lazyaliases.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Lazy Aliases
4 |
5 | cd ~/
6 | sudo touch .bash_aliases
7 | sudo chmod 644 .bash_aliases
8 |
9 | BashAliases='.bash_aliases'
10 |
11 | # Manage Packages Aliases
12 | sudo echo "# Manage packages" >> $BashAliases
13 | sudo echo " " >> $BashAliases
14 | sudo echo "alias agi='sudo apt-get install'" >> $BashAliases
15 | sudo echo "alias agr='sudo apt-get remove'" >> $BashAliases
16 | sudo echo "alias agu='sudo apt-get update'" >> $BashAliases
17 | sudo echo "alias acs='apt-cache search'" >> $BashAliases
18 | sudo echo " " >> $BashAliases
19 |
20 | # Manage files and folders Aliases
21 | sudo echo "# Manage files and folders" >> $BashAliases
22 | sudo echo " " >> $BashAliases
23 | sudo echo "alias cp='cp -iv'" >> $BashAliases
24 | sudo echo "alias mv='mv -iv'" >> $BashAliases
25 | sudo echo "alias rm='rm -i'" >> $BashAliases
26 | sudo echo "alias la='ls -alh'" >> $BashAliases
27 | sudo echo " " >> $BashAliases
28 |
29 | # Navigation systems Aliases
30 | sudo echo "# Navigating the system" >> $BashAliases
31 | sudo echo "alias documents='cd ~/Documents'" >> $BashAliases
32 | sudo echo "alias downloads='cd ~/Downloads'" >> $BashAliases
33 | sudo echo "alias desktop='cd ~/Desktop'" >> $BashAliases
34 | sudo echo "alias music='cd ~/Music'" >> $BashAliases
35 | sudo echo "alias videos='cd ~/Videos'" >> $BashAliases
36 | sudo echo "alias ..='cd ..'" >> $BashAliases
37 | sudo echo "alias ...='cd ../..'" >> $BashAliases
38 | sudo echo "alias ....='cd ../../..'" >> $BashAliases
39 | sudo echo " " >> $BashAliases
40 |
41 | # Other Linux Useful Aliases
42 | sudo echo "# Other useful aliases" >> $BashAliases
43 | sudo echo "alias e='exit'" >> $BashAliases
44 | sudo echo "alias s='sudo'" >> $BashAliases
45 | sudo echo "alias shutdown='sudo shutdown -h now'" >> $BashAliases
46 | sudo echo "alias restart='sudo shutdown -r now'" >> $BashAliases
47 | sudo echo "alias suspend='sudo pm-suspend'" >> $BashAliases
48 | sudo echo "alias mounted='mount | column -t'" >> $BashAliases
49 | sudo echo " " >> $BashAliases
50 |
51 | # Git Aliases
52 | sudo echo "# Git Aliases" >> $BashAliases
53 | sudo echo "alias gs='git status '" >> $BashAliases
54 | sudo echo "alias ga='git add '" >> $BashAliases
55 | sudo echo "alias gb='git branch '" >> $BashAliases
56 | sudo echo "alias gc='git commit'" >> $BashAliases
57 | sudo echo "alias gd='git diff'" >> $BashAliases
58 | sudo echo "alias go='git checkout '" >> $BashAliases
59 | sudo echo "alias gcm='git commit -m'" >> $BashAliases
60 |
61 | # Virtual Host Support
62 | sudo echo "alias newsite='sudo new-website'" >> $BashAliases
63 | sudo echo "alias delsite='sudo delete-website'" >> $BashAliases
64 |
65 | source ~/.bash_aliases
66 | =======
67 | touch .bash_aliases
68 | chmod 644 .bash_aliases
69 |
70 | sudo echo "# Manage packages" >> ~/.bash_aliases
71 | sudo echo " " >> ~/.bash_aliases
72 | sudo echo "alias agi='sudo apt-get install'" >> ~/.bash_aliases
73 | sudo echo "alias agr='sudo apt-get remove'" >> ~/.bash_aliases
74 | sudo echo "alias agu='sudo apt-get update'" >> ~/.bash_aliases
75 | sudo echo "alias acs='apt-cache search'" >> ~/.bash_aliases
76 | sudo echo " " >> ~/.bash_aliases
77 | sudo echo "# Manage files and folders" >> ~/.bash_aliases
78 | sudo echo " " >> ~/.bash_aliases
79 | sudo echo "alias cp='cp -iv'" >> ~/.bash_aliases
80 | sudo echo "alias mv='mv -iv'" >> ~/.bash_aliases
81 | sudo echo "alias rm='rm -i'" >> ~/.bash_aliases
82 | sudo echo "alias la='ls -alh'" >> ~/.bash_aliases
83 | sudo echo " " >> ~/.bash_aliases
84 | sudo echo "# Navigating the system" >> ~/.bash_aliases
85 | sudo echo "alias documents='cd ~/Documents'" >> ~/.bash_aliases
86 | sudo echo "alias downloads='cd ~/Downloads'" >> ~/.bash_aliases
87 | sudo echo "alias desktop='cd ~/Desktop'" >> ~/.bash_aliases
88 | sudo echo "alias music='cd ~/Music'" >> ~/.bash_aliases
89 | sudo echo "alias videos='cd ~/Videos'" >> ~/.bash_aliases
90 | sudo echo "alias ..='cd ..'" >> ~/.bash_aliases
91 | sudo echo "alias ...='cd ../..'" >> ~/.bash_aliases
92 | sudo echo "alias ....='cd ../../..'" >> ~/.bash_aliases
93 | sudo echo " " >> ~/.bash_aliases
94 | sudo echo "# Other useful aliases" >> ~/.bash_aliases
95 | sudo echo "alias e='exit'" >> ~/.bash_aliases
96 | sudo echo "alias s='sudo'" >> ~/.bash_aliases
97 | sudo echo "alias shutdown='sudo shutdown -h now'" >> ~/.bash_aliases
98 | sudo echo "alias restart='sudo shutdown -r now'" >> ~/.bash_aliases
99 | sudo echo "alias suspend='sudo pm-suspend'" >> ~/.bash_aliases
100 | sudo echo "alias mounted='mount | column -t'" >> ~/.bash_aliases
101 | sudo echo "# Git Aliases" >> ~/.bash_aliases
102 | sudo echo " " >> ~/.bash_aliases
103 | sudo echo "alias gs='git status '" >> ~/.bash_aliases
104 | sudo echo "alias ga='git add '" >> ~/.bash_aliases
105 | sudo echo "alias gb='git branch '" >> ~/.bash_aliases
106 | sudo echo "alias gc='git commit'" >> ~/.bash_aliases
107 | sudo echo "alias gd='git diff'" >> ~/.bash_aliases
108 | sudo echo "alias go='git checkout '" >> ~/.bash_aliases
109 | sudo echo "alias gcm='git commit -m'" >> ~/.bash_aliases
110 |
111 | # Reload Aliases
112 | source ~/.bash_aliases
113 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright 2014 Darryl Norris
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
203 |
--------------------------------------------------------------------------------