Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Home Networking

  Date: Dec 11    Category: Unix / Linux / Ubuntu    Views: 468
  

I've never worked with home networking under Linux. I currently have my
Linux box and a XP machine both hooked to a linksys router that connects
to my Satellite modem box and both go to the Internet fine.

Now I would like to be able for both computers to talk to each other so
we can look at, copy and move files (pictures and documents mostly)
between the two machines.

I've been all over the Internet and have tried all sorts of things, so I
don't really know what state my files and configs and things are in
right now.

Can you give me an idea of where to start and what to do? what apps do
I really need on my computer and how do I set things up?

BTW - I'm running 9.04 under a Gnome desktop, but have all the KDE
desktop also installed and have run under that, but I don't like the new
KDE so I'm just using Gnome right now.

Share: 

 

20 Answers Found

 
Answer #1    Answered On: Dec 11    

you could use samba for file sharing between the pcs..

 
Answer #2    Answered On: Dec 11    

Here's what I have found is the easiest way:

On the Windows machine, you might need to go to "Local Area Connection
Properties" and make sure "File and Print sharing for Microsoft
Networks" is enabled.

On the Windows machine, create a folder to be shared on your network.
In Windows Explorer, right-click on the folder, and select "sharing and
security." A small window will pop up where you can check boxes
labelled, "share this folder on the network," and "allow network users
to change my files." Also enter a "share name." Copy a couple of files
into the folder.

Immediately, all other computers on the network can access that folder,
including other Windows systems.

On Ubuntu, open Places/Network. It should show you, "Windows Network."
Double-click on that, and it should show you the "workgroup" specified
on the XP machine. Double-click on that, and it should show you the
computer name. Double-click on that, and it should show you the "share
name" you entered above. Finally, double-click on that, and there's
your folder.

You can copy and paste files both ways, from your Windows computer, or
to your Windows computer. Or you can play songs or view videos,
anything you could do from Nautilus with files on your computer.

 
Answer #3    Answered On: Dec 11    

I've done all of the above, but when I click on Places>Network>Windows
Network, I get the following error:

UNABLE TO MOUNT LOCATION: Failed to retrieve share list from server.

I'm assuming that this is a problem on the Windows side?

I made sure that FILE AND PRINTER SHARING was turned on, and that the
two folders I wanted were set to share.

Windows can't see my Linux computer either. Maybe it's a gateway/router
problem?

 
Answer #4    Answered On: Dec 11    

You need swat and system-config-samba as well as samba. After getting
these, under administration, use samba to set up the name of your
network to the same as the network on your Windows computers. You also
need to set up your shares and allowed users.

 
Answer #5    Answered On: Dec 11    

ype ipconfig in your windows command prompt.. and ifconfig in your ubuntu
terminal a nd make sure both machines are getting an ip address.. note that
down.. and in windows explorer type \\x.x.x.x where x.x.x.x is the ip of the
ubuntu machine.. and to access windows shares type smb://x.x.x.x in
places->computer (under location) . where x.x.x.x is the ip of the windows
machine

 
Answer #6    Answered On: Dec 11    

I can now browse the Windows machine from the Linux box fine.

But, when I type the Linux IP address into the Windows Explorer address
bar, it opens a tab in Firefox and I get a simple html page of

IT works!

<html><body><h1>It Works!</h1></body></html>

So now what?

 
Answer #7    Answered On: Dec 11    

BTW, here is the ifconfig output from Linux:

eth0 Link encap:Ethernet HWaddr 00:0b:db:10:13:ca
inet addr:192.168.6.101 Bcast:192.168.6.255 Mask:255.255.255.0
inet6 addr: fe80::20b:dbff:fe10:13ca/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43035 errors:0 dropped:0 overruns:0 frame:0
TX packets:37165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41268950 (41.2 MB) TX bytes:3818496 (3.8 MB)
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1120 errors:0 dropped:0 overruns:0 frame:0
TX packets:1120 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:87072 (87.0 KB) TX bytes:87072 (87.0 KB)

 
Answer #8    Answered On: Dec 11    

