From 45ae17e7e33451fa263d8e0b24e226b9f1fc4701 Mon Sep 17 00:00:00 2001 From: scbj Date: Mon, 23 Sep 2024 14:44:38 +0200 Subject: [PATCH] added instructions for - image creation/modification - python venv --- docs/create-image-file.md | 15 +++++++++++++++ docs/python-venv.md | 25 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 docs/create-image-file.md create mode 100644 docs/python-venv.md diff --git a/docs/create-image-file.md b/docs/create-image-file.md new file mode 100644 index 0000000..5e016b3 --- /dev/null +++ b/docs/create-image-file.md @@ -0,0 +1,15 @@ + +1. download image +1. extract image +1. enlarge image with 'truncate' +1. mount as loopback device +1. modify image + 1. modify partition table with fdisk + 1. resize partition for rfs + 1. resize filesystem + 1. mount boot partition + 1. make file 'ssh' + 1. make user config + 1. remove image resize from config file ~'cmdline.txt' + 1. mount rootfs partition + 1. do stuff \ No newline at end of file diff --git a/docs/python-venv.md b/docs/python-venv.md new file mode 100644 index 0000000..4f3f8ac --- /dev/null +++ b/docs/python-venv.md @@ -0,0 +1,25 @@ +# How to work with python venv + +## create +Create a virtual environment with: +``` + python -m venv +``` +**Example:** +``` + python -m venv .venv +``` +The example command creates a directory `.venv` (in the current working directory) containing the created virtual environment. + +## use +To use/activate the virtual environment, source `/bin/activate`. +**Example:** +``` + source .venv/bin/activate +``` +or +``` + . .venv/bin/activate +``` + +To exit the virtual environment use the command/script `deactivate`. \ No newline at end of file