LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2005, 03:56 PM   #1
apalmela
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Print from Windows to Linux ?


Hello all.
I have recently installed Kubuntu 5.10 on my PC.

The network is based on a router with 3 PC connected. 1 Kubuntu and 2 WIN XP.
In Kubuntu I can access all the shared files on the XP.

What I don't know how to do is to configure both XP to access the Linux shares (Folders and Printer)
Can anybody give a hand ?

Thank you in advance

Best regards

André
 
Old 10-14-2005, 04:30 PM   #2
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
The answer to your question is SAMBA. It is probably already installed on your system.

It is not that easy to set up but you'll get there in the end.

Become root.

Backup /etc/samba/smb.conf.

Edit the file /etc/samba/smb.conf. It is very heavily commented. Do this in conjunction with reading the docs in /usr/share/doc

However, before you start upgrade to the latest versions of the suite - there have been some changes.

Assuming that you use CUPS printing, the most, but not only, vital bit is this:

Code:
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   public = yes
   create mode = 0700
   guest ok = yes
   printer admin = root, @ntadmins

and make sure that everybody has read/write rights in /var/spool/samba.

Save the file then use:

Code:
smbcontrol smbd reload-config
to activate the changes.

Try to use the printer from a Win PC and when it doesn't work look at /var/log/samba/log.<windows_machine_name> to find out why.

Post back with problems.
 
Old 10-14-2005, 11:44 PM   #3
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
Also
In /etc/samba/smb.conf
Please make sure that
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MSHOME

i.e. if the domain/workgroup name on windows is MSHOME then in /etc/samba/smb.conf
workgroup should be the same.

To login to your shares on linux from M$ you have to :
1: make a user on linux
#useradd someone
2: give it a password
#passwd someone
this thing added a user on your linux box. now you have to enable this account for samab share.

1:add the user into samba data base
# smbpasswd -a someone

2:Now enable this user:
#smbpasswd -e someone
you should get message :
Enabled user someone.

reload the samba configuration
#smbcontrol smbd reload-config
OR
restart the samba service
#service smb restart

The easiest way for configuring samba is threw swat (samba web administrative tool).

which can be accessed threw ur browser(if swat service is running).
http://localhost:901
or
http://127.0.0.1:901
make sure if it insalled or
download swat (samba web administrative tool)
and start the swat service to configure samba.
 
Old 10-16-2005, 10:01 AM   #4
apalmela
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for all your help!

I could configure the access to Linux (Windows Accessing Linux).

The problem now ... is that i figured it out that I can't print in the linux.

I configured the printer (HP Deskjet 820C) but when I try to print a test page, nothing happens.....

What could be wrong ?

Thank you once again.

Best regards
André
 
Old 10-30-2005, 05:45 PM   #5
bayvista
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Ubuntu Breezy Badger 5.10
Posts: 24

Rep: Reputation: 15
Printing from Windows to Linux

Hi,

I am also having problems in this area and would appreciate help. I have 2 Windows XP clients connected to a Mandrake 9.2 File Server. The server has a HP Deskjet 960 connectet via USB and working for local print.

I have installed Webmin and this is working.

I can read and write files to the server from both Windows PCs.

I have tried various Samba configurations including those above without success.

My current SMB.CONF file reads:

[global]
workgroup = bayvista
netbios name = linuxpc
security = share
[documents]
path = /data
guest ok = yes
public = yes
guest account = david
browsable = yes
writable = yes

What do I need to add to this to share the printer with Windows?

Regards

David
 
Old 10-30-2005, 11:24 PM   #6
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
You need at least:


[global]
load printers = yes
printing = cups
printcap name = cups

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
public = yes
create mode = 0700
guest ok = yes
printer admin = root, @ntadmins


NOTE the browseable = no line. important.

You might like to see if this works, commenting out anything else to do with printers as some options seem to conflict with each other.
 
Old 10-31-2005, 05:17 PM   #7
bayvista
LQ Newbie
 
Registered: Jul 2005
Location: Sydney, Australia
Distribution: Ubuntu Breezy Badger 5.10
Posts: 24

Rep: Reputation: 15
Thanks - I tried that config and got the following error message:
[2005/11/01 10:03:52, 0] lib/util.c:smb_panic(1094)
PANIC: internal error
[2005/11/01 10:03:52, 0] printing/print_cups.c:cups_printername_ok(336)
Unable to connect to CUPS server localhost - Connection refused
[2005/11/01 10:03:52, 0] smbd/service.c:make_connection(252)
davidspc (192.168.0.2) couldn't find service ::{2227a280-3aea-1069-a2de-08002b
30309d}

Also, once my config is correct, how do I connect from my Windows?

Should I use Webmin or SWAT?

Can not get SWAT to work. It says: ¨could not connect to remote server¨

Last edited by bayvista; 10-31-2005 at 05:23 PM.
 
Old 10-31-2005, 06:40 PM   #8
apepost
Member
 
Registered: Oct 2003
Distribution: Fedora core 4
Posts: 113

Rep: Reputation: 15
Quote:
Originally posted by bayvista

Also, once my config is correct, how do I connect from my Windows?

Should I use Webmin or SWAT?
The same way you connect to other windows computers.
"my network places" or something.
 
  


Reply



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
How to add a windows print server to Linux? jon_k Linux - General 3 12-01-2005 02:22 PM
Print on Windows from Linux with LDP mvo Linux - Newbie 4 05-09-2005 04:22 PM
Linux Print Server for Windows Clients ericpolanco Linux - Wireless Networking 2 02-24-2005 11:57 AM
Cannot print to Linux printer from Windows 2k paranoia1980 Linux - Hardware 5 09-16-2003 10:29 PM
Can't print to Windows printer from Linux RedHat 7.2 LinuxJuanaBe Linux - Newbie 10 05-05-2002 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:37 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
Open Source Consulting | Domain Registration