Chapter 27: Running a File Server . . . . . . . . . . . . . . . . . . . . . 713
Setting Up an NFS File Server ................................................................................714
Getting NFS ............................................................................................................716
Sharing NFS File Systems ........................................................................................716
Configuring the /etc/exports File....................................................................717
Exporting the Shared File Systems ................................................................720
Starting the nfs Daemons ..............................................................................720
Using NFS File Systems ..........................................................................................721
Manually Mounting an NFS File System ........................................................721
Automatically Mounting an NFS File System ................................................723
Using autofs to Mount NFS File Systems on Demand ....................................725
Unmounting NFS File Systems ................................................................................726
Other Cool Things to Do with NFS ........................................................................727
Setting Up a Samba File Server ..............................................................................728
Getting and Installing Samba ..................................................................................729
Configuring Samba with SWAT ..............................................................................730
Turning on the SWAT Service ........................................................................730
Starting with SWAT ......................................................................................731
Creating Global Samba Settings in SWAT ......................................................732
Configuring Shared Directories with SWAT ..................................................737
Checking Your Samba Setup with SWAT ......................................................739
Working with Samba Files and Commands ............................................................739
Editing the smb.conf File ..............................................................................739
Adding Samba Users......................................................................................740
Starting the Samba Service ............................................................................741
Testing Your Samba Permissions ....................................................................741
Checking the Status of Shared Directories......................................................742
Using Samba Shared Directories ..............................................................................742
Using Samba from Nautilus ..........................................................................742
Mounting Samba Directories in Linux............................................................743
Troubleshooting Your Samba Server ........................................................................743
Basic Networking in Place? ............................................................................743
Samba Service Running? ................................................................................744
Firewall Open? ..............................................................................................744
User Passwords Working? ..............................................................................745
Summary ................................................................................................................745
Part VI: Programming in Linux
Chapter 28: Programming Environments and Interfaces . . . . . . . . . . 749
Understanding Programming Environments ............................................................749
Using Linux Programming Environments ................................................................750
The Linux Development Environment ....................................................................751
The Process Model ........................................................................................752
CPU and Memory Protection ........................................................................753
xxx
Contents