Skip to content

Instantly share code, notes, and snippets.

ZSH and Oh My Zsh Setup

Zsh

Install zsh on Debian

sudo apt install zsh

Confirm Installation:

@ngoc-minh-do
ngoc-minh-do / mount-smb-share.md
Last active February 22, 2025 09:05
Mount SMB Share in Debian

Mount SMB Share in Debian

sudo apt install cifs-utils
sudo mkdir /mnt/linux
@ngoc-minh-do
ngoc-minh-do / code-server.md
Last active December 22, 2025 00:58
Code server

Code Server

Using Coder code server

Install

curl -fsSL https://code-server.dev/install.sh | sh

Run

@ngoc-minh-do
ngoc-minh-do / Proxmox-install-Nvidia-driver.md
Last active August 8, 2026 09:50
Install Nvidia driver on Proxmox

Install NVIDIA Driver on Proxmox with Secure Boot

This guide walks you through installing the NVIDIA driver on Proxmox with Secure Boot enabled, including automatic signing of DKMS modules and troubleshooting tips.


1. Check Secure Boot Status

mokutil --sb-state

NAS share on LXC

Unprivileged LXC containers

These kind of containers use a new kernel feature called user namespaces. All of the UIDs (user id) and GIDs (group id) are mapped to a different number range than on the host machine, usually root (uid 0) became uid 100000, 1 will be 100001 and so on

https://pve.proxmox.com/wiki/Unprivileged_LXC_containers

On Proxmox Host

Create a folder to mount the NAS

Network on Linux

Setup static ip

Finding your network interfaces name

ip -c link show
ip addr

Show info

Passthrough HDD on Proxmox

Check SMART data

smartctl --all /dev/sda

Check speed

Maximum throughput with a much higher blocksize, simulating video downloads

Sharing a GPU Between Multiple LXC Containers

1. Identify Required Groups Inside the Container

GPU access in LXC relies on Linux group permissions.

Common groups:

  • video → legacy DRM access (e.g. /dev/dri/card*)
  • render → render node access

ssh

ssh-keygen

ssh-keygen -t ed25519 -C "your_email@example.com"

Options:

-b bits