Last week I received one PC to set up as a file server. I choose OpenSUSE 10.3 as operating system. There are 2 reasons why I choose OpenSUSE :
- I’ve tried it before and it was success.
- I thinks it’s easy to configure.
That PC is belong to my friend who has a small medium company. He needs to prepare a file server because his company growing rapidly right now. And file server is one of the several things that he must to prepare to support his business. May be next month I will help him to configure proxy and internet gateway. To play as a file server I use the Samba services in OpenSUSE. For some of you, Samba is a network protocol that provide file sharing between Unix (Linux also) operating system and Windows operating system. So that both of the operating system can change the informations over the IP network.
Here is what I was do to set a cricket PC (in Indonesian = “PC Jangkrik” / PC rakitan =)) ) as a file server :
- Install OpenSUSE to the PC, just easy with a nice graphical menu and sophisticated menu.
- In the software/package selections, I give mark in file server choice.
- When OpenSUSE has been installed in the PC, I create a directory called “data” with this command :
file-server:/etc/samba # mkdir /home/data
- The next step is edit
/etc/samba/smb.conffile so that the file contain this configurations (using root account):
file-server:/etc/samba # more /etc/samba/smb.conf # Global Parameters workgroup = home netbios name = Samba encrypt password = yes
[data] path = /home/data read only = no browseable = yes valid users = tedy, edi
- After that restart the samba services using this command :
file-server:/etc/samba # /etc/init.d/smb restart
- The next step is add some valid user to access the Samba file server using this command :
file-server:/etc/samba # smbpasswd -a edi
- I turn off the firewall using yast (I think the firewall in OpenSUSE blocked the Windows client to access Samba directory). This one is another issue to fix next time, how to enable firewall in OpenSUSE without disturb Samba services.
It was done. I check to access the server using my Windows notebook (using cross cable). First I change IP address so that my notebook has the same network IP address. To access the Samba directory, I use Run menu in Windows Start Menu and type
"\\220.127.116.11\data" and it’s works. One dialog box appear, I must complete username & password verifications to enter Samba directory.