From a01f5af07efe0819cd7f71d8ea9753a39f71c4a9 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Wed, 9 Oct 2013 19:03:28 +0200 Subject: Contains the complete bunch of software needed for the printing system in the pools: - A lpd server is started in vmchooser-run_virt. - A iptables rule redirects traffic from sourceport 515 to destport 5515 - Added module cups, the printserver in the minilinux. - Binaries an libs needed for a minimal cups installation. - Systemd-service for cups. - Added module printergui, the custom cups frontend. - Is a single GUI-binary that pops up in case of a printjob sent to the lpd. - Modules are enabled in stage32. --- .../vmchooser/data/opt/openslx/scripts/vmchooser-run_virt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'remote/modules/vmchooser/data/opt/openslx/scripts') diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt index b0d01738..10a6283d 100755 --- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt +++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-run_virt @@ -427,6 +427,17 @@ if [ "$vtflag" = "1" -a -n "$kvm_module" ]; then modprobe "$kvm_module" fi +# # # # # # Start printer daemon # # # # # # # +USER="$(whoami)" +SPOOLDIR="/var/spool" +QUEUE="STANDARD" + +# Start the lpdaemon listening on the given port +busybox tcpsvd -E 0.0.0.0 5515 \ + busybox lpd "$SPOOLDIR" \ + sh -c "printergui $USER $SPOOOLDIR/$QUEUE/\$DATAFILE" & + + # Copy guest configuration (with added information) config.xml to be accessed # via virtual floppy cp "$xmlfile" "/opt/openslx/etc/vmchooser/fd-loop/config.xml" -- cgit v1.2.3-55-g7522