|
HOWTO: Fileserver with Samba and Printserver with CUPS |
|
|
|
Page 1 of 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.
|