wklken / config

My linux config file. .bash_profile .alias bin .vimrc etc.
170 stars 105 forks source link

init commands collection #2

Open wklken opened 1 year ago

wklken commented 1 year ago

# oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# hombrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# zplug
brew install zplug

# fzf
brew install fzf
$(brew --prefix)/opt/fzf/install

# bat
brew install bat

# fd
brew install fd

# ag
brew install the_silver_searcher

# git-delta
brew install git-delta

# pyenv
brew install pyenv
brew install pyenv-virtualenv

# direnv
brew install direnv

# autojump
brew install autojump

# jq
brew install jq

# scc
brew install scc

# gvm
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

# mycli
brew install mycli 
wklken commented 1 year ago

brew install tree

wklken commented 1 year ago

brew install htop


use btop instead

https://github.com/aristocratos/btop

brew install btop
wklken commented 1 year ago

brew install make brew install cmake


brew install python3

/usr/local/bin/python3

wklken commented 1 year ago

k9s

wklken commented 1 year ago

for vim ycm

brew install cmake python go nodejs
wklken commented 1 year ago
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew install make cmake python3 go nodejs zplug fzf bat fd the_silver_searcher git-delta pyenv pyenv-virtualenv direnv autojump jq scc mycli tree btop k9s

$(brew --prefix)/opt/fzf/install

# gvm
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
wklken commented 1 year ago
brew tap daipeihust/tap && brew install im-select
wklken commented 1 year ago

rust

https://rustup.rs/

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

wklken commented 1 year ago

PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/bin/:$PATH"

wklken commented 1 year ago

brew install gh

wklken commented 1 year ago

yum install git-extras

wklken commented 1 year ago

wrk + plow

wklken commented 1 year ago

brew install git-extras

wklken commented 5 months ago

# linux init env

## yum

yum groupinstall "Development tools"
yum install -y  python3 python3-devel sqlite-devel golang openssl openssl-devel readline-devel libffi-devel bzip2-devel curl-devel expat-devel gettext-devel zlib-devel mysql-devel

## zsh 

1. install zsh 

https://ohmyz.sh/

2. zplug

https://github.com/zplug/zplug

curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh

3. change default shell

chsh -s $(which zsh)

4. others

[yum install autojump](https://github.com/wting/autojump#manual)

## envs

1. direnv

https://direnv.net/docs/installation.html

curl -sfL https://direnv.net/install.sh | bash

2. pyenv

https://github.com/pyenv/pyenv#installation

curl https://pyenv.run | bash

3. starship

https://starship.rs/guide/#%F0%9F%9A%80-installation
curl -sS https://starship.rs/install.sh | sh

4. gvm
https://github.com/moovweb/gvm

## my

2. use my own config 

## others

1. install pyenv python versions

2. gvm install golang versions

nodejs

https://nodejs.org/en/download/package-manager#centos-fedora-and-red-hat-enterprise-linux

git

  1. install git-extras https://github.com/tj/git-extras/blob/main/Installation.md
  2. install git delta https://github.com/dandavison/delta
  3. install git commit cz npm install -g commitizen cz-conventional-changelog

k8s

  1. install kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
  2. install helm https://helm.sh/docs/intro/install/ curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
  3. install k9s https://github.com/derailed/k9s/releases
  4. install kind https://kind.sigs.k8s.io/docs/user/quick-start#installing-from-release-binaries [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64

nginx

# https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7
yum install nginx

systemctl start nginx
systemctl enable nginx

github-cli

https://github.com/cli/cli/blob/trunk/docs/install_linux.md#fedora-centos-red-hat-enterprise-linux-dnf

create cluster with ingress-nginx via kind

cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
  kubeadmConfigPatches:
  - |
    kind: InitConfiguration
    nodeRegistration:
      kubeletExtraArgs:
        node-labels: "ingress-ready=true"
  extraPortMappings:
  - containerPort: 80
    hostPort: 8480
    protocol: TCP
  - containerPort: 443
    hostPort: 8443
    protocol: TCP
EOF

kubectl cluster-info --context kind-kind

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml

gpg

wklken commented 4 months ago

https://github.com/boyter/scc

wklken commented 3 months ago

yum install xclip