LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   HP PSC1400 not printing via Samba on FC5 (https://www.linuxquestions.org/questions/linux-software-2/hp-psc1400-not-printing-via-samba-on-fc5-503740/)

24giovanni 11-21-2006 07:27 PM

HP PSC1400 not printing via Samba on FC5
 
I have printer set up, I go to test print a page I see it in my XP printer spool queue saying it's spooling and printing, here printer movement but nothing prints.... what would cause this and how do I fix this, please? I appreciate any help.

Oh, on my FC5 machine, it also says successfully printed.

Brian1 11-21-2006 07:39 PM

Not sure if related but are do you have selinux active? If so disable it and try again.

Brian

24giovanni 11-21-2006 07:42 PM

Hi Brian, it is already disabled. Thanks for responding.

Brian1 11-21-2006 07:52 PM

Kind of at a lost based on your other related post. If I get a brainstorm of an idea I will post. Never really setup printing to a Windows printer, perfer printing to network or Linux printers. Might give it a try. Current HP 3310 is setup on the network. Should have time over the Holiday Weekend.

Brian

24giovanni 11-21-2006 08:01 PM

That would be great, Brian. Thanks for taken the time an effort for doing this as it is much appreciated.

24giovanni 11-22-2006 09:27 AM

If someone else can offer an answer as well it is much appreciated as well.

Brian1 11-22-2006 04:24 PM

Ok got off of work early today and had some time to experiment. Here is my setup.
I have Win2000 Pro machine. The HP driver for my All-in_one 3310 was already installed and point to the network connection of the printer. Did a test page and it printed. Just to be like yours I plugged it directly into the USB port and reset the configuration. Did a test page and it printed. So it is a now USB connected only.

Now I set the sharing up and the share name to HP3310. I keep netbios names as simply as possible. No spaces, odd characters, or longer than eight characters.

Code:

1. Went to the Centos machine and went into my cups from the web browser. http://localhost:631
2. Manage printers
3. New printer. WINHP3310
4. Device: Windows Printer via Samaba. If not there it does not matter really the next page is the defining point.
5. Device URL: smb://username:password@machine_name or IP/Printer_share_name
6. smb://crusher:password@comp15/hp3310
Now my lcomp15 is define in /etc/hosts file. I am not sure if needed for samba because the commands may search the netowrk for the netbios names. But I perfer this. You can use the IP as well but the machines IP must be static and not dynamic.

       
Code:

       
Example of my /etc/hosts
192.168.45.15        comp15


7. Make: HP
8. Model:HP PhotoSmart 3300
9. Done. Printer is ready.

From firefox on the linux machine I did a print of the cups page to the share on win2000 and printed fine.

So lets make sure things are setup correctly.
Code:

10. On the windows side you have the printer installed and connected to a USB port?
11. The driver is installed and a test page works?
12. The share is set to share the printer?
13. You know the workgroup name of the network?
14. You now the share name of the printer?

Now on the linux side.
Code:

15. Installed the HPLIP driver package.
16. Extracted to any location.
17. Run the make command ' make '
18. su to root and enter root's password ' su '
19. Run the ' make install ' comand

20. Restart the services ' /sbin/service hplip restart ' and ' /sbin/service cups restart '. Service is a Redhat/Redhat Clone like Fedore core command. Does what the ' /etc/init.d/cups restart ' does.

Code:

21. Setup samba workgroup.
22. Set the computer name in /etc/sysconfig/network

       
Code:

       
Example
NETWORKING=yes
HOSTNAME=comp58


23. Restart Samba ' /sbin/service smb restart '

Do the command to see what it sees on the linux and windows.
24a. smbclient -L computer_name -U username
or
DO the command to see it using the IP
24b. smbclient -I xxx.xxx.xxx.xxx -U username

Do both windows and Linux machine to see if shares are seen.

Now do like above to setup a new printer under cups. steps 1-9

Once entered in cups then it is ready. Note the HPLIP must be installed before adding printer and also the HPLIP and CUPS service must be restarted before enter the new printer.

Took about 2 minutes to configure but about 30 minutes to write this. Hope this helps.
Code:

Optional Info on setting up /etc/hosts file if you wish.
Now if you setup an /etc/hosts file. You need to use static IP's for the machines to make use of /etc/hosts file. It makes life easier if all machines have a static defined IP and not get there IP from a DHCP server off the router.

       
Code:

       
Short Example of mine:
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.56.1        frcomp1
192.168.45.18        comp18
192.168.45.158        comp158
127.0.0.1        localhost
192.168.45.58        comp58
192.168.45.15        comp15
192.168.203.57  dmz1
216.239.39.99   www.google.com    google



Brian

24giovanni 11-23-2006 12:08 PM

Brian, I have a question for you. I am at step 21 and you say setup samba workgroup with a ? mark...are you saying I need to do that? If so, do I do that with the next step? If so, when I type it I receive the following errror "permission denied" I am logged on as root as well. Any idea why?

Brian1 11-23-2006 04:09 PM

Wrong puncutition. I will correct. Just need to set the workgroup name in the samba config to match the windows workgroup name. Normal Windows default network group name is workgroup.

Brian

24giovanni 11-23-2006 04:21 PM

Are you saying you had the wrong command/syntax?

24giovanni 11-23-2006 08:10 PM

Brian, What am I suppose to see when I type

smbclient -L computer_name -U username

Can you show me the output on what it is suppose to look like the way mine is suppose to look please?

TIA

Brian1 11-24-2006 10:01 AM

Here is an example of my shares on my notebook.
Code:

[crusher58@lcomp58 ~]$ smbclient -L comp158 -U crusher158
Password:
Domain=[LCOMP58] OS=[Unix] Server=[Samba 3.0.23d-0.5.el4.custom]

        Sharename      Type      Comment
        ---------      ----      -------
        vfatshare      Disk
        IPC$            IPC      IPC Service (Samba Server)
        Win2k3310 Printer  Win2k3310
        IPHP3310        Printer
        crusher158      Disk      Home Directories
Domain=[COMP58] OS=[Unix] Server=[Samba 3.0.23b-0.1.el4.kde]

        Server              Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        CRUSHER              COMP158

Step 21 was just meant as to to setup samba smb.conf file setting the workgroup name in it. Default smb.conf file does printer and home user shares. One just needs to define the workgroup if not using the Windows default name of workgroup.

24giovanni 11-24-2006 11:17 AM

brian, Is comp158 the name of your windows machine or linux?

If it is your windows machine, when I type the same command I see neither a workgroup or master underneath those entries which I assume I should. How do I fix this, please?

Brian1 11-24-2006 02:29 PM

comp158 is a linux machine.

Here is one from one of the Window Machines
Code:

[crusher58@lcomp58 ~]$ smbclient -L comp115 -U crusher115
Password:
Domain=[COMP115] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        HP3310          Printer  HP Photosmart 3300 series
        IPC$            IPC      Remote IPC
        DDRIVE          Disk      D Drive on comp115
        print$          Disk      Printer Drivers
        ADMIN$          Disk      Remote Admin
Domain=[COMP115] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

        Server              Comment
        ---------            -------

        Workgroup            Master
        ---------            -------


24giovanni 11-24-2006 03:18 PM

here's what mine looks like but I still can't print to it. Can you please take a look to see if something looks wrong?

Code:

Domain=[LARRY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        IPC$            IPC      Remote IPC
        SharedDocs      Disk
        print$          Disk      Printer Drivers
        C              Disk
        psc1400        Printer  PSC1400
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
Domain=[LARRY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server              Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
[root@Shemp ~]#



All times are GMT -5. The time now is 05:00 AM.