Ubuntu Jupyter hub 설치 전에 갖출 것이다. JupyterHub 는 Python 3.10 이상과 Node.js 12 이상을 요구하고[1], PAM 인증을 쓰면 사용자마다 OS 계정이 있어야 한다.
sudo apt update
sudo apt -y upgrade
sudo apt -y autoremove
커널이 올라갔으면 재부팅한다.
Ubuntu 24.04 는 Python 3.12, 26.04 는 3.14 가 기본이다. venv 모듈과 빌드 도구를 넣는다.
sudo apt -y install python3 python3-venv python3-dev build-essential
python3 --version
Node.js 는 Ubuntu 저장소 판(24.04 는 18.x)으로 충분하다.
sudo apt -y install nodejs npm
node --version
npm --version
PAM 인증은 로그인 계정 = OS 계정이다. 사용자마다 계정과 홈 디렉터리를 만든다.
sudo useradd -m -s /bin/bash user1
sudo passwd user1
관리자로 쓸 계정은 설정 파일의 admin_users 에 넣는다.
쿠키와 토큰 만료가 시간에 의존한다. chrony 로 시간을 맞추고 호스트 이름 을 정한다.
2021년 테스트 됨. apt-get upgrade 와 autoremove 로 오래된 NVIDIA 패키지를 걷어낸 기록이다.
[haedong@localhost:~]$ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
dkms libegl-mesa0 libegl1 libgbm1 libnvidia-cfg1-460 libnvidia-compute-460 libnvidia-decode-460
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
distro-info linux-headers-4.15.0-156 linux-headers-4.15.0-156-generic
...중략...
update-initramfs: Generating /boot/initrd.img-4.15.0-156-generic
[haedong@localhost:~]$ sudo apt-get autoremove -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
dkms libegl-mesa0 libegl1 libgbm1 libnvidia-cfg1-460 libnvidia-compute-460 libnvidia-decode-460
...중략...
Processing triggers for mime-support (3.60ubuntu1) ...
JupyterHub 요구사항 Python 3.10+, Node.js 12+ — 2026-09-20 확인. https://jupyterhub.readthedocs.io/en/stable/tutorial/quickstart.html ↩︎