Announcement

Collapse
No announcement yet.

SOLVED: Basic Kubuntu to Kubuntu home network

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SOLVED: Basic Kubuntu to Kubuntu home network

    First: Thank you for reading my post!

    I have two Kubuntu 7.10 boxes (i386 and amd64 versions respectively) connected to the web through a router. All I want is to be able to have the boxes share files and maybe printers... I Googled quite a bit but all I could find is a lot of Samba how-to's, Step by steps on complex networks with gateways and firewall servers and so on and so forth.... is there any guide out there on how to get these two Kubuntu 7.10 boxes to see each other?
    Thank you!
    Does it follow that I reject all authority? Perish the thought! In the matter of boots, I defer to the authority of the bootmaker. <br /> -Mikhail Bakunin-, &quot;God and the State&quot;

    #2
    Re: Basic Kubuntu to Kubuntu home network

    Easy Networking and Printer Sharing

    Zeroconf and print sharing let you browse the local network for available services. Both are now simple to setup and maintain requiring nothing more than ticking a box to enable the feature.

    Network sharing

    K Menu | System Settings | Network Settings | Zeroconf Service Discovery
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Basic Kubuntu to Kubuntu home network

      Thanks for the reply, but unfortunately I already followed those brief instructions to no avail:
      In both Kubuntu boxes I have gone (previously) to "System Settings - Network Settings - Zeroconf Service Discovery" and I enabled both checkmarks "Enable Zeroconf network browsing" and "Browse local network". When I then go to "System Menu - Remote Places" (It opens in Dolphin) and click on "Network services" I find nothing: "0 Items (0 Folders, 0 Files). And (I don't think this makes any difference anyway) if I click on "Network" instead of "System" and then click on "Network Services" I still find nothing. If I click on "Samba Shares" a message pops up that reads "Unable to find any workgroups in your local network . This may be caused by an enabled firewall"

      I have no idea of how to proceed, I don't mind reading whatever is necessary, but I cannot stumble upon anything other than instructions to setup complex networks with servers and gateways and different Operating Systems on them. Should I setup Samba? I have buried a windoze partition that I use ONLY to play Civ IV once every blue moon.... Should I turn off the Router Firewall? Isn't that dangerous? Should I change IP addresses? I will keep on reading the how-to's I find even though so far none of them seem to apply to my barebone simple home network. But if anyone has a good pointers or has gone through a similar situation, i will very much appreciate any input.
      Does it follow that I reject all authority? Perish the thought! In the matter of boots, I defer to the authority of the bootmaker. <br /> -Mikhail Bakunin-, &quot;God and the State&quot;

      Comment


        #4
        Re: Basic Kubuntu to Kubuntu home network

        Hmm. If currently, you are running Linux on both boxes exclusively, both connected to the 'Net via the Router, then I would try disabling the firewall and see if that makes any difference for you. Linux doesn't "require" a firewall application for protection. First, Linux uses iptables (you can read up a bit on that), and second, not very many viri are written to affect Linux systems. If disabling the firewall doesn't help, you can always turn it back on.

        I'll do some more searching.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Basic Kubuntu to Kubuntu home network

          I recently bought a laptop and I am fighting the same war trying to connect it to my main computer. (both run 7.10)
          First, I think the firewall suggestion may be the wrong approach. I do not think Kubuntu comes with an enabled firewall. Second, I tried installing Guarddog and set it to disable the fw and still no move on the Zeroconf.

          Personally, I think the zeroconf service simply does not work in 7.10. unless we are missing something essential.

          What I tried and worked.
          1. Installing samba on the server side works and after defining your shared folders in "system settings" one can see the specified folder on the client side under "Samba shares". The problem is that such shares do not appear as a real directory and therefore applications like Amarok will not be able to use them as a source for its collection. (this was my main reason for linking the two computers).
          This option is mainly useful if you also have a Winblows box somewhere.
          2. Installing NFS on both sides (package nfs-kernel-server on the server side and package nfs-common on the client side) seemed the best approach since NFS is Linux native. Then configuring your shares on the server same as above under "System Settings" but this time to use NFS sharing. Let's say you want to share /home/john

          Then on the Client side it was a little bit more tricky as I could not find a GUI method to configure it
          So this is what you do:
          You edit your etc/fstab as root (right click>Actions>edit as root) then add the following entry adapted to your specific IP and directories/volumes to be shared:
          10.0.0.4:/home/john /media/john nfs user,noauto,defaults 0 0
          Where:
          10.0.0.4 is the IP of your server (make sure it is fixed and not dhcp)
          /home/john is the directory you have (already) defined as shared on the server
          /media/john is the directory where it will be mounted on the client side (make sure you first create that directory!!).
          Once you hit save on the fstab file you should be getting a prompt that a new device was discovered. Also you will find an unmounted drive in "Storage Media" or if you type "media:/" in konqueror. Once you click on that drive it should mount and show the contents from the server. If u get an error you made a mistake somewhere. The drive behaves just like an USB flash drive.
          Obviously if you have a wireless connection and you are not within the range of the server you will get an error when clicking on the drive.

          This is all I know for now. Did not try to setup printer sharing and I would like to do so but I ran out of time. So if you have suggestions pls tell me how.

          Also if you get Zeroconf to work as it is suggested it should, pls post your findings.

          Good luck!
          Metricus

          Comment


            #6
            Re: Basic Kubuntu to Kubuntu home network

            Google found me this Linux Gazette article on Serving Your Home Network on a Silver Platter with Ubuntu It might be what you're looking for.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: Basic Kubuntu to Kubuntu home network

              Once again: Thanks for the replies!
              Metricus: I will not attempt the Samba setup as I really don't use my windoze partition more than as a vehicle for Civ IV (Game) and I don't even care to have a web connection on it. I will read up on NFS, from the dark depths of my ignorance it seems like the way to go... Here's the nicer resource I found http://nfs.sourceforge.net/nfs-howto/ I also just got "Networks for Dummies" (I am NOT joking, I did buy it) and I will read that too, although it seems oriented to the Windoze crowd.
              So, I will be doing homework for a while and then I will let you know where I stand.

              Snowhog: Thanks for the link, but I don't know if you noticed that is a step by step on how to setup a home network with a separate server and a whole array of new applications (webmin, Samba and LAMP). I appreciate the trust you put in my knowledge, but there is no way I can dive into such a project when I can barely understand what a "Network Folder" is. In plain terms: I have two Kubuntu boxes, I would like my wife to be able to access my music collection directly, and maybe even share a printer. That's it. So, thanks for the link, but that's pretty intimidating to me.
              Does it follow that I reject all authority? Perish the thought! In the matter of boots, I defer to the authority of the bootmaker. <br /> -Mikhail Bakunin-, &quot;God and the State&quot;

              Comment


                #8
                Re: Basic Kubuntu to Kubuntu home network

                No problem. Here is a more straight forward How to share files and folders in Ubuntu which might be more user friendly.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Re: Basic Kubuntu to Kubuntu home network

                  And sharing folders between systems with NFS
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: Basic Kubuntu to Kubuntu home network

                    I listed the Samba just as a confirmation that is works to some extent. I do not use it either. Only Linux in this house.

                    As of now yes, nfs seems the only way to go. When i was using SUSE Yast had a nice NFS-Client configuration tool. Kubuntu seems to lack this. The server part however seems OK. Hopefully with the upcoming KDE4 things will improve.

                    Those How-To procedures from the ubuntu Wiki and sourceforge are too "command line" oriented for my taste. This should be easy and happen all under KDE GUI.
                    Try my procedure for NFS and you will see it's not bad at all. You get a fully mounted volume which behaves like any other directory.

                    Take care.

                    Comment


                      #11
                      Re: Basic Kubuntu to Kubuntu home network

                      I have exactly the same setup (two Kubuntu 7.10 boxes - one i386 and the other amd64). I use NFS to share files between the two. I prefer it over samba since its more native to linux. Its also pretty fairly straightforward, I think.
                      Kubuntu user since initial release version 5.04 8)

                      Comment


                        #12
                        Re: Basic Kubuntu to Kubuntu home network

                        @brasslover -
                        For the benefit of others, would you mind posting a step-by-step HOWTO on setting up file/folder sharing using NFS?
                        Windows no longer obstructs my view.
                        Using Kubuntu Linux since March 23, 2007.
                        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                        Comment


                          #13
                          Re: Basic Kubuntu to Kubuntu home network

                          Here is a post on the Ubuntu forums about setting up NFS, I haven't tried it yet, I will later tonight:
                          http://ubuntuforums.org/showthread.php?t=249889
                          Does it follow that I reject all authority? Perish the thought! In the matter of boots, I defer to the authority of the bootmaker. <br /> -Mikhail Bakunin-, &quot;God and the State&quot;

                          Comment


                            #14
                            Re: Basic Kubuntu to Kubuntu home network

                            It doesn't say it, but you can share the same folder with Samba and NFS. I was doing that. My *nix boxes accessed via NFS and the Win boxes via Samba. There are some NFS clients for M$, but I never got a chance to play with them. When you use Konqueror, it gives you the either/or option not both, but you can do it from the command line.

                            Comment


                              #15
                              Re: Basic Kubuntu to Kubuntu home network

                              Originally posted by Snowhog
                              @brasslover -
                              For the benefit of others, would you mind posting a step-by-step HOWTO on setting up file/folder sharing using NFS?
                              I think the link from sabbathpriest covers the bases pretty well, actually.

                              Originally posted by sabbathpriest
                              Here is a post on the Ubuntu forums about setting up NFS, I haven't tried it yet, I will later tonight:
                              http://ubuntuforums.org/showthread.php?t=249889

                              For reference, here is my /etc/exports file from my server "trumpet" :

                              $ cat /etc/exports

                              /data 192.168.1.27(rw)
                              /data/stage 192.168.1.27(rw)

                              And the relevant lines from /etc/fstab on the client machine (192.168.1.27) :

                              trumpet:/data /mnt/data nfs defaults,user 0 0
                              trumpet:/data/stage /mnt/stage nfs defaults,user 0 0
                              A few additional comments:
                              • Make sure you have portmap installed, otherwise you won't at all be pleased with the long wait you will have to endure while trying to connect to the share.
                              • Yes, I know that I am sharing a subfolder of another folder that is already shared - its on purpose.
                              • You're supposed to be able to use host names in /etc/exports, but for some reason after I upgraded to Gutsy I wasn't able to connect that way so I reverted back to the IP number. (I use static IPs on my network which are assigned from my router so its not a problem.)
                              • I "cheated" a bit and did the mounting part under system settings in KDE
                              • Another related hack is to save everything you've got under /etc before you do the next upgrade or reinstall. If something gets borked or you just don't want to mess with manually configuring something (like nfs and cups) you'll have a working configuration to revert to.

                              Kubuntu user since initial release version 5.04 8)

                              Comment

                              Working...
                              X