Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Ubuntu setup #12

Open
OhMyMndy opened this issue Nov 3, 2022 · 0 comments
Open

Quick Ubuntu setup #12

OhMyMndy opened this issue Nov 3, 2022 · 0 comments

Comments

@OhMyMndy
Copy link
Owner

OhMyMndy commented Nov 3, 2022

sudo apt-get update;
sudo apt-get install curl git tig vim zsh tree tmux file moreutils less xstow golang build-essentials -y

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && sudo apt-get install -y nodejs npm

curl -sL https://raw.githubusercontent.com/wimpysworld/deb-get/main/deb-get | sudo -E bash -s install deb-get;

sudo deb-get install neovim;
sudo deb-get install terraform;
sudo deb-get install google-cloud-cli;



if [[ ! -f ~/.tmux.conf ]]; then
  echo "set -g mouse on" > ~/.tmux.conf;
  echo "set -g pane-border-status top" >> ~/.tmux.conf;
  echo "setw -g mode-keys vi" >> ~/.tmux.conf;
  echo "set -sg escape-time 10" >> ~/.tmux.conf;
  echo "set -g default-terminal \"xterm-256color\"" >> ~/.tmux.conf

fi

if [[ ! -f ~/.vimrc ]]; then
  echo "set mouse=a" > ~/.vimrc;
  echo "set number" >> ~/.vimrc;
  echo "set relativenumber" >> ~/.vimrc;
  echo "set colorcolumn=80" >> ~/.vimrc;
  echo "set laststatus=2" >> ~/.vimrc;
  echo "set statusline=%{mode()}\ %f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%)" >> ~/.vimrc;
fi


if [[ ! -d ~/.config/nvim ]]; then
  mkdir -p ~/.config/nvim;
  echo "vim.opt.number = true" > ~/.config/nvim/init.lua;
  echo "vim.opt.relativenumber = true" >> ~/.config/nvim/init.lua;
  echo "vim.opt.mouse = \"a\"" >> ~/.config/nvim/init.lua;
  echo "vim.opt.colorcolumn = \"80\"" >> ~/.config/nvim/init.lua;
  echo "vim.opt.laststatus = 2" >> ~/.config/nvim/init.lua;
  echo "vim.opt.statusline = \"%{mode()} %f %h%w%m%r %=%(%l,%c%V %= %P%)\"" >> ~/.config/nvim/init.lua;
fi

i3 setup

sudo apt-get update;
sudo apt-get install dconf-editor i3 rofi dunst -y;

dconf write /org/mate/desktop/session/required-components/windowmanager "'i3'"
dconf write /org/mate/desktop/session/required-components-list "['windowmanager', 'panel']"
dconf write /org/mate/desktop/background/show-desktop-icons "false"
dconf write /org/mate/desktop/interface/gtk-decoration-layout "'menu'"
dconf write /org/mate/screensaver/mode "'blank-only'"
dconf write /org/mate/terminal/profiles/default/palette "'#2E2E34343636:#CCCC00000000:#4E4E9A9A0606:#C4C4A0A00000:#34346565A4A4:#757550507B7B:#060698209A9A:#D3D3D7D7CFCF:#555557575353:#EFEF29292929:#8A8AE2E23434:#FCFCE9E94F4F:#72729F9FCFCF:#ADAD7F7FA8A8:#3434E2E2E2E2:#EEEEEEEEECEC'"
dconf write /org/mate/terminal/profiles/default/use-theme-colors "false"
dconf write /org/mate/hud/enabled 'false'

Docker/container

sudo deb-get install docker-ce terraform
sudo apt-get install -y nomad consul vault waypoint containernetworking-plugins 
sudo usermod -aG docker "$USER"

sudo mkdir -p /opt/cni
sudo ln -sf /usr/lib/cni /opt/cni/bin

Bash

# Make Bash append rather than overwrite the history on disk:
shopt -s histappend
# A new shell gets the history lines from all previous shells
PROMPT_COMMAND='history -a'
# Don't put duplicate lines in the history.
export HISTCONTROL=ignoredups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant