LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-25-2012, 04:43 PM   #1
GranPaSmurf
LQ Newbie
 
Registered: Feb 2012
Location: Near San Antonio, TX
Distribution: Kubuntu 11.10
Posts: 13

Rep: Reputation: Disabled
network file sharing


I am running Kubuntu 11.10. I want to connect to my home network for file sharing. Others are Win7 and Vista using Linksys E4200. Kubuntu connects to internet but I cannot figure how to join the network. I am newer than newbie on Linux, though I consider myself a 'power user' on Windows.
 
Old 02-25-2012, 06:02 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
The answer to your question will almost certainly involve some form of Samba. I provide the link just as a resource for you to review. Xubuntu will certainly have samba in the repositories. So if you want to try samba, install it with apt-get/aptitude/synaptic/whatever you prefer.

In brief, you have two options.

1. If all you want is to access network shares on other Windows machines, then you probably only need to install the package smbclient. You would then "mount" a Windows share drive with the smbclient command in your Xubuntu filesystem. See the man smbclient docs for details.

2. If you want to allow your Windows machines to access your Xubuntu files just like it was another Windows machine, you'll need to install the full samba package and configure it to match your existing Windows network (e.g. workgroup name, set a netbios name for the Xubuntu machine, define shares, etc.).

Last edited by Dark_Helmet; 02-25-2012 at 06:03 PM.
 
1 members found this post helpful.
Old 02-25-2012, 06:48 PM   #3
GranPaSmurf
LQ Newbie
 
Registered: Feb 2012
Location: Near San Antonio, TX
Distribution: Kubuntu 11.10
Posts: 13

Original Poster
Rep: Reputation: Disabled
then full Samba, I guess

Thanks for the quick response. The next step in integrating the Kubuntu box into my home network is to make use of Synergy, so that a single keyboard/mouse will support both the main computer, Win 7 and the Linux machine. All the monitors are right in front of me. Since Synergy needs to see the machine in the network, I guess I cannot skip setting up the full Samba. Thanks again, I am off to read about and get Samba working.
 
Old 02-25-2012, 07:22 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
I can't say that I've ever used Synergy. I did a search for it, and came up with this page. My initial glance over their website leaves me with a "woeful documentation" impression.

That said, I did read that Synergy is "cross platform" and that, indeed, the initial page seems to show an Ubuntu machine on the left-most monitor. So there should be a Synergy client that will run natively on the Xubuntu machine.

If your goal is simply to have access to the computer using Synergy, you may not need Samba at all. Samba's purpose is for making a Linux computer capable of accessing Windows shares and/or making the Linux computer's files/printers appear as Windows shares.

In other words, I just wanted to make sure the distinction was clear.
 
Old 02-25-2012, 10:46 PM   #5
GranPaSmurf
LQ Newbie
 
Registered: Feb 2012
Location: Near San Antonio, TX
Distribution: Kubuntu 11.10
Posts: 13

Original Poster
Rep: Reputation: Disabled
I have used Synergy and heavily depended on it for years, though it has always been with Windows systems. At least for my setup, once I got used to having it, doing without it is like having one arm in a sling. Right now I have 3 machines running with 5 active monitors here in front of me, all controlled from my desk. To work, Synergy needs the machines to be on the same network, with network names, etc. Before I posted my question, the Linux machine was already connecting to internet, using the Linksys router, so I think I am partway there already.
Just in the last few days I took a 1 Tb drive off my primary machine and set it up as a USB drive connected directly to the Linksys 4200 router. It took me several days to work the kinks out and have all my Windows machines able to see the network drive. I use it for some backups and for storing images I use on websites I am responsible for. So the next phase I started today was to bring the Linux computer into the network and allow it to file swap with not only (but primarily) the network drive, but to also file-share with the Windows machines. When it is finally configured the way I want, it will be pretty efficient for my workflow.
Today I downloaded and installed Samba, at least the files I guessed were necessary. I haven't made it see the network yet, but tomorrow is another day.
You are right about Synergy, It has always been documentation and update deficient. A couple of years ago two or three new programmers signed on to the project so things are improving a bit.
I guess a future task will be getting the ability for the Linux machine to print to a printer attached to my primary Windows machine.
 
