Skip to content

Setting up a devotees dev box

Anja Kefala edited this page Apr 1, 2018 · 15 revisions

Setting up a cloud server

Clean up the previous server

  • ensure everything in git/ is either pushed to remote or dropped

  • verify if we want to save any of our dotfile changesd

  • check if there is anything in /tmp

Launch a Linux EC2 instance.

  • Find EC2 in the "services" menu in the upper-left (Ubuntu 14.04 LTS for the base image; a t2.micro) OR launch the AMI instance 'devbox'

  • In the network configuration, make sure that the ssh port 22 is open to the world for maximum insecurity (and so your pairing partners can connect).

  • Name your new instance.

Create/download/manage your keypair.

  • Set permissions to 0600: chmod 0600 yourkey.pem

  • Store it somewhere safe!

ssh into the server and setup the basics

  • Grab the Public IP address from the EC2 console.
$ ssh -i yourkey.pem ubuntu@<public-ip>
  • Set up the environment.
$ sudo apt-get update && sudo apt-get install tmux git vim irssi 

Setting up the cloud server for your pairing partner(s)

  • Run github.com/devotees/meta/setup.sh in the box, along with yours and your pairing partner's name as an argument

  • Now your pairing partner can connect with ssh <theirusername>@<public-ip>.

Within your home directory

  • Run umask
  • Run setup.sh to set up dotfiles. Type reset ENTER when you hit the bug.

Launch wemux for sharing

Gitlab Shenanigans

Gitlab will not allow you to clone or push without you getting your fucking keys together first.

  • Generate a new key
ssh-keygen -t rsa -C "[email protected]" -b 4096
  • You will be prompted to name the key. Do not keep the default; rename it to your devotee handle. That way we can manage multiple keys for multiple accounts.
cat pub_key
  • Add your public SSH key to gitlab, and then edit the config file in ~/.ssh/config.
touch ~/.ssh/config
vim ~/.ssh/config

Sample Gitlab config

#Default GitHub
Host gitlab
  HostName gitlab.com
  User git
  IdentityFile ~/.ssh/id_rsa_sholmes

Host gitlab-waton
  HostName gitlab.com
  User git
  IdentityFile ~/.ssh/id_rsa_jwatson

Fun with irssi

Sample .irssi config

.irssi/config

servers = (
  {
    address = "chat.freenode.net";
    chatnet = "Freenode";
    port = "6667";
    use_tsl = "yes";
    tsl_verify = "yes";
    autoconnect = "yes";
  }
);

chatnets = {
  Freenode = {
    type = "IRC";
    max_kicks = "1";
    max_msgs = "4";
    max_whois = "1";
    sasl_mechanism = "PLAIN";
    sasl_username = "XXX";
    sasl_password = "XXX";
  };
};

channels = (
  { name = "#devotees"; chatnet = "Freenode"; autojoin = "Yes"; }
);

settings = {
  core = { real_name = "XXX"; user_name = "XXX"; nick = "XXX"; };
  "fe-text" = { actlist_sort = "refnum"; };
};