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

Neovim ์„ค์น˜ ๋ฐ ์„ค์ •

20-08-08: alpine ์„ค์น˜ ์ถ”๊ฐ€ ๊ฐœ์š” https://github.com/neovim/neovim/releases ์—์„œ ์ตœ์‹  ์•ˆ์ • ๋ฒ„์ „์„ ๋‹ค์šด๋กœ๋“œ ๊ทธ๊ฐ„ ๋งŽ์€ ๋ณ€ํ™”๊ฐ€ ์žˆ์—ˆ๊ธฐ ๋•Œ๋ฌธ์— ์—ฌ๋Ÿฌ ์„ค์น˜ ๋ฐ ์—๋Ÿฌ๋ฅผ ๋ฐฉ์ง€ํ•˜๋ ค๋ฉด neovim v0.7 ์ด์ƒ์„ ์„ค์น˜ํ•œ๋‹ค. ์•„๋ž˜ ๋‚ด์šฉ์€ ์šฐ๋ถ„ํˆฌ 22.04๋ฅผ ๊ธฐ์ค€์œผ๋กœ ํ•œ๋‹ค. ์šฐ๋ถ„ํˆฌ PPA ํŒจํ‚ค์ง€๋กœ ํ˜„์žฌ neovim์€ v0.7.2์ด๋‹ค. NVIM์˜ ํŠน์ง• luaJIT์ด ๊ธฐ๋ณธ ๋‚ด์žฅ๋˜์–ด lua๋ฅผ ์„ค์ •์—์„œ ๋ชจ๋“ˆ๊นŒ์ง€ ์‰ฝ๊ฒŒ ํ™•์žฅ ๊ฐ€๋Šฅ. terminal ๊ธฐ๋Šฅ์ด ์žˆ์–ด ๋ฐ”๋กœ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•˜๋‹ค. :terminal ์ปค์„œ ์Šคํƒ€์ผ, ํฌ์ปค์Šค ์ด๋ฒคํŠธ, ๊ด„ํ˜ธ์— ๋ถ™์—ฌ ๋„ฃ๊ธฐ ๊ธฐ๋ณธ ์ง€์› ์ž๋™์™„์„ฑ, ๋งž์ถค๋ฒ• ๊ฒ€์‚ฌ, ํƒญ, ๊ตฌ๋ฌธ ์ƒ‰์ƒ์ง€์ •, ์ •๊ทœํ‘œํ˜„์‹์œผ๋กœ ๊ฒ€์ƒ‰ ๋ฐ ๋ฐ”๊พธ๊ธฐ ๋“ฑ Asynchronous Plugin Architecture๋ฅผ ์ง€์›, ์žฌ์ปดํŒŒ์ผ ์—†์ด ๋ชจ๋“ˆ ์žฅ์ฐฉ ๊ฐ€๋Šฅ Parallel installation/update of plugins - ๋ณ‘๋ ฌ์‹์œผ๋กœ ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜๊ฐ€ ๋งค์šฐ ๋น ๋ฆ„ Post-update hook - ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜ ํ›„์— ํ•ด์•ผ ํ•  ์ผ์„ ์ง€์ •ํ•ด ๋†“์œผ๋ฉด ์•Œ์•„์„œ ์ˆ˜ํ–‰ ํ”Œ๋Ÿฌ๊ทธ์ธ์˜ ๋ฒ„์ „ ๊ด€๋ฆฌ, ์ข…์†์„ฑ ๊ด€๋ฆฌ๊ฐ€ ํŽธ๋ฆฌํ•˜๋‹ค. ํŒจํ‚ค์ง€ ์„ค์น˜ Ubuntu ์„ค์น˜ appimage๋ฅผ ์ง์ ‘ ๋‹ค์šด๋กœ๋“œํ•ด์„œ ์„ค์น˜ $ wget https://github.com/neovim/neovim/releases/download/v0.6.1/nvim.appimage $ mv nvim.appimage ~/bin/nvim $ chmod u+x ~/bin/nvim Ubuntu ppa ์ตœ์‹ ํŒจํ‚ค์ง€ ์„ค์น˜ $ sudo apt install software-properties-common -y $ sudo add-apt-repository ppa:neovim-ppa/stable -y $ sudo apt update $ sudo apt install neovim -y $ nvim --version Alpine ์„ค์น˜ $ doas apk update $ doas apk add neovim # nvim Install $ apk search nvim-* # Plugin check $ apk nvim-lualine nvim-treesitter # Plugin: lualine install $ nvim --version ## ์†Œ์Šค ๋นŒ๋“œ - Debian, Ubuntu * Requirements ```console $ sudo apt install build-essencial cmake ninja luarocks5.1 $ sudo luarocks5.1 install lpeg $ sudo luarocks5.1 install mpack Build $ git clone https://github.com/neovim/neovim $ cd neovim $ git checkout stable $ make CMAKE_BUILD_TYPE=RelWithDebInfo # or CMAKE_BUILD_TYPE=Release $ sudo make install $ strip /usr/local/bin/nvim $ /usr/local/bin/nvim --version ์†Œ์Šค ๋นŒ๋“œ - Alpine Requirements # apk add build-base cmake automake autoconf libtool pkgconf coreutils curl unzip gettext-tiny-dev Build # git clone https://github.com/neovim/neovim # cd neovim # git checkout stable # make CMAKE_BUILD_TYPE=RelWithDebInfo # or CMAKE_BUILD_TYPE=Release # sudo make install # strip /usr/local/bin/nvim # /usr/local/bin/nvim --version ์†Œ์Šค ๋นŒ๋“œ - Raspbian (2023-09-17) ๋ผ์ฆˆ๋ฒ ๋ฆฌํŒŒ์ด์˜ neovim ๋ฒ„์ „์ด ๋งค์šฐ ๋‚ฎ๋‹ค. ํ˜„์žฌ๋กœ์„œ๋Š” ์ปดํŒŒ์ผํ•ด์„œ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ตœ์‹ ๋ฒ„์ „์„ ์“ฐ๋Š” ์ œ์ผ ์ข‹์€ ๋ฐฉ๋ฒ•์œผ๋กœ ๋ณด์ธ๋‹ค. # Install latest CMake https://stackoverflow.com/a/56690743/13411047 sudo apt update sudo apt install -y libssl-dev wget -O /tmp/cmake.tar.gz "https://cmake.org/files/v3.19/cmake-3.19.1.tar.gz" tar -xvzf cmake.tar.gz rm cmake.tar.gz cd cmake-3.19.1/ cmake . make sudo make install # Requirements Install sudo apt-get install git sudo apt-get install libtool libtool-bin autoconf automake cmake g++ pkg-config unzip # source download git clone https://github.com/neovim/neovim.git cd neovim # compile & Install make CMAKE_BUILD_TYPE=RelWithDebInfo sudo make install ์ฃผ์š” ์„ค์ •ํŒŒ์ผ vimscript ์„ค์ • ๊ธฐ์ค€ ~/.config/nvim/init.vim ~/.local/share/nvim/site/autoload/plug.vim lua ์„ค์ • ๊ธฐ์ค€ ~/.config/nvim/init.lua ~/.config/nvim/lua/ Links neovim home: https://neovim.io/ building noevim: https://github.com/neovim/neovim/wiki/Building-Neovim

2022-09-01 ยท (updated 2023-08-08) ยท 396 words

Rust Install and Setup

INSTALL install - ์„ค์น˜ ํ›„ ~/.bashrc์— ~/.cargo ์ž๋™ ํ™˜๊ฒฝ ์„ค์ • $ curl https://sh.rustup.rs -sSf | sh -- --help rustup ์—…๋ฐ์ดํŠธ/ ์ œ๊ฑฐ $ rustup update $ rustup self uninstall rustc ์ปดํŒŒ์ผ๋Ÿฌ ๋ฒ„์ „ํ™•์ธ $ rustc --version Hello World $ vim hello_world.rs fn main() { #println!๋Š” ํ•จ์ˆ˜๊ฐ€ ์•„๋‹Œ ๋งคํฌ๋กœ println!("Hello, world!"); } $ rustc hello_world.rs Cargo๋ฅผ ํ†ตํ•œ ๊ฐœ๋ฐœ $ cargo new hello_cargo --bin $ cd hello_cargo $ vim src/main.rs fn main() { println!("Hello, world!"); } ./target/debug/hello_cargo ๋กœ ๋ฐ”์ด๋„ˆ๋ฆฌ ์ƒ์„ฑ $ cargo run # compile and run $ cargo run # run only: source is not changed $ cargo check # compile only no exe file create (rapid compile and test) $ cargo clean # cleanup all object and binary files $ cargo run -- --help #์‹คํ–‰ํŒŒ์ผ ์ธ์ž๋ฅผ ๋ฐ›์•„์„œ ์‹คํ–‰ํ•  ๋•Œ $ cargo build $ cargo build --release (optimize for release) ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ $ cargo add ansi_term #์ž๋™์œผ๋กœ Cargo.toml์— ๋ชจ๋“ˆ์ด๋ฆ„๊ณผ ๋ฒ„์ „์ด ๋“ฑ๋ก๋œ๋‹ค. $ vim src/main.rs #use ansi_term::xxxx ์„ ๋„ฃ๊ณ  ์ฝ”๋”ฉ $ cargo run Build From Git $ git clone someurl.com/someproject $ cd someproject $ cargo build reference ์ œ์ผ ๊ถ๊ธˆํ•œ ๊ฒƒ์€ ์ „์ฒด์ ์ธ ๊ฐœ๋ฐœ ๋ฐ ๋ฐฐํฌ ๊ณผ์ •์ธ๋ฐ ์•„๋ž˜๊ฐ€ ์•„์ฃผ ์ข‹์Œ https://free-strings.blogspot.com/2017/03/cargo-cargo.html https://rust-cli.github.io/book/tutorial/packaging.html ์•„์ฃผ ํ›Œ๋ฅญํ•œ ์ฟก๋ถ์ด๋‹ค. ๋จผ์ € ๊ธฐ๋ณธ ์˜จ๋ผ์ธ๋ถ์„ ๋ณด๊ณ ์„œ ์ด๊ฒƒ์„ ๊ณต๋ถ€ํ•˜์ž. https://rust-lang-nursery.github.io/rust-cookbook/

