Slashdot Mirror


Build A Cross-Platform Test Network With Samba & GRUB

An anonymous reader writes "This tutorial shows how to combine Samba and GRUB to build a compact, highly adaptable, cross-platform test network, capable of booting and networking a large number of operating systems on a small number of machines. Though Samba and GRUB can manage many different operating systems, this tutorial focuses on Linux and Windows." Reg required on the story.

20 of 97 comments (clear)

  1. Ways to do this by GC · · Score: 4, Informative

    With Grub you still can only really have as many machines up and running concurrently as, well, as you have physical machines.

    VMware allows you to run multiple systems on the same network, with relative ease - although granted it isn't free, but it does run under Linux (and runs Linux as a guest OS)

    I actually have only one dual-boot system on my network, the others are all on their own dedicated operating systems.

    The dual-boot system is capable of running quite a few virtual machines at the same time - Great for testing, and it's possible to transfer virtual disks across the network, or use real partitions.

  2. Ooooooo... by Anonymous Coward · · Score: 5, Funny

    Can I use TCP too? Man, that would kick ass. Imagine using TCP to connect machines on different platforms. Shit, we could even develop a WORLD WIDE NETWORK!

  3. user/pass for those who don't WANT to register by gatesh8r · · Score: 3, Informative
    username: slashdot1
    password: slash1


    Simple enough.

    --
    Karma whorin' since 1999
  4. Cross-platform via networking by Turing+Machine · · Score: 4, Insightful

    Interesting stuff, with some good humor (I especially liked "Windows NT/2000/XP are not possessed of such tender sensibilities; still, we'll deceive them too, as they have their own little quirks. Besides, it's easy and fun.").

    Personally, I hate rebooting and I also need to test my Java code on Mac OS X, so how I handle this problem is by keeping my source code in a directory on my Linux machine mountable via Samba and NFS. Compiling and testing on Windows 2000 or OS X is just a matter of hitting a button on the KVM switch. You could probably do it via VNC if you don't want to invest in a KVM (or, of course, if you don't mind having multiple monitors and keyboards, you could just have independent machines).

  5. Wow, a really clear grub tutorial by nich37ways · · Score: 5, Informative

    For all the good information this tutorial has in it, I am still reading it, the greatest part would have to be the incredibly clear and nicely laid out set of instructions on how to use Grub with different operating systems. Normally I find this information scattered across half a dozen different pages.

    Anyone who actually reads it and finds it useful look hard as there is a pdf link for the entire document, as it is only 72k its a lot easier than waiting for IBM's servers to load each page. A nice touch from IBM I think. Makes life over a slow connection a little easier.

    Cheers gatesh8r for the l/p

    --
    37 - what does it stand for really...
    1. Re:Wow, a really clear grub tutorial by Malc · · Score: 5, Funny

      What, you don't like the GRUB Info pages? I couldn't imagine why as it does seem to follow the general rules of Info pages: excessively verbose with a pre-ponderance for discussing product history rather than getting down to the nitty-gritty and describing how to use it. What with it being disorganised, poorly written and suffer from the crappy Info UI, it's classic example of why it needs a man page pointing to. Why are so many GNU programmes documented in Info rather than man these days? I hate it.

      Yes, you guessed it. I've had to suffer the GRUB Info pages in the past.

    2. Re:Wow, a really clear grub tutorial by realdpk · · Score: 2, Funny

      info is definitely one of those applications which deserves the GNU/ prepend. Buh.

    3. Re:Wow, a really clear grub tutorial by xyote · · Score: 2, Funny

      The info format does suck. I've been using the lilo boot loader because of that. At least with man pages, you could print them out if they became too verbose. You can't print out info docs, at least I think you can't because of course info is documented in info.

    4. Re:Wow, a really clear grub tutorial by Anonymous Coward · · Score: 2, Informative
      Funny :)

      But, actually, the very reason texinfo exists in the first place is so documentation can be printed as well as read on-line (I guess someone decided manpages didn't look good when printed). Thus, when dealing with texinfo, you have 2 options: convert them to info or HTML (on-line format), or convert them to PostScript or PDF (printable format).

      My guess is the reason texinfo documents have so much front and back matter is that when printed out, they're meant to look like actual user manuals, with the obligatory always-ignored front and back matter.

    5. Re:Wow, a really clear grub tutorial by V.+Mole · · Score: 3, Informative

      It pisses me off when the man page says the actual manual is in info and then I run info to get a carbon copy of the man page.

      Install the doc package, or there's something wrong with your info search path. What's happening is that info is looking for the "real" documentation, not finding it, and then "helpfully" loading the man page.

      None of which is to say that info can't be irritating, but when the man page references info doc, there does exist, somewhere, a real info doc that isn't just copy of the man page.

  6. Wow, that's...really not worth reading. by FiloEleven · · Score: 3, Insightful

    The article focuses mainly on installing multiple OSs with Grub as the boot loader. This information is widely available (and without registration). The section I was interested in was on Samba. Which it doesn't talk about except to say "here's a tutorial, because I don't feel like writing about this stuff."

    Waste of time.

    1. Re:Wow, that's...really not worth reading. by thegoldenear · · Score: 3, Interesting

      If you're after info on Samba then perhaps my instructions on configuring Samba as a primary domain controller for a Windows 2000 roaming user environment will be of use to you: http://www.thegoldenear.connectfree.co.uk/gg/toolb ox/gnu-linux/samba/samba-setup.html

    2. Re:Wow, that's...really not worth reading. by Blkdeath · · Score: 5, Insightful
      The article focuses mainly on installing multiple OSs with Grub as the boot loader. This information is widely available (and without registration). The section I was interested in was on Samba. Which it doesn't talk about except to say "here's a tutorial, because I don't feel like writing about this stuff."

      I found it mostly a vanity piece, really. Much of the advice she gave was quite frankly wrong, silly, or unclear (ie; could have used context).

      Examples;

      • Hiding Linux partitions from Win'98? Why?
      • How is it "tricky" to create a Windows partition with Linux's fdisk? (It's no more/less complicated than creating a Linux Swap partition, FYI).
      • Debian is the only Linux with a package management system? ("Everyone except Debian users must unpack the tarball")
      • zcat and pipe a tar.gz through tar?
      • GRUB can only be installed from floppy?!?
      • Disable encrypted network passwords in Windows?
      • Explicitly set all NICs to 100TX?

      Advice given by self-ascribed "gurus" should be taken with a suitable quantity of NaCL, in my humble opinion.

      --
      BD Phone Home!

      Shameless plug. Like you weren't expecting it.

  7. Thin on details, good primer for newbies by gravis_23 · · Score: 5, Informative

    Better documentation on accomplishing dual booting is available at The Linux Documentation Project's site. Kudos to IBM tho for making an effort. :)

  8. Text of the article by MooKore+(675835) · · Score: 2, Redundant

    What this tutorial covers
    page 1 of 4

    This tutorial shows how to combine Samba and GRUB to build a compact, highly adaptable, cross-platform test network, capable of booting and networking a large number of operating systems on a small number of machines. Though Samba and GRUB can manage many different operating systems, this tutorial focuses on Linux and Windows.
    Who should take this tutorial
    page 2 of 4

    This is neither a networking tutorial, nor a Linux system administration tutorial. Basic knowledge of running Linux and Windows, including user authentication, installing operating systems, partitioning, and managing user accounts will get you going a lot faster. I'll use values that are valid for my system, such as fd0 and hda. I trust that you will use what is correct for your system. What prerequisites you'll need
    page 3 of 4

    You'll need reasonably modern hardware: PCs four years old and newer ought to do the job. Running multiboot systems requires large hard drives, and support for Large-Block Addressing (LBA). GRUB can read any part of a hard disk supported by true LBA. Unfortunately, a small number of motherboards that claim to support LBA do not, and the only way to find out which ones they are is to try to boot a system from beyond the 1024 cylinder limit. Also needed are a generic Linux boot/rescue disk, such as tomsrtbt, or H. Peter Anvin's SuperRescue CD, and a Windows 98 rescue disk, which is the all-time most useful Windows disk. GRUB does not yet have the ability to boot a CD; we still need floppy disk

    Who wrote this tutorial
    page 4 of 4

    Carla Schroder is a freelance PC tamer, administering Linux and Windows systems for small businesses, and writes how-tos for real people. Loves computers and high tech, thinks Linux/Open Source/Free Software is the best playground in the world. Carla discovered computers and high-tech in 1994; her first PC was an Apple II. She progressed through DOS/Windows, from 3.1 to XP. Discovered Linux in 1998. Carla is living proof that self-taught middle-aged ladies can be fine computer gurus.

    You can contact Carla directly, or click Feedback at the top of any panel.

    Cross-platform developers face interesting challenges for building testing environments. In my ideal happy world, computer labs are huge, stocked with every little gadget a person might ever need -- even a Segway to scoot around on. But, as we are all painfully aware, resources are more limited in the real world.

    One good option is to use excellent programs like VMWare or User-Mode Linux. These create virtual environments for running several operating systems side-by-side on a single PC. (See the Resources for links to more info on VMWare and User-Mode Linux.)

    But for users who prefer completely native environments, the open source/free software world gives us two great tools for packing a lot of operating systems into a small space: Samba and GRUB.

    Samba enables file and printer sharing between different operating systems. It can be a primary domain controller or a stand-alone server. It is primarily used to network Linux, UNIX, and Windows. Macintosh, OS X, OS/2, and other platforms are supported with varying degrees of tweakage.

    GRUB, the Grand Unified Bootloader, is a most remarkable program. GRUB is capable of booting nearly any OS, and nearly any number of them. This tutorial will focus on multibooting and networking Linux and Windows.

    Testing in native environments
    page 2 of 2

    I use a three-PC test network. Thanks to the combined magic of Samba and GRUB, there is enormous flexibility; you can:

    Test applications and application servers (in native environments)
    Test all manner of networking configurations
    Use removable drive trays to swap in and out as needed
    Boot bare kernels, passing in parameters and modules from the GRUB command line

    You have probably already spotted the one flaw in this beautiful scheme: the inconvenience of rebooting (as only

  9. Re:Stupid Reg by loconet · · Score: 3, Informative

    I would seriously recommend that you sign up. That IBM account is no junk. Considering that you get access to developerWorks, articles and tutorials which on itself is worth the hassle of registering.

    --
    [alk]
  10. And much more on the site by That_Dan_Guy · · Score: 2, Informative

    Clicking around found me here:

    http://www-106.ibm.com/developerworks/linux/

    They have a lot of stuff there. I always found IBM docs more clear and complete than Windows docs. But that may have simply been due to the fact that Windows never came with printed docs to my memory (oo, wait, I do seem to remember something with my win3.1 machine. Yeah, lost it as soon as I found OS/2...)

    Anyways, if all you want are tutorials by IBM:

    http://www-106.ibm.com/developerworks/views/linu x/ tutorials.jsp

  11. Re:Writing style by TheRaven64 · · Score: 2, Funny
    BNU religion, it boots the Hurd!

    BNU? BSD's Not Unix?

    --
    I am TheRaven on Soylent News
  12. Re:Modifying GRUB from Windows by LiENUS · · Score: 3, Informative

    Explore2fs although there is right support it is not recommended for use sadly
    but if you have a linux install specifically for grub then you could use it

  13. Doesn't work, try njchick/njchick1 by njchick · · Score: 3, Informative

    n/t