> You need swat and system-config-samba as well as samba...

I don't have swat or system-config-samba installed, yet I have full access to a
Windows share.

 
Answer #9    Answered On: Dec 11    

did you type \\192.168.6.101 ?? it shouldnt popup a html page..

 
Answer #10    Answered On: Dec 11    

No, I accessed the share through Nautilus, as spelled out in an earlier message.
No HTML popups.

Network/Windows network/workgroup/computer/share name/folder contents.

By the way, in an earlier post, the person said they were stalled at the
"computer name" stage, when the computer was running a firewall. I suggest that
the firewall refused to reveal the computer name, although it would show the
share name, and then the folder contents, once he entered the IP address.

 
Answer #11    Answered On: Dec 11    

When I typed that address into windows explorer it opened Firefox and
gave me that page. I since went to synaptic and removed apache2. Now,
typing in that address still sends me to Firefox but I get an error page
saying that the page load was interrupted, the connection to the server
was reset..

And when I try smb://192.168.6.101 it says that I MAY NOT have
permissions set up right.

So, now, how do I check that I have the correct permissions set up on
the Linux machine?

 
Answer #12    Answered On: Dec 11    

"testparm" (no quotes) in a terminal on the Linux machine will show whether
you have the shares set up properly.

 
Answer #13    Answered On: Dec 11    

Ok, can I just get rid of or comment out the SHARE MODES lines since
they have been deprecated?

Does this line need to be changed, since the Windows machine is
192.168.6.101?
interfaces = 127.0.0.1/8, 192.168.0.0/24



emil@ubuntu:~$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
WARNING: The "share modes" option is deprecated
Processing section "[netlogon]"
WARNING: The "share modes" option is deprecated
Processing section "[profiles]"
Processing section "[printers]"
WARNING: The "share modes" option is deprecated
Processing section "[pdf-documents]"
Processing section "[pdf-printer]"
Processing section "[Pictures]"
Processing section "[Documents]"
Processing section "[Music]"
Processing section "[Shared Files]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = AWP
netbios name = SAMBA24
server string = Samba file and print server
interfaces = 127.0.0.1/8, 192.168.0.0/24
bind interfaces only = Yes
update encrypted = Yes
client schannel = No
server schannel = No
allow trusted domains = No
obey pam restrictions = Yes
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n\n *ReType*new*password* %n\n
*passwd*changed*\n
passwd chat timeout =
120
username map =
/etc/samba/smbusers
password level =
6
username level =
6
unix password sync =
Yes
log file =
/var/log/samba/samba.log

max log size =
1000

name resolve order = wins lmhosts
bcast

client signing =
No

client use spnego =
No

socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192

printcap name =
cups

machine password timeout =
120

add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User
Account' -s /dev/null
'%u'
delete user script = /usr/sbin/userdel
'%u'

add group script = /usr/sbin/groupadd
'%g'

delete group script = /usr/sbin/groupdel
'%g'

add user to group script = /usr/sbin/useradd -d /dev/null -c
'Samba User Account' -s /dev/null -g '%g'
'%u'
delete user from group script = /usr/sbin/userdel '%u'
'%g'

add machine script = /usr/sbin/useradd -d /dev/null -g
sambamachines -c 'Samba Machine Account' -s /dev/null -M
'%u'
logon script =
%G.bat

logon path =
\\%L\profiles\%u

logon drive =
m:

logon home =
\\%L\homes\%u

os level =
33

local master =
No

domain master =
No

dns proxy =
No

remote announce =
192.168.0.255

remote browse sync =
192.168.0.255

idmap uid =
16777216-33554431

idmap gid =
16777216-33554431

template shell =
/dev/null

winbind separator =
@

winbind cache time =
360

winbind use default domain =
Yes

winbind trusted domains only =
Yes

