Wednesday, September 22, 2010

Samba configuration for Linux to windows file sharing

It's simple samba configuration for file sharing throw linux to windows,

You shound be the root user for install and configure samba in linux machine.

Here i used RedHat Enterprise Linux 5

Step 1 : Open terminal window, use command yum install samba* for install samba,

Step 2 : After install successfully open /etc/samba/smb.conf, in terminal

"#vim /etc/samba/smb.conf" and hit enter,

Step 3 : Find line "workgroup = MYGROUP", Change MYGROUP as your wish.
             * It's importent in printer sharing.

Step 4 : After that move to end of the file line,

Step 5 : Add following things,

[myshare]                                       # share name
comment = share's stuff               # just comment for share
path = /mnt/share                          # location of directory for share
valid users = user                         # user for share (Should be user in system)
public = no                                     # Public access, Local access without pass
writable = no                                 # For file
browsable = yes                            # For browse file
printable = no                                # For printer
hosts allow = 192.168.0.                # Which network should access share

Step 6 : Samba user creation / We can set different password for local system user and samba user.

#smbpasswd -a user                   [Type and hit enter, and give password for user]

Step 7 : That's all. You made it. Now want to start samba service.

#service smb start

#chkconfig smb on

Step 8 : Open you windows machine, open run window, Hit //[ip of linux machine]

Step 9 : It'll ask user name and password, use your samba user name and password for login. That's all.

Sunday, September 5, 2010

Windows printer sharing ( Network printer )

We can install printer in one machine and use it in all over local network,

Following the simple steps for to do it.

Step 1 : Add printer to printer list. If you installed printer driver, your PC can detect printer automaticly.

Step 2 : Right click the printer icon in Fax and Printer in Control Pannel. You have choice in list for printer sharing. Click it.

Step 3 : Give name to sharing printer, That's all.

Step 4 : Now you can access printer anywhere in local network by your printer installed system IP.


Open run box in client machine and type //[ip address of printer installed machine] and hit enter.

A window will open with printer icon ( If there is no printer you didn't share printer properly)

Just double click it, It ask for add printer just click Ok or Yes.

Now you can see printer name in your file print options.