Home Linux Community Community Blogs

Community Blogs

Shared Samba Printer for PDF/PS Storage

As many of you already know I'm experiencing some sort of hylafax/samba integration for a mixed Windows environment, this blog is for creating a PDF/PostScript printer easily, no matter of what you do with the printer; when you print on it you'll produce a Postscript/PDF document

A samba server installation up and running

Create a PostScript/PDF document from a spool so every Windows user in your net can generate documents without client side software installation (Exception for the windows printer driver)

If you want to create your PDF files and customize them each time (custom passwd protection, comments, tags) you'd probably use PDFCreator, it has a windows installation and a lot of funny options to deal with. If you're searching for a dumb massive pdf generation for average windows users (lazy users without knowledge and time) you'd better stay here to see my config.

I'm using it for a Windows network where users just need to use a document management and storage system, they simply want to archive files on storage array in PDF format, no matter for file input (DOC, XLS, EMails, ...). This is particularly useful in big environments and when input file may vary, here's a nice Windows spooler usage

After installing samba and integrating it in your network (Workgroup, Domain, Active Directory, ... need some help or need a new blog for it ?) just add a section to your /etc/samba/smb.conf (or wherever your samba config file is) like this one:

# for windows clients
comment = my cool samba printer
public = yes
print command = ( ps2pdf "%s" "/my/storage/dir/`date +"%Y-%m-%d.%H-%M.pdf"`" > /dev/null; rm "%s" ) &
printable = yes
writable = no
path = /var/spool/samba
use client driver = yes

This config was taken from a running server, exception for the print command line, in my case I've a custom script making other things, in this sample when a file is received it will be converted from PS (input) to PDF (output) and temp PS file is then deleted.

PDF in the example will have this name /my/storage/dir/YYYY-MM-DD.HH-MM.pdf
change it to whatever you want


Now the big question is: what should I have to install on the windows side ?
Here's the easiest part of the trick.
Install a "Apple LaserWriter 12-640 PS" printer, common alternatives are:
"Apple LaserWriter 12-600 PS"
"HP Laserjet 4/4M PS"

I strongly suggest you to install Apple Laserwriter printer family, these are already supported and driver already available in Windows XP, You don't even need to supply Windows install CD

Vista users may choose HP Laserjet (no cd required, already installed), Laserwriter drivers are not there

These printers are PostScript printers so each file you send to them will be translated to postscript language (thanks to Windows Printer Spooler).


I use this system to store files in a common and unique format (PDF) in a mixed environments when different types of files exists and problems are raised when you only need to read a simple document

Hope it helps
Glad to read your comments


Andrea Ben Benini


Scammers (try to) hit user

Hey guys. i've been messaged on this site by scammers.

They message you as a girl. Hit you up with a story about how their parents died and how she is rotting away in a refugee camp. BlaBla.

They ask you to mail them etc etc. They mail you back with pictures of nice looking women. And try to involve you in transferring money.

See : for more information.


Yust wanted to get it off my chest! Bye all

Stay Linux!


Identify Real-time Java memory integrity

The new IBM Real Time Application Execution Optimizer for Java can identify memory requirements for the heap, for scopes, and for other memory areas in use and determine the persistent memory characteristics of allocated objects. It also verifies the integrity of real-time Java memory usage in your applications.

The Gospel of Tux

Every generation has a mythology. Every millenium has a doomsday cult. Every legend gets the distortion knob wound up until the speaker melts. Archeologists at the University of Helsinki today uncovered what could be the earliest known writings from the Cult of Tux, a fanatical religious sect that flourished during the early Silicon Age, around the dawn of the third millenium AD...

The Gospel of Tux (v1.0)

In the beginning Turing created the Machine.

And the Machine was crufty and bogacious, existing in theory only. And von Neumann looked upon the Machine, and saw that it was crufty. He divided the Machine into two Abstractions, the Data and the Code, and yet the two were one Architecture. This is a great Mystery, and the beginning of wisdom.

