□ using mkpasswd make encrypted password

print "mypassword" | mkpasswd --stdin --method=md5

return md5 hash code -> blablablabla!@#!@$!@$

● method : des, md5, sha256, sha512

□ using chpasswd to user password change

printf 'userID:blablablabla!@#!@$!@$'|sudo chpasswd --encrypted

 

easy!

Finally, brothers, whatever is true, whatever is honorable, whatever is just, whatever is pure, whatever is lovely, whatever is commendable, if there is any excellence, if there is anything worthy of praise, think about these things.

Philippians 4:8 ESV

https://www.bible.com/bible/59/php.4.8.ESV 

 

형제 여러분, 끝으로 말합니다. 여러분은 참되고 고상하고 옳고 순결하고 사랑스럽고 칭찬할 만한 것이 무엇이든 거기에 미덕이 있고 찬사를 보낼 만한 것이 있다면 그것들을 생각하십시오.

빌립보서 4:8 KLB

https://www.bible.com/bible/86/php.4.8.KLB 

linuxserver/firefox docker 이미지에서는 한글 폰트가 모두 깨지는 현상이 나타난다

한글폰트만 내려 받아서 저장 하면 해결되지만, 도커 재생성 시 마다 폰트를 내려 받는 작업을 해주어야 해서 그 귀찮음을 해결 하고자 아래의 초기설정을 공유 함

□ docker-compose 내 entrypoint 와 command 조합으로 자동 실행

 

entrypoint : 환경적 변화가 적은 수행

command : 환경적 변화에 따라 수행

Make a shell [/config/fonts.sh]

#!/bin/sh
/bin/mkdir /usr/share/fonts/Nanum/ &&
/usr/bin/curl -o /usr/share/fonts/Nanum/Nanum-coding.zip -L https://fonts.google.com/download?family=Nanum%20Gothic%20Coding &&
/usr/bin/curl -o /usr/share/fonts/Nanum/Nanum.zip -L https://fonts.google.com/download?family=Nanum%20Gothic &&
unzip /usr/share/fonts/Nanum/Nanum-coding.zip /usr/share/fonts/Nanum/ &&
unzip /usr/share/fonts/Nanum/Nanum.zip /usr/share/fonts/Nanum/
[Modify Docker-compose]

    entrypoint: ["sh", "-c"]
    command: /config/fonts.sh&/init

+ Recent posts