from small one page howto to huge articles all in one place
 

search text in:





Poll
Which kernel version do you use?





poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

85911

userrating:

average rating: 1.7 (82 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

202292

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

84285

userrating:

average rating: 1.3 (27 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion . pdf icon
You are here: System

Written by torgrimt@sysrq.no

You will need to have a working install of samba. For windows you can use the apple laser printers drivers. Use one that has colors and high resolution.

Remeber to credit me if you use this. thanks torgrimt at sysrq.no/

Put this in smb.conf

   [smbpdf]
     comment = PDF Generator
     path = /var/spool/samba
     printable = Yes
     print command = /usr/sbin/pdfprint %s %U %G %m %I %H

And the script to convert the files to pdf... You will have to make the dir spesified in OUTPUTPATH in the users homedir.

   #!/bin/bash
   #convert to pdf
   #$1=spool file $2=uid $3=gid   $4=machinename $5=ip $6=homedir
   FILENAME=pdf-$2-`date +%d%m%H%M%S`.pdf
   OUTPUTPATH=$6/pdfwriter
   echo converting $1 to $FILENAME for $2 of machine $4... $6>>
 $OUTPUTPATH/pdfcreate.log
   /usr/bin/ps2pdf $1 $OUTPUTPATH/$FILENAME >> $OUTPUTPATH/pdfcreate.log 2>> $OUTPUTPATH/pdfcreate.log
   echo conversion finished, removing $1 >> $OUTPUTPATH/pdfcreate.log
   rm $1
   echo done, setting permissions and notifing user >> $OUTPUTPATH/pdfcreate.log
   chown $2:$3 $6/$FILENAME >> $OUTPUTPATH/pdfcreate.log
   chmod 700 $6/$FILENAME >> $OUTPUTPATH/pdfcreate.log
   echo your new PDF is called $FILENAME. | smbclient -M $4 -I $5
   echo All done. >> $OUTPUTPATH/pdfcreate.log
   echo >> $OUTPUTPATH/pdfcreate.log


rate this article:
current rating: average rating: 1.2 (56 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back
Support this site

Please read "Why adblockers are bad".



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2013 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 3.8 ms