Old 02-25-2012, 11:09 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
To work, Synergy needs the machines to be on the same network, with network names, etc. Before I posted my question, the Linux machine was already connecting to internet, using the Linksys router, so I think I am partway there already.
To be honest with you, you probably don't need a network name. You could probably tell Synergy to use a local IP address directly (sans any network name). And any modern router should be configurable to allow static IP addresses for computers on your local network. And your Xubuntu box clearly on your local network if it can access the Internet through your router.

Though, again, because I've never used Synergy (and don't have a setup to experiment with), I'll defer to your experience if you're certain about it.

Quote:
So the next phase I started today was to bring the Linux computer into the network and allow it to file swap with not only (but primarily) the network drive, but to also file-share with the Windows machines.
Yeah, if all you wanted was to access the router-connected USB drive, all that would be necessary is smbclient on the Xubuntu box. But to file share, full-fledged Samba will be necessary.

Quote:
Today I downloaded and installed Samba, at least the files I guessed were necessary.
What I was getting at in a prior post is that you shouldn't have to get your hands dirty by downloading anything from the Samba website. There should be a Samba package in Xubuntu's repositories. That package should come with a near-ready-to-go configuration right out of the box. You would access the package manager to install the Samba package through the desktop menu at the top of the screen. Something like "System -> Administration -> Synaptic Package Manager" or "System -> Administration -> Software Center" -- something of that sort.

Though, again, I will defer to your experience if you're confident that you want something direct from the Samba folks--no package maintainer middle-men
 
Old 02-26-2012, 10:10 AM   #7
GranPaSmurf
LQ Newbie
 
Registered: Feb 2012
Location: Near San Antonio, TX
Distribution: Kubuntu 11.10
Posts: 13

Original Poster
Rep: Reputation: Disabled
OK, here is the update and question.
Based on what you wrote about network IP addresses, I re-worked my network. Using the Linksys set-up I gave each of my machines a static/reserved IP address. I now have 7 network connections, including wireless hook-up to BlueRay player and Dish Network DVR. BTW the Linux machine was already seen by the router when I opened it.
Based on your jogging my memory about the set-up configuration of Synergy being able to work with IP addresses I reworked the configuration of Synergy. Well, actually I uninstalled it with Revo uninstaller and cleaned up the left-overs. Bunch of restarts...then downloaded a fresh/current Synergy and installed it. Ditto fresh/current Synergy on Linux machine. The configuration worked fine and now, as we speak...well type, I am controlling 3 machines with a single keyboard & mouse. That makes troubleshooting a bit easier.
So now I am back to my first question. I am sure the Linux machine is on the network, both internet and Synergy working seems to prove that is so. I am lost as to having Kubuntu find the network drive I have attached to the router. The other windows computers in the network do connect to that network drive, by the way.
So I still need a walk-through of having the Linux - find/see/attach to/map to - the network drive.
 
Old 02-26-2012, 01:11 PM   #8
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Side note: Geez, I need to get my eyes checked. I kept referencing "Xubuntu" when you clearly said "Kubuntu" earlier. Not that important...

I'm happy to help get the Linux box to see the network drive. The place to start is: what did you use to tell your Windows machine how to connect? In other words, I assume you entered something like "//<computer IP or name>/<share name>" somewhere. Keep that in mind, jot it down somewhere, etc.

This next part, I'll have you go to a command line only because I'm not familiar with the KDE menu system. So I can't tell you what menus to select.

Open a terminal/console (called "Konsole" in KDE if I recall correctly)
At the command prompt, type:
Code:
sudo apt-get install smbclient
You'll be asked for your password to authenticate, and the package will be downloaded and installed.

Add a (temporary) new directory:
Code:
mkdir smb_test
And try to mount the drive:
Code:
sudo smbmount //<computer IP or name>/<share name> smb_test
If all goes well, you should see the contents of the network drive inside the smb_test directory.

