PDA

View Full Version : How to connect windows shred printer in fedora 9



M.Wajid
10th May 2009, 01:21 PM
Hi,

I have recently installed fedora 9
i want to add windows shared printer on it
please guide me.

Thanks

glennzo
10th May 2009, 03:38 PM
Make sure the printer is shared in Windows.
Install samba.

su -c 'yum install samba'
Backup /etc/samba/smb.conf

su -c 'cp /etc/samba/smb.conf /etc/samba/smb.conf.old'
Tell me the name of the Windows workgroup.
Open a terminal and type

su -c 'cat /etc/samba/smb.conf'
Post the first 20 lines here please.
While waiting, open a terminal and type the following:

su -c '/sbin/chkconfig --level 35 smb on'
su -c '/sbin/chkconfig --level 35 nmb on'
su -c '/sbin/service smb start'
su -c '/sbin/service nmb start'

M.Wajid
11th May 2009, 12:30 PM
i install samba on my system
please tell me how to connect and install windows shared printer
in fedora
i am using windows domain to connect systems
Thanks

glennzo
11th May 2009, 11:00 PM
Give me the rest of the information I asked for first.

M.Wajid
12th May 2009, 08:08 AM
The workgroup is "workgroup" in windows

the command output is

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
# http://www.samba.org/samba/docs/Samba-Guide.pdf
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#---------------
# SELINUX NOTES:
#
# If you want to use the useradd/groupadd family of binaries please run:
# setsebool -P samba_domain_controller on
#
# If you want to share home directories via samba please run:
# setsebool -P samba_enable_home_dirs on
#
# If you create a new directory you want to share you should mark it as
# "samba-share_t" so that selinux will let you write into it.
# Make sure not to do that on system directories as they may already have
# been marked with othe SELinux labels.
#
# Use ls -ldZ /path to see which context a directory has
#
# Set labels only on directories you created!
# To set a label use the following: chcon -t samba_share_t /path
#
# If you need to share a system created directory you can use one of the
# following (read-only/read-write):
# setsebool -P samba_export_all_ro on
# or
# setsebool -P samba_export_all_rw on
#
# If you want to run scripts (preexec/root prexec/print command/...) please
# put them into the /var/lib/samba/scripts directory so that smbd will be
# allowed to run them.
# Make sure you COPY them and not MOVE them so that the right SELinux context
# is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts
#
#--------------
#
#======================= Global Settings =====================================

[global]
#--authconfig--start-line--

# Generated by authconfig on 2009/05/11 15:00:36
# DO NOT EDIT THIS SECTION (delimited by --start-line--/--end-line--)
# Any modification may be deleted or altered by authconfig in future

workgroup = mills
password server = mills.com
security = user
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = false
winbind offline logon = false

#--authconfig--end-line--

# ----------------------- Netwrok Related Options -------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
; workgroup = MYGROUP
server string = Samba Server Version %v

; netbios name = MYSERVER

; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.

glennzo
12th May 2009, 09:19 AM
Thank you for the information. Is this just a home setup or is it something you're doing at work? If it's a home setup here's what I'd use for the smb.conf file.

#======================= Global Settings =====================================
[global]
workgroup = workgroup
server string = Samba Server Version %v
netbios name = LAPTOPBETA
log file = /var/log/samba/log.%m
security = share
Short and simple. Backup the original before you make changes.
Run testparm after making changes.
Restart samba

su -c '/sbin/service smb restart'
su -c '/sbin/service nmb restart'

Select System > Administration > Printing from the menu and add a printer. Choose Windows printer via Samba. Browse for the printer and the system should find it.

Some detailed help here http://www.johnson.homelinux.net/mywiki/Printer_Setup for Fedora 9. This will be very similar to Fedora 10's process.

M.Wajid
14th May 2009, 11:53 AM
I am working in an organization
Here windows based domain is used
the fedora system is not joined to domain

still samba not browsing the computers

glennzo
14th May 2009, 12:28 PM
Did you make the changes to the smb.conf file and have a look at the link I provided?

M.Wajid
15th May 2009, 07:28 AM
i have make changes and visit link
but it is not browsing the domain computers