1. 설치 구분

1) 이미지 기반 USB 설치

2) 이미지 기반 가상 OS 설치

3) 컨테이너 기반(압축 파일) 가상 OS 설치용 이미지 통한 설치(Docker 또는 WSL)

 

 

2. 설치

1) 컨테이너 기반 경우 물어보는 것이 없으나 컨테이너 파일이 미니멀 버전이라면 리눅스 설치 후 SSH 등 동작하는 것이 대부분 없기 때문에 알아서 직접 설치 필요 

2) 컨테이너 기반이 아닌 경우는 기본값으로 대부분 설치 

 

 

3. 메뉴얼 설치 시, 파티션 설정 참조(과거 배분과 바뀜)

 

 

4. 컨테이너 설치 시, nmtui 같은 네트워크 설정 불가. 레드헷 OS 기반(CentOS)과 같은 방법으로 메뉴얼하게 설정 필요

아래, 컨테이너 기반 설치 후 설치 이력 

    1  ll
    2  sudo
    3  ls
    4  dnf update -y
    5  ll
    6  dnf install -y sudo passwd
    7  ipconfig
    8  ifconfig
    9  passwd
   10  ip
   11  ip a
   12  ./ip
   13  nmtui
   14  netconfig
   15  config
   16  ls
   17  clear
   18  dir
   19  cd Rocky
   20  cd Rocky9
   21  ll'
   22  ls
   23  l
   24  ;
   25  ls
   26  cd ..
   27  ll
   28  dir
   29  cls
   30  clear
   31  systemctl
   32  nmcli
   33  history
   34  dnf install nmcli
   35  nmcli connection show
   36  dnf install -y epel-release
   37  dnf config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo
   38  clear
   39  dnf config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo
   40  dnf install -y bash-completion net-tools lsof htop
   41  ifconfig
   42  clear
   43  ifconfig
   44  dnf config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo
   45  dnf config-manager –-add-repo https://download.docker.com/linux/centos/docker-ce.repo
   46  clear
   47  dnf config-manager –-add-repo "https://download.docker.com/linux/centos/docker-ce.repo"
   48  dnf config-manager –-add-repo https://download.docker.com/linux/centos/docker-ce.repo
   49  dnf config-manager --save –-add-repo https://download.docker.com/linux/centos/docker-ce.repo
   50  dnf config-manager –-add-repo https://download.docker.com/linux/centos/docker-ce.repo
   51  dnf config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo
   52  dnf config-manager –-add-repo https://download.docker.com/linux/centos/docker-ce.repo --set-enabled
   53  dnf config-manager –-add-repo https://download.docker.com/linux/centos/docker-ce.repo
   54  clear
   55  dnf config-manager –-add-repo https://download.docker.com/linux/centos/docker-ce.repo
   56  dnf config-manager –-add-repo
   57  dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
   58  dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
   59  pwd
   60  ll
   61  mkdir maildata
   62  cd maildata
   63  ll
   64  cd ..
   65  dir
   66  dm maildata
   67  rm maildata
   68  rmdir maildata
   69  dir
   70  cd Rocky9
   71  dir
   72  mkdir maildata
   73  cd maildata
   74  docker pull mailserver/docker-mailserver:latest
   75  systemctl enable -now docker
   76  systemctl
   77  systemctl enable --now docker
   78  systemctl enable -now docker
   79  systemctl enable --now docker
   80  systemctl status
   81  cd /
   82  cd etc
   83  pwd
   84  sudo
   85  vim wsl.conf
   86  dnf
   87  dnf --install vim
   88  vi wsl.conf
   89  exit
   90  cd /tmp
   91  ll
   92  ls
   93  exit
   94  systemctl
   95  systemctl status
   96  systemctl enable --now docker
   97  pwd
   98  cd maildata
   99  dir
  100  cd Rocky9/
  101  cd maildata/
  102  dir
  103  docker pull mailserver/docker-mailserver:latest
  104  ll
  105  ls
  106  curl -LO https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/compose.yaml
  107  curl -LO https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/mailserver.env
  108  vi compose.yaml
  109  docket compose up -d
  110  docker compose up -d
  111  docker logs -f mailserver
  112  ls
  113  cd docker-data/
  114  cd dms
  115  ls
  116  mkdir /maildata/docker-data/dms/custom-cert/demoCA
  117  mkdir custom-cert/demoCA
  118  mkdirs custom-cert/demoCA
  119  mkdir custom-cert/demoCA
  120  mkdir custom-cert
  121  cd custom-cert/
  122  mkdir demoCA
  123  curl -LO https://dl.smallstep.com/cli/docs-cli-install/latest/step-cli_amd64.rpm
  124  rpm -i step-cli_amd64.rpm
  125  step certificate create "Smallstep Root CA" "demoCA/cacert.pem" "demoCA/cakey.pem"   --no-password --insecure --profile root-ca   --not-before "2024-08-20T00:00:00+00:00"   --not-after "2034-08-20T00:00:00+00:00"   --san "biolist.com" --san "mail.biolist.com"   --kty RSA --size 2048
  126  step certificate create "Smallstep Leaf" public.crt private.key   --no-password --insecure --profile leaf   --ca "demoCA/cacert.pem" --ca-key "demoCA/cakey.pem" --not-before "2024-08-20T00:00:00+00:00"   --not-after "2034-08-20T00:00:00+00:00"   --san "biolist.com" --san "mail.biolist.com"   --kty RSA --size 2048
  127  cd ..
  128  pwd
  129  ls
  130  cd ..
  131  ls
  132  vi compose.yaml
  133  vim compose.yaml
  134  yum
  135  yum install vim
  136  vim compose.yaml
  137  cp compose.yaml compose_20241002.yaml
  138  vim compose.yaml
  139  docker compose down
  140  docker compose up -d
  141  docker exec -it mailserver setup config dkim domain 'biolist.net'
  142  docker exec -it mailserver cat /tmp/docker-mailserver/opendkim/keys/enteroa.com/mail.txt | awk -F'"' '{print $2}' | paste -s | sed 's/[ \t]//g;s/;/; /g'
  143  ll
  144  ls
  145  docker exec -it mailserver cat /tmp/docker-mailserver/opendkim/keys/enteroa.com/mail.txt | awk -F'"' '{print $2}' | paste -s | sed 's/[ \t]//g;s/;/; /g'
  146  docker exec -it mailserver setup config dkim domain 'biolist.net'
  147  docker exec -it mailserver cat /tmp/docker-mailserver/opendkim/keys/enteroa.com/mail.txt | awk -F'"' '{print $2}' | paste -s | sed 's/[ \t]//g;s/;/; /g'
  148  ~]# docker exec -it mailserver cat /tmp/docker-mailserver/opendkim/keys/enteroa.com/mail.txt | awk -F'"' '{print $2}' | paste -s | sed 's/[ \t]//g;s/;/; /g'
  149  docker exec -it mailserver cat /tmp/docker-mailserver/opendkim/keys/biolist.net/mail.txt | awk -F'"' '{print $2}' | paste -s | sed 's/[ \t]//g;s/;/; /g'
  150  find ./mailserver.*
  151  cp mailserver.env mailserver_20241002.env
  152  vim mailserver.env
  153  docker compose down mailserver
  154  docker compose up -d mailserver
  155  vim mailserver.env
  156  docker compose down mailserver
  157  docker compose up -d mailserver
  158  ll
  159  ls
  160  vim compose.yaml
  161  docker compose down mailserver
  162  vim compose.yaml
  163  vim mailserver.env
  164  docker compose up -d mailserver
  165  ifconfig
  166  passwd
  167  yum install openssh-server
  168  vi /etc/ssh
  169  vi /etc/ssh/sshd_config
  170  service ssh restart
  171  shich sshd
  172  which sshd
  173  firewall-cmd
  174  firewall -cmd
  175  service sshd start
  176  systemctl start sshd
  177  systemctl status sshd
  178  systemctl restart sshd
  179  systemctl status sshd.service
  180  systemctl start sshd
  181  systemctl start sshd
  182  pwd
  183  nmtui
  184  dul
  185  history
  186  dnf install nmtui
  187  yum install nmtui
  188  nmtui
  189  nmcli
  190  dnf install nmcli
  191  yum install nmcli
  192  nmcli
  193  setup
  194  ifconfig
  195  find / -name network-scripts
  196  cd /etc
  197  ll
  198  ls
  199  clear
  200  ls
  201  find . -name ifcfg*
  202  find . -name ifcfg*.*
  203  sudo nano
  204  systemctl restart NetworkManager
  205  NetworkManager
  206  pacman
  207  systemctl restart network
  208  systemctl restart network22
  209  systemctl restart Networkmanager
  210  service
  211  systemctl start NetworkManager
  212  ap
  213  apt
  214  systemctl enable --now NetworkManager.service
  215  yum -y install NetworkManager
  216  nmcli
  217  systemctl enable --now NetworkManager.service
  218  nmcli
  219  nmtui
  220  nmcli
  221  systemctl restart NetworkManager
  222  systemctl restart NetworkManage
  223  systemctl restdart NetworkManager
  224  systemctl restart NetworkManager
  225  systemctl status NetworkManager
  226  ip
  227  ip addr
  228  cd /etc/sysconfig/network-scripts/
  229  ll
  230  ls
  231  tail readme-ifcfg-rh.txt
  232  nmtui
  233  setup
  234  nmcli
  235  nmcli device status
  236  cd ..
  237  ll
  238  ls
  239  cd ..
  240  cd NetworkManager/
  241  ll
  242  ls
  243  cd system-connections/
  244  ls
  245  ls -lst
  246  clear
  247  nmcli connection reload
  248  nmcli device status
  249  nmcli
  250  ssh localhost
  251  ll
  252  ls
  253  cd /
  254  cd dev/
  255  ll
  256  ls
  257  cd wsl
  258  pwd
  259  cd /
  260  ll
  261  ls
  262  cd mnt
  263  cd DEV
  264  ll
  265  ls
  266  cd c
  267  cd ..
  268  cd wsl
  269  ll
  270  ls
  271  cd ..
  272  ls
  273  cd c
  274  cd DEV
  275  cd WSL
  276  ll
  277  ls
  278  cd Rocky9/
  279  ls
  280  cd maildata/
  281  ls
  282  nmtui
  283  nmcli device status
  284  ifconfig
  285  ssh
  286  sshd
  287  nmcli
  288  ifconfig
  289  clear
  290  cls
  291  ifconfig
  292  nmtui
  293  exit
  294  wsl
  295  exit
  296  ifconfig
  297  history

 

 

