Ubuntu16.04 설치 후 기본 설정

-- 저장소 변경, 업데이트, 업그레이드
# cd /etc/apt
# cp sources.list sources.list_orig
# sed -i "s/kr.archive.ubuntu.com/ftp.daumkakao.com/g" sources.list
# sed -i "s/security.ubuntu.com/ftp.daumkakao.com/g" sources.list
# apt update
# apt upgrade

-- 시간 동기화
# apt install ntp
# cd /etc
# cp ntp.conf ntp.conf_orig
# sed -i "s/^pool/#pool/g" ntp.conf
# echo \
> "server time.bora.net
> server time.nuri.net
> server ntp.kornet.net
> server time.kriss.re.kr
> server time.nist.gov" >> ntp.conf
# systemctl restart ntp
# ntpq -p

-- 사용자 환경설정
# cd ~/
# sed -i "/# some more ls aliases/a alias rm='rm -i'" .bashrc
# sed -i "/HISTFILESIZE=/a HISTTIMEFORMAT=\"%Y-%m-%d_%H:%M:%S [CMD]: \"" .bashrc
# source .bashrc

 

댓글(0)