Home arrow Linix - How to arrow HOWTO: Fileserver with Samba and Printserver with CUPS

Language Translator

Hacking Zone

Hacking Tools
Attacking

Configure Windows

Windows Configuration

Mix Tutorials

Asterisk
Website Building

Novels

Mix Novels

Human Personality

Body Language
HOWTO: Fileserver with Samba and Printserver with CUPS Print E-mail
Article Index
HOWTO: Fileserver with Samba and Printserver with CUPS
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8

HOWTO: Fileserver with Samba and Printserver with CUPS

 

           Considering the substantial increase in linux desktops, it seems likely that more and more of these users will need to integrate into Windows based networks. I have provided a breif howto on Printer and File Sharing with Samba.
 

NOTE: This has been used and tested under SUSE Linux 9.3 and Gentoo 2005.1. I make an effort to be as distro-independant as possible, but cannot promise anything.

Assumptions:

1. I assume you the reader will have some linux knowledge and are capable of using the CLI and editing various system files with root permission.

2. I assume you know how to install various packages either from source i.e. ./configure && make && make install or by using various package managers for available with your distro e.g. YaST for SUSE, apt for Debian, YUM for Fedora, URPMI for Mandriva, Portage for Gentoo etc..

3. I assume your client computers are running either some version of Linux or Windows 2000 or above. Samba will work with Macs and versions of Windows prior to 2K. However since I don't have a Mac or a "Copy" of 98 lying around, I can't test out to see if this howto works.

4. I assume your network works, i.e. you can ping each and every single computer at any given time. For more information on how to ping, read the ping man page i.e. man ping

5. I assume your server will have a static ip, trust me, you will always want your server to have the same IP so that you don't always have to change settings when its dhcp lease expires etc..

6. I assume you are setting this up for a home network, and hence won't require Samba to act as a PDC. (Primary Domain Controller)

7. I assume the printer will be directly connected to the server by a usb cable or parallel port cable.

I suggest you read through this guide and understand the steps before attempting to perform it on your systems.

Note: anything placed inside // is a comment and not a command

Ch 1. Setting up Samba


Using your distro's package manager install the latest version of samba available for it. As of 30/01/2006 the latest version of samba is 3.0.21. You can get binary i.e. precompiled packages of Samba from here for varios linux distros.

Install samba on your system before continuing.


Once samba has installed successfully, it is now time to edit the main samba configuration file. So in the terminal, become root and using your favourite editor, edit the /etc/samba/smb.conf file.
Code:
# nano -w /etc/samba/smb.conf

You may already see some things in this file, but for the purpose of this tutorial I am going to start from a clean smb.conf file. If you feel the need, backup your present smb.conf file with:
Code:
# cp /etc/samba/smb.conf /etc/samba/smb.conf.old

Now the smb.conf file is divided into 2 sections, the global section and the shares section. Firstly we will create the global section. As you may have guessed, the global section contains settings which will define the server.


 
< Prev   Next >
Your Ad Here

Donate us!!

Enter Amount:

RSS socialnet

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati
Add to BlinkBits