LinuxQuestions.org
Register a domain and help support LQ
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 09-27-2005, 01:44 PM   #1
aeuzent
Member
 
Registered: Jan 2005
Location: Maryland, USA
Distribution: Ubuntu/Debian
Posts: 102

Rep: Reputation: 15
Basic Samba Setup


I'm trying to set up a samba connection between my ubuntu linux machine and my xp machine. I have a printer on my ubuntu machine that I'm trying to share with the XP machine. I have samba up and working on my side but I ran into a brick wall when connection to the XP machine.

this is the response I get from smbclient
Code:
aeuzent@demonbox:~$ smbclient -L Pavilion8785C -N
Connection to Pavilion8785C failed
aeuzent@demonbox:~$ smbclient -L Pavilion8785C -N
Connection to Pavilion8785C failed
aeuzent@demonbox:~$ smbclient -L PAVILION8785C -N
Connection to PAVILION8785C failed
aeuzent@demonbox:~$ smbclient -L pavilion8785c -N
Connection to pavilion8785c failed
aeuzent@demonbox:~$ smbclient -I 192.168.123.158 -L pavilion8785c -N
Error connecting to 192.168.123.158 (No route to host)
Connection to pavilion8785c failed

By the way this machine is a dual boot with an XP os. The network connection works great through XP and I just want to be able to swap out the settings so that printer sharing works with the same settings no matter what OS I boot to.
 
Old 09-27-2005, 01:47 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Is 192.168.123.158 the ip address of the other machine? Is it on the same subnet as your ubuntu machine?
 
Old 09-27-2005, 01:56 PM   #3
aeuzent
Member
 
Registered: Jan 2005
Location: Maryland, USA
Distribution: Ubuntu/Debian
Posts: 102

Original Poster
Rep: Reputation: 15
Well that was dumb of me. It ends in 153 not 158.

So I'm a step closer
Code:
root@demonbox:/home/aeuzent # smbclient -I 192.168.123.153 -L pavilion8785c -N
timeout connecting to 192.168.123.153:445
timeout connecting to 192.168.123.153:139
Error connecting to 192.168.123.153 (Operation already in progress)
Connection to pavilion8785c failed
 
Old 09-27-2005, 01:59 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
I'm not sure you need to connect twice - just try with the ip address:
smbclient -L 192.168.123.153 -N

If that doesn't work add "-d 255" and post the output to see if we can see where it is failing
 
Old 09-27-2005, 02:02 PM   #5
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
If you're using cups, cups doesn't share by default. First, make sure your firewall port 631 is open. Then edit your (RH ie) /etc/cups/cupsd.config.

Example:
<Location />
Order Deny,Allow
Deny From All
#Allow From 127.0.0.1 <- this is what you probably have, comment it out because it's only your localhost
Allow From 192.168.2/24 <- change to your net/subnet, this is mine.
</Location>

If you have a setting for a special printer as;
<Location /printers/stylus-cx5200--1>
bla...
</Location>
Do the same there also.

Restart cups. After a little, go to Windows and set it up.
cups is really simple to setup once you understand the it. Getting there is the fun part.

Last edited by -X-; 09-27-2005 at 02:07 PM.
 
  


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
FC4, SAMBA & WinXP home basic setup help please?! :) KevinAlaska Linux - Networking 3 11-09-2005 10:53 AM
Basic wireless setup seriesx4 Linux - Wireless Networking 4 11-06-2005 02:20 AM
Help with basic VSFTPD setup t3___ Linux - Newbie 8 08-04-2005 12:44 PM
How to Setup Basic Webserver? simsjr Linux - Newbie 2 04-22-2004 04:21 PM
Need help with basic setup CodeWarrior Slackware 3 05-10-2003 09:06 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration