1. DS918+의 CPU는 Intel Celeron J3455
  2. RAM은 진작에 12GB로 업그레이드 했었음
  3. 대대적인 성능 향상과 소모전류 최소화를 위한 새로운 자작 NAS를 위해 Intel 12th N100 cpu 를 사용할까 했는데...
  4. 마음에 드는 Board 가 없음... ㅠㅠ
  5. Asus와 Asrock 에서 보드가 나오는데 Asus의 경우 RAM이 16GB로 제한되고 SATA 가 2개만 지원됨, Asrock은 DC input을 받음 -_-;;;
  6. 이리저리 검색을 하다 Intel 8100T의 존재를 알게 되고 이걸 구입하려다... 12100T 의 존재도 알게 됨
  7. 근데 12100T는 너무 비싸다. ㅋㅋㅋ
  8. 돌고 돌아서 Intel 12th i3 12100 으로 결정!

  1. CPU : intel 12th i3 12100 (하이마트에서 카드 할인, 벌크로 구매)
  2. Mainboard : Asrock B610M m-itx (SSG 에서 쿠폰, 카드 할인)
    1. 원래는 Aliexpress 에서 Huananzhi의 itx board를 구입할까 했었음.
    2. Linux box 에서 멀쩡하게 잘 사용하고 있어서...
    3. Nas는 아무래도 상시 켜 놓고 사용할 것이기 때문에 AS가 가능한 국내 유통 제품으로 결정
    4. https://ko.aliexpress.com/item/1005005107069650.html?spm=a2g0o.productlist.main.37.408fL3p3L3p3c4&algo_pvid=3b5849de-38d4-4ebd-b508-4e72e1bcc194&algo_exp_id=3b5849de-38d4-4ebd-b508-4e72e1bcc194-18&pdp_npi=4%40dis%21KRW%21159625%21110142.0%21%21%21849.72%21%21%402101e9cf16949564877037729e25b8%2112000031684526394%21sea%21KR%210%21AS&curPageLogUid=mMSUJtCVAff0
  3. RAM : TeamGroup DDR4 3200 16GB x 2 (11마존에서 최저가로 구매)
  4. Cooler : Jonsbo HX4170D (알리에서 구매)
  5. Case : Jonsbo N2 (알리에서 구매)
  6. HDD : 기존 DS918+ 에서 사용중인 4개 이전
  7. SSD : nvme m.2 Crucial 1TB (11마존에서 구매, N95에서 사용하던 것 이전)
  8. Power : Micronis 300W sfx power (SSG 에서 쿠폰, 카드 할인)
    1. Aliexpress 에서 sfx full modular power를 살까 하다...
    2. AC 전원 쓰는 건 아무래도 꺼려져서 국내 유통 제품으로 변경
    3. https://ko.aliexpress.com/item/1005001656906315.html?spm=a2g0o.productlist.main.3.46533b5bKrcdCx&algo_pvid=2a3f8f6a-638c-4d5d-8783-94d598a45b31&aem_p4p_detail=202309170619305339835758841070010098411&algo_exp_id=2a3f8f6a-638c-4d5d-8783-94d598a45b31-1&pdp_npi=4%40dis%21KRW%2162940%2162940.0%21%21%2146.00%21%21%402101e9cf16949567705272388e25b8%2112000033222871548%21sea%21KR%210%21AS&curPageLogUid=poLYFGhcuYc3&search_p4p_id=202309170619305339835758841070010098411_2

 글 작성 중인 2023년 09월 17일 현재, Case와 Cooler 가 아직 도착을 안했다. ㅠㅠ 

2023년 09월 22일 기준, 케이스와 쿨러 도착!
근데 쿨러가 보드에 장착이 안된다.
모스펫과 캐패시터에 쿨러의 방열판이 간섭이 생긴다. ㅋㅋ

  1. 현재는 Synology DS918+를 사용 중
  2. NAS 에서 이런 저런 서버들을 docker를 이용하여 돌리고 있었지만 DSM7로 업그레이드 되면서 USB 장치 연결이 불가능해 졌음
  3. Aliexpress 에서 Intel 12세대 N95 기반 미니 PC를 구입하여 docker의 Server들을 이전
  4. NAS + 미니 PC + Dummy Hub 까지 총 3 기기의 idle 소모 전류는 35W 가 약간 넘음 (쬐끔 사용하면 45W...)
  5. 이렇게 된 거 성능 좋은 자작 Home Server를 만들고 Proxmox를 설치하고 미니 PC에서 돌리고 있는 Ubuntu 22.04 LTS와 Window 11 Pro 를 Home Server로 옮기고 추가로 XPEnology(헤놀로지)를 설치하기로 마음 먹음
  6. 지웠던 해킨토시도 다시 설치해야 겠다. ㅋ

 

