This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eux | |
| # Sample custom configuration script - add your own commands here | |
| # to add some additional commands for your environment | |
| # | |
| # For example: | |
| # yum install -y curl wget git tmux firefox xvfb | |
| echo "Installing Updates" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| networks: | |
| chef: | |
| driver: bridge | |
| services: | |
| ws: | |
| image: schoolofdevops/chef-controller:v1.2.0 | |
| ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # You may add here your | |
| # server { | |
| # ... | |
| # } | |
| # statements for each of your virtual hosts to this file | |
| ## | |
| # You should look at the following URL's in order to grasp a solid understanding | |
| # of Nginx configuration files in order to fully unleash the power of Nginx. | |
| # http://wiki.nginx.org/Pitfalls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ['make', 'sqlite3', 'libsqlite3-dev', 'git'] | |
| git '/opt/facebooc' do | |
| repository 'https://github.com/schoolofdevops/facebooc.git' | |
| revision 'master' | |
| action :sync | |
| end | |
| execute 'make facebooc' do | |
| cwd '/opt/facebooc' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update -y | |
| sudo apt install default-jdk -y | |
| mkdir /downloads | |
| cd /downloads && wget http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh | |
| cd /downloads && chmod +x netbeans-8.2-linux.sh | |
| cd /downloads && ./netbeans-8.2-linux.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update -y | |
| sudo apt-get install postgresql postgresql-contrib -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "Installing XAMPP" | |
| #Installing XAMPP | |
| mkdir /xampp | |
| cd /xampp && wget https://www.apachefriends.org/xampp-files/5.6.28/xampp-linux-x64-5.6.28-1-installer.run | |
| cd /xampp && chmod 755 xampp-linux-*-installer.run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Installing Docker" | |
| #Installing Docker | |
| sudo apt-get update -y | |
| sudo apt-get install apt-transport-https ca-certificates -y | |
| sudo apt-key adv \ | |
| --keyserver hkp://ha.pool.sks-keyservers.net:80 \ | |
| --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt-get update | |
| sudo apt-get install apt-transport-https ca-certificates | |
| sudo apt-key adv \ | |
| --keyserver hkp://ha.pool.sks-keyservers.net:80 \ | |
| --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step 1. Check the blockdevices and the file systems that are assigned to those block devices. | |
| lsblk | |
| Step 2. What kind of device is sdb? | |
| sudo lshw | |
| or | |
| sudo lshw | less |