|
Home | Switchboard | Unix Administration | Red Hat | TCP/IP Networks | Neoliberalism | Toxic Managers |
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and bastardization of classic Unix |
Basic Networking Windows to Linux Fedora - www.reallylinux.com
Basic
Networking: Windows to
Linux
Fedora
by Mark Rais, Senior
Editor ReallyLinux.com and author of "Linux for the Rest of Us" 2nd Edition.
This article is for all of those readers asking for a very basic overview of networking Windows and Linux PCs. You may also benefit from my article: From Windows to Linux.
Can a Windows system and a Linux system talk together harmoniously? After all, there is a lot of work and personal data left on Windows PCs that many want to keep! So this question of networking the two systems is both reasonable and vital.
My response to the many beginners who inquire is that yes, indeed it can and should be done where ever necessary. Not only can it be done, but for years now a very concerted effort by many outstanding software developers has resulted in the creation of a file sharing protocol and tools known as SAMBA. This exotic sounding name is simply a name derived from the original UNIX SMB file sharing protocol.
But Samba is no longer simply a protocol. When used in the context of today's Linux flavors, you'll find that it includes a server (used to connect to other Windows or Linux PCs), a client, and even functions for workgroup and printer sharing. Most importantly, other PCs can connect to the Server via the Client and easily share files by simply dragging and dropping the files using a graphical interface.
Therefore, basic Windows file sharing can be done with relative ease if your Linux flavor includes the Samba tools. Of course, it also requires a little work on the Windows PC since any good communication comes from two sides!
The goal then, regardless which Linux flavor you're using, is to:
I include details for each of these steps in the article. Implementing the steps above is somewhat unique across every major flavor I've used. Some flavors will require you to select Samba tools at the very beginning of the installation process. Other flavors include the full Samba suite of tools as part of the package, ready to go. It depends so much on your flavor that I can't provide specific guidance without writing another fifty pages on the subject. I plan to release an indepth SAMBA article here in the future.
However, what I can share with you now are steps needed to implement Samba using Fedora as a tutorial or guide. These steps are for making a basic WindowsXP Home Edition available to Linux.
My assumption is that before you begin, you've already familiarized yourself with the Post-Installation Configuration article, and that you have the two PCs connected properly with a network hub and cables.
For most of us, the tools are preloaded and installed with the newest
flavor of Linux Fedora Core 2 and greater. However, there may be a time when
they did not get loaded. To check if Samba tools are loaded, in a terminal
window, type the following command:
locate samba
You may also check to see that there is an existing Samba configuration
file located under the /etc directory. Do so by using this command in a
terminal window:
ls �alt /etc/samba/smb.conf
This will show the all important Samba configuration file, which you may need to review and edit in the future using a text editor.
Assuming that you have successfully found positive signs of Samba's existence, you can move on to the next step.
However, if nothing shows up when you ran the locate command, you will need
to download and install Samba tools from the internet. One suggestion is to
check your flavor's site for the latest Samba tools, or go to: www.samba.org
For the latest downloads review the
list
here and make sure to read the
HOW-TO instructions first!
Your next course of action is to identify whether your WindowsXP system is ready to talk to the Linux PC. Is the network connection active and are they on the same domain?
Checking this on your Linux PC is a very simply process. If you're not using Fedora, please read the Post-Installation Configuration chapter for the help in finding your network configuration tools.
With Fedora as the example, from the main menu, choose System Settings, then Network. Or simply type this command into a terminal:
system-config-network
Your Network Configuration tool will start. In the tool, you should see a fully operational eth0 network card device.
Now, click the Edit button to review the configuration for the eth0 network card to ensure that it is set up properly. What I include are samples from my own network. You may choose different network settings or try using exactly the same ones I provide below. The key is to remember that your Linux should not have different subnet mask information than your WindowsXP, or they won't communicate.
NOTICE: if you're in a business setting it is entirely likely that your DNS server HAS ALREADY ASSIGNED CORRECT IP information. The use of Static IPs is only provided to give an example. Leave the settings as "Auto obtain IP information" and be sure to select the "Automatically obtain DNS" checkbox in a dynamic setting.
Press OK when you've confirmed that you are using a Static IP address, and that the static IP and subnet mask work with what you plan to use on the WindowsXP (you'll soon see the way I configure my Windows PC).
Keep in mind that office PCs may be on their own IP naming scheme and have different mask and gateway information than shown!
Now select the eth0 device and click the Activate button. You will be prompted to save the changes. A small window will appear and should then disappear. As soon as it does, I recommend you reboot your Linux PC. This will ensure the changes take affect.
On the WindowsXP system, under the Start menu, choose Control Panel, then Network Connections. You should see a Local Area Network icon.
If you don't have any LAN connection icon under Network Connections, then you will need to run the new connection Wizard.
In the Windows wizard, choose Setup a home or small office network option. These wizard steps should properly configure your WindowsXP to use the network card.
Once you've finished you should see the Local Area Network icon.
Click your RIGHT mouse button over this icon and choose Properties. From here you need to select the Internet Protocol (TCP/IP) item. Once it's highlighted, you should press the Properties button.
Again, my simple screen shot should provide you with some general guidelines how to configure the individual items.
You must first select the Use the following IP address button. It is not always necessary to create a DNS server IP. As I was testing, I could get my PCs to talk with this setup.
Notice that the Linux PC was set to IP 10.2.2.2 and the Windows is set to 10.2.2.1 as a very rudimentary network configuration.
Now click OK to exit and save the IP configuration.
Once you're back on the Local Area Connection Properties window, choose the third tab labeled: Advanced. Under this tab you will see the firewall setting.
If your firewall setting is enabled, and you complete the steps, but your Linux PC still does not connect, you may need to disable it. I share this with you now since you will likely need to know where the firewall setting option is located in the future.
It's time to open up Windows Explorer (usually under the Start menu, then Accessories). In Windows Explorer you should highlight the disk drive of the WindowsXP system.
Once highlighted, click the right mouse button and choose from the menu: Properties.
You should see four tabs on the top of the new window. Click on the Sharing tab. This opens up your WindowsXP sharing attributes for the specific disk drive you've chosen. You should choose the two options:
Click the OK button to exit the drive properties window. Finally, your WindowsXP drive should now be available to the Linux PC.
It's time to return to the Linux PC and make the connection. Thankfully, the Linux effort is a bit less intensive. From the Fedora main menu choose Network Servers.
If all is well, you should see a Windows Network icon appear. From the Network window, choose File, then Open Location (or press Ctrl and L). This will allow you to type a specific WindowsXP shared drive location. All Samba accessible shared drives begin with smb://
In my situation, I named my shared disk drive winxp
Pressing Open should reveal a new window with a Windows drive icon. By double clicking on the shared drive icon, I am now able to view the folders on my WindowsXP drive from Linux!
If all worked well you should now be able to transfer files to and from the Linux PC with a few simple mouse clicks.
To copy files from the WindowsXP PC to your Linux PC, try these steps. Note that I am simply conveying one method among many.
From the Fedora main menu, choose your Home icon on the desktop. This opens up a view of your Linux directory and files. Open the WindowsXP drive by choosing File, on the menu, then Open Location. As mentioned above, you need to type the proper Samba path. Now simply place the winxp shared disk window beside the Linux file system window, and copy files by drag-and-dropping the icons.
If you're using Fedora Core 2+ and the steps above fail, you may try
checking one of these common issues:
First, make sure that the permissions on the folder/directory you are sharing
is set properly. You can change permissions using tips from
this article.
Second, check to see that the smb daemon is running. You can do so with this
simple command:
/sbin/chkconfig --list
You need to look for smb and then see 5:ON, which means that at run level 5
(normal boot up) your system automatically starts the smb daemon. If you've
done all of the steps above and still nothing works, sometimes you need to
restart/start the smb daemon manually. Try doing so with these two commands:
cd /etc/rc.d/init.d/
./smb start
Third, there is a great online book regarding Samba that I can recommend to
folks who are more technically interested. Here is the
book link.
I recommend buying this book, among many from O'Reilly, that helps get going
with SAMBA.
Troubleshooting for Non Fedora Users
Wait! Perhaps you're sitting there reading this detailed Samba configuration chapter while desperately trying to get SuSe, Mandriva, Debian, or some other Linux flavor using KDE to work properly with a Windows network. What solution do I give to the multitude of distinct flavor users?
I hate to leave hanging someone who is excited and interested. I wish I could lend everyone a hand in specifically describing their flavor's method of getting on to the Windows disk. However, I can't include that many examples and pages in this book (the editors are plucking and choosing pages to shorten the book even as I write!).
But for those desperate to get their own flavor working with the Samba, I offer a few tips below.
First: You must have all of the Samba components and programs installed. In many cases your flavor simply refuses to acknowledge the Windows network because it does not include critical files like sambawinbind. Your flavor's web site will have more details on this and other essential files.
Second: You must properly define the Samba location. Therefore, if you followed my previous examples, you may need to replace winxp with whatever you have decided to name your Windows shared drive.
Third: Be sure you have actually selected a Samba group name that is identical to your Windows network group name.
Fourth: Try opening a Konqueror window and insert into the Location field something similar to the following (replace winxp with group name of your windows pc): smb://winxp/
Mark Rais has written numerous articles on integrating Linux and Windows
including his featured article
Moving to
Linux for Business. Besides serving as managing editor for reallylinux.com
Rais also contributes as a technology consultant for
educational and
non-profit organizations.
Linux is a registered trademark of Linus Torvalds. Microsoft, Microsoft Windows, and WindowsXP Home Edition are trademarks or registered trademarks of Microsoft Corporation both in the United States and Internationally. All other trademarks or registered trademarks in this article belong to their respective owners.
OSFaq.com: How to install a Linux File/Print Server on your Windows Network [with Samba] |
Linux Gazette: Making a Simple Linux Network Including Windows 9x |
PLIP based network
Society
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian Philosophy
Quotes
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain Quotes
Bulletin:
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
History:
Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development : Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
Classic books:
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater�s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright � 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|
You can use PayPal to to buy a cup of coffee for authors of this site |
Disclaimer:
The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.
Last modified: December 25, 1998