Instalasi Samba ubuntu Hardy – File Sharing


we.. baca baca sambil coba coba artikel diSINI. eh. lumayan buat share

Instalasi Samba

1. Sebelum instalasi, download paket samba di http://packages.ubuntu.com/hardy/

saya menggunakan Repository KAMBING dan UI

a. libsmbclient (libsmbclient_3.0.28a-1ubuntu4.4_i386.deb)
b. samba-common (samba-common_3.0.28a-1ubuntu4.4_i386.deb)
c. samba (samba_3.0.28a-1ubuntu4.4_i386.deb)
d. smbclient (smbclient_3.0.28a-1ubuntu4.4_i386.deb)
e. smbfs (smbfs_3.0.28a-1ubuntu4.4_i386.deb)

2. Install libsmbclient

root@diaz-desktop:/samba# dpkg -i libsmbclient_3.0.28a-1ubuntu4.4_i386.deb
(Reading database ... 95750 files and directories currently installed.)
Preparing to replace libsmbclient 3.0.28a-1ubuntu4 (using libsmbclient_3.0.28a-1ubuntu4.4_i386.deb) ...
Unpacking replacement libsmbclient ...
Setting up libsmbclient (3.0.28a-1ubuntu4.4) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place

3. Install samba-common

root@diaz-desktop:/samba# dpkg -i samba-common_3.0.28a-1ubuntu4.4_i386.deb
(Reading database ... 95750 files and directories currently installed.)
Preparing to replace samba-common 3.0.28a-1ubuntu4.4 (using samba-common_3.0.28a-1ubuntu4.4_i386.deb) ...
Unpacking replacement samba-common ...
Setting up samba-common (3.0.28a-1ubuntu4.4) ...

4. Install smbclient

root@diaz-desktop:/samba# dpkg -i smbclient_3.0.28a-1ubuntu4.4_i386.deb
(Reading database ... 95750 files and directories currently installed.)
Preparing to replace smbclient 3.0.28a-1ubuntu4 (using smbclient_3.0.28a-1ubuntu4.4_i386.deb) ...
Unpacking replacement smbclient ...
Setting up smbclient (3.0.28a-1ubuntu4.4) ...

5. Install smbfs

root@diaz-desktop:/samba# dpkg -i smbfs_3.0.28a-1ubuntu4.4_i386.deb
Selecting previously deselected package smbfs.
(Reading database ... 95750 files and directories currently installed.)
Unpacking smbfs (from smbfs_3.0.28a-1ubuntu4.4_i386.deb) ...
Setting up smbfs (3.0.28a-1ubuntu4.4) ...

6. Install samba

root@diaz-desktop:/samba# dpkg -i samba_3.0.28a-1ubuntu4.4_i386.deb
Selecting previously deselected package samba.
(Reading database ... 95767 files and directories currently installed.)
Unpacking samba (from samba_3.0.28a-1ubuntu4.4_i386.deb) ...
Setting up samba (3.0.28a-1ubuntu4.4) ...
Generating /etc/default/samba...
tdbsam_open: Converting version 0 database to version 3.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for nobody...ok
Importing account for diaz...ok
Importing account for second...ok
Importing account for a123...ok
Importing account for a88...ok
Importing account for b123...ok
Importing account for c123...ok
Importing account for d88...ok
Importing account for win...ok
Adding group `sambashare' (GID 125) ...
Done.
Adding user `diaz' to group `sambashare' ...
Adding user diaz to group sambashare
Done.
Adding user `second' to group `sambashare' ...
Adding user second to group sambashare
Done.
 * Starting Samba daemons                                                                 [ OK ]

Konfigurasi samba

Konfigurasi samba ada di file smb.conf yang berada di /etc/samba/

1. Edit file tersebut menggunakan editor vi/pico/nano/gedit

root@diaz-desktop:/samba# pico /etc/samba/smb.conf

Pada bagian workgroup, isikan dengan mana workgroupnya. Pada bagian security = user, ganti dengan security share.

workgroup Lab2
security = share

Untuk ujicoba sharing data, tambahkan baris berikut di akhir file

 [Coba Share]
	comment = Buat coba coba
	path = /home/diaz/Documents
	create mask = 0600
	directory mask = 0700

2. Simpan dan jalankan testparm

