LinuxQuestions.org
Visit Jeremy's Blog.
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-25-2011, 02:31 PM   #1
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Rep: Reputation: Disabled
No network printer after upgrade


Hello Everyone

I posted this thread about a week ago in the hardware section and got no response I know it's kinda against the rules to duplicate a thread ( I got my wrists slapped for it before) but I just dont know what else to do but if any of the admins feel it's inappropriate please delete this and accept my appologies

My problem is that immediately after upgrading from Ubuntu 10.04 to 10.11 I seem to have lost connection to a network printer connected to a windows PC, when I go into printer settings it says beside printer state "Unable to connect to cifs host,will try in 60 seconds" then if I try to print anything it says "Connection failed:NT_Status_Unsuccessful", I logged into localhost:613 and everything seemed ok the only thing i tried was I checked the box to make available to all users to no avail, can anyone please suggest anything I can try to resolve this any help would be greatly appreciated

Many Thanks

Emegra
 
Old 10-25-2011, 03:16 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,143

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
Here is a How To that may help. It is an older version of Ubuntu, however I don't think much has changed here.

-->http://heatware.net/linux-unix/add-i...-ubuntu-linux/

I have added a windows printer form an XP system, however, XP died, and after the re-install, the system left the house. So I can not duplicate the install.

Give it a try, and post any problems you have. If I remember, you need the driver on the linux system for the remote ( windows ) printer. You can not download the windows driver to linux.

It is also possible to add a network printer through cups. Give the above a go, let us know how it goes.
 
Old 10-25-2011, 03:28 PM   #3
hen770
Member
 
Registered: Oct 2010
Distribution: Arch
Posts: 136

Rep: Reputation: 7
To the computer's other share you can connect?
 
Old 10-25-2011, 05:06 PM   #4
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Hi Cliff
Thanks for your help I looked at the link you posted but unfortunately it doesn't help I get as far as selecting a windows share via samba then when I select the share/path (MSHOME/Pat) no printers show up, I done this when I first installed Ubuntu 10.04 only a few weeks ago (my first try with linux) and it all went like clockwork, this problem's only occurred since I upgraded to 10.11 last week, I can access the printer from my windows xp installation ok so I assume the printer is shared ok, when it first happened the printer was still listed although it wouldn't connect but since then I tried uninstalling then reinstalling cups and now it's not listed at all, I can connect to the pc the printer's attached to (running win xp) and a freenas server I also have connected to my network so I don't think it's a network problem but my computer knowledge is very limited and my Linux knowledge even more so but if there is anything else you can suggest I'm willing to try.

Hi hen770
I'm not sure I understand your question but if you mean can I connect to other shares on my network the answer is yes I can connect to all my other shares which is a windows pc and a freenas server I hope that answers your queston thank you

Many Thanks

Emegra

Last edited by Emegra; 10-25-2011 at 05:07 PM.
 
Old 10-25-2011, 06:46 PM   #5
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,143

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
What is the windows version on the system the printer is attached to? Since we know it worked on the older version, we could be dealing with some incompatibility, between the server, and the version of samba client on the new install.

If you are running Webmin, you can easily check the samba client version in there. If not, then open up Synaptics Package Manager, type samba in the search field, and click on 'installed' in the left column. Find samba-common package, it should be installed, and find the version you are using. This may not fix anything, however it is a possibility we should look at. Post the version please.

One more question, can you connect from the linux system to another share on the windows print server machine?
 
Old 10-26-2011, 01:10 AM   #6
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Hi Cliff Thanks again for your reply

The windows version the printer is attached to is xp pro I don't know what webmin is but I checked in synaptic and I think the version number you're looking for is 2:3.5.11~dfsg-1Ubuntu2, I don't have any other printers connected to my windows share that I can try but I can connect to shared folders etc, if it's any help the printer model is a Brother DCP-120C

Many Thanks

Emegra
 
Old 10-26-2011, 09:13 AM   #7
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,143

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
You do not need Webmin installed, if it is, it makes it easy to determine samba version, configuration, etc.

What we know so far, you can print to the print server from other windows systems. It used to work from Ubuntu 10.04 LTS, and an upgrade to 10.11 has stopped your ability to find the printer, and add it. You can connect to a shared data folder on the same server from Ubuntu.