winbind nested groups =
No

winbind nss info =
no

hosts allow =
127.192.168.0.

cups options =
raw

follow symlinks =
No


[homes]
comment = Home Directories
path = /home/
locking = No
share modes = No

[netlogon]
comment = Network Logon Service
path = /home/netlogon
read only = No
locking = No
share modes = No

[profiles]
comment = User Profiles
path = /var/samba/profiles
read only = No
create mask = 0600
directory mask = 0700
browseable = No
locking = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
locking = No
share modes = No

[pdf-documents]
comment = Converted PDF Documents
path = /home/pdf-documents
read only = No
guest ok = Yes

[pdf-printer]
comment = PDF Printer Service
path = /tmp
guest ok = Yes
printable = Yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j
use client driver = Yes

[Pictures]
path = /home/emil/Pictures
guest ok = Yes

[Documents]
path = /home/emil/Documents
guest ok = Yes

[Music]
path = /home/emil/Music
guest ok = Yes

[Shared Files]
path = /home/emil/Shared/ Files
guest ok = Yes
emil@ubuntu:~$

 
Answer #14    Answered On: Dec 11    

I'm no network guru so I'm almost as much at a loss as you! Every time I
have a network connectivity issue I go back to my "Ubuntu Linux Bible" by
William von Hagen and can usually find the solution. Maybe someone else on
here can help you now that you have provided the data from testparm.
A Google search on the wording of error messages and/or the nature of the
problem often brings up surprisingly helpful things.

 
Answer #15    Answered On: Dec 11    

Thanks for suggesting "Ubuntu Linux Bible"

Consulting J Wiley web page indicates that this von Hagen title was published
Jan 2007.

Can anyone recommend a similar comprehensive manual published more recently?
Two plus years is just a little too old to want to spend about $50. I already
have a shelf of obsolete linux manuals.

 
Answer #16    Answered On: Dec 11    

Amazon has it for $8.27 new, $4.29 used, plus $3.99 shipping. I just purchased
one for
$12.26 = 8.27 + 3.99
It may be 2 years old but not bad for a 900+ page book. It may be a little out
of date but most of it is still relevant.

 
Answer #17    Answered On: Dec 11    

I think this is available on the web as a free download. I have a .pdf version
(2007; 46MB) but at the moment I do not remember where it came from. Even though
it is 2 years old, it helped me get started.

 
Answer #18    Answered On: Dec 11    

If you google "ubuntu linux bible" (using the quotes) it pops right up.
However, it is certainly a copyright infringement.

 
Answer #19    Answered On: Dec 11    

Do you happen to have the Windows firewall turned on? I've found that it
interferes with sharing. You shouldn't need it as long as the firewall inside
your LinkSys router is working. The router's firewall shouldn't interfere with
local file sharing.

(Digression: Check your firewall with Steve Gibson's free "Shields Up" test at
<http://grc.com> .)

You shouldn't need any additional Linux packages to connect to a folder on your
Windows machine while sitting in front of your Ubuntu machine. To go the other
way - sitting in front of your Windows machine and opening folders on the Ubuntu
machine - see if you have these Samba packages installed:

libsmbclient
nautilus-share
samba
samba-common
samba-doc
smbclient

Probably overkill. Nautilus-share is for Gnome. I'm not sure what you'd need
for KDE. The "samba-doc" package is documentation.

You may also need to create a Samba login/password. This can be identical to
your usual Ubuntu login/password, but is separately maintained:

sudo smbpasswd -a <username>

It will prompt you for a new password twice (after sudo prompts you for your
password, as usual).

 
Answer #20    Answered On: Dec 11    

Windows firewall is turned on, but under the folder sharing screen it
tells me that it will pass the folders through the firewall. Anyway, I
can now get to windows from linux, but I'm still having problems going
the other way.

 
Didn't find what you were looking for? Find more on Home Networking Or get search suggestion and latest updates.




Tagged: