Memos
Samba setup
Install the package sudo apt-get update sudo apt-get install samba Backup & Update the config sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak sudo vim /etc/samba/smb.conf ###Add shares
Restricted to authenticated users
All users have read/write permissions on every folders. But they can only write on their own files
[Restricted] comment = Restricted share path = /path/to/share read only = no browsable = yes create mask = 0775 directory mask = 0777 Public read only, write allowed for some users
Memos
TV Settings
Panasonic TX-P42ST50 settings *Settings in bold are mine*
2D Settings Viewing Mode : True Cinema Contrast : set to max then reduce by 14 Brightness : default Colour : reduce by 2 from default Sharpness : 0 or 1 click from the left Vivid Colour : Off CATS : Off P-NR : Off Advanced settings
White Balance : 3 -2 4 0 -5 -4 Colour Mgmt : -9 -2 0 11 -6 3 0 0 5 Gamma : 2.
Memos
S.M.A.R.T Codes
SMART Codes to monitor SMART 5 – Reallocated_Sector_Count. > 4 replace SMART 187 – Reported_Uncorrectable_Errors. > 0 replace SMART 188 – Command_Timeout. > 13 replace SMART 197 – Current_Pending_Sector_Count. > 0 replace SMART 198 – Offline_Uncorrectable. > 0 replace
Memos
Client-Side SSL certificate authentication
Quick recap DSA Déprécié, ne plus utiliser
RSA > 4096 bits (Compatible partout, meilleur rapport qualité/compatibilité)
ECDSA 521 bits, Décrié, mais mieux supporté que Ed25519
Ed25519 Récent, moins supporté, mais le plus sécurisé
Self-signed certificate Create the root Certificate Authority mkdir /var/ssl openssl genrsa -des3 -out ca.key 4096 openssl req -new -x509 -days 3650 -key ca.key -out ca.crt Create the Client Key and CSR Organization & Common Name = Person name
Memos
Must See
ServerLess Database as a Service mLab -> MongoDB DaaS (free 500mo plan) Static sites Netlify -> Static sites deployment with SSL / Lambdas / authentication / forms Server/Application Management Ansible -> Server provisioning (like puppet) From docker-compose to ansible Manala Advanced ansible roles for website’s infrastructures and far more. Dokku -> Application deployment / management Symfony and dokku Habitat by chef.
Memos
Dokku
Deployments Deploy docker image ####On dokku host
# Fetch/update docker image from docker-hub and retag to match dokku app name docker pull vendor/image docker tag vendor/image:latest dokku/app-name:version # Or build it docker build -t dokku/app-name:version . # Create a tag for the previous version if needed dokku tags:create app-name previous # Deploy tag dokku tags:deploy app-name version ####Or from dokku client
# Either pull from docker-hub and retag to match dokku app name docker pull vendor/image docker tag vendor/image:latest dokku/app-name:version # Or build it docker build -t dokku/app-name:version .