Home Services Products Tutorials Whats New Contact Us

Welcome to It's Your PC Tutorials

The content on this page is aimed at the new openSUSE Linux user. These are Flash animated tutorials. The files are large and if the site is busy they may take time to load, so please be patient. I apologize that the animations couldn't be a little more dial up user friendly.
If you are a dial up user, just be patient, "eventually" the videos will load.

 

openSUSE 11.1 Tutorials



Samba Settings and Firewall

out



Click the image above to start the video




First thing you will need to do if you intend on completing this tutorial is to download the file below, to download it, right click the link and save as.



This tutorial will show how to set up openSUSE 11.1 for samba for file sharing on your network, and how to open the ports in your firewall to enable you to see other computers on your network.

We will start with enabling the services we need.

1) The first thing we need to do is open YaST. Go to the Application Launcher, Computer tab, click the YaST icon. Type your root password.

2) On the left hand side of YaST, click the System icon.

3) Now on the right hand side, we want to click the System Services icon.

4) When system services opens we need to look for two services.

a) smb

b) nmb

5) Click on on smb, and in the bottom of the window, click enable, then click OK on the confirmation dialog.

6) Do the same for nmb

7) Finally on the lower right hand side of the window, click OK, to save your settings. Samba is now enabled.



Next we need to open firewall ports so your computer can be seen on the network, and so you can see other computers.

1) On the left hand side of YaST, click on the Security and Users icon.

2) Now on the right hand side we need to click on the Firewall icon.

3) When the firewall configuration opens, go to the right hand side and click on Allowed Services.

4) Now on the right hand side there is a Servive to allow section, with a button drop down menu, click that button and select Samba Server.Then to the right click the add button.

5) Again click on the drop down menu and select NetBios Server, to the right again click the add button.

6) Now go back to the left hand column and click on Broadcast.

7) When the window opens, in the center area of the window click the add button.

8) In the window that opens type in your IP range, mine is 192.168.1.0/24. Be sure to enter the correct range here or it will not work. If you are sure no outside computers can access your network, you can leave that setting alone.

9) When done with our settings we can click finish, and close YaST.



Being a security conscience bunch like we are (right guys?) we want to password protect the share we will create. To do this we will create a samba user with a password. This ensures that no one can access your file share unless they have the username and password we are about to create.

1) Open a console and login as root, to log in as root type su and press the enter key, followed by your root password press the enter key.

2) Now we will type the following command. smbpasswd -a username (username replaced of course with the username of your choice).

3) The console will then ask for a password, enter it and press enter, it asks a second time for confirmation, eneter it again and press enter.



Now we can edit the smb.conf you downloaded at the begining of the tutorial we need to edit a couple lines to make it work on your network.

1) Click on the smb.conf and it should open with a text editor, we are only concerned with two sections of this file.

2) The first is the workgroup, this would be the existing workgroup your computers belong to, usually called WORKGROUP or MSHOME, enter the name of your workgroup after the workgroup= sign.

3) The next thing we want to change is the name of the share. The name for the share is currenty [Share] you can change this to be anything you like, I simply use my username [Bruce], you can make it anything you want.

4) The change we need to add is the path to the share, this must be a real path on your computer, for instance to share my home directory I enter /home/bruce, you can share any directory you want that belongs to the user we created. Enter the path after the path= so that it looks similar to

path= /home/bruce

5) Save the file. You save the file by clicking the Save button in the toolbar of the text editor.



Finally we will copy the new smb.conf to the proper directory and restart the samba server. 1) Open a console, login as root by typing su press enter, type your root password and press enter.

2) Assuming the file is in your home directory, we will run the command cp smb.conf /etc/samba/smb.conf press the enter key.

3) Now to retsart the server. run the command /etc/init.d/smb restart when it is finished close the console.



If you are a newcomer and unfamiliar with using the console, there is no need to be afraid, you can't break anything that can't be fixed.

Now that everything is set up, you may need to wait a while until the network becomes available or you can reboot your computer to get it up and going.

After the reboot you can open Dolphin, and on the left hand side click on network, and then click on Samba shares, and your workgroup should be visable and your file shares available.





Thank you for choosing Its Your PC!

I appreciate your support and hope you find my work useful. If you have any questions or need help, visit the or the contact page on this site.


Web site contents Copyright It's Your PC 2010, All rights reserved.
It's Your PC