Frank616
2007-12-27, 04:23 PM CST
OK, took a while and a lot of reading, but I found something that works.
I tried to attach a 26K Open Office ODT file along with these instructions. For some entirely inexplicable reason, this forum will not allow me to attach an open source ODT file. Can you believe that?!! Then I tried saving it as a 114K DOC file, but it was too big! So. the attached file called Gui Setup of Samba.TXT is NOT a text file. Save it to disk and change the filename extension back to ODT before you try to load it.
Much thanks to the many that encouraged me to persevere. Let me know if you find errors.
Frank.
Setting up peer to peer file sharing in Fedora 8
These instructions apply to a Fedora 8 box that has SELinux turned off, and has the firewall deactivated. There is information at the top of the default /etc/samba/smb.conf file that tells you how to 'correctly' get around a system that is running both a firewall as well as SELinux.
For a small home network that is behind a hardware firewall, this setup is convenient. Beware that it bypasses most security. Setting up your Fedora box so that it can be seen and accessed from other machines on the network is easier than I thought. Konqueror and two GUI applications that come with Samba will do all you need. I won't be messing with configuration files by hand here (though I discovered that it isn't that tough after all). We'll use only GUI tools to do the configuring. Lets get started!
Ensure that Samba server is installed on your machine.
Kmenu | System | Add/Remove Software | Servers | Windows File Server
Click the options button, and you will see a file called “system-config-samba” followed by its version number. Install that package and the dependencies that it requests.
Close the package manager.
Open Kmenu | System | Services. In the left pane, ensure that the nmbd and smbd services are enabled. In the right pane under “Status” you will be told if they are currently running or not. If not, then, with either smbd or nmbd highlighted, click the “Restart” button above the left pane. Do this for both smbd and nmbd services. Save the settings so that smbd and nmbd will be started automatically from now on when you boot. If it does not already exist, this will also create your /etc/samba/smb.conf file where all the settings for Samba are stored.
Open Konqueror in root mode. From a console type in the following:
su konqueror
and press <Enter> You will be asked for the root password, and Konqueror will open. For ease of viewing, select Settings | Load View Profile | File Management. In the far left ribbon on Konqueror, click the red file folder to open the root filesystem. Click “home” and then right click anywhere inside the right pane. In the context menu, hover over “Create New” and then click “Folder” in the additional box that pops up. In capital letters, enter a folder name with no spaces in it. Some versions of Windows seem to have problems with lower case directory names or names with spaces in them. I just used the name “SHARE” for this directory.
Right click this new “SHARE” directory and select “Properties” and then the “Permissions” tab. Click the “Advanced Permissions” tab and make sure that all the r w and x permissions have a green arrow for each of “Owner” “Owning Group” and “Others”. This will give remote users read and write access to the directory and whatever is in it. If you fail to do this, your directory will show up on the other machines on the network, but when one of those machines tries to access it, you will be told that it does not exist.
Click “OK” and then click “OK” again to exit back to Konqueror.
Open the KDE Samba configuration utility:
Kmenu | Settings | Samba
There should be two applications called “Samba” there. The upper one with the penguin icon is the KDE utility. That is the one you want to open first. Click the “Administrator Mode” button (you may have to drag the bottom edge of the window down so you can see it) and give the root password. We will only touch the “Base Settings” tab here. The Samba Config File line should already show /etc/samba/smb.conf. If it doesn't then navigate there and select it.
Beside “Workgroup” put in the workgroup name you want this machine to join. This will be the workgroup name of your home or small office network.
Beside “NetBIOS” name put the name you want this machine to have on the network. It has to be different than other machines already on the network. Though I never tried it, don't use spaces in the name. Click “OK” and exit the KDE Control Module.
Open the second GUI Samba Configuration application:
Kmenu | Settings | Samba
This time select the second application, the one with the greenish icon. You will be asked for the root password. Provide that, and press <Enter>. The Samba Server Configuration utility will open.
Click “Add Share” and beside the top line of the window that opens, click the “Browse” button. In the left pane you should see an icon “File System”. Double click that, and then double click the “home” directory in the right pane. You should see your directory “SHARE” in the list that comes up in the right pane. Click once on “SHARE” to select it, then click the “OK” button at the bottom of the window. The Window will close and you'll be back to the “Basic” tab of the Samba Server Configuraton utility.
Click both “Writeable” and “Visible” boxes on the left lower side of the “Basic” tab, then click the “Access” tab. At the bottom of the window, click the “Allow Access to everyone” radio button, and then click “OK” You will now see your share added to the Samba Server. Close the Samba Server Configuration utility.
You're done! You should now be able to see that “SHARE” directory from other machines on the network, and those other machines should be able to move, remove, and edit any files in that directory. If you put a symlink in your “SHARE” directory, this should allow access to whatever is linked.
I tried to attach a 26K Open Office ODT file along with these instructions. For some entirely inexplicable reason, this forum will not allow me to attach an open source ODT file. Can you believe that?!! Then I tried saving it as a 114K DOC file, but it was too big! So. the attached file called Gui Setup of Samba.TXT is NOT a text file. Save it to disk and change the filename extension back to ODT before you try to load it.
Much thanks to the many that encouraged me to persevere. Let me know if you find errors.
Frank.
Setting up peer to peer file sharing in Fedora 8
These instructions apply to a Fedora 8 box that has SELinux turned off, and has the firewall deactivated. There is information at the top of the default /etc/samba/smb.conf file that tells you how to 'correctly' get around a system that is running both a firewall as well as SELinux.
For a small home network that is behind a hardware firewall, this setup is convenient. Beware that it bypasses most security. Setting up your Fedora box so that it can be seen and accessed from other machines on the network is easier than I thought. Konqueror and two GUI applications that come with Samba will do all you need. I won't be messing with configuration files by hand here (though I discovered that it isn't that tough after all). We'll use only GUI tools to do the configuring. Lets get started!
Ensure that Samba server is installed on your machine.
Kmenu | System | Add/Remove Software | Servers | Windows File Server
Click the options button, and you will see a file called “system-config-samba” followed by its version number. Install that package and the dependencies that it requests.
Close the package manager.
Open Kmenu | System | Services. In the left pane, ensure that the nmbd and smbd services are enabled. In the right pane under “Status” you will be told if they are currently running or not. If not, then, with either smbd or nmbd highlighted, click the “Restart” button above the left pane. Do this for both smbd and nmbd services. Save the settings so that smbd and nmbd will be started automatically from now on when you boot. If it does not already exist, this will also create your /etc/samba/smb.conf file where all the settings for Samba are stored.
Open Konqueror in root mode. From a console type in the following:
su konqueror
and press <Enter> You will be asked for the root password, and Konqueror will open. For ease of viewing, select Settings | Load View Profile | File Management. In the far left ribbon on Konqueror, click the red file folder to open the root filesystem. Click “home” and then right click anywhere inside the right pane. In the context menu, hover over “Create New” and then click “Folder” in the additional box that pops up. In capital letters, enter a folder name with no spaces in it. Some versions of Windows seem to have problems with lower case directory names or names with spaces in them. I just used the name “SHARE” for this directory.
Right click this new “SHARE” directory and select “Properties” and then the “Permissions” tab. Click the “Advanced Permissions” tab and make sure that all the r w and x permissions have a green arrow for each of “Owner” “Owning Group” and “Others”. This will give remote users read and write access to the directory and whatever is in it. If you fail to do this, your directory will show up on the other machines on the network, but when one of those machines tries to access it, you will be told that it does not exist.
Click “OK” and then click “OK” again to exit back to Konqueror.
Open the KDE Samba configuration utility:
Kmenu | Settings | Samba
There should be two applications called “Samba” there. The upper one with the penguin icon is the KDE utility. That is the one you want to open first. Click the “Administrator Mode” button (you may have to drag the bottom edge of the window down so you can see it) and give the root password. We will only touch the “Base Settings” tab here. The Samba Config File line should already show /etc/samba/smb.conf. If it doesn't then navigate there and select it.
Beside “Workgroup” put in the workgroup name you want this machine to join. This will be the workgroup name of your home or small office network.
Beside “NetBIOS” name put the name you want this machine to have on the network. It has to be different than other machines already on the network. Though I never tried it, don't use spaces in the name. Click “OK” and exit the KDE Control Module.
Open the second GUI Samba Configuration application:
Kmenu | Settings | Samba
This time select the second application, the one with the greenish icon. You will be asked for the root password. Provide that, and press <Enter>. The Samba Server Configuration utility will open.
Click “Add Share” and beside the top line of the window that opens, click the “Browse” button. In the left pane you should see an icon “File System”. Double click that, and then double click the “home” directory in the right pane. You should see your directory “SHARE” in the list that comes up in the right pane. Click once on “SHARE” to select it, then click the “OK” button at the bottom of the window. The Window will close and you'll be back to the “Basic” tab of the Samba Server Configuraton utility.
Click both “Writeable” and “Visible” boxes on the left lower side of the “Basic” tab, then click the “Access” tab. At the bottom of the window, click the “Allow Access to everyone” radio button, and then click “OK” You will now see your share added to the Samba Server. Close the Samba Server Configuration utility.
You're done! You should now be able to see that “SHARE” directory from other machines on the network, and those other machines should be able to move, remove, and edit any files in that directory. If you put a symlink in your “SHARE” directory, this should allow access to whatever is linked.