Adapted from here
- Install all packages
sudo apt-get update
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git
- Configure PostgresSQL
Adapted from here
sudo apt-get update
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git
Confirm and update Hostname
sudo nano /etc/hosts
sudo nano /etc/hostname
Install Java 8
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update && apt-get -y install oracle-java8-installer
FROM debian:wheezy | |
MAINTAINER seriald@vitori.org | |
echo "deb http://www.ubnt.com/downloads/unifi/debian unifi4 ubiquiti" /etc/apt/sources.list | |
echo "deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen" /etc/apt/sources.list | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
sudo apt-get -q update |
--- | |
- hosts: all | |
sudo: yes | |
tasks: | |
- name: Update packages list | |
apt: update_cache=yes | |
when: ansible_os_family == 'Debian' | |
- name: List packages to upgrade (1/2) |
--- | |
- hosts: webservers | |
tasks: | |
- name: Install Apache | |
apt: pkg=apache2 update_cache=true state=installed | |
- name: Install bunch of php packages | |
apt: pkg={{ item }} update_cache=true state=installed | |
with_items: | |
- php5 | |
- php5-cli |
sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev libqt4-dev git | |
Create a folder to download and compile the source files | |
mkdir makemkv.source | |
cd makemkv.source | |
Now, we will compile and install the required dependencies: ffmpeg and fdk-aac. | |
First up: fdk-aac. Download, untar, compile, and install: |
sudo apt-get update | |
sudo apt-get install build-essential | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash | |
close terminal | |
nvm install 4.2.2 | |
nvm install v5.0.0 --reinstall-packages-from=4.2 | |
nvm install iojs-v3.2.0 |
#Stop NGINX service | |
echo Stopping Web Services | |
cd /etc/init.d | |
./nginx stop | |
#Renew CERTS | |
echo Renewing Certificates | |
cd ~/letsencrypt |
$Share = Read-Host -Prompt 'Enter Full Path to Share' #Example: \\servername\share\subfolder | |
Get-childitem $Share -recurse | where{$_.psiscontainer} | | |
Get-Acl | % { | |
$path = $_.Path | |
$_.Access | % { | |
New-Object PSObject -Property @{ | |
Folder = $path.Replace("Microsoft.PowerShell.Core\FileSystem::","") | |
Access = $_.FileSystemRights | |
Control = $_.AccessControlType | |
User = $_.IdentityReference |
$OU = Read-Host -Prompt 'Enter the OU' #Example: OU=IMB,OU=HQ,DC=intra,DC=pri | |
$Group = Read-Host -Prompt 'Enter the AD Group' #Example: XA_Restricted_Visio | |
$Users = Get-ADUser -filter * -SearchBase $OU | Select samaccountname | |
$Members = Get-ADGroupMember -Identity $Group | Select samaccountname | |
Clear-Content -Path "F:\Data\Scripts\Export\*" | |
ForEach ($User in $Users) | |
{ | |
$Name = $User.samaccountname | |
If ($Members -Match $User.samaccountname) | |
{ |