Server/CentOS

[CentOS] AWS 초기 서버 세팅


AWS instance 생성 직후에 설정해두어야 할 항목들에 대해 적어두고자 한다. 

몇몇개를 까먹어서 안 적었을 수도 있지만 추후에 기억나는 대로 작성할 예정

 

순서는 없다

 

0. sudo yum -y update

 

1. sudo yum groupinstall "Development Tools"

 

0. 커맨드 창 색상, 모양 등 변경 

 

/etc/bashrc -> 부팅 시 실행되는 설정 파일 중 하나. 

Hot Ez Ex) What is bashrc?

https://unix.stackexchange.com/questions/129143/what-is-the-purpose-of-bashrc-and-how-does-it-work#targetText=.bashrc%20is%20a%20shell%20script,type%20at%20the%20command%20prompt.

 

What is the purpose of .bashrc and how does it work?

I found the .bashrc file and I want to know the purpose/function of it. Also how and when is it used?

unix.stackexchange.com

export PS1="\[\e[34;42m\]DEVELOPERNAME\[\e[m\]\[\e[37;40m\][NICEGUY]\[\e[m\]\[\e[37;44m\]\u\[\e[m\]\[\e[35m\]@\[\e[m\]\[\e[36m\]\w\[\e[m\]\\$ "

Reference : http://webdir.tistory.com/105

 

리눅스 PS1 - 쉘프롬프트 모양 변경하기

현재 사용자의 시스템 사용환경을 개별적으로 사용할 수 있도록 지원하는 사용자별 시스템환경변수를 쉘변수라 한다. 쉘변들 가운데 PS1 이라는 쉘변수가 있는데 이 쉘변수는 우리가 사용하는 쉘변수의 모양을 결..

webdir.tistory.com


1. 배너창 변경

/etc/motd -> 배너창

 

http://patorjk.com/software/taag/#p=display&f=Puffy&t=DEFY%20CHICKEN

 

Text to ASCII Art Generator (TAAG)

 

patorjk.com


2. history에 시간 추가


1. /etc/profile에 아래 내용 추가
# vi /etc/profile
HISTTIMEFORMAT=”%F %T — “
export HISTTIMEFORMAT

2. 적용 하기
# source /etc/profile

 


 

'Server > CentOS' 카테고리의 다른 글

[CentOS] useradd / sudo 권한 설정  (0) 2019.09.18