Since Ubuntu was updated, have you got a correctly updated /etc/hosts file? If you are not familiar, it is the first place the kernel routing code looks for an IP address when you use a name. I have had many problems resolved by updating this file, and putting a copy on all systems in the network; including windows systems. Its a simple text file. Here is a few lines from my system.

Quote:
127.0.0.1 localhost
192.168.x.26 duelie.cliffshome.org duelie
192.168.x.22 Presto presto
192.168.x.23 snail Snail
Note, I X'ed out the third digit, for security reasons. It needs to be correct. Any time you are using servers, I strongly recommend fixed IP addresses. If you use DHCP, then consider registering the MAC addresses to always get the same IP address. This can be set up in most routers. Mine is a Cisco router, and I know it can be done on most home routers. Of course you can set up static IP addresses as well. This way the router is not a moving target. On your windows systems, there will be a hosts file as well. Use the 'find files' function to locate it. You can make the file on one system, and just copy it to the rest. Its the same layout, a simple text file on both OS's. You do not need fully qualified names on a home system. The tow named entries are the name, followed by an alias name.

Have you gone into System-->Admin-->Samba-->Preferences, and verified Workgroup on Samba is set the same as your windows systems? I think you said is set to MSHOME in a previous post.

After you verify ( or update ) the above, would you try to do an Add Printer from Cups? http://localhost:631 in the location bar on your web browser. If you make changes, make sure you restart Ubuntu before you try to add the printer. You should be able to browser the network for the printer. Add printer is under the Admin tab in Cups.

Let me know how it goes...
 
Old 10-26-2011, 05:13 PM   #8
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Hi Cliff

