Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
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.
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.
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.
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.
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.
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
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.
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:
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:
And try to mount the drive:
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.
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
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.
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!