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:

77907

userrating:

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

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2025-07-04
croc - 10.2.2
Ebuild name:

net-misc/croc-10.2.2

Description

Easily and securely send things from one computer to another

Added to portage

2025-07-04

naps2 - 8.2.0
Ebuild name:

app-office/naps2-8.2.0

Description

Document scanning application with a focus on simplicity and ease of use

Added to portage

2025-07-04

sourcegit - 2025.24
Ebuild name:

dev-vcs/sourcegit-2025.24

Description

Open Source Git GUI client using .NET AvaloniaUI

Added to portage

2025-07-04

znc - 1.10.1
Ebuild name:

net-irc/znc-1.10.1

Description

An advanced IRC Bouncer

Added to portage

2025-07-04

2025-07-03
FLV-AudioExtractor - 0.10.0-r2
Ebuild name:

dev-perl/FLV-AudioExtractor-0.10.0-r2

Description

Extract audio from Flash Videos

Added to portage

2025-07-03

File-Sync - 0.110.0-r2
Ebuild name:

dev-perl/File-Sync-0.110.0-r2

Description

Perl access to fsync() and sync() function calls

Added to portage

2025-07-03

File-Tempdir - 0.20.0-r3
Ebuild name:

dev-perl/File-Tempdir-0.20.0-r3

Description

Provides an object interface to tempdir() from File

Added to portage

2025-07-03

File-Type - 0.220.0-r3
Ebuild name:

dev-perl/File-Type-0.220.0-r3

Description

Determine file type using magic

Added to portage

2025-07-03

File-Which - 1.270.0-r1
Ebuild name:

dev-perl/File-Which-1.270.0-r1

Description

Perl implementation of the which utility as an API

Added to portage

2025-07-03

Filesys-Df - 0.920.0-r4
Ebuild name:

dev-perl/Filesys-Df-0.920.0-r4

Description

Disk free based on Filesys

Added to portage

2025-07-03

Filesys-Notify-Simple - 0.140.0-r1
Ebuild name:

dev-perl/Filesys-Notify-Simple-0.140.0-r1

Description

Simple and dumb file system watcher

Added to portage

2025-07-03

Filesys-SmbClient - 3.200.0-r5
Ebuild name:

dev-perl/Filesys-SmbClient-3.200.0-r5

Description

Provide Perl API for libsmbclient.so

Added to portage

2025-07-03

Filesys-Statvfs - 0.820.0-r2
Ebuild name:

dev-perl/Filesys-Statvfs-0.820.0-r2

Description

Perl extension for statvfs() and fstatvfs()

Added to portage

2025-07-03

Finance-YahooQuote - 0.260.0-r1
Ebuild name:

dev-perl/Finance-YahooQuote-0.260.0-r1

Description

Get stock quotes from Yahoo Finance

Added to portage

2025-07-03

amazon-ecr-credential-helper - 0.10.1
Ebuild name:

app-containers/amazon-ecr-credential-helper-0.10.1

Description

Automatically gets credentials for Amazon ECR on

Added to portage

2025-07-03

awscli - 1.41.2
Ebuild name:

app-admin/awscli-1.41.2

Description

Universal Command Line Environment for AWS

Added to portage

2025-07-03

boto3 - 1.39.2
Ebuild name:

dev-python/boto3-1.39.2

Description

The AWS SDK for Python

Added to portage

2025-07-03

botocore - 1.39.2
Ebuild name:

dev-python/botocore-1.39.2

Description

Low-level, data-driven core of boto 3

Added to portage

2025-07-03

cargo-c - 0.10.14
Ebuild name:

dev-util/cargo-c-0.10.14

Description

Helper program to build and install c-like libraries

Added to portage

2025-07-03

cryptography - 45.0.5
Ebuild name:

dev-python/cryptography-45.0.5

Description

Library providing cryptographic recipes and primitives

Added to portage

2025-07-03

cvmfs - 2.13.1
Ebuild name:

net-fs/cvmfs-2.13.1

Description

HTTP read-only file system for distributing software

Added to portage

2025-07-03

dj-database-url - 3.0.1
Ebuild name:

dev-python/dj-database-url-3.0.1

Description

Use Database URLs in your Django Application

Added to portage

2025-07-03

django - 5.2.4
Ebuild name:

dev-python/django-5.2.4

Description

High-level Python web framework

Added to portage

2025-07-03

duckdb - 1.3.1
Ebuild name:

dev-db/duckdb-1.3.1

Description

high-performance analytical database system

Added to portage

2025-07-03

easytag - 2.4.3-r9
Ebuild name:

media-sound/easytag-2.4.3-r9

Description

GTK+ utility for editing MP2, MP3, MP4, FLAC, Ogg and other media tags

Added to portage

2025-07-03

endless-sky - 0.10.14-r1
Ebuild name:

games-strategy/endless-sky-0.10.14-r1

Description

Space exploration, trading & combat in the tradition of Termi

Added to portage

2025-07-03

fastfetch - 2.47.0
Ebuild name:

app-misc/fastfetch-2.47.0

Description

Fast neofetch-like system information tool

Added to portage

2025-07-03

fatcat - 1.1.1-r1
Ebuild name:

sys-fs/fatcat-1.1.1-r1

Description

FAT filesystems explore, extract, repair, and forensic tool

Added to portage

2025-07-03

findpython - 0.7.0
Ebuild name:

dev-python/findpython-0.7.0

Description

A utility to find python versions on your system

Added to portage

2025-07-03

folium - 0.19.7
Ebuild name:

sci-geosciences/folium-0.19.7

Description

Python Data, Leaflet.js Maps

Added to portage

2025-07-03

fotocx - 25.1
Ebuild name:

media-gfx/fotocx-25.1

Description

Program for improving image files made with a digital camera

Added to portage

2025-07-03

fx - 37.0.0
Ebuild name:

app-misc/fx-37.0.0

Description

Terminal JSON viewer & processor

Added to portage

2025-07-03

gajim - 2.3.2
Ebuild name:

net-im/gajim-2.3.2

Description

GTK XMPP Client

Added to portage

2025-07-03

gnome-shell-extension-weather-oclock - 47.0
Ebuild name:

gnome-extra/gnome-shell-extension-weather-oclock-47.0

Description

Display the current weather inside the pill n

Added to portage

2025-07-03

gnome-shell-extensions - 47.6
Ebuild name:

gnome-extra/gnome-shell-extensions-47.6

Description

JavaScript extensions for GNOME Shell

Added to portage

2025-07-03

hypothesis - 6.135.23
Ebuild name:

dev-python/hypothesis-6.135.23

Description

A library for property based testing

Added to portage

2025-07-03

mediawiki - 1.44.0
Ebuild name:

www-apps/mediawiki-1.44.0

Description

The MediaWiki wiki web application (as used on wikipedia.org)

Added to portage

2025-07-03

mesa - 25.1.5
Ebuild name:

media-libs/mesa-25.1.5

Description

OpenGL-like graphic library for Linux

Added to portage

2025-07-03

mesa_clc - 25.1.5
Ebuild name:

dev-util/mesa_clc-25.1.5

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2025-07-03

mongodb-compass-bin - 1.46.5
Ebuild name:

dev-db/mongodb-compass-bin-1.46.5

Description

GUI for MongoDB

Added to portage

2025-07-03

nautilus - 47.5
Ebuild name:

gnome-base/nautilus-47.5

Description

Default file manager for the GNOME desktop

Added to portage

2025-07-03

nss - 3.113.1
Ebuild name:

dev-libs/nss-3.113.1

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2025-07-03

openmw - 0.49.0
Ebuild name:

games-engines/openmw-0.49.0

Description

Open source reimplementation of TES III Morrowind

Added to portage

2025-07-03

pbs-installer - 2025.07.02
Ebuild name:

dev-python/pbs-installer-2025.07.02

Description

Installer for Python Build Standalone

Added to portage

2025-07-03

pch-session - 47.1
Ebuild name:

gnome-extra/pch-session-47.1

Description

Unofficial gnome based session with different default settings and ext

