Tested with Fedora 22 and above.
A description of the Variables used in this guide can be found at the bottom.
If you already created an user account for the admin, skip this step. Otherwise create your admins user account:
adduser <SERVER_USERNAME>
passwd <SERVER_USERNAME>
gpasswd wheel -a <SERVER_USERNAME>
dnf install git vim tmux fish
git clone https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
~/.homesick/repos/homeshick/bin/homeshick clone arzi1994/dotfiles
lchsh
New Shell [/bin/bash]: /usr/bin/fish
su - <SERVER_USERNAME>
git config --global user.name "<FIRST_NAME> <LAST_NAME>"
git config --global user.email "<EMAIL_ADDRESS>"
git clone https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
~/.homesick/repos/homeshick/bin/homeshick clone arzi1994/dotfiles
sudo lchsh <SERVER_USERNAME>
New Shell [/bin/bash]: /usr/bin/fish
Insert following four lines in ~/.ssh/config
on the host:
Host <SERVER_SHORTNAME>
USER <SERVER_USERNAME>
HostName <SERVER_HOSTNAME>
SendEnv TMUX_AUTOSTART
This step will enable you to ssh into your server without passphrase.
If you have the ssh-copy-id
command on your client it's only:
ssh-copy-id <SERVER_SHORTNAME>
Otherwise you have to call:
cat ~/.ssh/id_rsa.pub | ssh <SERVER_SHORTNAME> "mkdir -p ~/.ssh; and cat >> .ssh/authorized_keys"
AcceptEnv TMUX_AUTOSTART
# workaround for win
fish -l
exit
<SERVER_HOSTNAME> = servers hostname or IP address
<SERVER_SHORTNAME> = an abbreviation/short name for the server
<SERVER_USERNAME> = the admins username on the server (not root)
<FIRST_NAME> = admins first name
<LAST_NAME> = admins last name
<EMAIL_ADDRESS> = admins email address