2020-05-09 00:20:14 +00:00
# Coding Environment Setup
2020-05-11 00:14:55 +00:00
## Packages
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- Git: `sudo apt install git`
- Curl: `sudo apt install curl`
2020-05-14 18:14:34 +00:00
- Docker: [Ubuntu Install ](https://docs.docker.com/engine/install/ubuntu/#prerequisites )
- [Install instructions ](../master/linux/Docker-Setup.md )
2020-10-27 23:53:17 +00:00
- Gatsby CLI: `sudo npm install gatsby-cli -g`
- Heroku CLI: `sudo snap install --classic heroku`
- Sanity CLI: `sudo npm install @sanity/cli -g`
2020-05-11 00:14:55 +00:00
2020-11-04 18:11:46 +00:00
#### Useful System Packages
- [TLDR Man Pages ](https://tldr.sh/ )
- [Trash-CLI ](https://www.npmjs.com/package/trash-cli )
2020-05-11 00:14:55 +00:00
### [Linux Brew](https://docs.brew.sh/Homebrew-on-Linux)
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- Install: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"`
- Run for Debian or Ubuntu: `sudo apt-get install build-essential curl file git`
#### Adding Homebrew to your PATH and bash shell (If applicable)
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- `test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)`
- `test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)`
- If using bash: `test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile`
- `echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile`
2020-09-13 23:03:22 +00:00
#### List of installed casks
2020-09-22 04:53:52 +00:00
2020-10-27 23:53:17 +00:00
_NOTE: ZSH and plugins for Ubuntu should be manually installed and not from brew_
2020-09-13 23:03:22 +00:00
- nodeJS: `brew install node`
- postresql: `brew install postgresql`
- sshpass: `brew install hudochenkov/sshpass/sshpass`
- tmux: `brew install tmux`
- zsh: `brew install zsh`
- zsh-autosuggestions: `brew install zsh-autosuggestions`
- zsh-syntax-highlighting: `brew install zsh-syntax-highlighting`
2020-05-11 00:14:55 +00:00
2020-09-07 22:12:54 +00:00
## Dotfiles
2020-09-22 04:53:52 +00:00
2020-09-07 22:12:54 +00:00
Dotfiles and editor preferences: https://github.com/BradNut/dotfiles
2020-05-11 00:14:55 +00:00
2020-09-07 22:12:54 +00:00
## Git
2020-09-22 04:53:52 +00:00
2020-09-16 07:16:22 +00:00
Edit `.gitconfig` with name and email
2020-09-22 04:53:52 +00:00
2020-09-16 07:16:22 +00:00
```
$ git config --global.name "Your Name"
$ git config --global.email "you@example.com"
```
2020-05-11 00:14:55 +00:00
## Terminal
### Vim
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- If not installed: `sudo apt install vim`
- Configuration: [.vimrc ](https://github.com/BradNut/dotfiles/blob/master/.vimrc )
#### Things to look into for vim
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- Package manager
- [Rainbow Parentheses ](https://github.com/frazrepo/vim-rainbow )
### Zsh
2020-09-22 04:53:52 +00:00
_Currently using zsh_
2020-09-13 23:03:22 +00:00
- Install if not there
2020-10-27 23:53:17 +00:00
- Linux/Ubuntu: `sudo apt install zsh`
2020-09-13 23:03:22 +00:00
- OSX: `brew install zsh`
2020-05-11 00:14:55 +00:00
#### Configuration
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- [.zshrc ](https://github.com/BradNut/dotfiles/blob/master/.zshrc )
- [Oh My Zsh ](https://ohmyzsh.sh )
-- Install: `sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"`
##### Oh My Zsh Plugins
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- [Z ](https://github.com/agkozak/zsh-z )
2020-09-22 04:53:52 +00:00
- Install: `git clone https://github.com/agkozak/zsh-z $ZSH_CUSTOM/plugins/zsh-z`
2020-05-11 00:14:55 +00:00
- [zsh-autosuggestions ](https://github.com/zsh-users/zsh-autosuggestions )
2020-09-22 04:53:52 +00:00
- Install: `git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions`
2020-05-11 00:14:55 +00:00
- [zsh-syntax-highlighting ](https://github.com/zsh-users/zsh-syntax-highlighting )
2020-09-22 04:53:52 +00:00
- Install: `git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting`
2020-05-11 00:14:55 +00:00
### Bash
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- Not using at the moment
#### Configuration
2020-09-22 04:53:52 +00:00
2020-05-11 00:14:55 +00:00
- [Bash profile ](https://github.com/BradNut/dotfiles/blob/master/.bash_profile )
- [.bashrc ](https://github.com/BradNut/dotfiles/blob/master/.bashrc )
2020-09-07 22:12:54 +00:00
## SSH
2020-09-22 04:53:52 +00:00
2020-09-07 22:12:54 +00:00
### Enable
2020-09-22 04:53:52 +00:00
```
2020-09-07 22:12:54 +00:00
$ sudo apt update
$ sudo apt install openssh-server
```
2020-09-22 04:53:52 +00:00
2020-09-07 22:12:54 +00:00
Verify SSH is running:
2020-09-22 04:53:52 +00:00
2020-09-07 22:12:54 +00:00
```
$ sudo systemctl status ssh
```
### Generating SSH Keys
2020-09-22 04:53:52 +00:00
Step by step: [Generating New SSH Key and adding to the SSH Agent ](https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent )