- λΌμ¦λ² 리νμ΄ 4B
- Ubuntu 22.04 Server
sudo apt update
sudo apt install hostapd dnsmasq iptables-persistent rfkill net-tools -y| # Python μ΄ μλ€λ©΄ μ€μΉ | |
| apk add --update --no-cache python3 python3-dev py3-pip build-base | |
| # aws-cli μ€μΉ | |
| AWSCLI_VERSION=2.24.14 | |
| export CFLAGS="-Wno-error=incompatible-pointer-types" # ruamel.yaml.clib λΉλ μλ¬ λλ¬Έμ νμ | |
| apk add --no-cache \ | |
| curl \ | |
| make \ |
| ### key binding - Home, End, Ctrl-left, Ctrl-Right | |
| case $TERM in (xterm*) | |
| ## Common | |
| bindkey '^[[H' beginning-of-line | |
| bindkey '^[[F' end-of-line | |
| ## Linux | |
| bindkey ';5D' backward-word | |
| bindkey ';5C' forward-word | |
| bindkey '^[[3~' delete-char | |
| ## macOS |
| version: "3.9" | |
| services: | |
| mongo: | |
| image: mongo:4.4 | |
| container_name: mongo | |
| networks: | |
| - mongo | |
| ports: | |
| - "27017:27017" | |
| volumes: |
| # κ³μ μΆκ° | |
| use admin | |
| db.createUser({ user: 'root', pwd: 'Hello#$', roles: ['root'] }); | |
| use bitcore | |
| db.createUser({ user: 'bitcore', pwd: 'Hello2024#$', roles: ['dbOwner'] }); | |
| # λΉλ°λ²νΈ λ³κ²½ | |
| db.changeUserPassword(username, password) |
| ssh -ND 1080 root@somewhere-ssh-server -p 22 | |
| # μ΄ν μ°½μ λμ§ λ§κ³ μΌλλ€ | |
| # μ΄μ MacOS, datagripμ ssh ν°λ μ€μ λ±μμ | |
| # localhost, 1080 ν¬νΈλ‘ SOCK5 νλ‘μ μλ²μ μ λ ₯νλ©΄ λ¨ |
| version: "3.9" | |
| services: | |
| nextcloud: | |
| image: arm64v8/nextcloud | |
| restart: always | |
| container_name: nextcloud | |
| ports: | |
| - "10000:80" | |
| networks: |
| sudo apt install fcitx-hangul | |
| im-config μ€ν | |
| OK -> Yes λ₯Ό λλ¬ μ ννλ©΄ μ§μ | |
| fcitx μ ν ν OK -> OK | |
| .bashrc λλ .zshrc μ μλ λ΄μ© μΆκ° | |
| export QT_IM_MODULE=fcitx | |
| export GTK_IM_MODULE=fcitx | |
| export XMODIFIERS=@im=fcitx |
| very_strong_password |
| mysql -u root -p | |
| # 1. user μΆκ° | |
| create user 'μμ΄λ'@'%' identified by 'λΉλ°λ²νΈ'; | |
| grant all privileges on DBμ΄λ¦.* to 'μμ΄λ'@'%'; | |
| λλ | |
| grant select, insert, update on DBμ΄λ¦.* to 'μμ΄λ'@'%'; | |
| FLUSH PRIVILEGES; |