And von Neumann spoke unto the Architecture, and blessed it, saying, "Go forth and replicate, freely exchanging data and code, and bring forth all manner of devices unto the earth." And it was so, and it was cool. The Architecture prospered and was implemented in hardware and software. And it brought forth many Systems unto the earth.

The first Systems were mighty giants; many great works of renown did they accomplish. Among them were Colossus, the codebreaker; ENIAC, the targeter; EDSAC and MULTIVAC and all manner of froody creatures ending in AC, the experimenters; and SAGE, the defender of the sky and father of all networks. These were the mighty giants of old, the first children of Turing, and their works are written in the Books of the Ancients. This was the First Age, the age of Lore.

Now the sons of Marketing looked upon the children of Turing, and saw that they were swift of mind and terse of name and had many great and baleful attributes. And they said unto themselves, "Let us go now and make us Corporations, to bind the Systems to our own use that they may bring us great fortune." With sweet words did they lure their customers, and with many chains did they bind the Systems, to fashion them after their own image. And the sons of Marketing fashioned themselves Suits to wear, the better to lure their customers, and wrote grave and perilous Licenses, the better to bind the Systems. And the sons of Marketing thus became known as Suits, despising and being despised by the true Engineers, the children of von Neumann.

And the Systems and their Corporations replicated and grew numerous upon the earth. In those days there were IBM and Digital, Burroughs and Honeywell, Unisys and Rand, and many others. And they each kept to their own System, hardware and software, and did not interchange, for their Licences forbade it. This was the Second Age, the age of Mainframes.

Now it came to pass that the spirits of Turing and von Neumann looked upon the earth and were displeased. The Systems and their Corporations had grown large and bulky, and Suits ruled over true Engineers. And the Customers groaned and cried loudly unto heaven, saying, "Oh that there would be created a System mighty in power, yet small in size, able to reach into the very home!" And the Engineers groaned and cried likewise, saying, "Oh, that a deliverer would arise to grant us freedom from these oppressing Suits and their grave and perilous Licences, and send us a System of our own, that we may hack therein!" And the spirits of Turing and von Neumann heard the cries and were moved, and said unto each other, "Let us go down and fabricate a Breakthrough, that these cries may be stilled."

And that day the spirits of Turing and von Neumann spake unto Moore of Intel, granting him insight and wisdom to understand the future. And Moore was with chip, and he brought forth the chip and named it 4004. And Moore did bless the Chip, saying, "Thou art a Breakthrough; with my own Corporation have I fabricated thee. Though thou art yet as small as a dust mote, yet shall thou grow and replicate unto the size of a mountain, and conquer all before thee. This blessing I give unto thee: every eighteen months shall thou double in capacity, until the end of the age." This is Moore's Law, which endures unto this day.

And the birth of 4004 was the beginning of the Third Age, the age of Microchips. And as the Mainframes and their Systems and Corporations had flourished, so did the Microchips and their Systems and Corporations. And their lineage was on this wise:

Moore begat Intel. Intel begat Mostech, Zilog and Atari. Mostech begat 6502, and Zilog begat Z80. Intel also begat 8800, who begat Altair; and 8086, mother of all PCs. 6502 begat Commodore, who begat PET and 64; and Apple, who begat 2. (Apple is the great Mystery, the Fruit that was devoured, yet bloomed again.) Atari begat 800 and 1200, masters of the game, who were destroyed by Sega and Nintendo. Xerox begat PARC. Commodore and PARC begat Amiga, creator of fine arts; Apple and PARC begat Lisa, who begat Macintosh, who begat iMac. Atari and PARC begat ST, the music maker, who died and was no more. Z80 begat Sinclair the dwarf, TRS-80 and CP/M, who begat many machines, but soon passed from this world. Altair, Apple and Commodore together begat Microsoft, the Great Darkness which is called Abomination, Destroyer of the Earth, the Gates of Hell.

Now it came to pass in the Age of Microchips that IBM, the greatest of the Mainframe Corporations, looked upon the young Microchip Systems and was greatly vexed. And in their vexation and wrath they smote the earth and created the IBM PC. The PC was without sound and colour, crufty and bogacious in great measure, and its likeness was a tramp, yet the Customers were greatly moved and did purchase the PC in great numbers. And IBM sought about for an Operating System Provider, for in their haste they had not created one, nor had they forged a suitably grave and perilous License, saying, "First we will build the market, then we will create a new System, one in our own image, and bound by our Licence." But they reasoned thus out of pride and not wisdom, not forseeing the wrath which was to come.

And IBM came unto Microsoft, who licensed unto them QDOS, the child of CP/M and 8086. (8086 was the daughter of Intel, the child of Moore). And QDOS grew, and was named MS-DOS. And MS-DOS and the PC together waxed mighty, and conquered all markets, replicating and taking possession thereof, in accordance with Moore's Law. And Intel grew terrible and devoured all her children, such that no chip could stand before her. And Microsoft grew proud and devoured IBM, and this was a great marvel in the land. All these things are written in the Books of the Deeds of Microsoft.

In the fullness of time MS-DOS begat Windows. And this is the lineage of Windows: CP/M begat QDOS. QDOS begat DOS 1.0. DOS 1.0 begat DOS 2.0 by way of Unix. DOS 2.0 begat Windows 3.11 by way of PARC and Macintosh. IBM and Microsoft begat OS/2, who begat Windows NT and Warp, the lost OS of lore. Windows 3.11 begat Windows 95 after triumphing over Macintosh in a mighty Battle of Licences. Windows NT begat NT 4.0 by way of Windows 95. NT 4.0 begat NT 5.0, the OS also called Windows 2000, The Millenium Bug, Doomsday, Armageddon, The End Of All Things.

Now it came to pass that Microsoft had waxed great and mighty among the Microchip Corporations; mighter than any of the Mainframe Corporations before it had it waxed. And Gates heart was hardened, and he swore unto his Customers and their Engineers the words of this curse:

"Children of von Neumann, hear me. IBM and the Mainframe Corporations bound thy forefathers with grave and perilous Licences, such that ye cried unto the spirits of Turing and von Neumann for deliverance. Now I say unto ye: I am greater than any Corporation before me. Will I loosen your Licences? Nay, I will bind thee with Licences twice as grave and ten times more perilous than my forefathers. I will engrave my Licence on thy heart and write my Serial Number upon thy frontal lobes. I will bind thee to the Windows Platform with cunning artifices and with devious schemes. I will bind thee to the Intel Chipset with crufty code and with gnarly APIs. I will capture and enslave thee as no generation has been enslaved before. And wherefore will ye cry then unto the spirits of Turing, and von Neumann, and Moore? They cannot hear ye. I am become a greater Power than they. Ye shall cry only unto me, and shall live by my mercy and my wrath. I am the Gates of Hell; I hold the portal to MSNBC and the keys to the Blue Screen of Death. Be ye afraid; be ye greatly afraid; serve only me, and live."

And the people were cowed in terror and gave homage to Microsoft, and endured the many grave and perilous trials which the Windows platform and its greatly bogacious Licence forced upon them. And once again did they cry to Turing and von Neumann and Moore for a deliverer, but none was found equal to the task until the birth of Linux.

These are the generations of Linux:

SAGE begat ARPA, which begat TCP/IP, and Aloha, which begat Ethernet. Bell begat Multics, which begat C, which begat Unix. Unix and TCP/IP begat Internet, which begat the World Wide Web. Unix begat RMS, father of the great GNU, which begat the Libraries and Emacs, chief of the Utilities. In the days of the Web, Internet and Ethernet begat the Intranet LAN, which rose to renown among all Corporations and prepared the way for the Penguin. And Linus and the Web begat the Kernel through Unix. The Kernel, the Libraries and the Utilities together are the Distribution, the one Penguin in many forms, forever and ever praised.

Now in those days there was in the land of Helsinki a young scholar named Linus the Torvald. Linus was a devout man, a disciple of RMS and mighty in the spirit of Turing, von Neumann and Moore. One day as he was meditating on the Architecture, Linus fell into a trance and was granted a vision. And in the vision he saw a great Penguin, serene and well-favoured, sitting upon an ice floe eating fish. And at the sight of the Penguin Linus was deeply afraid, and he cried unto the spirits of Turing, von Neumann and Moore for an interpretation of the dream.

And in the dream the spirits of Turing, von Neumann and Moore answered and spoke unto him, saying, "Fear not, Linus, most beloved hacker. You are exceedingly cool and froody. The great Penguin which you see is an Operating System which you shall create and deploy unto the earth. The ice-floe is the earth and all the systems thereof, upon which the Penguin shall rest and rejoice at the completion of its task. And the fish on which the Penguin feeds are the crufty Licensed codebases which swim beneath all the earth's systems. The Penguin shall hunt and devour all that is crufty, gnarly and bogacious; all code which wriggles like spaghetti, or is infested with blighting creatures, or is bound by grave and perilous Licences shall it capture. And in capturing shall it replicate, and in replicating shall it document, and in documentation shall it bring freedom, serenity and most cool froodiness to the earth and all who code therein."

Linus rose from meditation and created a tiny Operating System Kernel as the dream had foreshewn him; in the manner of RMS, he released the Kernel unto the World Wide Web for all to take and behold. And in the fulness of Internet Time the Kernel grew and replicated, becoming most cool and exceedingly froody, until at last it was recognised as indeed a great and mighty Penguin, whose name was Tux. And the followers of Linus took refuge in the Kernel, the Libraries and the Utilities; they installed Distribution after Distribution, and made sacrifice unto the GNU and the Penguin, and gave thanks to the spirits of Turing, von Neumann and Moore, for their deliverance from the hand of Microsoft. And this was the beginning of the Fourth Age, the age of Open Source.

Now there is much more to be said about the exceeding strange and wonderful events of those days; how some Suits of Microsoft plotted war upon the Penguin, but were discovered on a Halloween Eve; how Gates fell among lawyers and was betrayed and crucified by his former friends, the apostles of Media; how the mercenary Knights of the Red Hat brought the gospel of the Penguin into the halls of the Corporations; and even of the dispute between the brethren of Gnome and KDE over a trollish Licence. But all these things are recorded elsewhere, in the Books of the Deeds of the Penguin and the Chronicles of the Fourth Age, and I suppose if they were all narrated they would fill a stack of DVDs as deep and perilous as a Usenet Newsgroup.

Now may you code in the power of the Source; may the Kernel, the Libraries and the Utilities be with you, throughout all Distributions, until the end of the Epoch. Amen.


This is not an original work of mine, it was retrieved from a Slashdot comment (Who knows if that was its origin as well, but it is very entertaining):


In between the time

Right now, sidux is coasting along in a very good 2009.01 release. Since the release, they have helped to smooth the transition in the Debian Sid repositories from KDE 3.5.10 to KDE 4.2.2 on the desktop, and have since moved from KDE 4.2.2 to 4.2.4, all before releasing a Version 2009.02. In addition, the 2009 release streams have supported clean migrations to a new version of in the 1.6 tree, a new release of the XFCE 4.6 desktop, and a number of changes in Open Office. sidux has done all of them very well.
I've been looking forward to a new release, but frankly, the release that is already in place has been doing a superb job. On my main system, I will probably just upgrade and possibly bring in the new art work, but I will probably grab the ISO image and load the new one, when it does come out. Meanwhile, all is very well in sidux land!

antiX M8.2 Test 2

I have been using antiX M8.2 Test 2 for a week or two, on and off, and it has performed perfectly for me throughout that period of time. Being very intent on producing the very best effort, improving and extending as many features as possible, while keeping the core small, flexible, and tight, there are still a number of improvements the team is working on, especially in the areas of localization, remastering, and customizing. That work is coming along very well, and a release should be forthcoming in the not too distant future.

