IT Talks/Linux 7

How To Install Jenkins on Ubuntu 22.04

Jenkins ์„ค์น˜ ๊ด€๋ จํ•ด์„œ ๊ฒ€์ƒ‰์„ ํ•˜๋‹ค๋ณด๋ฉด ์ด๋Ÿฐ์ €๋Ÿฐ ๊ธ€๋“ค์ด ๋งŽ์€๋ฐ ์„ค์น˜ ํ•˜๋‹ค ๋ณด๋ฉด GPG error ๋„ ์ข…์ข… ๋ฐœ์ƒํ•˜๊ณ  ์ด๋Ÿฐ ์ €๋Ÿฐ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜์˜ค๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋Š”๋ฐ ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์— ์žˆ๋Š” ๊ฐ€์ด๋“œ ๋Œ€๋กœ ๋”ฐ๋ผํ•˜๋ฉด ๋ฌธ์ œ ์—†์ด ์„ค์น˜๊ฐ€ ๋˜๋Š” ๊ฒƒ ๊ฐ™๋‹ค. * ์ถœ์ฒ˜ : https://pkg.origin.jenkins.io/debian-stable/ ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์‰ด์—์„œ ์ˆœ์„œ๋Œ€๋กœ ์‹คํ–‰ curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \ /usr/share/keyrings/jenkins-keyring.asc > /dev/null echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \..

IT Talks/Linux 2023.05.23

์„œ๋ฒ„์˜ ๊ณต์ธ IP ํ™•์ธํ•˜๊ธฐ

์ผ๋ฐ˜์ ์ธ ๋ฆฌ๋ˆ…์Šค ์„œ๋ฒ„๋Š” ์ด๋”๋„ท๋ณ„๋กœ IP๋ฅผ ํ• ๋‹นํ•˜์—ฌ ifconfig ๋ช…๋ น์–ด๋กœ ํ• ๋‹น๋œ IP ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์œผ๋‚˜ AWS (Amazon Web Service)๋“ฑ์˜ ํด๋ผ์šฐ๋“œ ์žฅ๋น„์—์„œ๋Š” Private IP ๋งŒ ํ™•์ธ์ด ๊ฐ€๋Šฅํ•˜๊ณ  Public IP ๋Š” Amazon Console ๋“ฑ์„ ํ†ตํ•ด์„œ ํ™•์ธ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. ๋˜๋Š” NAT ์•„๋ž˜์— ์œ„์น˜ํ•œ ์„œ๋ฒ„๋“ค์˜ ๊ฒฝ์šฐ๋„ ์‹ค์ œ ํ• ๋‹น๋œ IP๋Š” ์‚ฌ์„ค IP๋งŒ ํ‘œ์‹œ๋˜๊ณ , ์™ธ๋ถ€ ์ ‘์†์‹œ ์™ธ๋ถ€ ์„œ๋ฒ„์—์„œ ์ธ์‹ํ•˜๋Š” IP ๋Š” NAT ์˜ IP ๊ฐ€ ๋œ๋‹ค. ์ด๋Ÿฐ ๊ฒฝ์šฐ ์„œ๋ฒ„์—์„œ ๊ฐ„๋‹จํ•˜๊ฒŒ ์™ธ๋ถ€๋กœ ์ ‘์†ํ•˜๋Š” ๋ณธ์ธ IP๋ฅผ ํ™•์ธํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค. 1. ํ˜„์žฌ ์‚ฌ์šฉ์ค‘์ธ ์„œ๋ฒ„์˜ ๊ณต์ธIP ์กฐํšŒ (Outbound) $ curl ip.ojj.kr Your IP is 175.123.191.3 2. ํŠน์ • IP์˜ ์ •๋ณด ์กฐํšŒ $ cu..

IT Talks/Linux 2023.02.22

OpenVPN Server ์„ค์น˜ํ•˜๊ธฐ

์ˆœ์„œ ๊ณต์ธ IP ํ™•์ธ openvpn-install.sh ๋‹ค์šด๋ฐ›๊ธฐ openvpn-install.sh ์‹คํ–‰ํ•ด์„œ OpenVPN ์„œ๋ฒ„ ์„ค์น˜ํ•˜๊ธฐ ๊ฐ OS ๋ณ„ Client ๋ฅผ ์ด์šฉํ•ด OpenVPN ์„œ๋ฒ„์— ์—ฐ๊ฒฐํ•˜๊ธฐ ์—ฐ๊ฒฐ ํ™•์ธ 1. ๊ณต์ธ IP ํ™•์ธ ์„œ๋ฒ„์— ๋”ฐ๋ผ ๊ณต์ธ IP๊ฐ€ ์ง์ ‘ ์—ฐ๊ฒฐ๋œ ๊ฒฝ์šฐ๋„ ์žˆ๊ณ , NAT ์•„๋ž˜์— ์œ„์น˜ํ•˜์—ฌ ์‚ฌ์„ค IP๋งŒ ์žˆ๋Š” ๊ฒฝ์šฐ๋„ ์žˆ์–ด ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๋Œ€๋ถ€๋ถ„์˜ ์ผ€์ด์Šค์— ๋Œ€ํ•ด ๊ณต์ธ IP ํ™•์ธ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. $ curl ip.ojj.kr Your IP is 121.131.xxx.xxx 2. openvpn-install.sh ๋‹ค์šด๋ฐ›๊ธฐ $ wget https://git.io/vpn -O openvpn-install.sh 3. openvpn-install.sh ์‹คํ–‰ํ•ด์„œ OpenVPN ์„œ๋ฒ„ ์„ค์น˜ํ•˜๊ธฐ ์Šคํฌ๋ฆผํŠธ๋ฅผ ..

IT Talks/Linux 2022.08.01

python ์˜ sys.stderr.write(f"ERROR: {exc}") ์˜ค๋ฅ˜

๊ฐ‘์ž๊ธฐ ์ด๋Ÿฐ ๋ฉ”์‹œ์ง€๊ฐ€ ๋‚˜์˜จ๋‹ค๋ฉด ? $ sudo python3 -m pip Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.5/dist-packages/pip/__main__.py", line 29, in from pip._internal.cli.main import main as _main File "/usr/local/lib/pyth..

IT Talks/Linux 2021.05.15

PCRE ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ

๋ฏธ๋””์–ด ์œ„ํ‚ค๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ pcre ๋ฒ„์ „์ด ๋‚ฎ์•„์„œ ์„ค์น˜ํ•  ์ˆ˜ ์—†๋‹ค๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ๋ฐœ์ƒ.์„ค์น˜๋œ ๋ฒ„์ „ ํ™•์ธ# rpm -q --queryformat "%{name}.%{arch}\n" pcre ๊ธฐ์กด ๋ฒ„์ „ ์‚ญ์ œ (--nodeps ์˜ต์…˜์œผ๋กœ)# rpm -ev --nodeps pcre-devel.x86_64 # rpm -ev --nodeps pcre.x86_64 # rpm -ev --nodeps pcre-devel.i386 # rpm -ev --nodeps pcre.i386 yum repo ์— ์ถ”๊ฐ€vi /etc/yum.repos.d/utter-ramblings.repo ํ›„ ์•„๋ž˜ ๋‚ด์šฉ ์ถ”๊ฐ€[utter-ramblings] name=Utter Ramblings baseurl=http://www.jasonlitka.com..

IT Talks/Linux 2014.11.27

๊ณ ๊ธ‰ Bash ์Šคํฌ๋ฆฝํŒ… ๊ฐ€์ด๋“œ

๊ณ ๊ธ‰ Bash ์Šคํฌ๋ฆฝํŒ… ๊ฐ€์ด๋“œBash๋ฅผ ์ด์šฉํ•œ ์‰˜ ์Šคํฌ๋ฆฝํŒ… ์™„์ „ ๊ฐ€์ด๋“œMendel CooperBrindlesoft thegrendel (at) theriver.com์ฐจํ˜„์ง„terminus (at) kldp.org2001๋…„ 12์›” 16์ผ ๋ณธ ํŠœํ† ๋ฆฌ์–ผ์€ ์—ฌ๋Ÿฌ๋ถ„์ด Bash์— ๋Œ€ํ•ด์„œ ์–ด๋– ํ•œ ์‚ฌ์ „ ์ง€์‹๋„ ์—†๋‹ค๊ณ  ๊ฐ€์ •์„ ํ•ฉ๋‹ˆ๋‹ค๋งŒ, ๊ธˆ๋ฐฉ ์ค‘/๊ณ ๊ธ‰ ์ˆ˜์ค€์˜ ๋ช…๋ น์–ด๋“ค์„ ์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹ค(...์œ ๋‹‰์Šค์˜ ์Šฌ๊ธฐ๋กญ๊ณ  ๊ตํ›ˆ์ ์ธ ๋ถ€๋ถ„๋“ค์„ ๋ฐฐ์›Œ ๋‚˜๊ฐ€๋ฉด์„œ). ์ด ๋ฌธ์„œ๋Š” ๊ต๊ณผ์„œ๋‚˜, ํ˜ผ์ž ๊ณต๋ถ€ํ•  ๋•Œ ๋ณผ ์ˆ˜ ์žˆ๋Š” ๋ฉ”๋‰ด์–ผ, ์‰˜ ์Šคํฌ๋ฆฝํŒ… ๊ธฐ์ˆ ์— ๋Œ€ํ•œ ๋ ˆํผ๋Ÿฐ์Šค๋ฐ ์†Œ์Šค๋กœ ์“ฐ์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋ฐฐ์šฐ๋Š” ์œ ์ผํ•œ ๋ฐฉ๋ฒ•์€ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ง์ ‘ ์งœ ๋ณด๋Š” ๊ฒƒ์ด๋‹ค๋ผ๋Š” ์ „์ œํ•˜์—, ์—ฐ์Šต๋ฌธ์ œ์™€ ์•„์ฃผ ์ž์„ธํ•˜๊ฒŒ ์ฃผ์„ ์ฒ˜๋ฆฌ๋œ ์˜ˆ์ œ๋“ค๋กœ ๋Šฅ๋™์ ์ธ ๋…์ž๋“ค์˜ ์ฐธ์—ฌ๋ฅผ ์œ ๋„ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค.์ด..

IT Talks/Linux 2014.04.25

ubuntu ์—์„œ timezone ์„ค์ • ๋ณ€๊ฒฝํ•˜๊ธฐ

์š”์ฆ˜ ์—…๋ฌด์ƒ AWS ๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค ๋ณด๋‹ˆ timezone ์ด ์œ ๋Ÿฝ์œผ๋กœ ๋˜์–ด์žˆ์–ด์„œ ๋ณ€๊ฒฝ์ด ํ•„์š”ํ–ˆ๋‹ค.์ œ๋ชฉ์—๋Š” ์šฐ๋ถ„ํˆฌ๋ผ๊ณ  ์“ฐ๊ธด ํ–ˆ์ง€๋งŒ ๋ฆฌ๋ˆ…์Šค์—์„œ๋Š” ๋™์ผํ•œ๋“ฏ.. # ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime ์ด๋ ‡๊ฒŒ ํ•˜๊ณ  date ๋ช…๋ น ์กฐํšŒํ•ด ๋ณด๋ฉด KST ๋กœ ๋ณ€๊ฒฝ๋˜์–ด ๋ณด์ž„.

IT Talks/Linux 2014.02.18
728x90