5. OS 설치 

1) 컨테이너 기반 설치 시 위 작업 이력과 같은 작업 필요

2) 컨테이너 기반 아닌 전통적 GUI 기반 설치 시, 설치 완료 후 "nmtui" 입력하여 네트워크 설정 필요

3) nmtui 실행되지 않을 경우 nmcli 명령어로 처리 

4) 네트워크 설정 참조

   - https://itcenter.yju.ac.kr/xe_board_tech_linux/24400

   - https://svrforum.com/os/361727

   - https://velog.io/@zero0913/%ED%87%B4%EA%B7%BC-%ED%9B%84%EC%97%90-%ED%8B%88%ED%8B%88%ED%9E%88-%EC%9E%91%EC%84%B1%ED%95%98%EB%8A%94-%EC%82%BD%EC%A7%88-%EC%9D%BC%EC%A7%80-%EB%A6%AC%EB%88%85%EC%8A%A4%EC%84%9C%EB%B2%84-1.-Rocky-Linux-9-%EC%84%A4%EC%B9%98-%EB%B0%8F-SSH-%EA%B4%80%EB%A0%A8-%EC%84%A4%EC%A0%95

   - https://tech.zinnunkebi.com/all-about-os/all-about-linux/rocky-linux-9-network-setting/

   - https://blog.naver.com/zzang7648/223498691114

   - https://gomu92.tistory.com/13

 

 

※ docker-mailserver 설치 시

- 계정 확인 방법

① docker compose exec mailserver setup debug login

② 

 

 

Posted by 하리하라​
: