728x90 ๋ฐ์ํ ๐ง์ด์์ฒด์ /๋ฆฌ๋ ์ค34 ๋ฆฌ๋ ์ค - ๋ฐํํ๋ฉด ๋ฐ ํ๋ก๊ทธ๋จ ํ์์ ํ๋ก๊ทธ๋จ ์์ด์ฝ ์์ฑ(.desktop) /usr/share/applications/program.desktop [Desktop Entry] Type=Application Name=Program Name Comment=Program Comment Icon=/home/user/icon.png Exec=/home/user/program.sh Terminal=false Categories=Development;python;bash; chmod g+r /usr/share/applications/program.desktop chmod o+r /usr/share/applications/program.desktop ์ถ์ฒ: https://quitlee.blogspot.com/2018/04/ubuntu_2.html ์ฐ๋ถํฌ[ubuntu] ๋ฐ์ฒ(์๋์ฐ ๋ฉ๋ด)์ ์.. 2023. 5. 16. ๋ฆฌ๋ ์ค - GRUB ๋ถํ ์์ ๋ณ๊ฒฝ 1. ๋ถํ ์ GRUB ํ๋ฉด์์ ์๋์ฐ์ ์ธ๋ฑ์ค ์์ ํ์ธ - ์ฒซ๋ฒ์งธ๋ 0, ๋ ๋ฒ์งธ๋ 1์ด๋ฉฐ ์๋์ฐ์ ์ธ๋ฑ์ค ์์๋ฅผ ํ์ธ 2. /etc/default/grub ์์ GRUB_DEFAULT=0 2023. 5. 15. ๋ฆฌ๋ ์ค - ์๋น์ค ์์ฑ(systemctl) ์๋น์ค ์์ฑ nano /etc/systemd/system/my_service.service [Unit] Description=My Service After=network.target [Service] ExecStart=/usr/bin/python3 /path/to/app.py WorkingDirectory=/path/to/app/directory Restart=always User=my_user [Install] WantedBy=multi-user.target [Unit] : ์๋น์ค์ ์ด๋ฆ๊ณผ ์คํ ์์ ๋ฑ์ ์ ๋ณด๋ฅผ ์ ์ํฉ๋๋ค. [Service] : ์๋น์ค ์คํ ์ ํ์ํ ์ ๋ณด๋ฅผ ์ ์ํฉ๋๋ค. ExecStart : ์๋น์ค๋ฅผ ์์ํ ๋ช ๋ น์ด๋ฅผ ์ง์ ํฉ๋๋ค. WorkingDirectory : ์๋น์ค๋ฅผ ์์ํ ๋ ์ค.. 2023. 5. 9. ๋ฆฌ๋ ์ค - WSL2 Ubuntu cmd์์ ์ ์ง์ Ubuntu ์ ์ง์ wsl -d ubuntu ์์ ๊ฒฝ๋ก ์ง์ wsl --cd / -d ubuntu WSL ๋ฆฌ์คํธ wsl --list 2023. 5. 4. ๋ฆฌ๋ ์ค - ํ์ฌ ์๊ฐ, ๋ ์ง ๋ณ๊ฒฝํ๊ธฐ(date, NTP) date ๋ช ๋ น์ด date # ํ์ฌ ์๊ฐ ํ์ธ sudo date -s "20230315 14:30:30" # ํ์ฌ ์๊ฐ ๋ณ๊ฒฝ date # ๋ฐ๋ ์๊ฐ ํ์ธ NTP(Network Time Protocol) ๋ช ๋ น์ด (์ธ๋ถ๋ก๋ถํฐ ์ ํํ ์๊ฐ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ค๋ ๋ฐฉ๋ฒ) sudo apt-get install ntp NTP ์ค์น sudo nano /etc/ntp.conf ์ค์ ํ์ผ ์์ server time.bora.net server kr.pool.ntp.org server time.bora.net server time.kornet.net ์ค์ ํ์ผ์ ํ๊ตญ ์๊ฐ NTP ์ฃผ์ ๋ฑ๋ก sudo service ntp restart NTP ์๋น์ค ์ฌ์์ 2023. 3. 12. ๋ฆฌ๋ ์ค - ๊ธฐ๋ณธ ๊ฒ์ดํธ์จ์ด ์ฃผ์ ๋ณ๊ฒฝ ๋ช ๋ น์ด(route) sudo route add default gw 192.168.0.2 # ์ถ๊ฐ sudo route change default gw 192.168.0.2 # ๋ณ๊ฒฝ sudo route del default gw 192.168.0.2 # ์ ๊ฑฐ ์๊ตฌ์ ์ผ๋ก ๋ณ๊ฒฝํ๊ณ ์ถ์ ๊ฒฝ์ฐ sudo vi /etc/network/interfaces ์ค์ ํ์ผ ์๋ํฐ๋ก ์ด๊ธฐ iface eth0 inet static address netmask gateway ์ค์ ํ์ผ์ ๋ด์ฉ ์์ sudo service networking restart ์๋น์ค ์ฌ์์ 2023. 3. 10. ๋ฆฌ๋ ์ค - ifconfig ์์ดํผ ๋ณ๊ฒฝ ๋ช ๋ น์ด $ ifconfig eth0 ์์) eth0์ IP ์ฃผ์๋ฅผ `192.168.0.100`๋ก ๋ณ๊ฒฝํ๊ธฐ $ ifconfig eth0 192.168.0.100 2023. 3. 10. ๋ฆฌ๋ ์ค - ํ์ผ ์ด๋ฆ์ผ๋ก ํ์ผ ์ฐพ๋ ๋ช ๋ น์ด(find, locate) find find / -name my.cnf 2>/dev/null /์์๋ถํฐ my.cnf๋ผ๋ ์ด๋ฆ์ ํ์ผ์ ์ฐพ๋ ๋ช ๋ น์ด๋ค. ๋ค์ 2>/dev/null์ Permission denied ๊ฐ์ ํ์ค ์ค๋ฅ ๋ฌธ์๊ฐ ๋จ๋ฉด /dev/null๋ก ๋ฆฌ๋ค์ด๋ ์ ์์ผ์ ์ค๋ฅ ๋ฌธ๊ตฌ๊ฐ ์ถ๋ ฅ์ ํ์ง ์๊ธฐ ์ํจ์ด๋ค. ์ฅ์ : ๊ธฐ๋ณธ์ ์ธ ํ์ผ ์ฐพ๋ ๋ช ๋ น์ด์ด๊ณ ๋ค์ํ ์ต์ ๋ค์ ์ฌ์ฉํ ์ ์๋ค. ๋จ์ : ํ์ผ์ ์ฐพ๋๋ฐ ์ค๋ ์๊ฐ์ด ๊ฑธ๋ฆฐ๋ค. locate locate my.cnf ๊ฒ์ ๋ชฉ๋ก์ ๋ฏธ๋ฆฌ mlocate.db ํ์ผ์ ์ธ๋ฑ์ฑ ํ๋ฏ๋ก find ๋ณด๋ค ๋ ๋น ๋ฅด๊ฒ ํ์ผ์ ์ฐพ์ ์ ์๋ค. ์ฃผ๊ธฐ์ ์ผ๋ก ํ์ผ์ ๋ชฉ๋ก์ ๊ธฐ๋กํ๋ cron ์ค์ผ์ค์ด ์๋ํ๋ค. ์ฅ์ : find ๋ช ๋ น์ด ๋ณด๋ค ๋น ๋ฅธ ์๋๋ก ํ์ผ์ ์ฐพ์ ์ ์๋ค. ๋จ์ : ๋ฆฌ๋ ์ค์ ์ค์น๊ฐ ๋์ง ์์ .. 2023. 3. 6. ๋ฆฌ๋ ์ค - ํ์ผ ์ฒดํฌ์ฌ(checksum) ํ์ธ ๋ช ๋ น์ด(sha256sum) ๋ช ๋ น์ด echo "[ํด์] [ํ์ผ์ด๋ฆ]" | sha256sum --check - ์ฌ์ฉ ์์ echo "c409c819eed60985273e94e575fd5dfd8dd34baef3764fc7356b0f23e25a372c protonvpn-stable-release_1.0.3_all.deb" | sha256sum --check - 2023. 2. 27. ๋ฆฌ๋ ์ค - ๋ผ์ฆ๋ฒ ๋ฆฌํ์ด ํ๋ก์ ์๋ฒ ์ค์นํ๊ธฐ(Privoxy) Privoxy ์ค์น sudo apt install privoxy -y ์ค์ ํ์ผ ์์ sudo nano /etc/privoxy/config listen-address :8118 ์์ ๊ฐ์ด ์์ ํด ์ค๋ค. Privoxy ์ฌ์์ sudo systemctl restart privoxy ์ฐธ๊ณ : https://www.howtogeek.com/683971/how-to-use-a-raspberry-pi-as-a-proxy-server-with-privoxy/ How to Use a Raspberry Pi as a Proxy Server (with Privoxy) A Raspberry Pi proxy server allows you to control the websites people can visit. It can .. 2023. 2. 26. ๋ฆฌ๋ ์ค - ์นผ๋ฆฌ ๋ฆฌ๋ ์ค ๋ฐ์คํฌํ ํ๊ฒฝ ์ ํ(Switching Desktop Environments) https://www.kali.org/docs/general-use/switching-desktop-environments/ Switching Desktop Environments | Kali Linux Documentation During install a user may select whichever desktop environment that they prefer. However, when using the official VM this is not a possibility. In these cases, and many others, a user may wish to change their desktop environment. To get started we will fir www.kali.org .. 2023. 1. 27. ๋ฆฌ๋ ์ค - ssh ํค ํ์ผ๋ก ๋น๋ฐ๋ฒํธ ์์ด ์ ์ํ๊ธฐ(ssh-keygen) 1. ์ฐ์ ํด๋ผ์ด์ธํธ ์ธก์ด ์๋์ ๋ช ๋ น์ด๋ก ํค ์(๊ฐ์ธํค, ๊ณต์ฉํค)์ ์์ฑ์ํจ๋ค. RSA ํ์(type)์ผ๋ก ํค ์์ ์์ฑ ํ๋ ๋ช ๋ น์ด ssh-keygen -t rsa ์์ฑํด์ฃผ๊ฒ ๋๋ฉด ~/.ssh ํด๋์ id_rsa, id_rsa.pub์ด ์์ฑ์ด ๋๊ณ ๊ฐ๊ฐ ๊ฐ์ธํค, ๊ณต์ฉํค์ด๋ค. (* ๊ฐ์ธํค๋ ์ ๋ ์ ์ถ x) ~/.ssh/ โโ id_rsa โโ id_rsa.pub 2. id_rsa.pub(๊ณต์ฉํค)์ ๋ด์ฉ์ ์๋ฒ ์ธก์ ~/.ssh/authorized_keys ํ์ผ์๋ค ์ ์ด์ค๋ค. vim ~/.ssh/authorized_keys 3. ํด๋ผ์ด์ธํธ(์ ์์)๋ ~/.ssh/ ๊ฒฝ๋ก์๋ค id_rsa๋ฅผ ๋ฃ๋๊ฐ ๋ช ๋ น์ด(with -i ์ต์ )๋ฅผ ํตํด์ ์๋ฒ์๊ฒ ์ ์ ssh -i id_rsa ์ฌ์ฉ์_์์ด๋@์๋ฒ_์์ดํผ or ~.. 2023. 1. 23. ์ด์ 1 2 3 ๋ค์ 728x90 ๋ฐ์ํ