The reason I have created this repository is, that I got really tired of making all my home directories on different linux distributions.
The master branch contains only the things which I use on every distribution. Each Other branches contain the things which I use on that distro. This way I just need to checkout that branch if I get a plain new machine.
When you get a new plain home directory somewhere just clone this repository out and move everything to your home directory's root folder.
As of the fact, that it's a plain directory you even don't have your ssh keys generated. I will use id_rsa now.
To Generate one:
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
If you have an ssh key somewhere, just copy it to the right place, rewriting the id_rsa and id_rsa.pub files. The .gitignore contains the rsa exceptions, so you don't need to be worried about accidentally adding them to version control system of yours.
Do not forget to add the right permissions to the folders.
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
After your id_rsa.pub file has been added to your github account, then you are able to clone the repo out.
From now on please call the bring up script from your terminal.
curl -S https://raw.githubusercontent.com/hajnalmt/home_dirs/master/bring_up_my_shell.sh | bash
I use vim as my default editor, so on the machine there should be vim and ssh installed. The repo contains a .vimrc, to have something to edit the commit files.
Also I like to config my global git settings immediately.
git config --global user.name "Your Name"
git config --global user.email [email protected]
git config --global core.editor vim
git config --global core.autocrlf false
It can happen that you have cloned your repository via HTTPS, I recommend using SSH instead. You can check the connection with the command:
ssh -vT [email protected]
And if maybe you have used HTTPS switch to SSH with:
git remote remove origin
git remote add origin [email protected]:hajnalmt/home_dirs.git
git branch --set-upstream-to origin/master
Good Luck!
- Mate Hajnal - Initial work - hajnalmt
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details.