ubuntu dns server add /etc/dhcp/dhclient.conf:prepend domain-name-servers x.x.x.x, y.y.y.y; R&D/클라우드 2017.01.16
proxy , certificates , transparent proxy Transparent proxyhttps://coderwall.com/p/t_isaa/create-a-gateway-with-a-transparent-proxy-iptables-squid PIP 설치시 cert 관련 echo export PIP_CERT=/etc/ssl/certs/ca-certificates.crt >> ~/.bashrc R&D/클라우드 2017.01.06
wget 으로 RPM mirror하기 예제wget -r -nH --cut-dirs=3 -np http://ftp.usf.edu/pub/centos/5.4 옵션-r : recursive download-nH: don't create host directory--cut-dirs=N : ignore NUMBER remote directory components R&D/클라우드 2016.11.07
tmux 사용 실행 : tmux세로창 나누기: ctl-b %가로창 나누기: ctl-b "창간 이동: ctl-b, 화살표창닫기: exit , ctl-d 새로운 window 만들기: ctl-b cwindows 이동: ctl-b nwindows 이동: ctl-b pwindows 이동: ctl-b Maximize current pane: ctl-b z tmux 세션 생성: tmux new -s tmux 나오기(detach): ctl-b dtmux 세션 리스트: tmux listtmux 세션 붙기: tmux attach -t Title 변경: ctl-b ,현재 pane을 full-screen: ctl-b z (복귀는 ctl-b z) Pane Title 설정 : ctl-b : rename-window title이 자동으로 변경되.. R&D/클라우드 2016.10.13
리눅스 screen 사용법 스크린 시작: screen -S 스크린 나오기: ctl-a,d스크린 리스트: screen -list스크린 다시 접속: screen -r 주요명령어: ctl-a, ctl-a,d : detach screen 스크린에서 나옴ctl-a,w: 몇개의 창이 존재하는지 보여줌ctl-a,c: 새 스크린 생성 R&D/클라우드 2016.10.11
proxy 관련 proxy 아래에서 명령어를 실행하는 것은 OTL 1안)pip install xxxx --proxy= 2안)pip install xxx --proxy= --trusted-host pypi.python.org R&D/클라우드 2016.10.07
debian vs. ubuntu version 16.04 xenial stretch / sid 15.10 wily jessie / sid 15.04 vivid jessie / sid 14.10 utopic jessie / sid 14.04 trusty jessie / sid 13.10 saucy wheezy / sid 13.04 raring wheezy / sid 12.10 quantal wheezy / sid 12.04 precise wheezy / sid 11.10 oneiric wheezy / sid 11.04 natty squeeze / sid 10.10 maverick squeeze / sid 10.04 lucid squeeze / sid Debian Release namingVersionCode nameRelease dateToy Stor.. R&D/클라우드 2016.09.01
centos 에서 /etc/hosts 자동 업데이트 CentOS 를 설치하면 /etc/hosts 에는 localhost 만 등록되어 있다.DHCP로 IP를 받고 hostname 을 받은 경우, 자동으로 hosts 파일을 업데이트 할 수 있다. #!/bin/sh# for Ubuntu# /etc/dhcp/dhclient-exit-hooks.d/sethostname# for CentOS# /etc/dhcp/dhclient.d/sethostname # for debugging:echo "sethostname BEGIN"exportset -x echo new_ip_address=$new_ip_addressecho new_host_name=$new_host_nameecho new_domain_name=$new_domain_name oldhostname=$(hostn.. R&D/클라우드 2016.08.19