LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2005, 12:09 PM   #1
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Rep: Reputation: 30
Printing to a TCP/IP Network Printer


I have Debian Sarge installed and someone installed Samba for me, so I'm not too sure about it's configuration. With the current Samba configuration I can see one folder/directory from Windows but can not see any folder/directory in Windows from the Linux box. I thought Samba allowed access both ways.

I do not have a GUI Desktop installed. I had tried KDE but it couldn't see anything but itself, so I removed it.

Cups is installed, but I do not see anyway to access it to make any configuration changes.

I am doing everything from the command line.

I was searching for HowTos and help with setting up Samba and cups to print to a Network Printer which has its own Static IP Address.

Even the Samba HowTo's run me in a circle. The HowTo setup a printer says read the man smb.conf for information. That man only tells you how to read the smb.conf not how to configure it and I can't even print it out until I get the printer configuration set-up on the Linux box.

What is my next step?

Where can I find these "man's", "howto's" and "info's" to print them out? So I can have them available to reference while trying to set-up the Samba to allow me to print from the Linux box???

BTW: linuxprinting.org is no longer a valid website, I keep getting the error message of the page can not be displayed.

Thanks
 
Old 10-11-2005, 05:41 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Check if there is a 'smb.conf' man page on your system.
To view in a better form:
man -t smb.conf | gv -antiialias -scale 2 -

To print out a manpage:
man -t smb.conf | lp -d <printername>
or for your default printer
man -t smb.conf | lp
or
man -t smb.conf | lpr


Also, you may have a package that contains the samba 3 documentation, which is the same reference books you could buy in the book store. ( These may be part of the swat packate )

There is a samba web based configuration called swat. It makes setting up samba a lot easier. Also, the main page has links to samba documentation on your system.

Often, documentation is located at /usr/share/doc.
Use the locate command to help find documentation
locate samba
locate smb
locate smb.conf

Good Luck!
 
Old 10-14-2005, 09:19 AM   #3
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Can't print if no printer

has been installed.

The command "man -t smb.conf | gv -antiialias -scale 2 -" gets me an error message, in Debian Sarge, that "gv" is an unrecognized command.

When I do man smb.conf I get the error message "warning: can't find numbered character 160"

I am using Debian Sarge and when I did some further checking I found that even though aptitude shows CUPS is installed it has not been downloaded or actually installed? Now I have to figure out how to correct this error in aptitude.

Soooo, I am back to the basic question of How to install a printer for the Linux box to use, to allow me to print documentation?

Thanks
 
Old 10-14-2005, 10:34 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
cups is configured via a browser. Since you do not have a GUI then you will need to install a console app like lynx or links. cups uses port 631 so to access its configuration pages:

lynx localhost:631

Then you can add the printer. To actually print use lpr.
http://home.swbell.net/berzerke/printing.html

I have a HPLJ4 with a jetdirect that works good.
 
Old 10-18-2005, 06:06 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
First you will need to install cups. Your next step may be to add a user/password for administrating cups. Cups doesn't run as root as it used to. There is a command called lppasswd that you can use to enter a user and password.
lppasswd [ -a ] [ -g groupname ] [ -x ] [ username ]

Next you can use the web interface to configure cups. I think that you can access it from a web browser on another computer. You will need to enter the same 'username/password' pair that you created with the lppasswd command.

Also, consider at least installing a lightweight window manager, so that you can run a web browser to access http:/localhost:631 .
 
Old 10-18-2005, 10:28 AM   #6
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Unable to connect

michaelk

I tried typing in the "lynx localhost:631" and received an "Unable to connect to remote host" message.
 
Old 10-18-2005, 10:56 AM   #7
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
lynx http://localhost:631
This will do better
You can also access it from a remote computer, but you first need to edit cups.conf by hand to allow remote access.
 
Old 10-18-2005, 10:59 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Make sure cups is running. if not
/etc/init.d/cups start
 
Old 10-18-2005, 03:24 PM   #9
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
CUPS is working now.

I am using the Debian Sarge Distro.

I found, through an apt-search that the correct term for "cups" to be installed is "cupsys".

So, "apt-get install cupsys" worked.

Cups is now working and can see my TCP/IP printer. Unfortunately, the Minolta Printer will not print. I found the Linux Printer driver for this PagePro 9100 Boat Anchor and downloaded it.

Now, how do I install this driver? It is a .tar file and the only instructions I saw dealt with using KDE, Gnome or some other GUI. I am working from a command line because all I got out of the GUI's were glitches and problems.

I looked at cups, but did not see any command for installing printer drivers or even a way to update them.

There is no such command as ./configure for the printer driver. The .tar is just a zipped file with all of the different language drivers. The install text only talks about using rpm's for the debian install??? That doesn't sound right.

Just copying the driver into the cups driver directory didn't work either.

I had to edit the PPD file before it would pass the cupstestppd testing. It was missing two required pieces of information.

I then found the documentation on the CUPS website for doing command line installation of a printer. I used the command "/usr/sbin/lpadmin -p PagePro -E -v http://192.168.2.11:35 -m /home/linux/PPD/km9100np1.ppd"

I received the error "lpadmin: Unable to connect to server: Resource temporarily unavailable"

Thanks.

Last edited by AndeAnderson; 10-19-2005 at 10:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing to a network printer jrdioko Linux - Newbie 20 09-10-2004 05:21 PM
Printing to network printer KHAAAN Linux - Networking 1 07-05-2004 08:34 PM
how to configure network tcp/ip printer from linux workstation scorchy Linux - Newbie 3 06-16-2004 03:24 PM
TCP network printer with CUPS m_yates Linux - Software 1 03-22-2004 12:48 PM
Printing to a network printer with apsfilter chrisk5527 Linux - Software 0 09-10-2003 06:47 PM


All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration