|
환경 Ubuntu 20.04 설치 소스를 받아서 빌드하는 방법도 있겠지만 간편하게 시스템을 운영하기 위해 apt를 사용하는 방식으로 설치
|
sudo apt install ethereum |
개발 환경 구성 genesis.json 구성 : 특별히 eiplxxblock 부분은 ethereum이 발전되어 가면서 계속 항목이 추가 되는 것 같다. 만약 이 글을 보고 그 후에 돌리려 하는데 제대로 안 도는 경우 새로 생성된 부분이 있는지 확인이 필요 […]
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 |
윈도우를 설치하면 GRUB 이 뜨지 않고 바로 윈도우 부트로더로 점프한다 이상황에서는 우분투 부팅이 불가능한데 GRUB 을 재설치 MBR 에 재 설치 해야한다 먼저 우분투 설치 시디로 부팅해서 터미널을 실행하고
|
mount /dev/sdb1 /mnt/new cd /mnt/new mount --bind /proc/ proc mount --bind /sys/ sys mount --bind /dev/ dev chroot . grub-install /dev/sdb update-grub reboot |
출처 : http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=66063&sca=&sfl=wr_name%7C%7Csubject&stx=%BC%DB%C8%BF%C1%F8&sop=and&page=4
현재 구동중인 파티션을 복사하는건 비추. (데이터가 변하므로)우분투 데스크탑 CD 로 부팅하면 hdd 도움 없이 부팅됨. (라이브CD 라고 함.)
각각 마운트 해 줌.
이렇게 하면 시간까지 고대로 복사 됨.old/ new/ 이렇게 하면 new/old/ 로 복사되니 주의.
dd, cat 등등의 방식은 같은용량으로 고정된다는 단점이 있음.tar 는 웬지 잘 안됐음. 나중에 옵션 바꿔가며 테스트 […]
|
|