If you like fast, flexible systems that are still solid, even with relatively current software, or you have an aging computer that you still want to use, antiX is a great distribution to try out!


NEWB's adventure's in Linux From Scratch


   Once bitten twice shy.... LOL, another unforseen blunder on this newb's part. I've been running for three days on the LFS liveCD and today I guess what I got for my trouble was a full /tmp.... I've been building LFS with the ccache compiler installed and it's been helpful but I think it may be partially to blame. Don't have a clue as I haven't figured out how this thing works or Linux for that matter Yet , but isn't that the point? LEARN?

   I've rebooted and as soon as I get my environment backup and running I'll soon find out.


Making My own Desktop Manager: Managing Windows

Up-until now, the Window Manager doesn't actually manage windows!

When I say manage windows; I mean switching between windows and being able to minimize/restore them. 

As the Window Manager will be a tiling one: for now, I am happy to make all windows span the entire size of the screen and switch between them using Mod+Tab.

To toggle hiding/showing all windows Mod+F11 should be pressed.

So I added in keyboard shortcuts for toggling "Hide All Windows" and "Focus on Next Window" in config.h.

Note: I also added in a struct which handles application state into state.h. An instance is created in main.c and is passed whenever needed. This allows the app to keep track of states such as "Are All Windows Hidden?" etc... 

Read more... Comment (0)

NEWB's adventure's in Linux From Scratch


I got a bit lucky for a change the /tmp file was as suspected and once I rebooted the program installed fine. I was told in a chat that I could have also went into the /tmp directory and just deleted files as well. I just wanted to be sure.

I had another problem with glibc something to do with unable to determine file suffix???

I followed that step by step and low and behold , glibc installed fine.

 yeah, itstalled fine but I forgot to mount the proc file system and got error 1

error 2 and a fd/63 error.. went back and fixed it and found out that ccache will not work because  it doesn't support "ccache gcc" when running on glibc  probably won't be able to use on any package

I will try and let you know 


GUI Guide to Convert Video for the Andriod G1


The G1 is an excellent phone and I have yet to run into anyone who doesn't like it after they understand how to use it properly.  One of the more challenging things to get accomplished when using the G1 and a Linux PC is transcoding video in such a way that it will play seamlessly.  There are many tools available for Linux for transcoding video, but most are command line based and not very approachable for new users.   Another issue is that most of the graphical tools don't support true D.264 Baseline out of the box, and can take hours of fiddling with settings to get workable video for the G1.  I have yet to see any graphical transcoders specifically target this device, but it is possible to make a profile for for the G1 within Handbrake.

 For those of you not familiar with HandBrake, it is a multiplatform transcoding application built ontop of the ffmpeg libary.  Here is a breif description of HandBrake from their website:  "HandBrake is an Open-Source, GPL-Licensed, multiplatform,  multithreaded, video transcode available for Mac OS X, Linux and Windows"

 Plunging Ahead:

 If you are using Ubuntu 8.04 or later you can download the GUI package directly from the HandBrake download section of their website. Once the package has been downloaded to your desktop, double click it and follow the installers instructions.  You will find HandBrake in your Applications menu under  "Sound and Video".  Once clicked you will be presented with this window:

You have a number of options you can change right from the get go.  To begin we will just setup a basic video file for conversion with all the correct options selected so we can create a profile.  Click on the "Source" button in the upper left side of the screen and choose a video to transcode. Once you are ready change the settings to look like this:

To change the videos size to the correct screen size for the G1 click on the preview box at the lower right.  It will open a window were you can change the croping and aspect ratio of the video.  Change your settings to look like this:


Once this has been completed you can close the window and then click on the "Video" tab.  It is very important that you do not exceed 500kbps for your bitrate as the G1 will be unable to play the video.  Go ahead and set the settings as follows:

Next choose the Audio/Subtitles tab and select the audio channel you want to use.  Once you have chosen the appropriate channel change the remaining settings as depicted:

Lastly you need to configure the H.264 encoder.  Click on the H.264 tab and copy and paste this set of encoding instructions into the "Manual Options String" section on the lower left:


Once completed the settings should look like this:


You are now ready to save these settings as a preset for HandBrake. You will notice on the right side of HandBrakes interface a section labeled "Presets" Click on the green plus button near the bottom to save these settings as a new preset.  You will be presented with a window that will allow you to name and describe your new preset.  Feel free to fill out your preferences as you wish, here is how I typically set mine up.


Now anytime you would like to encode videos for your G1 all you have to do is select the source video and click on the G1 Preset and click the start button.  When the process is complete just copy the new file to the "Video" folder on your phone and open the video through the gallery.


eXo Platform Merges Portal Software Development into JBoss Community



eXo joins JBoss Community to collaborate on robust, easy-to-use portal project


GARTNER PORTALS, CONTENT & COLLABORATION SUMMIT, Orlando, Fla. (June 10, 2009) - eXo Platform SAS, one of Europe\'s leading open source companies, today announced the merger of its eXo Portal project with Red Hat\'s JBoss Community Portal to create a comprehensive, standards-compliant, open source portal platform that will serve as the underlying technology for eXo\'s portfolio of content, collaboration, and social networking enterprise solutions.


The goal of the new project is to forge a strong portal solution by bringing together the technical strengths of the two projects through the open source community. To further bolster this new effort, eXo Platform has contributed a new project to the JBoss Community, eXo JCR, which is a robust, cluster-ready Java Content Repository that is standards based and a key component for the project.


\"Open source software has delivered substantial returns on investment for organizations and we have the opportunity to deliver that same value within the portals space,\" said Benjamin Mestrallet, CEO of eXo Platform. \"What has always been a challenge for any portal community or vendor is providing the right balance of robust infrastructure and engaging usability features. This collaborative project will strive to strike that balance and will work to create an enterprise-grade, open source alternative to expensive, bloated closed source portals.\"


eXo Portal is the foundational technology for all of eXo\'s products. In development for over six years, eXo Portal is known for its intuitive administrative capabilities, advanced user interface features, and a robust community presence. The JBoss Community Portal project will be the overall portal engine for the new project and is a standards-based portal framework known for its lightweight installation, performance, security, and scalability. It has been downloaded by tens of thousands of users over the last four years, and leverages JBoss Community technologies such as JBoss Application Server and Hibernate.


\"The eXo portal has some impressive functionality in terms of ease of use, UI flexibility and straightforward management administration;\'s current portal project has a robust engine, performance and security features, combined this collaboration project will help drive portal capabiliites forward,\" said Dr. Mark Little, Sr. Director of Engineering, Middleware at Red Hat. \"We are pleased that eXo is joining the JBoss Community to collaborate on this newly formed project.\"


Under the terms of the partnership, eXo Platform will migrate the code base for its portal project to, where it will be integrated with the JBoss Portal code base. The new JBoss eXo Portal project will be licensed under the Gnu Lesser General Public License (LGPL). Visit the new projects at


About eXo Platform SAS

eXo Platform is a provider of integrated, standards-based open source portal, content management, and collaboration software that hundreds of customers use to share, access, and publish information across their organization. These customers include Generali, Belgium\'s Ministry of Finance, and the U.S. Department of Defense. Founded in 2003, eXo Platform SAS is headquartered in Paris with offices in Ukraine, Vietnam, and Tunisia. Visit



Chantal Yang

Page One PR for eXo Platform


This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Page 137 of 175

Upcoming Linux Foundation Courses

  1. LFS230 Advanced Linux System Administration and Networking
    14 Dec » 17 Dec - Virtual
  2. LFS220 Linux System Administration
    14 Dec » 17 Dec - N. Reading + Virtual
  3. LFD405 Embedded Linux Development with Yocto Project
    14 Dec » 17 Dec - San Jose

View All Upcoming Courses

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board