전체 글 1145

tmux in rc.local

rc.local 을 활용하여 시작 스크립트를 실행할 수 있다. 그 중에서 tmux session을 열고 명령어를 실행하는 방법 /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. /root/start_kube.sh exit 0 /root/start_kube.sh 스크립트 #!/bin/sh # starting new tmux session with name 'kube' including one window called '..

Passion/bash 2020.03.02

hugo를 이용한 github.io 에 블로그 만들기

# hugo site initialize https://gohugo.io/getting-started/quick-start/#step-2-create-a-new-site ########## # 페이지 생성 hugo new post/my_first_blog.md Static page 생성 hugo -D -> public 디렉토리 밑에 자동으로 생성됨 ########################## # git 에 push 하고 ########################## git rm -f public git submodule add -b master https://github.com/choonho/choonho.github.io.git public 참고 https://gohugo.io/hosting-an..

Passion/My Idea 2020.02.10