summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2026-07-29 15:07:47 +0800
committerSadeep Madurange <sadeep@asciimx.com>2026-07-29 15:07:47 +0800
commit7ca96a7bce2a46c21dfce54c42b3bdc2076ffa26 (patch)
tree6aac39e168422ad9369b31d63e11ae6e6b46f2fe
parentc5f4c607883a41cee09bd3ea6674113ef937bfa0 (diff)
downloadlex-7ca96a7bce2a46c21dfce54c42b3bdc2076ffa26.tar.gz
Add chroot info to readme.
-rw-r--r--README.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.txt b/README.txt
index 8cfad0a..14d1eb8 100644
--- a/README.txt
+++ b/README.txt
@@ -1,2 +1,22 @@
+RUN:
+
Run with no logs: GGML_LOG_LEVEL=0 ./lex
Run with error logs: GGML_LOG_LEVEL=error ./lex
+
+CHROOT:
+
+# Create the jail root
+mkdir -p /var/empty/dict_jail/dev
+
+# Copy or move your model file into the jail
+cp Qwen2.5-7B-Instruct-Q4_K_M.gguf /var/empty/dict_jail/
+
+# Create necessary device nodes inside the jail
+mknod -m 666 /var/empty/dict_jail/dev/null c 2 2
+mknod -m 666 /var/empty/dict_jail/dev/zero c 2 12
+
+# Fix permissions so 'nobody' can read the model file
+chown -R root:wheel /var/empty/dict_jail
+chmod 755 /var/empty/dict_jail
+chmod 644 /var/empty/dict_jail/Qwen2.5-7B-Instruct-Q4_K_M.gguf
+