From 97510e715b5fde3720d7c65902e4020f08b6949a Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 14 Jun 2024 21:17:15 +0100 Subject: [PATCH] More code repo and code tidy up --- Dockerfile | 2 +- README.md => ReadMe.md | 27 +++++++++++++++++++++++++++ scripts/ReadMe.md | 8 ++++++++ scripts/setup.sh | 3 +++ 4 files changed, 39 insertions(+), 1 deletion(-) rename README.md => ReadMe.md (84%) create mode 100644 scripts/ReadMe.md diff --git a/Dockerfile b/Dockerfile index 06846ba..77d8cf9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ARG MAINTAINER -FROM debian:bullseye-slim +FROM debian:bookworm-slim # Install Packages (basic tools, cups, basic drivers, HP drivers) RUN apt-get update \ diff --git a/README.md b/ReadMe.md similarity index 84% rename from README.md rename to ReadMe.md index 631f2fe..b872e43 100644 --- a/README.md +++ b/ReadMe.md @@ -48,6 +48,29 @@ As for installing the software, the best way of installing this is to use the Do docker ps ``` +## Directory Structure + +The following is the directory structure of the project: + +```bash +tree -L 1 +. +├── conf +├── docker-compose.yml +├── Dockerfile +├── docs +├── ppd +├── ReadMe.md +├── ruff.toml +├── scripts +└── test.txt +``` + +- conf: is the configuration folder for cups +- ppd: is the PostScript Printer Description files for the Dymo LabelWriters +- docs: All diagrams and related documentation goes here +- scripts: the scripts that go inside the docker container, for more information read [this](./scripts/ReadMe.md). + ## Setting up your Windows Device When setting up windows you will need to do the following steps: @@ -61,6 +84,10 @@ You must first download Dymo Connect before adding the cups printer to your wind You should then be able to use the printer from the rest of windows. +## Setting up the Dymo LabelWriter using the CUPS UI + +This seems to happen a lot [issue](https://forums.raspberrypi.com/viewtopic.php?t=333307) + ## Developer Story and Issues diff --git a/scripts/ReadMe.md b/scripts/ReadMe.md new file mode 100644 index 0000000..6d23305 --- /dev/null +++ b/scripts/ReadMe.md @@ -0,0 +1,8 @@ +# Scripts + +## Summary + +This folder contains all the scripts used for the cups docker container + +- [setup.sh](./setup.sh) Called at the start of the docker container +- [add_printers.py](./add_printers.py) Adds the printers to cups diff --git a/scripts/setup.sh b/scripts/setup.sh index 88938b1..7b4d329 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -1,4 +1,7 @@ #!/bin/bash +# A simple Bash Script to enable the cups server and call the python +# script which will then add the Printers to cups on boot + # Launch cupds in the foreground echo "INFO: Detected USB Connections" lsusb