Added to portage

2025-07-03

perl - 5.42.0
Ebuild name:

dev-lang/perl-5.42.0

Description

Larry Wall's Practical Extraction and Report Language

Added to portage

2025-07-03

perl-ExtUtils-CBuilder - 0.280.242-r2
Ebuild name:

virtual/perl-ExtUtils-CBuilder-0.280.242-r2

Description

Virtual for

Added to portage

2025-07-03

perl-Module-CoreList - 5.202.507.20-r2
Ebuild name:

virtual/perl-Module-CoreList-5.202.507.20-r2

Description

Virtual for

Added to portage

2025-07-03

photoqt - 4.9.2
Ebuild name:

media-gfx/photoqt-4.9.2

Description

Simple but powerful Qt-based image viewer

Added to portage

2025-07-03

pixelmatch-py - 0.3.0
Ebuild name:

dev-python/pixelmatch-py-0.3.0

Description

A fast pixel-level image comparison library

Added to portage

2025-07-03

pytools - 2025.2
Ebuild name:

dev-python/pytools-2025.2

Description

Collection of tools missing from the Python standard library

Added to portage

2025-07-03

sunshine - 2025.628.4510
Ebuild name:

net-misc/sunshine-2025.628.4510

Description

Self-hosted game stream host for Moonlight

Added to portage

2025-07-03

syd - 3.36.0
Ebuild name:

sys-apps/syd-3.36.0

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2025-07-03

thunderbird - 140.0
Ebuild name:

mail-client/thunderbird-140.0

Description

Thunderbird Mail Client

Added to portage

2025-07-03

thunderbird-bin - 140.0
Ebuild name:

mail-client/thunderbird-bin-140.0

Description

Thunderbird Mail Client

Added to portage

2025-07-03

transitions - 0.9.3
Ebuild name:

dev-python/transitions-0.9.3

Description

A lightweight, object-oriented state machine implementation in Python

Added to portage

2025-07-03

uutils-coreutils - 0.1.0
Ebuild name:

sys-apps/uutils-coreutils-0.1.0

Description

GNU coreutils rewritten in Rust

Added to portage

2025-07-03

uutils-findutils - 0.8.0
Ebuild name:

sys-apps/uutils-findutils-0.8.0

Description

GNU findutils rewritten in Rust

Added to portage

2025-07-03

uv - 0.7.19
Ebuild name:

dev-python/uv-0.7.19

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-07-03

uv-build - 0.7.19
Ebuild name:

dev-python/uv-build-0.7.19

Description

PEP517 uv build backend

Added to portage

2025-07-03

xiphos - 4.3.2
Ebuild name:

app-text/xiphos-4.3.2

Description

Gtk+-based Bible-study frontend for SWORD

Added to portage

2025-07-03

yubikey-manager-qt - 1.2.5
Ebuild name:

app-crypt/yubikey-manager-qt-1.2.5

Description

Cross-platform application for configuring any YubiKey over all

Added to portage

2025-07-03

yubioath-flutter-bin - 6.1.0-r3
Ebuild name:

app-crypt/yubioath-flutter-bin-6.1.0-r3

Description

Yubico Authenticator for TOTP

Added to portage

2025-07-03

yubioath-flutter-bin - 6.4.0-r1
Ebuild name:

app-crypt/yubioath-flutter-bin-6.4.0-r1

Description

Yubico Authenticator for TOTP

Added to portage

2025-07-03

yubioath-flutter-bin - 7.0.0
Ebuild name:

app-crypt/yubioath-flutter-bin-7.0.0

Description

Yubico Authenticator for TOTP

Added to portage

2025-07-03

yubioath-flutter-bin - 7.1.0
Ebuild name:

app-crypt/yubioath-flutter-bin-7.1.0

Description

Yubico Authenticator for TOTP

Added to portage

2025-07-03

yubioath-flutter-bin - 7.1.1
Ebuild name:

app-crypt/yubioath-flutter-bin-7.1.1

Description

Yubico Authenticator for TOTP

Added to portage

2025-07-03

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
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: 143.3 ms