|
client에서 할일
~/.ssh/id_rsa.pub 공개키 생성되면 접속할 서버에 ./ssh/authorized_keys 파일 안에 복사 해 넣는다.
관리자 권한으로 /etc/sudoers.d/init-users 파일 생성하여 다음과 같이 작성
|
# User rules for id id ALL=(ALL) NOPASSWD:ALL |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
apt install build-essential apt install net-tools apt install openssh-server systemctl enable ssh systemctl restart ssh apt install curl apt install tmux apt install mc apt install git apt install zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" chsh -s /usr/bin/zsh # logout 필요 zsh # 일단 한번 실행 git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting vi .zshrc d2coding 설치 apt install neovim curl -sLf https://spacevim.org/install.sh | bash vi vi init.vim vi init.toml curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim vi # 실행후 :PlugInstall cd ./vim/bundle/vimproc.vim make apt install nodejs apt install npm npm install jshint |
.zshrc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
# Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="agnoster" # Uncomment the following line if you want to change the command execution time # stamp shown in the history command output. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see 'man strftime' for details. # HIST_STAMPS="mm/dd/yyyy" export HISTSIZE=10000 export SAVEHIST=10000 setopt EXTENDED_HISTORY # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( git zsh-syntax-highlighting zsh-autosuggestions tmux colored-man-pages colorize svn ) |
./.SpaceVim/init.vim
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
"============================================================================= " init.vim --- Entry file for neovim " Copyright (c) 2016-2020 Wang Shidong & Contributors " Author: Wang Shidong < wsdjeg@outlook.com > " URL: https://spacevim.org " License: GPLv3 "============================================================================= call plug#begin("~/.vim/plugged") Plug 'vim-airline/vim-airline' " vim status bar Plug 'airblade/vim-gitgutter' " Show git status in vim Plug 'iamcco/markdown-preview.nvim' call plug#end() execute 'source' fnamemodify(expand('<sfile>'), ':h').'/main.vim' filetype plugin on set vb set nu set nuw=5 " 줄 번호 표시 너비 set backspace=eol,start,indent " 편집 기능 설정 set sol set sm " 검색 기능 설정 set hlsearch set ignorecase set showmatch " indent 설정 set cindent set autoindent set smartindent set tabstop=4 set shiftwidth=4 set softtabstop=4 set noet " 탭 -> 공백 변환기능 no " Turn off swap set noswapfile set nobackup set nowb set whichwrap+=<,>,h,l,[,] |
./.SpaceVim.d/init.toml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#============================================================================= # basic.toml --- basic configuration example for SpaceVim # Copyright (c) 2016-2020 Wang Shidong & Contributors # Author: Wang Shidong < wsdjeg at 163.com > # URL: https://spacevim.org # License: GPLv3 #============================================================================= # All SpaceVim option below [option] section [options] # set spacevim theme. by default colorscheme layer is not loaded, # if you want to use more colorscheme, please load the colorscheme # layer colorscheme = "onedark" colorscheme_bg = "dark" # Disable guicolors in basic mode, many terminal do not support 24bit # true colors enable_guicolors = false # Disable statusline separator, if you want to use other value, please # install nerd fonts statusline_separator = "nil" statusline_iseparator = "bar" buffer_index_type = 4 windows_index_type = 3 enable_tabline_filetype_icon = false enable_statusline_mode = false statusline_unicode_symbols = false # Enable vim compatible mode, avoid changing origin vim key bindings vimcompatible = true # Enable autocomplete layer [[layers]] name = 'autocomplete' auto_completion_return_key_behavior = "complete" auto_completion_tab_key_behavior = "cycle" [[layers]] name = 'shell' default_position = 'top' default_height = 30 |
|
링크
|