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.

54 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. Stupid Reg by nich37ways · · Score: 1, Flamebait

    Meh, you need an IBM Login to access it, anyone want to paste the contents, I have so had enough of signing up to junk all the time.

    --
    37 - what does it stand for really...
    1. 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]
    2. Re:Stupid Reg by nich37ways · · Score: 1, Flamebait

      Ooh that does indeed look nice.

      Cheers

      --
      37 - what does it stand for really...
  3. 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!

  4. 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
    1. Re:user/pass for those who don't WANT to register by bjpirt · · Score: 1

      until some muppet changes it :-(
      oh well

  5. 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).

  6. 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 nich37ways · · Score: 1

      Damn it now I really want to be able to post and moderate..

      Very funny.

      I refuse to use info, I wont read anything in there as I have never seen a single info page which wasn't either a direct copy of the man pages or a load of freaking gibberish.

      --
      37 - what does it stand for really...
    3. 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.

    4. 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.

    5. Re:Wow, a really clear grub tutorial by jmccay · · Score: 1

      Did you notice the typo in the code under the adding Windows section?
      I think there is one mistake though. On the second slide of the adding windows you have "root (hd0,0)" but shouldn't that be "root (hd0,2)"? I am not all that familar with GRUB, but I pieced that together when you displayed the final boot menu file.

      --
      At the next eco-hypocrisy-meeting, count the private jets used to get to the meeting. Should be interesting to see that
    6. 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.

    7. Re:Wow, a really clear grub tutorial by 1u3hr · · Score: 1
      The direct, registration-free links to the pdf are here:

      No, you still need to register for those. Otherwise you are redirected to a big "Authorization Required" message page.

    8. Re:Wow, a really clear grub tutorial by Excarnate · · Score: 1

      The direct, registration-free links to the pdf are here:

      Not hardly. It wants the username and password. Someone mod the parent down to avoid wasting others time.

      --
      .signature: No such file or directory
    9. Re:Wow, a really clear grub tutorial by MyHair · · Score: 1

      I rarely even look at the info pages anymore. 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.

      Plus the info keys don't seem to correspond to any application I've used before.

    10. 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.

    11. Re:Wow, a really clear grub tutorial by spasm · · Score: 1

      ahh, son of a .. thought I'd cleared the cookie before testing the links. these links send you to a registration page if you haven't already registered with ibm at some point.

      sorry.

      'spasm2' and 'zoolook' if you want to use the links but don't want to register yourself.

    12. Re:Wow, a really clear grub tutorial by Malc · · Score: 1

      I guess you're a VI user. ;) Then again, I'm a Emacs user and I find the interface poor.

    13. Re:Wow, a really clear grub tutorial by p3d0 · · Score: 1

      I think info is obsolete. For simple, formatted documentation, there's man pages. For hyperlinked documentation, there's HTML (perhaps generated from some other source upon product installation). Why anyone would use info with these two alternatives available is beyond me.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    14. Re:Wow, a really clear grub tutorial by Rick+the+Red · · Score: 1
      you have 2 options: convert them to info or HTML (on-line format)
      So, I have to use my web browser to print info files. Have you noticed that HTML isn't exactly designed for printing?
      or convert them to PostScript or PDF (printable format).
      Uh, OK, but I don't have a PostScript printer. So I have to use Ghostscript.

      Web browswer or Ghostscript; either way, I have to use an intermediate (filter) program. After I've converted (filtered) the info file to some other format. So to print info files it's a two-step conversion. Why not just support printing from within info? 1) Because RMS doesn't want to, and thus no GNUbie will ever do it. 2) Because those who would want it steer well clear of GNU/info in the first place.

      --
      If all this should have a reason, we would be the last to know.
  7. 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.

    3. Re:Wow, that's...really not worth reading. by Beliskner · · Score: 1
      How is it "tricky" to create a Windows partition with Linux's fdisk
      With the Redhat 5 installer, I opted to truncate my FAT32 partition and make an ext2fs in the resulting free space with Linux fdisk. It DIDN'T tell me that it would truncate it regardless of whether or not there was data there! I lost 50 Megabytes of mp3s on my FAT32 partition. I have a God damn MS in Computing so I'm both embarassed and angry simultaneously, whoa feels weird.

      I use PartitionMagic now, I like linux and fdisk, but quite frankly if the F-18s bombing Baghdad were using a CLI I think thousands more Iraqi civilians would be dead. It's too risky to chance losing a partition full of my information IMO, even if it's RAID-1 mirrored. Altering partitions must be done in a rollback-capable manner, with 10 modal dialogs in your face.

      --
      A caveman dreams of being us, the incalculable power and riches. We dream of being Q, then what?
    4. Re:Wow, that's...really not worth reading. by Beliskner · · Score: 1
      You just didn't read the manuals. Idiot.
      How can I RTFM if I don't have an Operating System, and my friend just gave me the bare Redhat 5 CD without docs?
      --
      A caveman dreams of being us, the incalculable power and riches. We dream of being Q, then what?
    5. Re: Wow, that's...really not worth reading. by Omniscient+Ferret · · Score: 1

      The FIPS docs were on the CD. You could see the CD drive from your Windows install, right?

      Parted works much better than FIPS did, but then, Redhat's gotten much more capable since Redhat 5 too...

    6. Re:Wow, that's...really not worth reading. by lkaos · · Score: 1

      This is deceiving. It's technically just configuring Samba as an NT4 PDC. A Win2k "primary" domain controller is a much more complicated beast that doesn't actually work yet (well, sort of, but not really).

      --
      int func(int a);
      func((b += 3, b));
    7. Re: Wow, that's...really not worth reading. by Beliskner · · Score: 1
      The FIPS docs were on the CD. You could see the CD drive from your Windows install, right?
      Nope. Windows install was damaged, I believed I was competent and deleted the wrong .dll file in the \Windows\System directory rendering the system unbootable.
      --
      A caveman dreams of being us, the incalculable power and riches. We dream of being Q, then what?
    8. Re:Wow, that's...really not worth reading. by thegoldenear · · Score: 1

      you're right. but my comment isn't intentionally deceiving. it was a summary. my Samba setup provides only the same functionality as the NT4 server and I use it with Windows 2000 workstations, which is why Windows 2000 was mentioned

    9. Re: Wow, that's...really not worth reading. by Omniscient+Ferret · · Score: 1

      Oh. Ouch. You would have needed to know about Alt-F2 & less & stuff, or have a rescue disc handy.

      I don't think I'd let a newbie friend install Linux alone.

    10. Re: Wow, that's...really not worth reading. by Rick+the+Red · · Score: 1
      I believed I was competent
      Well, there's your problem! Seems to be the root cause of both your mistakes (making Windows unbootable and destroying 30Meg of MP3s).
      --
      If all this should have a reason, we would be the last to know.
  8. 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. :)

  9. Writing style by pben · · Score: 1

    Carla Schroder wrote a good little tutorial but the writing style put me off a little. She sprinkled little biblical phrases throught out the artical. It was a little jarring to have Grub being hailed as the promised land. Not exactly what I was expecting from an IBM site but then maybe IBM has really caught the Linux religion. ;-)

    1. 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
    2. Re:Writing style by Rick+the+Red · · Score: 1

      Thanks, you just named my next OpenBSD server: 'BNG' - BSD's Not GNU

      --
      If all this should have a reason, we would be the last to know.
  10. 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

  11. 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

  12. Re:Modifying GRUB from Windows by mrjive · · Score: 1

    If you can find a way to mount the linux partition where your grub.conf is loaded, then you could do this. But afaik, there is no ext2/ext3 filesystem driver for windows.

    You'll have to reboot into linux, edit grub.conf (usually under /boot), and then reboot again to see the change take effect.

    --
    If you can't beat them, arrange to have them beaten. -George Carlin
  13. Re:Modifying GRUB from Windows by Malc · · Score: 1

    Ha: not much good for remotely administering. ;)

  14. 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

  15. OR... by hummassa · · Score: 1

    You can make your /boot partition type vfat32. Then you will be able to edit /boot/grub/menu.lst with wordpad or win32-vi :-)

    --
    It's better to be the foot on the boot than the face on the pavement. ~~ tkx Kadin2048
  16. Registration Required? by bettlebrox · · Score: 1

    Why post articles that require a registration?

    --

    I have a very small mind and must live with it.
    -- E. Dijkstra

    1. Re:Registration Required? by gykh · · Score: 1

      Because they may be informative/interesting/funny, and are much easier to access than going to buy a newspaper. Blackhole email addresses are easy to set up and almost all browsers memorise usename/password combinations for such meaningless pages for you.

      Your turn - why not?

    2. Re:Registration Required? by bettlebrox · · Score: 1

      Because I don't alway use my computer!

      --

      I have a very small mind and must live with it.
      -- E. Dijkstra

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

    n/t

  18. Okay... by webhead74 · · Score: 1

    ...haven't we been doing this for years now? What's the big deal? I found nothing new in this article. It reminded me of one of those uber tech power point presentations you're forced to sit through every month at work... yeah, you know the ones I'm talking about. I think the fact that she admits to having a segway in her office speaks volumes to her apparent lack of anything better to do(r).

  19. loconet Eats IT by ovapositor · · Score: 1

    Thank you.

  20. Nicely Done by JahToasted · · Score: 1

    The article was pretty boring up until the last 4 paragraphs

  21. Re:I would be leery of integrating this into a tes by I_Heat_Sexylaid · · Score: 1

    Well now, there is some solid information upon which we should all act.

    --
    Slashlight! (Can't find the funk) kewl base part
  22. Re:I will explan some of this. by Blkdeath · · Score: 1
    Hiding linux partions from 98 is about posistion of partions if a linux partion is in front of a windows partion windows will not look past the linux partion for a windows one so the partion is missing this is in extended partions.

    It is correct that Win'9x will not 'play nice' in extended partitions, however it will completely ignore other primary partitions and install to the first available primary of an acceptable type.

    Trick to create a partion with fdisk under linux as you have to play guess the type. If you get it wrong strange things will happen.

    I'm going to have to defer you to RTFM. For that matter, when you press 't' (change 't'ype) in fdisk, it quite clearly tells you that you can 'L'ist partition types. I call shenanigans. Sorry. :)

    Debian is the only Linux with a package management system? This state ment is wrong and right at the same time.

    I'm afraid you are completely incorrect WRT the state of package management systems in modern Linux distributions. I'll ask that you do some modicum of research before perpetuating more (false) Debian propaganda.

    zcat is a old hapid that dies hard tar did not always have internal compression and the flags sometimes change from version to version. Basicly the fool proff way of doing it is using zcat and gzip.

    Firstly, she only started using *n?x in '94, at which point the GNU tools were already reasonably mature. Moreover, if she's going to selectively provide context, she should reconsider publishing articles on IBM's website.

    Further, the 'z' option to decompress gzipped archives is quite old, and quite standard, but I'd have to check the documentation to determine the date of implementation.

    Disable encrypted network passwords in Windows? Required with samaba depending on the version of windows and the version of samaba

    Again, incorrect. I have been using Samba with encrypted passwords on networks comprised of any combination of Windows'95, 98, ME, NT4, 2000, and XP for a number of years without fail. The correct procedure is to enable encrypted passwords in Samba itself. Her advise on this matter is just plain bad.

    Explicitly set all NICs to 100TX This is required with some 100 speed cards

    This advise was reckless, without context or explanation, and carries the potential to cause more harm than good. In any case where users are running a combination of 10MBit and/or half-duplex bridge/repeater/switching hardware, this will most certainly lead to enhanced signal degredation and packet loss.

    --
    BD Phone Home!

    Shameless plug. Like you weren't expecting it.

  23. pxeGRUB by AlphaSys · · Score: 1

    Oooh, pxeGRUB... do tell. I have been using syslinux/pxelinux, but I was kinda hoping the U in GRUB was not a misnomer. Sine I use GRUB on all my non-netbooting *Xs, I did want to use it for netbooting but hadn't found the way. I guess now that I have the names, I can google with the best of them. Thanks for helping out.

    --
    Can I bum a sig? I left mine at the office.