https://www.derekseaman.com/2023/06/proxmox-ve-8-windows-11-vgpu-vt-d-passthrough-with-intel-alder-lake.html

 

Proxmox VE 8: Windows 11 vGPU (VT-d) Passthrough with Intel Alder Lake

This post covers using an Intel 12th Gen (Alder Lake) CPU with Proxmox VE 8 to do VT-d vGPU passthrough to a Windows 11 Pro VM. This enables multiple VMs on the same Proxmox host share the GPU via virtual functions (VFs). What is VT-d vGPU and how is it…

www.derekseaman.com

 

https://github.com/strongtz/i915-sriov-dkms

 

GitHub - strongtz/i915-sriov-dkms: dkms module of Linux i915 driver with SR-IOV support

dkms module of Linux i915 driver with SR-IOV support - GitHub - strongtz/i915-sriov-dkms: dkms module of Linux i915 driver with SR-IOV support

github.com

 

https://www.michaelstinkerings.org/gpu-virtualization-with-intel-12th-gen-igpu-uhd-730/

 

vGPU (SR-IOV) with Intel 12th Gen iGPU [Updated 2023]

Virtualize Intel iGPU for multiple VMs for hardware accelerated graphics and media encode/decode.

www.michaelstinkerings.org

 

- NAS 조립 후 바로 해 봅시다!!!

https://it-svr.com/proxmox-arpl-dsm-ds3622/

 

Proxmox에서 ARPL을 이용한 DS3622xs+ 설치하기.

안녕하세요. 달소입니다. 이번글은 앞서 소개해드린 ARPL을 Proxmox에 적용해서 설치하는방법입니다. https://svrforum.com/nas/347033 서버포럼 - 새로운 레드필 로더 ARPL(Automated Redpill Loader)로 빌드하기.svrf

it-svr.com

  • 난 HDD type을 scsi 대신 sata로 해야 인식이 되었음

 

생각했던 것보다 더 쉽게 되었다...

 

윈도에서 공유폴더 접근도 당연하지만 매우 잘 됨...

 

현재 사용 중인 DS918+ 를 완전 대체할 수 있을 것도 같으다.

시놀로지 Account는 못 쓰겠지만...

 

File upload log

starting file import from: /var/tmp/pveupload-e44eb75ce3c3636cb51a4a00ff7f4468
target node: server
target file: /var/lib/vz/template/iso/arpl.img
file size is: 1073741824
command: cp -- /var/tmp/pveupload-e44eb75ce3c3636cb51a4a00ff7f4468 /var/lib/vz/template/iso/arpl.img
finished file import successfully
TASK OK

 

 

Dockerize Wagtail & PostgreSQL as a development environment

If you want to develop with Wagtail and PostgreSQL in a platform-independent way, using Docker is a good choice. In the following tutorial, I would like to share my approach.

www.phooky.com

  • 아래와 같은 문제가 생겼다.
(.venv) ➜ projectGoguma (main) ✗ docker-compose exec web python manage.py createsuperuser --settings=projectGoguma.settings.dev

