Server

From Things and Stuff Wiki
Revision as of 19:30, 17 July 2012 by Milk (talk | contribs) (→‎E-mail)
Jump to navigation Jump to search


SSH

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'

Backup

Provision

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 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

GitHub Pages & Jekyll

Google Cloud

GoDaddy