-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up a devotees dev box
-
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
-
Find EC2 in the "services" menu in the upper-left (Ubuntu 14.04 LTS for the base image; a
t2.micro
) -
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.
-
Set permissions to 0600:
chmod 0600 yourkey.pem
-
Store it somewhere safe!
- 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
$ sudo addgroup <groupname>
$ sudo adduser <theirusername>
-
Give a terrible password so your pairing partner is motivated to change it.
-
Add them the sudo group
$ sudo usermod -aG sudo <theirusername>
- Now they can switch to sudo mode with
$ su - <theirusername>
- Add them to any other groups
$ sudo usermod -aG <groupname> <theirusername>
-
sudo vim /etc/ssh/sshd_config
-
Change
PasswordAuthentication no
line toyes
. -
restart sshd:
sudo service ssh restart
-
Now your pairing partner can connect with
ssh <theirusername>@<public-ip>
.
- Run umask
- Run setup.sh to set up dotfiles. Type
reset ENTER
when you hit the bug.
-
alias the respective joins for each others' wemux sessions
- 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
#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
.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"; };
};