Sorry I've taken so long to get back to you I've been working late and I'm a bit tired, I've read your post and although I partly understand I dont feel confident enough to change any files,(Knowing me I'd screw things up) my fundamental understanding of all things computer is very limited, I've tried various things to at least give you something tangible to work on to no avail, I did however install webmin and browse through it it seems very comprehensive and maybe with some guidance I can identify and sort out the problem from within there but I'll follow what ever advice you suggest I appreciate your time and your patience

Many Thanks

Emegra
 
Old 10-27-2011, 09:37 AM   #9
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,143

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
Now that you have Webmin installed, you can use it to view and updated Samba, and the /etc/hosts file.

I would suggest you start with the hosts file first. It is very easy to update using Webin.

Log into Webmin. In your browser, https://localhost:10000 should get you the login screen. Note, if https does not work, http should work, assuming the Webmin daemon is running. Webmin when first installed requires you to log in as the root user. You can, if you like create a user for yourself. It is not necessary, I find this more convenient. Webmin is designed so you can have many users, each user can have access to different parts of the system. See "Webmin Users" under the Webmin tab.

O.K. The hosts file. Once logged in, Networking-->Network Config-->Host Addresses. Click on 'Add a new host address.' This gives a box to enter the IP address in dotted decimal format, and a box for Hostnames. Click create, the list is updated. What you are doing here is editing the plain text file /etc/hosts on your linux system. You need an entry for each system you want to communicate with.

The success here all depends on how you set your network up. Static IP addresses or DHCP. DHCP is a server, that hands out IP addresses on request. Most home routers come with one. In windows, if you select 'Automatic' in the network setup for your network interface, you are using DHCP. So, have a look at your windows system(s) to see if this is what is set. It will be, unless you set up static IP addresses.

The problem with DHCP is the IP addresses are handed out in the order in which the machines connect to the server ( your router ). Form boot to boot, the IP address of a particular machine can and will be different. ( assuming you have more than one system accessing the router asking for IP addresses. So you may wonder how does this work for Windows systems finding each other on a network? They rely on names resolution to function. It does work, well most of the time, however, not always with Samba. ( I'm not a expert at this either, form experience I found static IP addresses work with both OS's; DHCP + names resolution is a hit and miss at best ). Since the problem you have is finding a resource, we need to eliminate the can't find it problem.

There are two ways to ensure a system always gets the same IP address.

1. Static configuration. This just means you pic an IP address, config it, and that is that. You can do that in windows and linux. You the sys admin can decide who gets what address. ( Power is fun. ) Most home routers support 254 separate IP addresses. ( Class C NAT ). So, you have lots to choose from.

Do you know how to connect to your router and view/modify its configuration? What make and model of router do you have? Most home routers have a sticker on the bottom with this info. If you post this info, most home routers have online doc that tells you how to configure them. You may have a CD that came with the router that has the same information.

2. Use DHCP, modify your router so a specific MAC address always gets the same IP address.

This solution works also, and is the what I do on my home network.

What you do is find the MAC ( Media Access Control address ) address of each system in your network that you want using a specific IP address. Each manufacturer burns a MAC address in every network card they make. If you change cards, you change MAC addresses. To find the MAC address in windows; go to Network Connections in the control panel. Open the one you are using, on the Support tab, click Details, the MAC address is wrongly named my Micr$oft in XP as Physical Address. Example - 08-00-27-15-D2-8A . Your address(s) will be different for each systems network card. Just write them down carefully.

In your router there will be a function to assign IP addresses based on MAC ( Physical addresses ). In there you enter the physical address and a valid IP address you want assigned. This way when a system connects, it always gets the same IP address and is not a moving target. On my router the function is called 'DHCP Reservations'. It may be called something different by different manufacturers. In that function you enter the MAC address and the IP address of each system using DHCP.

I did this with my netbook running Ubuntu 10.04 LTS. I run a samba server on it, I can always see it on the network, including the printers.

Samba. I have never asked you if you are running just the client on Ubuntu, or are running client and server. Client code in installed by default on a full install. Server is added through Synaptic package manager. You only need the server code if you want to share file or print resources on the Ubuntu system.

You can look in Synaptic Package manager, search 'Installed Packages' and samba in the search bar. There are at least three packages for the server, you will see a client, samba-common and samba-server if you have the server. Let me know what you have.

In Webmin, you can access Samba config. Servers-->Samba Windows File Sharing. That gives you a two groups of icons, each looking at different aspects of the config. Windows Networking Options will show you the Workgroup Name samba is using. Please verify it matches the one you use on your windows print server 'MSHOME' in your case.

I would suggest also you install SWAT on your Ubuntu system. SWAT will add an icon in Webmin, and is a much nicer tool to administer samba with. Once installed, access the samba config in webmin, click the swat icon, and log in as root user. You have full and easy control of Samba.

I hope this helps. Let me know how it goes, there is no panic, you are working, I understand...
 
Old 10-27-2011, 03:59 PM   #10
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Hi Cliff
Thank you so much for all that information If I had the money I'd send you the air fare and let you come over and sort it out for me but I suppose if nothing else I'm learning,once again I've been working late and I want to go through it all with a fresh mind over the weekend but I'll be back to let you know how I get on asap, Once again I can't thank you enough for you time and patience

Emegra
 
Old 10-27-2011, 06:21 PM   #11
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,143

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
You are welcome. Take your time, and best of luck.
 
Old 10-29-2011, 03:00 PM   #12
Emegra
Member
 
Registered: Sep 2011
Location: Dundee, Scotland
Distribution: Mint Maya 13
Posts: 104

Original Poster
Rep: Reputation: Disabled
Hi Cliff

The first thing you suggested in your last post worked a treat I can't believe how easy it was, I was honestly beginning to just accept I can't fix this and I can't use that printer anymore and not waste anymore of your time, the only problem I had was that my printer (Brother DCP 120C) was probably the only printer not listed in the driver database, so I went to the Brother website to see if i could download a Linux driver and it said to use MFC-210C driver for my model which was in the driver database so I installed that and everything worked fine all I had to do was rename the printer to it's correct name

Finally Thanks so much for your patience and help I could never have sorted this out myself, I also appreciate the plain English step by step way you explained things to me,that makes such a huge difference to someone with a limited and basic knowledge like myself.

Many Thanks

Graeme
 
Old 10-29-2011, 04:05 PM   #13
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,143

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
Yea! Success!

You are most welcome.
 
Old 10-30-2011, 01:41 AM   #14
hen770
Member
 
Registered: Oct 2010
Distribution: Arch
Posts: 136

Rep: Reputation: 7
Glad it work!
Mark your thread as solved, ao it can helps others.
 
  


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
hp-setup and network printer or hpcups and system-config-printer ToK Linux - Software 2 03-18-2011 10:05 AM
Brother HL2070N network printer installed, print jobs stuck in printer que jgz Linux - Networking 0 02-14-2008 10:54 PM
Installing Canon LBP USB Printer as network printer on a Fedora Core without XWindow boy3dfx2 Linux - Newbie 5 06-03-2006 01:23 PM
CUPS Network Printer/ server indicator blinks no printer output wine Linux - Networking 8 03-18-2006 10:20 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM


All times are GMT -5. The time now is 02:55 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