Manage Network Services: DNS, File and Print Services

436
-1

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
436
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Manage Network Services: DNS, File and Print Services

  1. 1. Manage Network Services: DNS, File and Print Services SECTION 10 Manage Network Services: DNS, File and Print Services In this section of the workbook, you learn how to do the following: ■ “Configure a DNS Caching-only Server” on 10-1 ■ “Set Up and Manage Network File System (NFS)” on 10-3 ■ “Configure a Basic Samba Server” on 10-7 ■ “Configure CUPS Network Printing Services” on 10-11 Exercise 10-1 Configure a DNS Caching-only Server A caching only DNS Server queries other servers and keeps the answers in its cache. If the same query comes again later, it is answered out of the cache without contacting servers in the Internet. Such a DNS server acts as a proxy and makes direct connections from the clients in the LAN to DNS servers in the Internet unnecessary. To configure a caching-only DNS server, do the following: ■ Part I: Install BIND ■ Part II: Configure a DNS Caching-only Server Part I: Install BIND Do the following: 1. From the KDE menu, select System > YaST. 2. Enter the root password and select OK. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  2. 2. Manage Network Services: DNS, File and Print Services SECTION 10 Manage Network Services: DNS, File and Print Services In this section of the workbook, you learn how to do the following: ■ “Configure a DNS Caching-only Server” on 10-1 ■ “Set Up and Manage Network File System (NFS)” on 10-3 ■ “Configure a Basic Samba Server” on 10-7 ■ “Configure CUPS Network Printing Services” on 10-11 Exercise 10-1 Configure a DNS Caching-only Server A caching only DNS Server queries other servers and keeps the answers in its cache. If the same query comes again later, it is answered out of the cache without contacting servers in the Internet. Such a DNS server acts as a proxy and makes direct connections from the clients in the LAN to DNS servers in the Internet unnecessary. To configure a caching-only DNS server, do the following: ■ Part I: Install BIND ■ Part II: Configure a DNS Caching-only Server Part I: Install BIND Do the following: 1. From the KDE menu, select System > YaST. 2. Enter the root password and select OK. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  3. 3. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook 3. From the YaST Control Center, select Software > Install and Remove Software 4. From the filter drop-down menu, select Search. 5. In the Search field, enter bind; then select Search. 6. On the right, select the bind package. 7. Select Accept; then insert the requested SLES 9 CD. 8. When installation is complete, remove the CD and close the YaST Control Center. Part II: Configure a DNS Caching-only Server Be sure that the VMWare machine 1. Open a terminal window and su to root. da1 is up and running before you start this exercise, as it is used as 2. Open the file /etc/named.conf in a text editor. the forwarder in this exercise. 3. Configure the forwarders line to match the following: forwarders { 10.0.0.254; }; Make sure that you delete the comment character from the beginning of the forwarders line. 4. Save and close the file. 5. Open a second terminal window and su to root. 6. Enter the following command: tail -f /var/log/messages 7. Switch to the first terminal window and start bind with the following command: rcnamed start x If there are errors in the file /etc/named, they are noted in the output (with specific references and line numbers). The named daemon will not start until these errors are fixed. Workbook 10-2 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  4. 4. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook 3. From the YaST Control Center, select Software > Install and Remove Software 4. From the filter drop-down menu, select Search. 5. In the Search field, enter bind; then select Search. 6. On the right, select the bind package. 7. Select Accept; then insert the requested SLES 9 CD. 8. When installation is complete, remove the CD and close the YaST Control Center. Part II: Configure a DNS Caching-only Server Be sure that the VMWare machine 1. Open a terminal window and su to root. da1 is up and running before you start this exercise, as it is used as 2. Open the file /etc/named.conf in a text editor. the forwarder in this exercise. 3. Configure the forwarders line to match the following: forwarders { 10.0.0.254; }; Make sure that you delete the comment character from the beginning of the forwarders line. 4. Save and close the file. 5. Open a second terminal window and su to root. 6. Enter the following command: tail -f /var/log/messages 7. Switch to the first terminal window and start bind with the following command: rcnamed start x If there are errors in the file /etc/named, they are noted in the output (with specific references and line numbers). The named daemon will not start until these errors are fixed. Workbook 10-2 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  5. 5. Manage Network Services: DNS, File and Print Services 8. From the second terminal window, watch the log output of bind for any messages such as Unknown RR Type or File Not Found. (If there are no such error messages, then your server is most probably configured correctly.) 9. If any errors occur, try to fix them and restart BIND. 10. From the first terminal window, start BIND automatically when the system is booted by entering the following: insserv named 11. Open the file /etc/resolv.conf in a text editor. 12. Delete all existing nameserver entries. 13. Add the following entry as the first entry: nameserver 127.0.0.1 14. Save and close the file. Other names (like 15. Verify that your DNS server works, querying the nameserver www.novell.com) are only running on da1.digitalairlines.com, by entering resolved if da1 is able to resolve these addresses. host da20.digitalairlines.com (End of Exercise) Exercise 10-2 Set Up and Manage Network File System (NFS) Today it is more the rule than the exception that files on some file server are exported to client workstations. In a purely Unix/Linux environment this is usually accomplished using NFS. The purpose of this exercise is to walk you through the necessary steps to export and import such directories. In this exercise, you use NFS as a server and a client to share files between Linux hosts. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-3 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  6. 6. Manage Network Services: DNS, File and Print Services 8. From the second terminal window, watch the log output of bind for any messages such as Unknown RR Type or File Not Found. (If there are no such error messages, then your server is most probably configured correctly.) 9. If any errors occur, try to fix them and restart BIND. 10. From the first terminal window, start BIND automatically when the system is booted by entering the following: insserv named 11. Open the file /etc/resolv.conf in a text editor. 12. Delete all existing nameserver entries. 13. Add the following entry as the first entry: nameserver 127.0.0.1 14. Save and close the file. Other names (like 15. Verify that your DNS server works, querying the nameserver www.novell.com) are only running on da1.digitalairlines.com, by entering resolved if da1 is able to resolve these addresses. host da20.digitalairlines.com (End of Exercise) Exercise 10-2 Set Up and Manage Network File System (NFS) Today it is more the rule than the exception that files on some file server are exported to client workstations. In a purely Unix/Linux environment this is usually accomplished using NFS. The purpose of this exercise is to walk you through the necessary steps to export and import such directories. In this exercise, you use NFS as a server and a client to share files between Linux hosts. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-3 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  7. 7. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook You need to complete this Do the following: exercise for other exercises in the rest of the course to work properly. ■ Part I: Add a Remote File System to the NFS Client ■ Part II: Set Up an NFS Server Part I: Add a Remote File System to the NFS Client In this part of the exercise you access a remote file system (/export/sles9) on the da1.digitalairlines.com server. Do the following: 1. From your KDE desktop, open a terminal window and su to root (su -) with a password of novell. 2. Create a mount point named /mnt/sles9 for the instructor’s remote file system to be mounted on your server by entering the following: mkdir -p /mnt/sles9 3. Add a remote file system to the NFS client configuration: a. From your KDE desktop, select the YaST icon; then enter a password of novell and select OK. The YaST Control Center appears. b. Select Network Services > NFS Client. The Configuration of the NFS client dialog appears. c. Mount a remote file system by selecting Add. A dialog appears for adding the remote file system. d. Enter the following: ❑ Host name of the NFS Server: 10.0.0.254 (this is the address of the instructor’s server) ❑ Remote filesystem: /export/sles9/ ❑ Mountpoint (local): /mnt/sles9/ ❑ Options field: defaults,rsize=8192,wsize=8192,soft Workbook 10-4 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  8. 8. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook You need to complete this Do the following: exercise for other exercises in the rest of the course to work properly. ■ Part I: Add a Remote File System to the NFS Client ■ Part II: Set Up an NFS Server Part I: Add a Remote File System to the NFS Client In this part of the exercise you access a remote file system (/export/sles9) on the da1.digitalairlines.com server. Do the following: 1. From your KDE desktop, open a terminal window and su to root (su -) with a password of novell. 2. Create a mount point named /mnt/sles9 for the instructor’s remote file system to be mounted on your server by entering the following: mkdir -p /mnt/sles9 3. Add a remote file system to the NFS client configuration: a. From your KDE desktop, select the YaST icon; then enter a password of novell and select OK. The YaST Control Center appears. b. Select Network Services > NFS Client. The Configuration of the NFS client dialog appears. c. Mount a remote file system by selecting Add. A dialog appears for adding the remote file system. d. Enter the following: ❑ Host name of the NFS Server: 10.0.0.254 (this is the address of the instructor’s server) ❑ Remote filesystem: /export/sles9/ ❑ Mountpoint (local): /mnt/sles9/ ❑ Options field: defaults,rsize=8192,wsize=8192,soft Workbook 10-4 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  9. 9. Manage Network Services: DNS, File and Print Services e. Save the configuration by selecting OK. You are returned to the Configuration of the NFS client dialog where the remote file system is listed. 4. Save the changes to the system by selecting Finish. 5. From the terminal window, verify that the file system is mounted by entering mount. You see the remote host mounted on /mnt/sles9. 6. List the files in the mounted file system by entering ls -l /mnt/sles9 7. Check the entry entered by YaST in the file /etc/fstab by entering cat /etc/fstab This entry ensures that the file system is mounted each time the server boots. 8. Check for any other exports on the instructor’s SLES9 server by entering showmount -e 10.0.0.254 Part II: Set Up an NFS Server Do the following: 1. From your KDE desktop, open a terminal window and su to root (su -) with a password of novell. 2. Create the directory /export/data if it does not exist by entering mkdir -p /export/data 3. Create a file in that directory by entering echo hello > /export/data/hallo.txt 4. From the YaST Control Center, configure an NFS server on your computer by selecting Network Services > NFS Server. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-5 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  10. 10. Manage Network Services: DNS, File and Print Services e. Save the configuration by selecting OK. You are returned to the Configuration of the NFS client dialog where the remote file system is listed. 4. Save the changes to the system by selecting Finish. 5. From the terminal window, verify that the file system is mounted by entering mount. You see the remote host mounted on /mnt/sles9. 6. List the files in the mounted file system by entering ls -l /mnt/sles9 7. Check the entry entered by YaST in the file /etc/fstab by entering cat /etc/fstab This entry ensures that the file system is mounted each time the server boots. 8. Check for any other exports on the instructor’s SLES9 server by entering showmount -e 10.0.0.254 Part II: Set Up an NFS Server Do the following: 1. From your KDE desktop, open a terminal window and su to root (su -) with a password of novell. 2. Create the directory /export/data if it does not exist by entering mkdir -p /export/data 3. Create a file in that directory by entering echo hello > /export/data/hallo.txt 4. From the YaST Control Center, configure an NFS server on your computer by selecting Network Services > NFS Server. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-5 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  11. 11. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook A Configuration of the NFS server dialog appears. 5. Select Start NFS Server; then continue by selecting Next. A Directories to export to the others dialog appears. 6. Add the directory /export/data to the list for export: a. Select Add Directory. A dialog appears, requesting the directory to export. b. Enter /export/data/; then select OK. A dialog appears with fields for entering a wildcard and options. c. Enter the following: ❑ Hosts wildcard: * ❑ Options: rw,no_root_squash,sync (make sure you replace “ro” with “rw”) d. Continue by selecting OK. The directory is added to the list. 7. Save the changes to the system by selecting Finish. 8. From the terminal window, verify that the file system was exported by entering showmount -e localhost 9. View the entry made by YaST to the file /etc/exports by entering cat /etc/exports These are the settings you entered in YaST. Make shure the da1 VMWare 10. Work with a partner to access the directory /export/data directly machine is up and use da1 instead from the partner’s server by doing the following: of your partner’s machine when a. Create a mountpoint /mnt/share on your server by entering working on your own. mkdir -p /mnt/share b. Mount your partner’s directory doing one of the following: Workbook 10-6 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  12. 12. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook A Configuration of the NFS server dialog appears. 5. Select Start NFS Server; then continue by selecting Next. A Directories to export to the others dialog appears. 6. Add the directory /export/data to the list for export: a. Select Add Directory. A dialog appears, requesting the directory to export. b. Enter /export/data/; then select OK. A dialog appears with fields for entering a wildcard and options. c. Enter the following: ❑ Hosts wildcard: * ❑ Options: rw,no_root_squash,sync (make sure you replace “ro” with “rw”) d. Continue by selecting OK. The directory is added to the list. 7. Save the changes to the system by selecting Finish. 8. From the terminal window, verify that the file system was exported by entering showmount -e localhost 9. View the entry made by YaST to the file /etc/exports by entering cat /etc/exports These are the settings you entered in YaST. Make shure the da1 VMWare 10. Work with a partner to access the directory /export/data directly machine is up and use da1 instead from the partner’s server by doing the following: of your partner’s machine when a. Create a mountpoint /mnt/share on your server by entering working on your own. mkdir -p /mnt/share b. Mount your partner’s directory doing one of the following: Workbook 10-6 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  13. 13. Manage Network Services: DNS, File and Print Services ❑ Enter mount -t nfs partner_IP:/export/data /mnt/share or ❑ Use the YaST NFS Client module to mount the directory. 11. Verify that your partner’s directory is mounted by entering mount 12. Start Konqueror in the Super User Mode by pressing Alt + F2 and entering kdesu konqueror; then select Run. 13. Enter a password of novell and select OK. 14. View your NFS export by entering the following URL: nfs://localhost 15. View your partner’s NFS export by entering the following URL: nfs://partner_server_IP_address 16. (Optional) If you finish early, try changing the entry in the /etc/exports file so that only you or your partner can write to the file system, and only one of you can read from it. 17. When you finish, close all open windows and dialogs. (End of Exercise) Exercise 10-3 Configure a Basic Samba Server NFS clients for Windows machines exist, but it is far more common to use the SMB protocol instead of NFS when Windows machines are involved in sharing resources (files, printers) over the network. Samba offers a large variety of configuration options. Only the most common ones are covered in this exercise. Its purpose is to help you set up a simple Samba service. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-7 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  14. 14. Manage Network Services: DNS, File and Print Services ❑ Enter mount -t nfs partner_IP:/export/data /mnt/share or ❑ Use the YaST NFS Client module to mount the directory. 11. Verify that your partner’s directory is mounted by entering mount 12. Start Konqueror in the Super User Mode by pressing Alt + F2 and entering kdesu konqueror; then select Run. 13. Enter a password of novell and select OK. 14. View your NFS export by entering the following URL: nfs://localhost 15. View your partner’s NFS export by entering the following URL: nfs://partner_server_IP_address 16. (Optional) If you finish early, try changing the entry in the /etc/exports file so that only you or your partner can write to the file system, and only one of you can read from it. 17. When you finish, close all open windows and dialogs. (End of Exercise) Exercise 10-3 Configure a Basic Samba Server NFS clients for Windows machines exist, but it is far more common to use the SMB protocol instead of NFS when Windows machines are involved in sharing resources (files, printers) over the network. Samba offers a large variety of configuration options. Only the most common ones are covered in this exercise. Its purpose is to help you set up a simple Samba service. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-7 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  15. 15. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook In this exercise, you do the following: ■ Part I: Configure the Samba Client ■ Part II: Configure the Samba Server Part I: Configure the Samba Client In this part of the exercise, you connect to the instructor’s Samba server by doing the following: 1. From the KDE desktop, select the YaST icon; then enter a password of novell and select OK. The YaST Control Center appears. 2. Select Network Services > Samba Client. A Samba Workgroup dialog appears. 3. In the Domain or Workgroup field, browse to and select or enter SUSE-CLASS. 4. Save the changes by selecting Finish. 5. Open a terminal window and su to root (su -) with a password of novell. 6. Connect the instructor’s Samba server by entering smbclient //10.0.0.254/sles9 -U geeko 7. Enter a password of N0v3ll. You are logged in to an smbclient session. 8. View the files on the share by entering dir. 9. Copy the file manual.pdf to the local directory /tmp by entering lcd /tmp cd SUSE-SLES-Version-9/CD1/docu/en get manual.pdf 10. End the smbclient session by entering quit. Workbook 10-8 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  16. 16. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook In this exercise, you do the following: ■ Part I: Configure the Samba Client ■ Part II: Configure the Samba Server Part I: Configure the Samba Client In this part of the exercise, you connect to the instructor’s Samba server by doing the following: 1. From the KDE desktop, select the YaST icon; then enter a password of novell and select OK. The YaST Control Center appears. 2. Select Network Services > Samba Client. A Samba Workgroup dialog appears. 3. In the Domain or Workgroup field, browse to and select or enter SUSE-CLASS. 4. Save the changes by selecting Finish. 5. Open a terminal window and su to root (su -) with a password of novell. 6. Connect the instructor’s Samba server by entering smbclient //10.0.0.254/sles9 -U geeko 7. Enter a password of N0v3ll. You are logged in to an smbclient session. 8. View the files on the share by entering dir. 9. Copy the file manual.pdf to the local directory /tmp by entering lcd /tmp cd SUSE-SLES-Version-9/CD1/docu/en get manual.pdf 10. End the smbclient session by entering quit. Workbook 10-8 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  17. 17. Manage Network Services: DNS, File and Print Services 11. Create the directory /mnt/sles9-2 by entering mkdir -p /mnt/sles9-2 12. Mount the remote CIFS file system to the local host by entering (in one line) mount -t smbfs -o username=geeko,password=N0v3ll //10.0.0.254/sles9 /mnt/sles9-2 Now the files on the instructor’s system are accessible through the NFS and CIFS protocols. 13. Verify that the file system mounted by entering mount. 14. View the files in the directory by entering ls -l /mnt/sles9-2 Part II: Configure the Samba Server In this part of the exercise you configure a basic CIFS server using YaST to configure Samba. Do the following: 1. Open a terminal window and su - to root with a password of novell. 2. From the terminal window, create the user account geeko for the Samba server by entering smbpasswd -a geeko 3. Enter a password of N0v3ll twice. 4. Verify that the user geeko was added to the Samba user database by entering cat /etc/samba/smbpasswd 5. Check with ls /export/ whether the directory /export/data exists. If not, create it with mkdir -p /export/data. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-9 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  18. 18. Manage Network Services: DNS, File and Print Services 11. Create the directory /mnt/sles9-2 by entering mkdir -p /mnt/sles9-2 12. Mount the remote CIFS file system to the local host by entering (in one line) mount -t smbfs -o username=geeko,password=N0v3ll //10.0.0.254/sles9 /mnt/sles9-2 Now the files on the instructor’s system are accessible through the NFS and CIFS protocols. 13. Verify that the file system mounted by entering mount. 14. View the files in the directory by entering ls -l /mnt/sles9-2 Part II: Configure the Samba Server In this part of the exercise you configure a basic CIFS server using YaST to configure Samba. Do the following: 1. Open a terminal window and su - to root with a password of novell. 2. From the terminal window, create the user account geeko for the Samba server by entering smbpasswd -a geeko 3. Enter a password of N0v3ll twice. 4. Verify that the user geeko was added to the Samba user database by entering cat /etc/samba/smbpasswd 5. Check with ls /export/ whether the directory /export/data exists. If not, create it with mkdir -p /export/data. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-9 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  19. 19. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook 6. From the YaST Control Center, select Network Services > Samba Server A Samba Configuration dialog appears. 7. Select the Startup tab; then select On - Enable Service Automatically and Start on Booting 8. Select the Shares tab. 9. Add a share by selecting Add. An Add New Share dialog appears. 10. Enter the following: ❑ Share Name: data ❑ Description: Data ❑ Share Type: Directory ❑ Share Path: /export/data/ 11. When you finish, select OK. You are returned to the Samba Configuration dialog, and the share data is added to the list. 12. Save the changes to the system by selecting Finish. A dialog appears requesting a root password. 13. Enter novell twice; then select OK. 14. From the terminal window, view the CIFS shares enabled in the Samba configuration by entering smbclient -L localhost -U geeko 15. Enter a password of N0v3ll. 16. Open a Konqueror browser window; then enter the following URI: smb://geeko@your_IP_address/data An authentication dialog appears. Workbook 10-10 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  20. 20. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook 6. From the YaST Control Center, select Network Services > Samba Server A Samba Configuration dialog appears. 7. Select the Startup tab; then select On - Enable Service Automatically and Start on Booting 8. Select the Shares tab. 9. Add a share by selecting Add. An Add New Share dialog appears. 10. Enter the following: ❑ Share Name: data ❑ Description: Data ❑ Share Type: Directory ❑ Share Path: /export/data/ 11. When you finish, select OK. You are returned to the Samba Configuration dialog, and the share data is added to the list. 12. Save the changes to the system by selecting Finish. A dialog appears requesting a root password. 13. Enter novell twice; then select OK. 14. From the terminal window, view the CIFS shares enabled in the Samba configuration by entering smbclient -L localhost -U geeko 15. Enter a password of N0v3ll. 16. Open a Konqueror browser window; then enter the following URI: smb://geeko@your_IP_address/data An authentication dialog appears. Workbook 10-10 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  21. 21. Manage Network Services: DNS, File and Print Services 17. Authenticate as geeko with a password of N0v3ll; then select OK. 18. From Konqueror, access a partner’s /export/data directory by entering smb://geeko:N0v3ll@your_partner’s_IP_address/data If you do not enter the password in the above line, an authentication dialog will appear, prompting you for the password. 19. When you finish, close all open windows. (End of Exercise) Exercise 10-4 Configure CUPS Network Printing Services It is usually more economical to have one larger printer within a department than to equip each workstation with a printer of its own. This printer is then used by several persons via the network. There are various protocol possible to address such a printer. Cups uses primarily the Internet Printing Protocol (IPP). In this exercise you set up and manage a CUPS printing environment on your SLES 9 server by doing the following: ■ Part I: Manage the Printer from the Command Line ■ Part II: Manage the Printer with YaST ■ Part III: Provide Access to the CUPS Administrator ■ Part IV: Print to a Remote CUPS Printer x You have to set up a printer in Exercise 4.4 to complete this exercise. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-11 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  22. 22. Manage Network Services: DNS, File and Print Services 17. Authenticate as geeko with a password of N0v3ll; then select OK. 18. From Konqueror, access a partner’s /export/data directory by entering smb://geeko:N0v3ll@your_partner’s_IP_address/data If you do not enter the password in the above line, an authentication dialog will appear, prompting you for the password. 19. When you finish, close all open windows. (End of Exercise) Exercise 10-4 Configure CUPS Network Printing Services It is usually more economical to have one larger printer within a department than to equip each workstation with a printer of its own. This printer is then used by several persons via the network. There are various protocol possible to address such a printer. Cups uses primarily the Internet Printing Protocol (IPP). In this exercise you set up and manage a CUPS printing environment on your SLES 9 server by doing the following: ■ Part I: Manage the Printer from the Command Line ■ Part II: Manage the Printer with YaST ■ Part III: Provide Access to the CUPS Administrator ■ Part IV: Print to a Remote CUPS Printer x You have to set up a printer in Exercise 4.4 to complete this exercise. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-11 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  23. 23. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook Part I: Manage the Printer from the Command Line Do the following: 1. Open a terminal window. 2. Send a print job to the HP LaserJet 4 printer using the Berkeley printer commands: a. Send the file /etc/hosts to be printed by entering lpr -P hplj4 /etc/hosts b. View the print queue for hplj4 by entering lpq -P hplj4 The jobs to print the hosts file is listed. Note the job number. 3. Send a print job to the HP LaserJet 4 printer using the System V printer commands: a. Send the file /etc/hosts to the printer by entering lp -d hplj4 /etc/hosts b. View the print queue for hplj4 by entering lpstat hplj4 There are two jobs listed—the two hosts file jobs. 4. In a Konqueror window view http://localhost:631/ and view the CUPS job page by selecting Jobs to see the new jobs in the web interface. 5. From a terminal window, cancel the test page job (job number as noted in Step 2b) by entering lprm -P hplj4 x 6. Enter lpstat hplj4. The print job has been deleted. 7. Check the status of the printer by entering lpc status. Workbook 10-12 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  24. 24. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook Part I: Manage the Printer from the Command Line Do the following: 1. Open a terminal window. 2. Send a print job to the HP LaserJet 4 printer using the Berkeley printer commands: a. Send the file /etc/hosts to be printed by entering lpr -P hplj4 /etc/hosts b. View the print queue for hplj4 by entering lpq -P hplj4 The jobs to print the hosts file is listed. Note the job number. 3. Send a print job to the HP LaserJet 4 printer using the System V printer commands: a. Send the file /etc/hosts to the printer by entering lp -d hplj4 /etc/hosts b. View the print queue for hplj4 by entering lpstat hplj4 There are two jobs listed—the two hosts file jobs. 4. In a Konqueror window view http://localhost:631/ and view the CUPS job page by selecting Jobs to see the new jobs in the web interface. 5. From a terminal window, cancel the test page job (job number as noted in Step 2b) by entering lprm -P hplj4 x 6. Enter lpstat hplj4. The print job has been deleted. 7. Check the status of the printer by entering lpc status. Workbook 10-12 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  25. 25. Manage Network Services: DNS, File and Print Services 8. Reload the CUPS jobs page to verify that the job x has been removed. 9. From the terminal window, view the contents of the file /etc/printcap by entering cat /etc/printcap. Part II: Manage the Printer with YaST In this part of the exercise, you perform some basic printer management tasks with YaST. Do the following: 1. Change basic settings for the HP LaserJet 4 printer: a. From the YaST Control Center select Hardware > Printer. The Printer Configuration dialog appears. b. Modify an existing printer by selecting Change. c. Make sure the hplj4 printer is selected; then select Edit. A list of option areas to edit appears. d. Make sure Name and Basic Settings is selected; then select Edit. e. Enter the following: ❑ Description of Printer: LaserJet 4 on DAxx (where xx is your host number) ❑ Location of Printer: DAxx computer f. Return to the Edit configuration dialog by selecting Next. g. Save the changes and close the YaST module by selecting OK; then select Finish. h. From the Konqueror browser, view the changes by selecting Printers. 2. Change the filter settings for the HP LaserJet 4 printer: a. From the YaST Control Center select Hardware > Printer. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-13 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  26. 26. Manage Network Services: DNS, File and Print Services 8. Reload the CUPS jobs page to verify that the job x has been removed. 9. From the terminal window, view the contents of the file /etc/printcap by entering cat /etc/printcap. Part II: Manage the Printer with YaST In this part of the exercise, you perform some basic printer management tasks with YaST. Do the following: 1. Change basic settings for the HP LaserJet 4 printer: a. From the YaST Control Center select Hardware > Printer. The Printer Configuration dialog appears. b. Modify an existing printer by selecting Change. c. Make sure the hplj4 printer is selected; then select Edit. A list of option areas to edit appears. d. Make sure Name and Basic Settings is selected; then select Edit. e. Enter the following: ❑ Description of Printer: LaserJet 4 on DAxx (where xx is your host number) ❑ Location of Printer: DAxx computer f. Return to the Edit configuration dialog by selecting Next. g. Save the changes and close the YaST module by selecting OK; then select Finish. h. From the Konqueror browser, view the changes by selecting Printers. 2. Change the filter settings for the HP LaserJet 4 printer: a. From the YaST Control Center select Hardware > Printer. Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-13 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  27. 27. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook The Printer Configuration dialog appears. b. Modify the existing printers by selecting Change. c. Make sure the hplj4 printer is selected; then select Edit. A list of option areas to edit appears. d. Select Printing Filter Settings; then select Edit. A list of options appears at the top of the screen with a list of values for each option at the bottom of the screen. e. Scroll down the list of options and select Page Size. Notice that the page size is set to A4. f. Change the page size to US Letter by selecting Letter; then select Next. g. Save the changes and close the YaST module by selecting OK; then select Finish. h. From the terminal window, verify that the new default page size is set to US Letter by entering grep DefaultPageSize /etc/cups/ppd/hplj4.ppd Part III: Provide Access to the CUPS Administrator Before printers can be administered through a web browser, you need to create a CUPS password for each authorized user. Do the following: 1. Make sure you are su’d to root in the terminal window. 2. Enter the following to create a CUPS digest password for the root user: lppasswd -a root 3. Enter a password of N0v3ll twice. 4. From the Konqueror web browser, enter the following URL: http://localhost:631/admin Workbook 10-14 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  28. 28. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook The Printer Configuration dialog appears. b. Modify the existing printers by selecting Change. c. Make sure the hplj4 printer is selected; then select Edit. A list of option areas to edit appears. d. Select Printing Filter Settings; then select Edit. A list of options appears at the top of the screen with a list of values for each option at the bottom of the screen. e. Scroll down the list of options and select Page Size. Notice that the page size is set to A4. f. Change the page size to US Letter by selecting Letter; then select Next. g. Save the changes and close the YaST module by selecting OK; then select Finish. h. From the terminal window, verify that the new default page size is set to US Letter by entering grep DefaultPageSize /etc/cups/ppd/hplj4.ppd Part III: Provide Access to the CUPS Administrator Before printers can be administered through a web browser, you need to create a CUPS password for each authorized user. Do the following: 1. Make sure you are su’d to root in the terminal window. 2. Enter the following to create a CUPS digest password for the root user: lppasswd -a root 3. Enter a password of N0v3ll twice. 4. From the Konqueror web browser, enter the following URL: http://localhost:631/admin Workbook 10-14 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  29. 29. Manage Network Services: DNS, File and Print Services 5. Log in by entering the following: ❑ Username: root ❑ Password: N0v3ll. The CUPS administrator page appears. Part IV: Print to a Remote CUPS Printer The HP LaserJet 4 printer is configured to print locally through your parallel port. However, a CUPS network printer is also available on the Digital Airlines office network that you would like to access. x In a classroom environment, this printer has already been set up for students on the DA1 server. If there is no CUPs printer configured on another server, you can use your own server and print queue for this part of the exercise. Unlike in the courseroom, there’s Do the following: no printer set up in the VMWare image of da1. 1. From the YaST Control Center select Hardware > Printer. The Printer Configuration dialog appears. 2. Add a new CUPS printer by selecting Configure. 3. Select Print via CUPS Network Server; then select Next. 4. Select Remote IPP Queue; then select Next. 5. Next to the Host name of the printer server field, select Lookup; then select Scan for IPP Servers. 6. From the drop-down list, select da1.digitalairlines.com. If da1.digitalairlines.com does not appear in the drop-down list, enter da1.digitalairlines.com in the field. 7. Next to the Name of the remote queue field, select Lookup to select the default queue configured on DA1. 8. Test connectivity to the printer server by selecting Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-15 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  30. 30. Manage Network Services: DNS, File and Print Services 5. Log in by entering the following: ❑ Username: root ❑ Password: N0v3ll. The CUPS administrator page appears. Part IV: Print to a Remote CUPS Printer The HP LaserJet 4 printer is configured to print locally through your parallel port. However, a CUPS network printer is also available on the Digital Airlines office network that you would like to access. x In a classroom environment, this printer has already been set up for students on the DA1 server. If there is no CUPs printer configured on another server, you can use your own server and print queue for this part of the exercise. Unlike in the courseroom, there’s Do the following: no printer set up in the VMWare image of da1. 1. From the YaST Control Center select Hardware > Printer. The Printer Configuration dialog appears. 2. Add a new CUPS printer by selecting Configure. 3. Select Print via CUPS Network Server; then select Next. 4. Select Remote IPP Queue; then select Next. 5. Next to the Host name of the printer server field, select Lookup; then select Scan for IPP Servers. 6. From the drop-down list, select da1.digitalairlines.com. If da1.digitalairlines.com does not appear in the drop-down list, enter da1.digitalairlines.com in the field. 7. Next to the Name of the remote queue field, select Lookup to select the default queue configured on DA1. 8. Test connectivity to the printer server by selecting Version 1 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Workbook 10-15 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  31. 31. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook Test remote IPP access 9. When a success message appears, select OK. 10. Continue by selecting Next. A Queue name dialog appears. Local Filtering is not selected because filtering is being done on the remote CUPS printer server. 11. From the Name for printing field, record the name of the printer queue on the instructor’s server: 12. Accept the default settings by selecting Next. 13. Save the configuration changes by selecting Finish. 14. From the terminal window, test printing to the instructor’s server by entering lpr -P queue_name /etc/hosts (where queue_name is the name instructor’s printer) 15. From the Konqueror web browser, check your print job on the instructor’s computer by selecting jobs. 16. The job is displayed in the Jobs list. 17. Try monitoring your print job from the instructor server by entering http://10.0.0.254:631/printers 18. Select the printer link for the instructor’s printer or select Jobs. 19. (Conditional) If you do not see your print job, try selecting Show Completed Jobs. 20. When you finish, close all windows. (End of Exercise) Workbook 10-16 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
  32. 32. Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ / Self-Study Workbook Test remote IPP access 9. When a success message appears, select OK. 10. Continue by selecting Next. A Queue name dialog appears. Local Filtering is not selected because filtering is being done on the remote CUPS printer server. 11. From the Name for printing field, record the name of the printer queue on the instructor’s server: 12. Accept the default settings by selecting Next. 13. Save the configuration changes by selecting Finish. 14. From the terminal window, test printing to the instructor’s server by entering lpr -P queue_name /etc/hosts (where queue_name is the name instructor’s printer) 15. From the Konqueror web browser, check your print job on the instructor’s computer by selecting jobs. 16. The job is displayed in the Jobs list. 17. Try monitoring your print job from the instructor server by entering http://10.0.0.254:631/printers 18. Select the printer link for the instructor’s printer or select Jobs. 19. (Conditional) If you do not see your print job, try selecting Show Completed Jobs. 20. When you finish, close all windows. (End of Exercise) Workbook 10-16 Copyright © 2007 Novell, Inc. Copying or distributing all or part of this manual is protected by Version 1 a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.

×