-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
*.yml | ||
Dockerfile | ||
*.md | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
#!/bin/bash | ||
# Launch cupds in the foreground | ||
echo "Starting Cups Demon" | ||
echo "INFO:Starting Cups Demon" | ||
/usr/sbin/cupsd | ||
|
||
echo "Cups Information:" | ||
echo "INFO:Cups Information:" | ||
#Print Cups Info | ||
lpinfo -v | ||
|
||
echo "Adding Printer to Cups" | ||
echo "INFO:Adding Printer to Cups" | ||
# Add the printer | ||
lpadmin -p dymo -v usb://DYMO/LabelWriter%20450?serial=01010112345600 -P /usr/share/cups/model/lw450.ppd | ||
|
||
echo "Print Cups Stats" | ||
echo "INFO:Print Cups Stats" | ||
# Stats | ||
lpstat -v | ||
|
||
echo "Start Dymo Printer and accept new Jobs" | ||
echo "INFO:Start Dymo Printer and accept new Jobs" | ||
# Start and Accept Jobs | ||
cupsenable dymo | ||
cupsaccept dymo | ||
|
||
echo "Setting Default Printer" | ||
echo "INFO:Setting Default Printer" | ||
# Set Default Printer | ||
lpoptions -d dymo | ||
|
||
echo "Finished Setup! XD" | ||
echo "INFO:Finished Setup! XD" | ||
|
||
# Test Print | ||
echo "INFO:Printing Label" | ||
lp -d dymo test.txt | ||
echo "INFO: Label Printed" | ||
|
||
# Keep the container running | ||
/usr/sbin/cupsd -f |