Minggu, April 12, 2009

File Server with Samba at Debian Etch

Communication needs at this time is multiplatform and very prosaic commonplace. Any sample application is data communication between the Windows platform with Linux. In this case I give in Linux by creating a package you can sincronize data communication with the windows.

Samba, that's the package is called, what is samba? What we read from the official site its samba, like this:

Samba is software that can be run on a platform other than Microsoft Windows, for example, UNIX, Linux, IBM System 390, OpenVMS, and other operating systems. Samba is software that can be run on a platform other than Microsoft Windows, for example, UNIX, Linux, IBM System 390, OpenVMS, and other operating systems. Samba uses the TCP/IP protocol that is installed on the host server. Samba uses the TCP / IP protocol that is installed on the host server. When correctly configured, it allows that host to interact with a Microsoft Windows client or server as if it is a Windows file and print server. When correctly configured, it allows that host to interact with a Microsoft Windows client or server as if it is a Windows file and print server.

already described uses samba? well now we will try to install samba via a GNU / Linux Debian.

How to install in Debian is very very easy, simply run the command:

~ # Aptitude install samba

So with all the packages samba and its dependency directly installed. When you are the next steps to set up living alone.

Well here I will try to give examples as needed in a cafe, because it is prone to have the virus in its windows, the computer user only contain the operating system windows are just storing data files stored on the server-based Debian earlier.

Samba in the position of: / etc / samba / smb.conf, just open the file, before what in especial utak settings it's good we just rename the original file, and we make a new pot contents setting samba suit us, me - how to rename done:

~# mv /etc/samba/smb.conf /etc/samba/smb.conf.bak

After that open a new smb.conf file by typing the command:

~# vim /etc/samba/smb.conf

Fill in the file with configurasi below:

Position on the Global Settings:

#======================= Global Settings =======================

[global] [global]

## Browsing/Identification ### # # Browsing / Identification # # #

workgroup = J00NET
netbios name = J00NETserver
server string = %h server (Samba %v)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
guest only = yes
guest ok = yes
####### Authentication #######

security = share

encrypt passwords = true

passdb backend = tdbsam

obey pam restrictions = yes

guest account = nobody guest
invalid users = root

#======================= Share Definitions =======================

[Data User]
path = /a_reserve/DataUser
comment = Share Directories
browseable = yes
writable = yes
public = yes
available = yes

[Multimedia]
path = /b_reserve/Multimedia/
comment = Multimedia Share
browseable = yes
writeable = yes
public = yes
available = yes

Now there are at least 3 pendefinisian in sambanya server, which is the main settings in the Customize Definitionnya, because we will open the folder you can access from windows machine.

Settings in here to do as closely as possible when the user saves the data he was not aware that the data stored on the server in the linux is not windows. With the above files / folders from samba share you can modify in such a way as it is writeable, Readable and Executeable. also omitted elements here include username and password when we access the share file we need.

When you are in the configuration, save and restart sambanya way:

~# /etc/init.d/samba restart.

For testing, please check in at the windows and the server ip sambanya accessed through explorer. Happy Testing