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

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

40718

userrating:

average rating: 1.5 (4 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tutorials per portage category->net-fs->samba

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.0 (1 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



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

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2018-05-21
cmake - 3.11.2
Ebuild name:

dev-util/cmake-3.11.2

Description

Cross platform Make

Added to portage

2018-05-21

hg-git - 0.8.11
Ebuild name:

dev-vcs/hg-git-0.8.11

Description

push to and pull from a Git repository using Mercurial

Added to portage

2018-05-21

pgmodeler - 0.9.1
Ebuild name:

dev-db/pgmodeler-0.9.1

Description

PostgreSQL Database Modeler

Added to portage

2018-05-21

procps - 3.3.15
Ebuild name:

sys-process/procps-3.3.15

Description

standard informational utilities and process-handling tools

Added to portage

2018-05-21

texlive-core - 2017-r4
Ebuild name:

app-text/texlive-core-2017-r4

Description

A complete TeX distribution

Added to portage

2018-05-21

urlwatch - 2.11
Ebuild name:

www-misc/urlwatch-2.11

Description

A tool for monitoring webpages for updates

Added to portage

2018-05-21

wayland-protocols - 1.14
Ebuild name:

dev-libs/wayland-protocols-1.14

Description

Wayland protocol files

Added to portage

2018-05-21

2018-05-20
asciinema - 2.0.1
Ebuild name:

app-misc/asciinema-2.0.1

Description

Command line recorder for asciinema.org service

Added to portage

2018-05-20

byacc - 20180510
Ebuild name:

dev-util/byacc-20180510

Description

the best variant of the Yacc parser generator

Added to portage

2018-05-20

chrootuid - 1.3-r2
Ebuild name:

app-admin/chrootuid-1.3-r2

Description

Run a network service at low privilege level and restricted file system

Added to portage

2018-05-20

collectd - 5.8.0
Ebuild name:

app-metrics/collectd-5.8.0

Description

Collects system statistics and provides mechanisms to store the values

Added to portage

2018-05-20

dash - 0.5.10.2
Ebuild name:

app-shells/dash-0.5.10.2

Description

Debian Almquist Shell

Added to portage

2018-05-20

debianutils - 4.8.6
Ebuild name:

sys-apps/debianutils-4.8.6

Description

A selection of tools from Debian

Added to portage

2018-05-20

debootstrap - 1.0.99
Ebuild name:

dev-util/debootstrap-1.0.99

Description

Debian/Ubuntu bootstrap scripts

Added to portage

2018-05-20

hplip - 3.18.4
Ebuild name:

net-print/hplip-3.18.4

Description

HP Linux Imaging and Printing - Print, scan, fax drivers and service tools

Added to portage

2018-05-20

irqbalance - 1.4.0
Ebuild name:

sys-apps/irqbalance-1.4.0

Description

Distribute hardware interrupts across processors on a multiprocessor syst

Added to portage

2018-05-20

kpeg - 1.1.0-r1
Ebuild name:

dev-ruby/kpeg-1.1.0-r1

Description

A simple PEG library for Ruby

Added to portage

2018-05-20

libsfml - 2.5.0
Ebuild name:

media-libs/libsfml-2.5.0

Description

Simple and Fast Multimedia Library (SFML)

Added to portage

2018-05-20

libtorrent - 0.13.6-r2
Ebuild name:

net-libs/libtorrent-0.13.6-r2

Description

BitTorrent library written in C++ for *nix

Added to portage

2018-05-20

mariadb - 10.2.15
Ebuild name:

dev-db/mariadb-10.2.15

Description

An enhanced, drop-in replacement for MySQL

Added to portage

2018-05-20

mbuffer - 20180505
Ebuild name:

sys-block/mbuffer-20180505

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2018-05-20

meson - 0.46.1
Ebuild name:

dev-util/meson-0.46.1

Description

Open source build system

Added to portage

2018-05-20

neofetch - 4.0.1
Ebuild name:

app-misc/neofetch-4.0.1

Description

Simple information system script

Added to portage

2018-05-20

pcl - 1.12-r1
Ebuild name:

dev-libs/pcl-1.12-r1

Description

Portable Coroutine Library

Added to portage

2018-05-20

pwcrypt - 1.2.2-r2
Ebuild name:

app-admin/pwcrypt-1.2.2-r2

Description

An improved version of cli-crypt (encrypts data sent to it from the cli)

Added to portage

2018-05-20

pysolfc - 2.2.0
Ebuild name:

games-board/pysolfc-2.2.0

Description

An exciting collection of more than 1000 solitaire card games

Added to portage

2018-05-20

random2 - 1.0.1
Ebuild name:

dev-python/random2-1.0.1

Description

Python-2.7 random module ported to python-3

Added to portage

2018-05-20

rdoc - 6.0.4
Ebuild name:

dev-ruby/rdoc-6.0.4

Description

An extended version of the RDoc library from Ruby 1.8

Added to portage

2018-05-20

rt-sources - 4.14.40_p30
Ebuild name:

sys-kernel/rt-sources-4.14.40_p30

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2018-05-20

rt-sources - 4.16.8_p2
Ebuild name:

sys-kernel/rt-sources-4.16.8_p2

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2018-05-20

rt-sources - 4.4.131_p148
Ebuild name:

sys-kernel/rt-sources-4.4.131_p148

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2018-05-20

rt-sources - 4.9.98_p76
Ebuild name:

sys-kernel/rt-sources-4.9.98_p76

Description

Full Linux . kernel sources with the CONFIG_PREEMPT_RT patch

Added to portage

2018-05-20

runit - 2.1.1-r2
Ebuild name:

sys-process/runit-2.1.1-r2

Description

A UNIX init scheme with service supervision

Added to portage

2018-05-20

sanitize - 4.6.5
Ebuild name:

dev-ruby/sanitize-4.6.5

Description

Sanitize is a whitelist-based HTML sanitizer

Added to portage

2018-05-20

tensorflow - 1.8.0-r1
Ebuild name:

sci-libs/tensorflow-1.8.0-r1

Description

Computation framework using data flow graphs for scalable machine lear

Added to portage

2018-05-20

toolz - 0.9.0
Ebuild name:

dev-python/toolz-0.9.0

Description

List processing tools and functional utilities

Added to portage

2018-05-20

xf86-video-vmware - 13.3.0
Ebuild name:

x11-drivers/xf86-video-vmware-13.3.0

Description

VMware SVGA video driver

Added to portage

2018-05-20

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschä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: 5.2 ms