zsh install and setup

zsh ์„ค์น˜ $ sudo apt install zsh ๊ธฐ๋ณธ์‰˜ ๋ณ€๊ฒฝ $ chsh -s /usr/bin/zsh Oh-My-Zsh ์„ค์น˜ $ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" ํ…Œ๋งˆ๋ณ€๊ฒฝ $ vim ~/.zshrc $ source ~/.zsh .zshrc ์„ค์ • ๋ณ€๊ฒฝ ZSH_THEME="agnoster" ํ•ด๊ฒฐ๋˜์ง€ ์•Š์€ ๋ฌธ์ œ ๊ธฐ๋ณธ์‰˜์„ zsh๋กœ ํ–ˆ์„ ๋•Œ ํ•œ๊ธ€ ์ž…๋ ฅ์ด ๋˜์ง€ ์•Š๋Š”๋‹ค. bash์˜ ์„œ๋ธŒ์‰˜๋กœ ์‹คํ–‰ํ–ˆ์„ ๋•Œ๋Š” ํ•œ๊ธ€ ์ž…๋ ฅ์ด ์ž˜ ๋œ๋‹ค. Reference Ubuntu/Linux Oh my zsh ์„ธํŒ… https://polarcompass.tistory.com/142 https://github.com/powerline/fonts

2022-09-02 ยท 59 words

ssh-keygen ์œผ๋กœ ์ธ์ฆํ•˜๊ธฐ

Intro remote: authorized_keys ์ธ์ฆ ํ—ˆ๊ฐ€ local: ssh-keygen์œผ๋กœ ํ‚ค๋ฅผ ์ƒ์„ฑ local: ssh-copy-id๋กœ remote์— ๋ณต์‚ฌ local: ssh๋กœ ํŒจ์Šค์›Œ๋“œ ์—†์ด ๋กœ๊ทธ์ธํ™•์ธ remote: Password๋กœ ๋กœ๊ทธ์ธ ๋ถˆํ—ˆ๊ฐ€ ์„ค์ • remote: authorized_keys ์ธ์ฆํ—ˆ๊ฐ€ (๋˜์–ด์žˆ๋‹ค๋ฉด ๋‹ค์Œ์œผ๋กœ) $ sudo vi /etc/ssh/sshd_config ... PermitRootLogin no #root๋กœ ๋กœ๊ทธ์ธ๋ถˆ๊ฐ€ RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys ... $ sudo systemctl restart ssh local: ssh-keygen ๋ณด์•ˆํ‚ค ์ƒ์„ฑํ•˜๊ธฐ (-t: type, -C: Comment) passphrase๋Š” ๊ทธ๋ƒฅ ์—”ํ„ฐ 2๋ฒˆ ์ƒ์„ฑ์œ„์น˜๋Š” ~/.ssh/id_ed25519{.pub} $ ssh-keygen -t ed25519 -C "batutah@gmail.com" local: ssh-copy-id๋กœ public key๋ฅผ remote์— ๋ณต์‚ฌ local: ~/.ssh/id_ed25519.pub -> remote: ~/.ssh/authorized_keys $ ssh-copy-id -p81 borisu@192.168.1.101 #remote ํŒจ์Šค์›Œ๋“œ ์ž…๋ ฅ local: ssh๋กœ ํŒจ์Šค์›Œ๋“œ ์—†์ด ๋กœ๊ทธ์ธ ํ™•์ธ $ ssh -p81 borisu@192.168.1.101 remote: sshd์—์„œ ํŒจ์Šค์›Œ๋“œ์ธ์ฆ ํ—ˆ๊ฐ€๋ฅผ ๋ง‰๊ธฐ ํ‚ค์ธ์ฆ์œผ๋กœ ๋กœ๊ทธ์ธ์ด ๊ฐ€๋Šฅํ•˜๋ฏ€๋กœ ํŒจ์Šค์›Œ๋“œ ์ธ์ฆ์„ ๋ง‰์•„์คŒ $ sudo vi /etc/ssh/sshd_config ... PasswordAuthentication no ... $ sudo systemctl restart ssh Reference https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-20-04 https://www.answertopia.com/ubuntu/configuring-ssh-key-based-authentication-on-ubuntu/

2022-09-02 ยท 124 words

SSH - Secure Shell

ssh keygen - ssh-keygen์œผ๋กœ ์ธ์ฆํ•˜์—ฌ ๋กœ๊ทธ์ธํ•˜๊ธฐ

2022-09-02 ยท 6 words

bash-it

๋‹ค์Œ ๋งํฌ ์ฐธ์กฐ https://www.linuxfordevices.com/tutorials/linux/fancify-bash-terminal-with-bash-it

2022-08-26 ยท 4 words

Bash

Tools, Functions bash it : zsh์ฒ˜๋Ÿผ ์ด์˜๊ฒŒ, ๋‹ค์–‘ํ•œ ๊ธฐ๋Šฅ์œผ๋กœ ๊พธ๋ฏธ๊ธฐ bash color : ํ„ฐ๋ฏธ๋„ ์ปฌ๋Ÿฌ ์ถœ๋ ฅ ๋ฐ ์ œ์–ด Bash Programming bash read lines : ํŒŒ์ผ์—์„œ ํ•œ ์ค„์”ฉ ๋ผ์ธ์„ ์ฝ์–ด ์˜ค๊ธฐ Links bash config files https://floatingoctothorpe.uk/2018/bash-config-and-where-it-lives.html

2022-08-26 ยท 35 words