LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu 11.04 talking to Windows 7 ... the easy way? (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-11-04-talking-to-windows-7-the-easy-way-898803/)

gael33 08-22-2011 12:34 PM

Ubuntu 11.04 talking to Windows 7 ... the easy way?
 
My wife uses Windows 7, I use Ubuntu 11.04. We share a wireless router (Netgear). My computer is in my Office, her computer is tucked away in the corner of the living room. She has a Samsung Laser Printer wired to her computer. I need to find a way of connecting to the Laser Printer through her computer. I am not a technical wizzkid, I'm an author, so I would be grateful if someone would help me by sending simple, step by step instructions on how to achieve the connection between my computer and the wired laser printer connected to the computer running Windows 7.

Many thanks.

yancek 08-22-2011 12:38 PM

The site below explains it for vista so it should be similar for win 7:

http://www.watchingthenet.com/connec...computers.html

gael33 08-22-2011 03:24 PM

Quote:

Originally Posted by yancek (Post 4450326)
The site below explains it for vista so it should be similar for win 7:

http://www.watchingthenet.com/connec...computers.html


Thanks for the link. I'll give it a go as soon as my wife as finished working on her PC.
I'll let you know if it worked in a day or two ... keeping my fingers crossed :)

allwimb 08-22-2011 03:50 PM

Yeah thank you yancek for the link it's really very interesting.

spring logout

gael33 08-22-2011 05:28 PM

Okay, I tried to follow the instructions, but without success. Maybe, somebody has the answer to the problem as I certainly don't. I managed to install my wife's printer so that it shows on my computer ... however, in the printer settings it says this.

Description; Samsung CLP-620
Location; Living Room (is that the answer that was expected?)
Device URI; I put in the Computer IPv4 Address and the Gateway Address (is that correct?)
Make and Model; Samsung CLP-620 Foomatic/foo2qpdl (Recommended).
Printer State; idle, unable to connect to CIFS host, will try again in 60 seconds.

The tutorial recommended above does not give all the answers ... unless I have step for step instructions on how and what to type into the relevant boxes this adventure into techie land will have been in vain ... I just don't have the technical know how to complete the task.

yancek 08-22-2011 07:02 PM

Are you getting the information you posted from CUPS or from the Ubuntu printer configuration?
It would be helpful if you would let us know what steps worked and what didn't and whether you had any warning/error messages.
The printer is plugged in and turned on?

Check the link below, Ubuntu 11.04 specific:

http://www.liberiangeek.net/2011/04/...natty-narwhal/

frankbell 08-22-2011 08:47 PM

Is Samba running? If it's not, start Samba and run

"smbclient -L [print server]"

where printserver = the name or the ip of the Windows computer.

That will tell you how Linux is seeing the server name and the printer sharename. You can then use that information to configure the network printer in CUPS.

Also, verify that the printer is properly shared under Windows.

Edit: It's been a while since I had to set something like this up, but I think you have to have the Samba daemon running to print to Windows using CUPS.

gael33 08-23-2011 03:55 AM

Quote:

Originally Posted by frankbell (Post 4450681)
Is Samba running? If it's not, start Samba and run

"smbclient -L [print server]"

where printserver = the name or the ip of the Windows computer.

That will tell you how Linux is seeing the server name and the printer sharename. You can then use that information to configure the network printer in CUPS.

Also, verify that the printer is properly shared under Windows.

Edit: It's been a while since I had to set something like this up, but I think you have to have the Samba daemon running to print to Windows using CUPS.

Here is the message I got when I typed in smbclient etc ...
gae33@gael33:~$ smbclient -l 192.168.0.1
Usage: smbclient [-?EgBVNkPeC] [-?|--help] [--usage]
[-R|--name-resolve=NAME-RESOLVE-ORDER] [-M|--message=HOST]
[-I|--ip-address=IP] [-E|--stderr] [-L|--list=HOST]
[-m|--max-protocol=LEVEL] [-T|--tar=<c|x>IXFqgbNan]
[-D|--directory=DIR] [-c|--command=STRING] [-b|--send-buffer=BYTES]
[-p|--port=PORT] [-g|--grepable] [-B|--browse]
[-d|--debuglevel=DEBUGLEVEL] [-s|--configfile=CONFIGFILE]
[-l|--log-basename=LOGFILEBASE] [-V|--version]
[-O|--socket-options=SOCKETOPTIONS] [-n|--netbiosname=NETBIOSNAME]
[-W|--workgroup=WORKGROUP] [-i|--scope=SCOPE] [-U|--user=USERNAME]
[-N|--no-pass] [-k|--kerberos] [-A|--authentication-file=FILE]
[-S|--signing=on|off|required] [-P|--machine-pass] [-e|--encrypt]
[-C|--use-ccache] service <password>
gae33@gael33:~$

Unfortunately, the techie speak is beyond my comprehension ... In other words I don't understand what any of this means :(

gael33 08-23-2011 04:01 AM

Quote:

Originally Posted by yancek (Post 4450638)
Are you getting the information you posted from CUPS or from the Ubuntu printer configuration?
It would be helpful if you would let us know what steps worked and what didn't and whether you had any warning/error messages.
The printer is plugged in and turned on?

Check the link below, Ubuntu 11.04 specific:

http://www.liberiangeek.net/2011/04/...natty-narwhal/

My wife's operating system is Windows 7 and the setup for network printers is completely different than the one shown in the tutorial ... without a guide I am lost, sorry.

yancek 08-23-2011 10:21 AM

How about this, a little more detail:

http://www.liberiangeek.net/2010/11/...erick-meerkat/

gael33 08-23-2011 02:14 PM

Quote:

Originally Posted by yancek (Post 4451180)
How about this, a little more detail:

http://www.liberiangeek.net/2010/11/...erick-meerkat/

You were quite right about the tutorial being more up to date, however, I followed the instructions to the letter and it still didn't work ... thanks for all your help and patience.
I'm obviously not knowledgeable enough to complete this exercise at this moment in time. Perhaps in the future :)

yancek 08-23-2011 06:02 PM

Well, good luck with it. I thought that tutorial was about as good as it would get on both sides.

frankbell 08-23-2011 07:40 PM

The first time I set up networked printing to a Windows printer, it took me several hours across several Saturdays to get it working, not because it's hard, but because I had to learn. I also stumbled over a great page on how to do it written by someone who had just learned how, so it was written in just the right language for those of us who didn't know. Unfortunately, that page is long gone.

Looking at the output of smbclient that you posted, I would guess that the syntax of the command was not proper. When that happens, Linux often will show an abbreviated "help" display.

Let's say the ip address of your wife's computer is 192.168.1.107.

The command would then be

Code:

smbclient -L 192.168.1.107
The response should like like this, after entering the appropriate password:

Code:

Domain=[NARWHAL] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

        Sharename      Type      Comment
        ---------      ----      -------
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        F$              Disk      Default share
        IPC$            IPC      Remote IPC

(text snipped)

If the computer's name is NARWHAL and local DNS is working, entering

Code:

smbclient -L narwhal
should elicit a similar reponse (case doesn't matter in this specific example--I just tested).

(My printer is directly on the network, so I can't actually show a Windows printer in the output of the command, but it would be there. You would then have the proper server name and printer name to enter in the CUPS configuration.)

chrism01 08-23-2011 08:23 PM

Its case sensitivity that the OP failed on
Quote:

gae33@gael33:~$ smbclient -l 192.168.0.1
He used lowercase L, whereas the instruction (post #7) was (correctly) to use upper-case, and you can see that confirmed in the output he obtained from the above cmd.

@gael33; if you read this you need to know that Linux is case sensitive for everything ie cmds, options, filenames etc.
HTH

Here's a really good tutorial on Linux at the cmd line http://rute.2038bug.com/index.html.gz


All times are GMT -5. The time now is 11:55 AM.