?
Solved

sharing lpt1: port on redhat8/samba

Posted on 2003-03-13
6
Medium Priority
?
533 Views
Last Modified: 2013-12-15
I've got Redhat 8 box, with samba/smb installed and configured and working,

I would like to add a printer share, that directly shares the lpt1: port, my aim is to be able to print from a Windows 98 workstation, by simply printing to \\linuxps\printer and installing whatever driver is needed on the Win98 machine individually,

I don't know what printer system under linux I am using - that is unconfigured

What settings/modifications do I need to make to get it sharing the parallel port directly? I do not wish to install any type of driver that ties the redhat box to a certain printer - I want to 'plug and play' the printer, and install the relevant driver on win98..
0
Comment
Question by:binary64
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 

Author Comment

by:binary64
ID: 8134231
At the moment, win2000 test machine can see \\linuxps and it's shares, and can connect to \\linuxps\printer but the status then says "Access denied, unable to connect"
0
 

Author Comment

by:binary64
ID: 8138828
At the moment, win2000 test machine can see \\linuxps and it's shares, and can connect to \\linuxps\printer but the status then says "Access denied, unable to connect"
0
 
LVL 8

Accepted Solution

by:
heskyttberg earned 1000 total points
ID: 8140352
Hi!

You still need to setup the printer in Linux in order to be able to share it through samba, you cannot share it directly.

Use printconf and add it.

Use an editor to check and change settings in /etc/samba/smb.conf

Thees are the ones to change:
   workgroup = yourWorkgroup
# Should be same as your windows box.
   server string = Samba Server
   netbios name = prnsrv

# Make sure this is set so noone from internet can connect.
   hosts allow = 192.168.x. 127.

# Sharing the printers automatic
   printcap name = lpstat
   load printers = yes
   printing = lpr

# The shares tehmselves
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = yes

Now you need to do the following:
adduser -g users -d/home/usrname -s /bin/bash -k /etc/skel usrname
smbadduser usrname myWindowsUserName
ambpasswd myWindowsUserName

Where usrname is anything you would like it to be, or you could just add the guest account to be allowed to print, not recommended.

Set same username as you are using to login to the windows system.

Now restart samba by: /etc/init.d/smb restart

Browse the network and map the printer.

Regards
/Hans - Erik Skyttberg
0
 

Expert Comment

by:CleanupPing
ID: 9079123
binary64:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question