jiaqing-tee / starquest_jq

0 stars 0 forks source link

Capstone: Environment set up #4

Closed jiaqing-tee closed 2 months ago

jiaqing-tee commented 2 months ago
  1. Set up WSL Ubuntu
  2. VScode with WSL extension
  3. Install docker in WSL Ubuntu
  4. Familiarize with the environment
jiaqing-tee commented 2 months ago

Set up WSL Ubuntu

Installation

Link: https://learn.microsoft.com/en-us/windows/wsl/install PowerShell: wsl --install Image

Set up environment

Link: https://learn.microsoft.com/en-us/windows/wsl/setup/environment#set-up-your-linux-username-and-password

jiaqing-tee commented 2 months ago

WSL VScode

Link: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-vscode

Image

jiaqing-tee commented 2 months ago

Docker

Link:

  1. https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-containers
  2. https://docs.docker.com/engine/install/ubuntu/

Image

jiaqing-tee commented 2 months ago

kubectl

Link: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
echo "$(cat kubectl.sha256)  kubectl" | sha256sum --check

sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

kubectl version --client
kubectl version --client --output=yaml

Image

jiaqing-tee commented 2 months ago

minikube

Link: https://minikube.sigs.k8s.io/docs/start/

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64

sudo usermod -aG docker $USER && newgrp docker
minikube start

kubectl get po -A
minikube kubectl -- get po -A

Image

Image

jiaqing-tee commented 2 months ago

K9s

Link:

  1. https://brew.sh/
  2. https://k9scli.io/topics/install/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/judging/.bashrc
sudo apt-get install build-essential
brew install gcc

brew install derailed/k9s/k9s

Image

jiaqing-tee commented 2 months ago

mysql

Link: https://formulae.brew.sh/formula/mysql

brew install mysql

==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Downloading https://ghcr.io/v2/homebrew/core/mysql/manifests/8.3.0_1
######################################################################################################## 100.0%
==> Fetching dependencies for mysql: icu4c, ca-certificates, openssl@3, libevent, libcbor, expat, bzip2, pcre2, mpdecimal, ncurses, readline, sqlite, berkeley-db@5, libedit, krb5, libtirpc, libnsl, libffi, libxcrypt, unzip, python@3.12, dbus, util-linux, glib, libcap, systemd, libfido2, protobuf@21, brotli, libunistring, libidn2, libnghttp2, libssh2, openldap, rtmpdump, curl and cyrus-sasl
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/74.2
######################################################################################################## 100.0%
==> Fetching icu4c
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/blobs/sha256:2b881638861905a1a730cdd618966dfcb548685314d
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2024-03-11
######################################################################################################## 100.0%
==> Fetching ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:cab828953672906e00a8f25db751977b8
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.3.0-1
######################################################################################################## 100.0%
==> Fetching openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/blobs/sha256:005380f94547e270e9c8617fe0211c30daad8a5
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libevent/manifests/2.1.12_1
######################################################################################################## 100.0%
==> Fetching libevent
==> Downloading https://ghcr.io/v2/homebrew/core/libevent/blobs/sha256:83ef4ce689a91f6fca013d6b4b0b2fcda3706080
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libcbor/manifests/0.11.0
######################################################################################################## 100.0%
==> Fetching libcbor
==> Downloading https://ghcr.io/v2/homebrew/core/libcbor/blobs/sha256:f26df577970defa0194f44b476b2f91d606bce779
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/expat/manifests/2.6.2
######################################################################################################## 100.0%
==> Fetching expat
==> Downloading https://ghcr.io/v2/homebrew/core/expat/blobs/sha256:00d8e476d4e3ec9c02be088eb7c9d5cee7376c2206f
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/bzip2/manifests/1.0.8-2
######################################################################################################## 100.0%
==> Fetching bzip2
==> Downloading https://ghcr.io/v2/homebrew/core/bzip2/blobs/sha256:a731afa70daaafec28359b4f10f1c68455c1955ae66
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/manifests/10.43
######################################################################################################## 100.0%
==> Fetching pcre2
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/blobs/sha256:6cd2e07bac70157bd9cc46e7a882d62b549f496dd85
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mpdecimal/manifests/4.0.0-1
######################################################################################################## 100.0%
==> Fetching mpdecimal
==> Downloading https://ghcr.io/v2/homebrew/core/mpdecimal/blobs/sha256:ca79318fa094531bd57b3f07d5b8574cd9986ba
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/manifests/6.5
######################################################################################################## 100.0%
==> Fetching ncurses
==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/blobs/sha256:7c49662d0f319baec24475d38210b2f9c754b2ec1
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.2.10
######################################################################################################## 100.0%
==> Fetching readline
==> Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256:65181d2c0a9bd1d91ded6f7ec4a69b1110f65e87
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.45.3
######################################################################################################## 100.0%
==> Fetching sqlite
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:ea3542fea62b40b86e30d357fab3679ede4e217266
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/berkeley-db/5/manifests/5.3.28_1
######################################################################################################## 100.0%
==> Fetching berkeley-db@5
==> Downloading https://ghcr.io/v2/homebrew/core/berkeley-db/5/blobs/sha256:c0e2906cc6657dc497fec75629560b0a404
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libedit/manifests/20230828-3.1
######################################################################################################## 100.0%
==> Fetching libedit
==> Downloading https://ghcr.io/v2/homebrew/core/libedit/blobs/sha256:5cb9c8007d6d9b21cc81c5bcd92e50ee75bc9605a
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/manifests/1.21.2
######################################################################################################## 100.0%
==> Fetching krb5
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/blobs/sha256:4bb56ec3b3263b64169a57e3722f54f60ee048a57d29
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libtirpc/manifests/1.3.3
######################################################################################################## 100.0%
==> Fetching libtirpc
==> Downloading https://ghcr.io/v2/homebrew/core/libtirpc/blobs/sha256:26371c5e683f16a4b2ebf4475150672f76d45e3d
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libnsl/manifests/2.0.1
######################################################################################################## 100.0%
==> Fetching libnsl
==> Downloading https://ghcr.io/v2/homebrew/core/libnsl/blobs/sha256:fd62e18814426db752379866b0ecb55a655fcf7ffd
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libffi/manifests/3.4.6
######################################################################################################## 100.0%
==> Fetching libffi
==> Downloading https://ghcr.io/v2/homebrew/core/libffi/blobs/sha256:798c3983a917698d5dd0c60063e7b8c1e5b4fc377d
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libxcrypt/manifests/4.4.36
######################################################################################################## 100.0%
==> Fetching libxcrypt
==> Downloading https://ghcr.io/v2/homebrew/core/libxcrypt/blobs/sha256:ad1c4b570d7a66046038c13345b54337d858a2d
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/unzip/manifests/6.0_8
######################################################################################################## 100.0%
==> Fetching unzip
==> Downloading https://ghcr.io/v2/homebrew/core/unzip/blobs/sha256:baf15e19852a0f9756e3302fa6f3866eaeccc06730c
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.12/manifests/3.12.3
######################################################################################################## 100.0%
==> Fetching python@3.12
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.12/blobs/sha256:faa009be56acac74433c08417d4ba15d65faa
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/dbus/manifests/1.14.10
######################################################################################################## 100.0%
==> Fetching dbus
==> Downloading https://ghcr.io/v2/homebrew/core/dbus/blobs/sha256:9037402e48fc19b05f8b621e0e32efa3b4214513f0b4
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/util-linux/manifests/2.40.1
######################################################################################################## 100.0%
==> Fetching util-linux
==> Downloading https://ghcr.io/v2/homebrew/core/util-linux/blobs/sha256:2471fb33843afa81c3518904e60cc302fe3473
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.80.2
######################################################################################################## 100.0%
==> Fetching glib
==> Downloading https://ghcr.io/v2/homebrew/core/glib/blobs/sha256:f05d7f79f5a531a1936e0a3abb58cdd7190420ba46e9
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libcap/manifests/2.70
######################################################################################################## 100.0%
==> Fetching libcap
==> Downloading https://ghcr.io/v2/homebrew/core/libcap/blobs/sha256:9d86081b10083f63884005f73bc6f595ab79c91a05
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/systemd/manifests/255.6
######################################################################################################## 100.0%
==> Fetching systemd
==> Downloading https://ghcr.io/v2/homebrew/core/systemd/blobs/sha256:54864797f97b0ff5086872c9329de50033808e4eb
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libfido2/manifests/1.14.0_1
######################################################################################################## 100.0%
==> Fetching libfido2
==> Downloading https://ghcr.io/v2/homebrew/core/libfido2/blobs/sha256:b9a9fe328eb53484cda674637c633c9cd0030593
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/protobuf/21/manifests/21.12-2
######################################################################################################## 100.0%
==> Fetching protobuf@21
==> Downloading https://ghcr.io/v2/homebrew/core/protobuf/21/blobs/sha256:d4c906d41417f83d39e308e347f6d6c041f79
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/brotli/manifests/1.1.0-1
######################################################################################################## 100.0%
==> Fetching brotli
==> Downloading https://ghcr.io/v2/homebrew/core/brotli/blobs/sha256:5a2e1cc12312a092b38e79952fd2232f564f2c64cd
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/manifests/1.2
######################################################################################################## 100.0%
==> Fetching libunistring
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/blobs/sha256:416da7b6b8d158de4adccc0479df3b8cc6a5
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libidn2/manifests/2.3.7
######################################################################################################## 100.0%
==> Fetching libidn2
==> Downloading https://ghcr.io/v2/homebrew/core/libidn2/blobs/sha256:2d94c867e00156a44644758c62895dd6d13538aff
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libnghttp2/manifests/1.61.0
######################################################################################################## 100.0%
==> Fetching libnghttp2
==> Downloading https://ghcr.io/v2/homebrew/core/libnghttp2/blobs/sha256:3e377888fc08a7cf4e86db0d8a513727f2ab54
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libssh2/manifests/1.11.0_1
######################################################################################################## 100.0%
==> Fetching libssh2
==> Downloading https://ghcr.io/v2/homebrew/core/libssh2/blobs/sha256:57746d26d6d96b0ba3a7b7021b8f13a466685e8a2
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openldap/manifests/2.6.7
######################################################################################################## 100.0%
==> Fetching openldap
==> Downloading https://ghcr.io/v2/homebrew/core/openldap/blobs/sha256:f251004321722f41e9d53b49539c24a7116d8f29
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/rtmpdump/manifests/2.4-20151223_3
######################################################################################################## 100.0%
==> Fetching rtmpdump
==> Downloading https://ghcr.io/v2/homebrew/core/rtmpdump/blobs/sha256:0ab7f054fd0b01975be1893437235c61e2761ed9
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/curl/manifests/8.7.1-2
######################################################################################################## 100.0%
==> Fetching curl
==> Downloading https://ghcr.io/v2/homebrew/core/curl/blobs/sha256:5f439e638e5fb4c63c8aa359eb5effd351fb8f3a6e59
######################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/cyrus-sasl/manifests/2.1.28_2
######################################################################################################## 100.0%
==> Fetching cyrus-sasl
==> Downloading https://ghcr.io/v2/homebrew/core/cyrus-sasl/blobs/sha256:f1bc6d528c1c0e53c2eecb599e5127070654a7
######################################################################################################## 100.0%
==> Fetching mysql
==> Downloading https://ghcr.io/v2/homebrew/core/mysql/blobs/sha256:66c4a58b3f7f376bdcdec40dd747ccb544cac7e167c
######################################################################################################## 100.0%
==> Installing dependencies for mysql: icu4c, ca-certificates, openssl@3, libevent, libcbor, expat, bzip2, pcre2, mpdecimal, ncurses, readline, sqlite, berkeley-db@5, libedit, krb5, libtirpc, libnsl, libffi, libxcrypt, unzip, python@3.12, dbus, util-linux, glib, libcap, systemd, libfido2, protobuf@21, brotli, libunistring, libidn2,
 libnghttp2, libssh2, openldap, rtmpdump, curl and cyrus-sasl