2022-08-31 ยท 197 words

Lua Install

Install ์„ค์น˜ - luaJit๊ณผ์˜ ํ˜ธํ™˜์„ ์œ„ํ•ด 5.1๋กœ ์„ค์น˜. sudo apt install lua5.1 lua -v - version lua -h - help lua -i - interactive mode Hello World hello-world.lua #!/usr/bin/env lua print("Hello World!") ์‹คํ–‰ chmod u+x hello-world.lua ./hello-world.lua Lua - Cli ์ธํ„ฐํ”„๋ฆฌํ„ฐ $ lua Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > print('Hello World!') Hello World! > os.exit() -- ๋˜๋Š” Control + d (๋ฆฌ๋ˆ…์Šค)

2022-08-30 ยท (updated 2022-09-17) ยท 63 words

How to Install Blender on Ubuntu 22.04 LTS

๊ธฐ์กด ์„ค์น˜ ์ œ๊ฑฐ apt version if [ "$(which blender)" == "/usr/bin/blender" ];then sudo apt autoremove blender fi snap version if [ "$(which blender)" == "/snap/bin/blender" ];then sudo snap remove blender fi Add Repository PPA APT sudo add-apt-repository ppa:savoury1/blender -y sudo add-apt-repository ppa:savoury1/ffmpeg4 -y sudo add-apt-repository ppa:savoury1/ffmpeg5 -y sudo add-apt-repository ppa:savoury1/graphics -y sudo add-apt-repository ppa:savoury1/display -y Apt Update and Blender Install sudo apt update sudo apt upgrade sudo apt install blender -y Reference https://www.linuxcapable.com/how-to-install-blender-on-ubuntu-22-04-lts

2022-08-29 ยท 73 words