Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.unix.aix Frequently Asked Questions (Part 3 of 5)
Section - 1.624: Printing from AIX to WinNT/95/3.1

( Part1 - Part2 - Part3 - Part4 - Part5 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Sex offenders ]


Top Document: comp.unix.aix Frequently Asked Questions (Part 3 of 5)
Previous Document: 1.623: How can I share files/printers with Windows 95?
Next Document: 1.625: How do I get NFS mounting with Linux to work?
See reader questions & answers on this topic! - Help others by sharing your knowledge

1. On your Windows system, share the printer. Assuming that you are
   running NT, make a user "root" with some password.

2. Get the Samba distribution from http://www.samba.org
   If you have a C compiler, get the source and compile it.
   If you don't have a C compiler, get a binary distribution for AIX.

3. Install Samba on AIX under /usr/local/samba. Specifically, make sure
   that /usr/local/samba/bin/smbclient is installed with execute rights
   for everyone.

4. You must also install a Samba configuration file under
   /usr/local/samba/lib/smb.conf

   If you intend to use your AIX as a file server for windows clients,
   you should modify smb.conf to accomplish this (see the Samba
   documentation).

   If you will be printing only, just use the sample smb.conf.

5. Make the directory /usr/local/samba/lib/printers

6. In that directory, install the following shell script as
   file "winprint":

#!/bin/sh

# This is a modification of the samba provided smbprint script
# changed to work under AIX as the backend for a queue. It does
# not read a config file.
#
# Variables below define the server and service. They are
# the content of the .config file when printing from
# /etc/printcap.
#
server="winserver"
service="winprinter"
user="root"
password="root"
#
# Debugging log file, change to /dev/null if you like.
#
#logfile=/tmp/${USER}-print.log
#
# Some debugging help, change the >> to > if you want to save space.
#
#echo "server $server, service $service" >> $logfile
#cat $1 | /usr/local/samba/bin/smbclient "\\\\$server\\$service" 
$password \
#       -N -P -c 'print -' >> $logfile

(
# NOTE You may wish to add the line `echo translate' if you want automatic
# CR/LF translation when printing.
        echo translate
        echo "print -"
        cat $*
) | /usr/local/samba/bin/smbclient "\\\\$server\\$service" $password \
	-U "$user" -N -P  > /dev/null

7. The above file assumes that you are using \\winserver\winprinter
   as the printer share, and that the user is "root" and the password
   is "root". If this is not the case, modify the shell variable
   declarations.

8. Mark the file with execute permissions with "chmod 755 winprint"

9. Test the script with the command: "./winprint /etc/passwd"
   If everything is ok, your password file should be spooled to your
   windows printer.

   If it doesn't work, remove the "> /dev/null" from the last line of
   the script and rerun it. Examine the output of smbclient for clues.

   Clue #1: The Windows printer server is on the other side of a router.
            AIX is sending broadcast packets to find the Windows machine,
            which the router will not forward. You must find the Windows
            server's IP address and specify it with the "-I" parameter
            to smbclient, i.e. "-I 1.2.3.4". DHCP makes this situation
            even more complex.

   Clue #2: You username or password is wrong. smbclient will tell you
            about this if you free its output from > /dev/null.

   Clue #3: You might be violating shell quoting rules if you use
            special characters in the server or share name, password,
            etc. Don't use $, ", ', etc., or escape them properly.
            A password of ";rm -rf /" could be catastrophic.

10. Once the script can print files, it must be defined as a printer in
    the /etc/qconfig file. Add the following lines to the end of your
    /etc/qconfig:

winprint:
        device = dwinprint
        up = TRUE
        discipline = sjn
dwinprint:
        backend = /usr/local/samba/lib/printers/winprint

11. Test the printer with the following command:
    "lp -d winprint /etc/passwd"
    (Your password file should be printed again.)

12. You might examine the queue with the command "lpq -P winprint"
    or "lpstat -t"

User Contributions:

But remnants' crop burning hits harvesting hard

This sunday, quite possibly 28, 2019 snapshot, Provided by the city service group, jointly for Jarniyah, contains been authenticated based on its contents and other AP reporting, Shows Syrians lifetime extinguish a fire in a field of crops, wearing Jaabar, Raqqa state, Syria. Thousands of acres of wheat and barley fields in both Syria and Iraq have been scorched by the fires within harvest season, that typically runs until mid June. "The life that we live here is already bitter, " stated Hussain Attiya, A farmer from Topzawa Kakayi in upper Iraq. "If the outcome continues like this, I would say that no one will continue to be here. I plant 500 to 600 acres on a yearly basis. still, I won't be able to do that because I can't stay here and guard the land day and night. "ISIS militants have a history of working with a "Scorched earth insurance coverage " In areas from that they can retreat or where they are defeated. Ahmed al Hashloum thoughts Inmaa, Arabic for benefits, A local civil group that supports farming. all it takes is a cigarette butt to set haystacks on fire, He brought up. Said the fires are threatening to disrupt normal food production cycles and potentially reduce food to protect months to come. The crop burning remains localized and can't be compared to pre war devastation, Beals considered that. "suffice to say, It is only the beginning of the summer and if the fires continue it could lead to a crisis, " Beals recounted,AlternativeHeadline,prepared crop burning blamed on ISIS remnants compounds misery in war torn Iraq and Syria"}

But good news is short lived in this part of the world, Where residents of the two countries struggle to face seemingly never ending violence and turmoil amid Syria's civil war and attacks by remnants of the Islamic State of Iraq and Syria (ISIS) social groups. of course, Even in locations where conflict has subsided, Fires currently raging in farmers' fields, depriving them of valuable crops.

The blazes have been blamed also consider on defeated ISIS militants seeking to avenge their losses, Or on Syrian regime forces battling to rout other armed groups. Thousands of acres of wheat and barley fields in both Syria and Iraq have been scorched by the fires within harvest season, what kind runs until mid June.

ISIS militants have a history of implementing a "Scorched earth guideline" In areas from which retreat or where they are defeated. this "A means of inflicting a collective punishment on those put aside, said Emma Beals, a completely independent Syria researcher.

ISIS militants claimed obligations for burning crops in their weekly newsletter, al Nabaa, Saying they targeted farms owned by senior officials in six Iraqi provinces and in Kurdish administered eastern Syria, sending the persistent threat from the group even after its territorial defeat.

ISIS said it burned the farms of "The apostates in Iraq together with the Levant" And required more.

"It seems that it'll be a hot summer that will burn the pockets of the apostates as well as their hearts as they burned the Muslims and their homes in the past years, this great article said.

countless acres of wheat fields around Kirkuk in northern Iraq were set on fire. Several wheat fields in the Daquq district in southern Kirkuk burned for three days straight yesterday.

In eastern Syria's Raqqa state, Farmers battled raging fires with items of cloth, bags and water trucks. Piles of hay burned and black smoke billowed above the job areas.

The Syrian Observatory for Human Rights said through 74,000 acres (30,000 hectares) linked farmland in Hassakeh, Raqqa and completely to Aleppo province to the west, Were scorched.

Activist Omar Abou Layla said local Kurdish led forces failed to react to the fires in the province of Deir el Zour, Where ISIS was uprooted from its last property in March, (...)

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.unix.aix Frequently Asked Questions (Part 3 of 5)
Previous Document: 1.623: How can I share files/printers with Windows 95?
Next Document: 1.625: How do I get NFS mounting with Linux to work?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
bofh@mail.teleweb.pt (Jose Pina Coelho)





Last Update March 27 2014 @ 02:11 PM