==> Installing mysql dependency: icu4c
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/74.2
Already downloaded: /home/judging/.cache/Homebrew/downloads/3e5230e726e5548db28bc0cf75710d6405903b742f941113d3dbe7483fad72a4--icu4c-74.2.bottle_manifest.json
==> Pouring icu4c--74.2.x86_64_linux.bottle.tar.gz
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##O=#   #
🍺  /home/linuxbrew/.linuxbrew/Cellar/icu4c/74.2: 271 files, 85.0MB
==> Installing mysql dependency: ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2024-03-11
Already downloaded: /home/judging/.cache/Homebrew/downloads/c431e0186df2ccc2ea942b34a3c26c2cebebec8e07ad6abdae48447a52c5f506--ca-certificates-2024-03-11.bottle_manifest.json
==> Pouring ca-certificates--2024-03-11.all.bottle.tar.gz
==> Downloading https://formulae.brew.sh/api/formula.jws.json
##O=#   #
🍺  /home/linuxbrew/.linuxbrew/Cellar/ca-certificates/2024-03-11: 4 files, 247.9KB
==> Installing mysql dependency: openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.3.0-1
Already downloaded: /home/judging/.cache/Homebrew/downloads/cd7e4cb72da375d51619d8c60fb91a70696e352edb515631b5751d05342e471d--openssl@3-3.3.0-1.bottle_manifest.json
==> Pouring openssl@3--3.3.0.x86_64_linux.bottle.1.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/openssl@3/3.3.0: 6,987 files, 38.8MB
==> Installing mysql dependency: libevent
==> Downloading https://ghcr.io/v2/homebrew/core/libevent/manifests/2.1.12_1
Already downloaded: /home/judging/.cache/Homebrew/downloads/68b113f9ab63db45f4e1860de522ce2ca4fa081eb3c0d5c7d6005a35c3cf8d06--libevent-2.1.12_1.bottle_manifest.json
==> Pouring libevent--2.1.12_1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libevent/2.1.12_1: 63 files, 2.6MB
==> Installing mysql dependency: libcbor
==> Downloading https://ghcr.io/v2/homebrew/core/libcbor/manifests/0.11.0
Already downloaded: /home/judging/.cache/Homebrew/downloads/547a8f3a73e95b1a6ae76032004f514d926b4dbe82bab530cb3dd011c85c23ed--libcbor-0.11.0.bottle_manifest.json
==> Pouring libcbor--0.11.0.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libcbor/0.11.0: 34 files, 230.6KB
==> Installing mysql dependency: expat
==> Downloading https://ghcr.io/v2/homebrew/core/expat/manifests/2.6.2
Already downloaded: /home/judging/.cache/Homebrew/downloads/aef02777a16b814ca6284e98d9bfea8a80b97c8cbba6d78eca020ede9a5a6fcc--expat-2.6.2.bottle_manifest.json
==> Pouring expat--2.6.2.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/expat/2.6.2: 23 files, 897.7KB
==> Installing mysql dependency: bzip2
==> Downloading https://ghcr.io/v2/homebrew/core/bzip2/manifests/1.0.8-2
Already downloaded: /home/judging/.cache/Homebrew/downloads/c1a79a32cc9082c99fc318e6b2596b8b1f6e99abacb32bcbe88f979e4be5e4ea--bzip2-1.0.8-2.bottle_manifest.json
==> Pouring bzip2--1.0.8.x86_64_linux.bottle.2.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/bzip2/1.0.8: 32 files, 607.6KB
==> Installing mysql dependency: pcre2
==> Downloading https://ghcr.io/v2/homebrew/core/pcre2/manifests/10.43
Already downloaded: /home/judging/.cache/Homebrew/downloads/4c12870adcfbf27eeeae4f44a420311ca3449f06a2fd8f6fcfe3d13db18087b4--pcre2-10.43.bottle_manifest.json
==> Pouring pcre2--10.43.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/pcre2/10.43: 239 files, 7.3MB
==> Installing mysql dependency: mpdecimal
==> Downloading https://ghcr.io/v2/homebrew/core/mpdecimal/manifests/4.0.0-1
Already downloaded: /home/judging/.cache/Homebrew/downloads/7b63c3b34bee402290af49fac829a6682ab45ea5c9258b6fe03b590a03a4c4a9--mpdecimal-4.0.0-1.bottle_manifest.json
==> Pouring mpdecimal--4.0.0.x86_64_linux.bottle.1.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/mpdecimal/4.0.0: 22 files, 802KB
==> Installing mysql dependency: ncurses
==> Downloading https://ghcr.io/v2/homebrew/core/ncurses/manifests/6.5
Already downloaded: /home/judging/.cache/Homebrew/downloads/b2f8ce4e08b15832435170efd265346225ee388d5baab3d5c50e3a77c5673b5a--ncurses-6.5.bottle_manifest.json
==> Pouring ncurses--6.5.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/ncurses/6.5: 4,037 files, 10.9MB
==> Installing mysql dependency: readline
==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.2.10
Already downloaded: /home/judging/.cache/Homebrew/downloads/4ddd52803319828799f1932d4c7fa8d11c667049b20a56341c0c19246a1be93b--readline-8.2.10.bottle_manifest.json
==> Pouring readline--8.2.10.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/readline/8.2.10: 51 files, 2MB
==> Installing mysql dependency: sqlite
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.45.3
Already downloaded: /home/judging/.cache/Homebrew/downloads/9eebda014aefbd585433274db989aa060c29200f656e6e106b4c1956438a2401--sqlite-3.45.3.bottle_manifest.json
==> Pouring sqlite--3.45.3.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/sqlite/3.45.3: 13 files, 6.1MB
==> Installing mysql dependency: berkeley-db@5
==> Downloading https://ghcr.io/v2/homebrew/core/berkeley-db/5/manifests/5.3.28_1
Already downloaded: /home/judging/.cache/Homebrew/downloads/17e4e0def00184b561c8a490b5c0813a7c4f5e1365eb2e927570786eb4e05e09--berkeley-db@5-5.3.28_1.bottle_manifest.json
==> Pouring berkeley-db@5--5.3.28_1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/berkeley-db@5/5.3.28_1: 5,272 files, 87.7MB
==> Installing mysql dependency: libedit
==> Downloading https://ghcr.io/v2/homebrew/core/libedit/manifests/20230828-3.1
Already downloaded: /home/judging/.cache/Homebrew/downloads/aa32e07f286c25cd98716dc981bedecd086e432b4f5336ca63a30da3be5c79e1--libedit-20230828-3.1.bottle_manifest.json
==> Pouring libedit--20230828-3.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libedit/20230828-3.1: 55 files, 795.5KB
==> Installing mysql dependency: krb5
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/manifests/1.21.2
Already downloaded: /home/judging/.cache/Homebrew/downloads/1dac813e15dc58f7f64511565951ee43912a4a82b355448e23600e07b1b7107c--krb5-1.21.2.bottle_manifest.json
==> Pouring krb5--1.21.2.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/krb5/1.21.2: 164 files, 5.3MB
==> Installing mysql dependency: libtirpc
==> Downloading https://ghcr.io/v2/homebrew/core/libtirpc/manifests/1.3.3
Already downloaded: /home/judging/.cache/Homebrew/downloads/8855f5ef631c25ab1532940cd26ad4e298df26b4414ccd1426becf1b4ed7a3f9--libtirpc-1.3.3.bottle_manifest.json
==> Pouring libtirpc--1.3.3.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libtirpc/1.3.3: 86 files, 1MB
==> Installing mysql dependency: libnsl
==> Downloading https://ghcr.io/v2/homebrew/core/libnsl/manifests/2.0.1
Already downloaded: /home/judging/.cache/Homebrew/downloads/aa9502e1380fc6bf1af297a4f3d3402c1c175bd35d24d012b71a1a90c54d38bc--libnsl-2.0.1.bottle_manifest.json
==> Pouring libnsl--2.0.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libnsl/2.0.1: 18 files, 195.9KB
==> Installing mysql dependency: libffi
==> Downloading https://ghcr.io/v2/homebrew/core/libffi/manifests/3.4.6
Already downloaded: /home/judging/.cache/Homebrew/downloads/2d373c9b8d06ce1d9634d08a4be79711fd482169e98bc830509aa28f3f07926d--libffi-3.4.6.bottle_manifest.json
==> Pouring libffi--3.4.6.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libffi/3.4.6: 19 files, 768KB
==> Installing mysql dependency: libxcrypt
==> Downloading https://ghcr.io/v2/homebrew/core/libxcrypt/manifests/4.4.36
Already downloaded: /home/judging/.cache/Homebrew/downloads/950e230307625f9e57d74f0076caab42b6c67a325c70b83efa2c9cc84be1f839--libxcrypt-4.4.36.bottle_manifest.json
==> Pouring libxcrypt--4.4.36.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libxcrypt/4.4.36: 25 files, 371.8KB
==> Installing mysql dependency: unzip
==> Downloading https://ghcr.io/v2/homebrew/core/unzip/manifests/6.0_8
Already downloaded: /home/judging/.cache/Homebrew/downloads/b9a98c1a65dea38eb0bb5d9106a5758ed0ff17635811bd7f7cd6be5908c2961b--unzip-6.0_8.bottle_manifest.json
==> Pouring unzip--6.0_8.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/unzip/6.0_8: 17 files, 600.8KB
==> Installing mysql dependency: python@3.12
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.12/manifests/3.12.3
Already downloaded: /home/judging/.cache/Homebrew/downloads/5065c4d76c933aad4e13bd77c1bf37f0afe78f4608261edd170e331cb36c8a0d--python@3.12-3.12.3.bottle_manifest.json
==> Pouring python@3.12--3.12.3.x86_64_linux.bottle.tar.gz
==> /home/linuxbrew/.linuxbrew/Cellar/python@3.12/3.12.3/bin/python3.12 -Im ensurepip
==> /home/linuxbrew/.linuxbrew/Cellar/python@3.12/3.12.3/bin/python3.12 -Im pip install -v --no-index --upgrade
🍺  /home/linuxbrew/.linuxbrew/Cellar/python@3.12/3.12.3: 2,871 files, 71.9MB
==> Installing mysql dependency: dbus
==> Downloading https://ghcr.io/v2/homebrew/core/dbus/manifests/1.14.10
Already downloaded: /home/judging/.cache/Homebrew/downloads/2dee97539c09d15349d9935f14c299bce3e52d11fd6d399a05a5190d0e7a1028--dbus-1.14.10.bottle_manifest.json
==> Pouring dbus--1.14.10.x86_64_linux.bottle.tar.gz
==> /home/linuxbrew/.linuxbrew/Cellar/dbus/1.14.10/bin/dbus-uuidgen --ensure=/home/linuxbrew/.linuxbrew/var/lib
🍺  /home/linuxbrew/.linuxbrew/Cellar/dbus/1.14.10: 78 files, 2.9MB
==> Installing mysql dependency: util-linux
==> Downloading https://ghcr.io/v2/homebrew/core/util-linux/manifests/2.40.1
Already downloaded: /home/judging/.cache/Homebrew/downloads/7560c0b7d61224dc5f244d05c99dd81e1439a580692554f5cfec361a88495118--util-linux-2.40.1.bottle_manifest.json
==> Pouring util-linux--2.40.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/util-linux/2.40.1: 443 files, 25.7MB
==> Installing mysql dependency: glib
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.80.2
Already downloaded: /home/judging/.cache/Homebrew/downloads/b526ef41240d8894a49032f605040851f1b9206cf9015d0ae28345051b3bf35a--glib-2.80.2.bottle_manifest.json
==> Pouring glib--2.80.2.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/glib/2.80.2: 534 files, 40.6MB
==> Installing mysql dependency: libcap
==> Downloading https://ghcr.io/v2/homebrew/core/libcap/manifests/2.70
Already downloaded: /home/judging/.cache/Homebrew/downloads/80b42fc9ee5a2eb07ec446c4eea630ca9dd23771146473c938f036854cdac290--libcap-2.70.bottle_manifest.json
==> Pouring libcap--2.70.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libcap/2.70: 102 files, 477.5KB
==> Installing mysql dependency: systemd
==> Downloading https://ghcr.io/v2/homebrew/core/systemd/manifests/255.6
Already downloaded: /home/judging/.cache/Homebrew/downloads/8ea5135e8b0e37e51bb84d532ed3f24b4954bbcb198045bafc6cec8009150f8c--systemd-255.6.bottle_manifest.json
==> Pouring systemd--255.6.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/systemd/255.6: 1,720 files, 29.9MB
==> Installing mysql dependency: libfido2
==> Downloading https://ghcr.io/v2/homebrew/core/libfido2/manifests/1.14.0_1
Already downloaded: /home/judging/.cache/Homebrew/downloads/80a360b5085398d57cd0cf902b18e1174c82430ef8172574a07100892755a597--libfido2-1.14.0_1.bottle_manifest.json
==> Pouring libfido2--1.14.0_1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libfido2/1.14.0_1: 555 files, 1.6MB
==> Installing mysql dependency: protobuf@21
==> Downloading https://ghcr.io/v2/homebrew/core/protobuf/21/manifests/21.12-2
Already downloaded: /home/judging/.cache/Homebrew/downloads/583342af32dcbdcd8cfa8359e446e22f36310246bf95602d6813748f1af52728--protobuf@21-21.12-2.bottle_manifest.json
==> Pouring protobuf@21--21.12.x86_64_linux.bottle.2.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/protobuf@21/21.12: 289 files, 37.6MB
==> Installing mysql dependency: brotli
==> Downloading https://ghcr.io/v2/homebrew/core/brotli/manifests/1.1.0-1
Already downloaded: /home/judging/.cache/Homebrew/downloads/565098509cdfa90593ec9a41b41239f073843f88caed60ddaa3e6194ac4defda--brotli-1.1.0-1.bottle_manifest.json
==> Pouring brotli--1.1.0.x86_64_linux.bottle.1.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/brotli/1.1.0: 25 files, 983.8KB
==> Installing mysql dependency: libunistring
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/manifests/1.2
Already downloaded: /home/judging/.cache/Homebrew/downloads/48ac60445a77a63996cf15f6414f68a620d544fb683031b14eb3aea95c3064f6--libunistring-1.2.bottle_manifest.json
==> Pouring libunistring--1.2.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libunistring/1.2: 61 files, 5.6MB
==> Installing mysql dependency: libidn2
==> Downloading https://ghcr.io/v2/homebrew/core/libidn2/manifests/2.3.7
Already downloaded: /home/judging/.cache/Homebrew/downloads/45d1d4d2930c4782bf53e761a1c0166cd8a40f4193ac8c44e86f0b6708e80354--libidn2-2.3.7.bottle_manifest.json
==> Pouring libidn2--2.3.7.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libidn2/2.3.7: 82 files, 1.2MB
==> Installing mysql dependency: libnghttp2
==> Downloading https://ghcr.io/v2/homebrew/core/libnghttp2/manifests/1.61.0
Already downloaded: /home/judging/.cache/Homebrew/downloads/84e039765210f9da314a9b989360b06406c6123f9aae7b1a47dd010504d3bcfb--libnghttp2-1.61.0.bottle_manifest.json
==> Pouring libnghttp2--1.61.0.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libnghttp2/1.61.0: 15 files, 916KB
==> Installing mysql dependency: libssh2
==> Downloading https://ghcr.io/v2/homebrew/core/libssh2/manifests/1.11.0_1
Already downloaded: /home/judging/.cache/Homebrew/downloads/48ca0c7785b21630a4817c59b72205609ccb0575e7abc64d64af2e61a60b5b0a--libssh2-1.11.0_1.bottle_manifest.json
==> Pouring libssh2--1.11.0_1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libssh2/1.11.0_1: 199 files, 1.4MB
==> Installing mysql dependency: openldap
==> Downloading https://ghcr.io/v2/homebrew/core/openldap/manifests/2.6.7
Already downloaded: /home/judging/.cache/Homebrew/downloads/e87d8ed2b5650e16104d32d46c66a2385b30073d8fc68d969c74d1caaf8b6d75--openldap-2.6.7.bottle_manifest.json
==> Pouring openldap--2.6.7.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/openldap/2.6.7: 343 files, 8.8MB
==> Installing mysql dependency: rtmpdump
==> Downloading https://ghcr.io/v2/homebrew/core/rtmpdump/manifests/2.4-20151223_3
Already downloaded: /home/judging/.cache/Homebrew/downloads/b40cb4d6b301aad8ce26f9deb74a74c0d98d1868d19881f9bff55b81d6f11e50--rtmpdump-2.4-20151223_3.bottle_manifest.json
==> Pouring rtmpdump--2.4-20151223_3.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/rtmpdump/2.4-20151223_3: 21 files, 630KB
==> Installing mysql dependency: curl
==> Downloading https://ghcr.io/v2/homebrew/core/curl/manifests/8.7.1-2
Already downloaded: /home/judging/.cache/Homebrew/downloads/9e7998f3c754b164b0e29695c5b78d98936744c8daf0ada5a01258def64fc396--curl-8.7.1-2.bottle_manifest.json
==> Pouring curl--8.7.1.x86_64_linux.bottle.2.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/curl/8.7.1: 527 files, 5MB
==> Installing mysql dependency: cyrus-sasl
==> Downloading https://ghcr.io/v2/homebrew/core/cyrus-sasl/manifests/2.1.28_2
Already downloaded: /home/judging/.cache/Homebrew/downloads/1b83b1c4579a3298a1011c9418ccdf6449e5bb9797de00bca7d20dfbff820257--cyrus-sasl-2.1.28_2.bottle_manifest.json
==> Pouring cyrus-sasl--2.1.28_2.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/cyrus-sasl/2.1.28_2: 90 files, 1.1MB
==> Installing mysql
==> Pouring mysql--8.3.0_1.x86_64_linux.bottle.tar.gz
==> /home/linuxbrew/.linuxbrew/Cellar/mysql/8.3.0_1/bin/mysqld --initialize-insecure --user=judging --basedir=/
==> Caveats
We've installed your MySQL database without a root password. To secure it run:
    mysql_secure_installation