You have 162 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, home, sessions, taggit, wagtailadmin, wagtailcore, wagtaildocs, wagtailembeds, wagtailforms, wagtailimages, wagtailredirects, wagtailsearch, wagtailusers.
Run 'python manage.py migrate' to apply them.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "auth_user" does not exist
LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "auth_user...
                                                             ^


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.8/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 88, in execute
    return super().execute(*args, **options)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.8/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 109, in handle
    default_username = get_default_username(database=database)
  File "/usr/local/lib/python3.8/site-packages/django/contrib/auth/management/__init__.py", line 168, in get_default_username
    auth_app.User._default_manager.db_manager(database).get(
  File "/usr/local/lib/python3.8/site-packages/django/db/models/manager.py", line 87, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 633, in get
    num = len(clone)
  File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 380, in __len__
    self._fetch_all()
  File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1881, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 91, in __iter__
    results = compiler.execute_sql(
  File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 102, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 91, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "auth_user" does not exist
LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "auth_user...
                                                             ^
  • 이리저리 다 수정을 한 것 같은데 왜 안될까???
  • docker container에 직접 attach를 해보니...
  • 엥???
(.venv) ➜ projectGoguma (main) ✗ docker ps -a
CONTAINER ID   IMAGE                  COMMAND                   CREATED              STATUS                   PORTS                                       NAMES
c281852e6c92   projectgoguma_web      "/app/entrypoint.sh …"   About a minute ago   Up About a minute        0.0.0.0:8000->8000/tcp, :::8000->8000/tcp   projectgoguma_web_1
06f0d1750419   postgres:13.5-alpine   "docker-entrypoint.s…"   About a minute ago   Up About a minute        0.0.0.0:5432->5432/tcp, :::5432->5432/tcp   projectgoguma_db_1
59ee14bdc489   hello-world            "/hello"                  3 weeks ago          Exited (0) 3 weeks ago                                               gallant_lamport
(.venv) ➜ projectGoguma (main) ✗ docker attach projectgoguma_web_1
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
/app/entrypoint.sh: 7: /app/entrypoint.sh: nc: not found
  • nc를 왜 필요로 하지?
  • 잘 모르겠지만 Dockerfile 에서 netcat 설치를 추가해 보니 문제 해결
# Install system packages required by Wagtail and Django.
RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \
    build-essential \
    libpq-dev \
    libmariadbclient-dev \
    libjpeg62-turbo-dev \
    zlib1g-dev \
    libwebp-dev \
    netcat \
    # environ \
    # postgresql-dev \
    # python3-dev \
    # musl-dev \
  • 잘된다.
(.venv) ➜ projectGoguma (main) ✗ docker-compose up -d --build                    
Building web
[+] Building 57.1s (14/14) FINISHED                                                                      docker:default
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 2.50kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 418B                                                                                  0.0s
 => [internal] load metadata for docker.io/library/python:3.8.1-slim-buster                                        1.3s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 70B                                                                                   0.0s
 => [1/9] FROM docker.io/library/python:3.8.1-slim-buster@sha256:73f3903470a6e55202a6bb989c23b047487eb1728feba655  0.0s
 => CACHED [2/9] RUN useradd wagtail                                                                               0.0s
 => [3/9] RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends     build-es  23.8s
 => [4/9] RUN pip install "gunicorn==20.0.4"                                                                       1.9s 
 => [5/9] COPY requirements.txt /                                                                                  0.1s 
 => [6/9] RUN pip install -r /requirements.txt                                                                    27.9s 
 => [7/9] WORKDIR /app                                                                                             0.0s 
 => [8/9] RUN chown wagtail:wagtail /app                                                                           0.3s 
 => [9/9] COPY entrypoint.sh /app/entrypoint.sh                                                                    0.0s 
 => exporting to image                                                                                             1.6s 
 => => exporting layers                                                                                            1.6s 
 => => writing image sha256:5f7b2c8cec2309bcf3f45e6a3938484c3d7c90b29cef5bcb0ffb787b14bbf6ef                       0.0s 
 => => naming to docker.io/library/projectgoguma_web                                                               0.0s
Creating projectgoguma_db_1 ... done
Creating projectgoguma_web_1 ... done
(.venv) ➜ projectGoguma (main) ✗ docker-compose exec web python manage.py createsuperuser --settings=projectGoguma.settings.dev
Username (leave blank to use 'wagtail'):
  • 떴다!!!

'django & Wagtail' 카테고리의 다른 글

Wagtail Tutorial  (0) 2023.08.14
Wagtail 설정 with postgreSql  (0) 2023.08.14

https://docs.wagtail.org/en/stable/getting_started/tutorial.html

 

Your first Wagtail site — Wagtail Documentation 5.1.1 documentation

You are now ready to create a blog, use the following command line to create a new app in your Wagtail project. Add the new blog app to INSTALLED_APPS in mysite/settings/base.py. Blog index and posts Start with creating a simple index page for your blog. E

docs.wagtail.org

 

'django & Wagtail' 카테고리의 다른 글

docker-compose로 createsuperuser 실패 시...  (0) 2023.08.30
Wagtail 설정 with postgreSql  (0) 2023.08.14

https://www.phooky.com/blog/dockerize-wagtail-postgresql-as-a-development-environment/

 

Dockerize Wagtail & PostgreSQL as a development environment

If you want to develop with Wagtail and PostgreSQL in a platform-independent way, using Docker is a good choice. In the following tutorial, I would like to share my approach.

www.phooky.com

 

 

'django & Wagtail' 카테고리의 다른 글

docker-compose로 createsuperuser 실패 시...  (0) 2023.08.30
Wagtail Tutorial  (0) 2023.08.14

+ Recent posts