If you do, I can help set things up so it will mount the drive in a specific location automatically. If there were problems, let me know. For problems, lt me know the command you tried and the exact error message given in response.
 
Old 02-26-2012, 03:04 PM   #9
GranPaSmurf
LQ Newbie
 
Registered: Feb 2012
Location: Near San Antonio, TX
Distribution: Kubuntu 11.10
Posts: 13

Original Poster
Rep: Reputation: Disabled
All went well until the final step. The mkdir worked, when I open Home in Dolphin I see a folder called smb_test. It is empty. In Konsole I typed the network name and windows share name.
sudo smbmount //JoyUsClear/PicsArchive smb_test
then my password.
the return says
smbmount: command not found
 
Old 02-26-2012, 03:15 PM   #10
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
That's odd. Maybe I got the package name wrong. Try installing package smbfs with:
Code:
sudo apt-get install smbfs
And then try the smbmount command again.

Side note: I could have sworn smbclient would have included smbmount, but I could be mistaken.
 
Old 02-26-2012, 03:31 PM   #11
GranPaSmurf
LQ Newbie
 
Registered: Feb 2012
Location: Near San Antonio, TX
Distribution: Kubuntu 11.10
Posts: 13

Original Poster
Rep: Reputation: Disabled
Now I havemount error: could not resolve address for JoyUsClear/PicsArchive smb_test
 
Old 02-26-2012, 03:48 PM   #12
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Alright, one more thing to try real quick:

Do you know the IP address associated with JoyUsClear? If so, try substituting the IP address in the command instead of the text-based name.

If you're not sure, then a follow-up question:

1. Did you need to do any configuration to the router when you plugged the drive into the router to share it? If so, review the settings to see if you assigned an IP address to the share. Use that IP address in the command

If you did not do any configuration and it was more-or-less plug-and-share, then the IP address to use might simply be the IP address of the router itself. Typically, if your network uses IP addresses of 192.168.1.X, the router is 192.168.1.1.
 
Old 02-26-2012, 04:13 PM   #13
GranPaSmurf
LQ Newbie
 
Registered: Feb 2012
Location: Near San Antonio, TX
Distribution: Kubuntu 11.10
Posts: 13

Original Poster
Rep: Reputation: Disabled
I tried:
sudo smbmount 192.168.1.108 smb_test
returned
mount.cifs: bad unc (192.168.1.108
I also tried each of the other static/reserved IP addresses with the same result/error
I also tried
sudo smbmount ip_192.168.1.108
with error
mount.cifs: bad UNC (ip-192.168.1.108)
 
Old 02-26-2012, 04:18 PM   #14
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Sorry, that was my mistake--I didn't clarify exactly what and/or how to substitute. Your smbmount command must still be this form:
Code:
sudo smbmount //<computer IP or name>/<share name> smb_test
So, substituting an IP address would have a command that looks like:
Code:
sudo smbmount //192.168.1.108/PicsArchive smb_test
 
Old 02-26-2012, 05:08 PM   #15
GranPaSmurf
LQ Newbie
 
Registered: Feb 2012
Location: Near San Antonio, TX
Distribution: Kubuntu 11.10
Posts: 13

Original Poster
Rep: Reputation: Disabled
Dark_Helmet,
I tried the format you gave and nothing happened. so far. maybe it is cranking in the background, but if so, I cannot tell. No error came back, so far.
But I have run out of time for this project today. I will leave the machine alone in case it really is doing something. I will post again in the morning.
Oh, and I hope I have made it clear, I really appreciate your help for the newbie!
Thanks!
 
  


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
Network File Sharing Brainfart damteke Linux - Newbie 4 10-21-2009 07:47 PM
xubuntu network file sharing!!! LINUX USER Linux - Software 3 07-25-2006 10:39 PM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 06:54 AM
Need help for file sharing over network Joey2619 Slackware 5 04-08-2004 02:19 PM
Network file sharing APOLLO Linux - Newbie 3 03-20-2004 03:09 PM


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

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