Skip to content

Latest commit

 

History

History
113 lines (90 loc) · 3.84 KB

SETUP UBUNTU SNAP.md

File metadata and controls

113 lines (90 loc) · 3.84 KB
  • do-release-upgrade will actually bring the the distro to its newest version.

UBUNTU ON GCP

sudo fallocate -l 4G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile && sudo cp /etc/fstab /etc/fstab.bak && echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab && sudo apt update -y && sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean -y && sudo apt-get autoclean -y && sudo apt update -y && sudo apt-get update -y && sudo apt-get install mosh -y

&& sudo snap install curl-ijohnson ngrok postgresql10 rclone && sudo snap install git-ubuntu --classic && sudo snap install cmake --classic && sudo snap install node --edge --classic && sudo snap install google-cloud-sdk --classic && sudo snap install wget-simosx --beta && sudo apt install python3-pip -y && pip3 install cryptography==2.5 psycopg2-binary asyncio asyncpg joblib scrapy selenium scrapy-selenium unicodedata2 requests-html beautifulsoup4 multiprocess httplib2 numpy google-api-python-client google_auth_oauthlib oauth2client google_spreadsheet virtualenv django flask gspread pandas gspread-dataframe pyTelegramBotAPI aiogram python-telegram-bot --no-warn-script-location && pip3 install -U termius --no-warn-script-location && curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

python38 kdenlive test-snapd-fuse-consumer snapcraft --classic code --classic gnome-terminator --beta nvim --beta --classic && pip3 install --upgrade pynvim && pip3 install -U neovim

NEOVIM

Create the directory ~/.config/nvim/ if it does not exist yet Then, create the init.vim document and nvim inside to add the following

set nocompatible                             
filetype off

call plug#begin('~/.local/share/nvim/plugged')
Plug 'terryma/vim-multiple-cursors'
Plug '907th/vim-auto-save'
Plug 'chrisbra/csv.vim'
Plug 'Townk/vim-autoclose'
Plug 'Quramy/tsuquyomi'
Plug 'Shougo/vimproc.vim'
Plug 'itchyny/lightline.vim'
Plug 'tomasiser/vim-code-dark'
call plug#end()

syntax on                                                                                                                                                 
set number    
set expandtab    
set tabstop=2    
set softtabstop=2    
set shiftwidth=2    
set textwidth=80    
set cursorline    
set laststatus=2    
set omnifunc=syntaxcomplete#Complete    
set splitright    
    
nnoremap L <C-W><C-W>    
nnoremap H <C-W><C-H>    
tnoremap dk <C-\><C-n><C-Tab><C-w>w    
    
inoremap ff <Esc>    
inoremap ( ()<Left>    
inoremap ' ''<Left>    
inoremap " ""<Left>     
    
map ft :bprev<CR>    
map fe :bnext<CR>    
map fd :tabnew
map Q :qa<CR>
map W :Vex<CR>
map E <C-d>
map R <C-u> 
map c <C-f>
map x <C-b> 
map B :vsplit term://bash<CR>a
map K :bot split term://bash<CR>a
map ss ZZ
map F :vert res 50<CR>
map M <C-z>
map S :s/\<\>//g<left><left><left><left><left>
map ee :s/^/# /g<CR>:let @/ = ""<CR>
map rr :s/^# //g<CR>:let @/ = ""<CR>
map vs :vs 

let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_winsize = 25
let g:netrw_altv = 1
let g:auto_save = 1
let g:auto_save_silent = 1
let g:auto_save_events = ["InsertLeave","TextChanged","TextChangedI"]
let g:tsuquyomi_disable_quickfix = 1
let g:ycm_autoclose_preview_window_after_completion = 1

colorscheme codedark
hi Normal guibg=NONE ctermbg=NONE
hi LineNr guibg=NONE ctermbg=NONE
hi EndOfBuffer guibg=NONE ctermbg=NONE
hi NonText guibg=NONE ctermbg=NONE
hi CursorLine ctermbg=NONE
hi Pmenu guifg=NONE ctermbg=NONE

ru macros/justify.vim
set bs=2
set noshowmode

ALIAS

vn .bashrc

alias df='git add -A && git commit -m "updated" && git push'
alias dg='git pull origin master'
alias py='python3'
alias ex='exit'
alias cl='clear'
alias vn='nvim'

source ~/.bashrc