MySQL is configured to only allow connections from localhost by default

To connect run:
    mysql -u root

To start mysql now and restart at login:
  brew services start mysql
Or, if you don't want/need a background service you can just run:
  /home/linuxbrew/.linuxbrew/opt/mysql/bin/mysqld_safe --datadir\=/home/linuxbrew/.linuxbrew/var/mysql
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/mysql/8.3.0_1: 326 files, 372.8MB
==> Running `brew cleanup mysql`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Error: no implicit conversion of false into String
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:47:in `initialize'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:47:in `popen'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:47:in `popen'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:9:in `popen_read'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/ld.rb:13:in `brewed_ld_so_diagnostics'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/ld.rb:23:in `sysconfdir'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/ld.rb:44:in `library_paths'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/elf.rb:165:in `find_full_lib_path'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/elf.rb:131:in `block in initialize'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/elf.rb:131:in `map'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/elf.rb:131:in `initialize'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/elf.rb:213:in `new'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/elf.rb:213:in `metadata'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/elf.rb:222:in `dynamically_linked_libraries'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/linkage_checker.rb:115:in `block in check_dylibs'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/lib/ruby/3.3.0/pathname.rb:577:in `block in find'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/lib/ruby/3.3.0/find.rb:51:in `block (2 levels) in find'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/lib/ruby/3.3.0/find.rb:50:in `catch'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/lib/ruby/3.3.0/find.rb:50:in `block in find'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/lib/ruby/3.3.0/find.rb:45:in `each'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/lib/ruby/3.3.0/find.rb:45:in `find'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/lib/ruby/3.3.0/pathname.rb:577:in `find'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/lib/ruby/3.3.0/forwardable.rb:240:in `find'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/linkage_checker.rb:108:in `check_dylibs'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/extend/os/linux/linkage_checker.rb:32:in `check_dylibs'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/linkage_checker.rb:32:in `initialize'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/upgrade.rb:261:in `new'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/upgrade.rb:261:in `block (2 levels) in check_broken_dependents'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/upgrade.rb:256:in `select'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/upgrade.rb:256:in `block in check_broken_dependents'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cache_store.rb:26:in `use'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/upgrade.rb:253:in `check_broken_dependents'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/upgrade.rb:306:in `check_installed_dependents'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/install.rb:320:in `run'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:92:in `<main>'
Please report this issue:
  https://docs.brew.sh/Troubleshooting
jiaqing-tee commented 1 month ago

MongoDB

Link: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/

Installation

cat /etc/lsb-release
sudo apt-get install gnupg curl
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
   sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
   --dearmor
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
echo "mongodb-org hold" | sudo dpkg --set-selections
echo "mongodb-org-database hold" | sudo dpkg --set-selections
echo "mongodb-org-server hold" | sudo dpkg --set-selections
echo "mongodb-mongosh hold" | sudo dpkg --set-selections
echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
echo "mongodb-org-tools hold" | sudo dpkg --set-selections

Run

ps --no-headers -o comm 1
sudo systemctl start mongod
sudo systemctl enable mongod
mongosh

Bind address

sudo nano /etc/mongod.conf

Image

sudo systemctl restart mongod
sudo systemctl status mongod

Check if it's working

minikube ssh
nc -vz host.minikube.internal 27017

Image

jiaqing-tee commented 1 month ago

MongoDB Tools

Link:

Get Ubuntu version

lsb_release -a

Install package

curl https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.9.4.deb -o mongodb-database-tools-ubuntu2204-x86_64-100.9.4.deb
sudo apt install ./mongodb-database-tools-ubuntu2204-x86_64-100.9.4.deb