root@diaz-desktop:/samba# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Coba Share]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	server string = %h server (Samba, Ubuntu)
	map to guest = Bad User
	obey pam restrictions = Yes
	passdb backend = tdbsam
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	dns proxy = No
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d
	invalid users = root

[printers]
	comment = All Printers
	path = /var/spool/samba
	create mask = 0700
	printable = Yes
	browseable = No

[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers

[Coba Share]
	comment = Buat coba coba
	path = /home/diaz/Documents
	create mask = 0600
	directory mask = 0700

3. Menjalankan samba:

root@diaz-desktop:/samba# /etc/init.d/samba start
 * Starting Samba daemons                                                                 [ OK ]

4. Menghentikan samba

root@diaz-desktop:/samba# /etc/init.d/samba stop
 * Stopping Samba daemons                                                                 [ OK ]

5. Merestart samba :

root@diaz-desktop:/samba# /etc/init.d/samba restart
 * Stopping Samba daemons                                                                 [ OK ]
 * Starting Samba daemons                                                                 [ OK ]

6. Kalau samba sudah dijalankan, sekarang browsing melalui komputer Windows. Sebelumnya pastikan dulu antara komputer tersebut sudah diseting IP nya dan sudah terhubung.

Browsing menggunakan Explorer, ketik di address bar : \\IPkompLinux

Contoh : \\192.168.1.1\

Maka akan tampak file/folder yang dishare di komputer Linux.

cobashare

7. Untuk melihat share file yang ada di komputer Windows dari komputer Linux, harus dilakukan mounting dari komputer Linux.

Sebagai contoh, berikut saya share direktori data di D:\ dari komputer Windows.

sharedata

Cara mounting :

syntak : smbmount //IPWindows/dirshare /dirsharedilinux smbfs 0 0

contoh : smbmount //192.168.1.5/data /home/diaz/lima 0 0

root@diaz-desktop:/samba# smbmount //192.168.1.5/data /home/diaz/lima 0 0
Password:

Masukkan password dan enter.

Selanjutnya browse menggunakan nautilus di Ubuntu. Seperti tampak pada gambar. Gampang kan?

Nah.. Ilmu ilmu tambahan yang lain mengenai tambah User, Grub dan Lain nya seputar Samba bisa dicari tambahannya di SINI

Instalasi Samba ubuntu Hardy – File Sharing

2 thoughts on “Instalasi Samba ubuntu Hardy – File Sharing

  1. Each month management consultants in the Australia receive more than $2 billion for their
    services. Much of this money pays for impractical statistics and poorly
    prepared resource fo review services, credit policies & procedure re-evaluation.

    Our business is focussed in ensuring the safety and improving practice.
    We undertake a wide range of areas of activity, including
    RTF – our own unique model of review. We, have greatly experienced and talented directors offer a wide variety of
    special services to meet managers many needs.

    We provides you with the research and economic tools to grow your share of the global market.
    We have technical support that can help you achieve your business
    goals through consulting on strategic issues, product development, marketing programs and channels
    for distribution.

    A common goal for a statistical research project is to identify causality, and
    in particular to draw a conclusion on the effect
    of changes in the values of predictors or independent variables on other variables or reactions.
    There are two main types of causal statistical studies: experimental studies and observing study.

    In both types of studies, the effect of differences
    of an independent variable (or variables) on the behavior of the dependent variable are observed.

  2. Each 2 year management consultants in the United States
    receive more than $2 billion for their services.
    Much of this money pays for dpdgy statistics and poorly prepared resource fo review services, regional policies &
    procedure evaluation.

    Our business system is focused in guarding and improving practice.

    We undertake a wide range of areas of activity, including P5F – our own unique model of review.
    We, have greatly experienced and talented consultants offer a wide variety of super
    services to meet people many needs.

    We together with you provides you with the research and business solutions to grow your share of the global market.
    We have technical support that can help you get your business goals through consulting on strategic things, product development, marketing programs and channels for distribution.

    A common goal for a statistical research project is to discover causality, and in particular
    to draw a actionable conclusion on the effect of changes in the values of predictors or independent variables on dependent variables or response.
    There are 2 major types of causal statistical studies:
    experimental study and observing study. In 2 types of studies,
    the effect of differences of an independent variable (or
    variables) on the behavior of the dependent variable are observed.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s