Tag Archives: print

AIX 5: Forklifting Printer Setup

1. Copy /etc/qconfig from source server to target server
2. Copy /var/spool/lpd from source server to target server
3. Copy /var/spool/qdaemon from source server to target server
4. Run the following to force parsing of new /etc/qconfig enq -qP [queuename]

Mounting Jumpdrives in FreeBSD

After my fiasco trying to get FBSD to auto mount when the jumpdrive was inserted, I ended up just creating a little perl script to take care of it for now (being finals week and all). It’s not much and does absolutely no error checking, but if anyone has any suggestions, they are more than welcome.

Keep in mind, you must have the proper settings active in your kernel for this to work.

Here it is:

#!/usr/bin/perl -w

use strict;

SambaLESS Windows Printing

Printing from FreeBSD workstations to a Windows based print server without using Samba. I got fed up dinking with Samba in fairly short order, so this is the route I took. Enter CUPS (Common Unix Printing System). Works really well if you have no need for Netbios shares on your LAN. I also hear it works with Samba as well, but I didn’t spend any time on that.

Read on for information on how I got it working.

Read on for information on how I got it working.

Windows Server:

Win32 Perl

Actually did my first win32 perl script at work today. What a pita that can be when you are changing from *n?x perl. Most of the problems I encountered were editor issues. Guess I should have just gotten vi for Windows and been done with it.

###
# First we’ll change into the directory passed in the command line
###
$workdirectory = @ARGV[0];
#print (“$workdirectory\n”);
chdir (“$workdirectory”) || die “cannot cd to $workdirectory”;

###
# Lets get a numeric date for use in naming the zip files
###
$insanedate = `date /t`;
# print $insanedate;
$insanedate =~ /.*?(\d{2})\/(\d{2})\/(\d{4})/;
$sanedate = “$1$2$3″;
# print “$sanedate\n”;