computer-setup-info/linux/Environment-Setup.md

107 lines
3.2 KiB
Markdown
Raw Normal View History

# Coding Environment Setup
## Packages
2020-09-22 04:53:52 +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)
### [Linux Brew](https://docs.brew.sh/Homebrew-on-Linux)
2020-09-22 04:53:52 +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
- `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`
#### List of installed casks
2020-09-22 04:53:52 +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`
## Dotfiles
2020-09-22 04:53:52 +00:00
Dotfiles and editor preferences: https://github.com/BradNut/dotfiles
## Git
2020-09-22 04:53:52 +00:00
Edit `.gitconfig` with name and email
2020-09-22 04:53:52 +00:00
```
$ git config --global.name "Your Name"
$ git config --global.email "you@example.com"
```
## Terminal
### Vim
2020-09-22 04:53:52 +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
- Package manager
- [Rainbow Parentheses](https://github.com/frazrepo/vim-rainbow)
### Zsh
2020-09-22 04:53:52 +00:00
_Currently using zsh_
- Install if not there
- Linux/Ubunut: `sudo apt install zsh`
- OSX: `brew install zsh`
#### Configuration
2020-09-22 04:53:52 +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
- [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`
- [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`
- [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`
### Bash
2020-09-22 04:53:52 +00:00
- Not using at the moment
#### Configuration
2020-09-22 04:53:52 +00:00
- [Bash profile](https://github.com/BradNut/dotfiles/blob/master/.bash_profile)
- [.bashrc](https://github.com/BradNut/dotfiles/blob/master/.bashrc)
## SSH
2020-09-22 04:53:52 +00:00
### Enable
2020-09-22 04:53:52 +00:00
```
$ sudo apt update
$ sudo apt install openssh-server
```
2020-09-22 04:53:52 +00:00
Verify SSH is running:
2020-09-22 04:53:52 +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)