Server
SSH
- SSH Can Do That? Productivity Tips for Working with Remote Servers
- Tips for Remote Unix Work (SSH, screen, and VNC) [1]
- http://www.semicomplete.com/articles/ssh-security/
SSH keys
Basic key setup:
ssh-keygen -t rsa ssh-copy-id [-i [identity_file]] [user@]remote default identity_file is ~/.ssh/id_rsa.pub
SCP
- scp -P [port] file.txt user@remotehose:~/file.txt
When scp on remote is initiated, it done so with -t flag, which is undocumented but might be required for precise command persmission configuration.
SSHFS
Rsync
- Rsync over alt SSH port: --rsh='ssh -p8023'
Monitoring
Logging and stats
logrotate
- HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples - Jul 14, 2010
- 20 Linux Log Files that are Located under /var/log Directory - Aug 1, 2011
Web server logs
Combined Log Format
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
old skool;
Apache
Nginx
error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log;
- http://articles.slicehost.com/2010/8/27/reading-nginx-web-logs
- http://gadelkareem.com/2012/07/01/nginx-error-log-reader/
GoAccess
- GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.
Analytics
- Piwik is downloadable, Free/Libre (GPLv3 licensed) real time web analytics software. It provides you with detailed reports on your website visitors; the search engines and keywords they used, the language they speak, your popular pages, and much more.
- Installation & Optimization
- User Guide
- Log Analytics - combined format logs (apache, nginx)
- Plugins
Backup
- Backup - Scripts and apps
Provision
- Puppet Labs
- Puppet Master - Central management daemon.
- Puppet Agent - Runs on each managed node.
- Puppet Apply - For local use.
- http://docs.puppetlabs.com/guides/tools.html etc.
- Puppet Wiki: Core Types Cheat Sheet
- Puppet Wiki: Simple Text edits
- Ubuntu puppet info
- AUR: puppet
- AUR: puppet dashboard
- Fabric - Python SSH library
Virtualisation
VirtualBox config;
- Enable host Linux modules: vboxnetflt and vboxnetadp
- Enable host-only adapter 'virtualbox0' in VB Preferences > Network if not previously enabled, then select in guest preferences
- https://github.com/milkmiruku/boxbootstrap
- Keep VM names lowercase and no spaces for easier command-line stuff
Provisioning VirtualBoxes for local dev work;
- Vagrant - VirtualBox provisioning with Puppet, etc.
vagrant package --vagrantfile Vagrantfile.pkg --include README.txt stored in ~/.vagrant.d/boxes vagrant box add lucid32 http://files.vagrantup.com/lucid32.box vagrant box remove lucid32 vagrant box list
Filesystem
IaaS
Knowledge management
Video streaming
Hosting
- http://blog.pinboard.in/2012/01/the_five_stages_of_hosting/
- http://blog.maclawran.ca/96882258
- http://blog.pinboard.in/2012/06/going_colo/
GitHub Pages & Jekyll
- https://help.github.com/articles/using-jekyll-with-pages
- https://github.com/mojombo/jekyll/blob/master/README.textile
- https://github.com/rfelix/jekyll_ext/wiki/extensions
GitHub Gist
- http://bl.ocks.org/ - run code (html+css+js)
- http://gist.io/ - display posts (markdown)