Archive for May, 2007

Chapter 18 . (Business web site) Setting Up Windows Interoperability with

Saturday, May 5th, 2007

Chapter 18 . Setting Up Windows Interoperability with Samba 511 Figure 18-15: Samba configuration: Start-up tab Figure 18-16: Samba configuration: Shares tab
Note: If you are looking for high quality webhost to host and run your jsp application check Vision jsp web hosting services

510 Part IV . Implementing Network Services in (Web page design)

Saturday, May 5th, 2007

510 Part IV . Implementing Network Services in SUSE Linux 3. You can now choose whether the server should be a PDC (Primary Domain Controller) or not as in Figure 18-14. Figure 18-14: Samba configuration in YaST: second screen 4. The next screen has three tabs: Start-up. Here you decide whether the Samba service should be started at boot time (in production you will normally want to do this) or manually (Figure 18-15). Here you also have the option to open the necessary port on the firewall (if you are running one) to allow connections to the Samba server. Shares. Here the Samba shares which will be offered by the server are listed. You can add any directory as a share in this tab and provide it with the name which will be seen by Windows clients (Figure 18-16).
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check Vision mysql hosting services

Mac os x web server - Chapter 18 . Setting Up Windows Interoperability with

Saturday, May 5th, 2007

Chapter 18 . Setting Up Windows Interoperability with Samba 509 Figure 18-12: Samba Server icon in YaST Figure 18-13: Initial Samba Server configuration screen in YaST
Note: In case you are looking for affordable webhost to host and run your web application check Vision http web server services

508 Part IV . Implementing Network Services in (Tomcat web server)

Friday, May 4th, 2007

508 Part IV . Implementing Network Services in SUSE Linux Tip 6. Next, deselect the Do Local Filtering check box. Because the printer is already configured on the remote SMB server, you do not need to do any local preprocessing in order to print to it. At this point, you can click the Test printing button to send a test printout to the remote printer. A dialog box that gives you a choice of sending a text or graphical printout to the remote printer is displayed. If the remote printer can print graphics, you should send a graphical test sheet to it in order to make sure that it is correctly configured. The graphical test sheet also contains text, so it will test both capabilities. If you print a test sheet at this point, make sure that you pick it up. It will contain the username and password that you used to access the remote printer not something you want to leave lying around! 7. When the test sheet prints successfully, click the Next button to display the next screen and click Finish to complete and save your new printer definition. Setting Up a Samba Server Like most administrative tasks on a SUSE Linux system, configuring and starting a Samba server is most easily done through YaST. You can start YaST in the same way as discussed earlier in the chapter in the section Configuring a Samba Client. To configure and start a Samba server, follow these steps: 1. Click the Network Services icon in the left pane of the YaST Control Center and scroll down the right pane until you see the Samba Server icon, as shown in Figure 18-12. 2. Click the Samba Server icon to start the Samba Server configuration, as shown in Figure 18-13. You will be prompted for the Windows workgroup or domain name. Note If you have problems locating any of the configuration options or applications described in this section, see the section Samba Client and Server Packages later in this chapter for information about locating and installing any packages that might not have been installed during the installation process.
Note: If you are looking for cheap webhost to host and run your apache application check Vision apache web hosting services

Web site directory - Chapter 18 . Setting Up Windows Interoperability with

Friday, May 4th, 2007

Chapter 18 . Setting Up Windows Interoperability with Samba 507 4. Enter the name of the workgroup or domain in which the printer is located, the name of the host that controls printing to that printer, and the name of the print queue associated with that printer on the specified host. These must not contain spaces. You must also enter the Windows login name of a user that is authorized to print to that printer, and that user s password. After entering these values, click the Test Remote SMB Access button to make sure that all of the values that you have specified are correct. If they are, a pop-up message is displayed that tells you that your system can connect to the specified printer. If the values are not correct, an error dialog box is displayed, and you should recheck the values that you have entered. If you need assistance identifying the correct values, contact the system administrator of your Windows network. When you have entered valid values and verified them, click the Next button to proceed. The dialog shown in Figure 18-11 is displayed. Figure 18-11: Setting queue values for an SMB printer in YaST 5. Enter the name that you want to associate with the specified SMB printer. This will be the queue or printer name that you specify to commands such as lpr in order to print to this printer over the network, and can be any name that you like. You can also enter description and location information for the printer, although these values are optional.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision web design programs services

506 Part IV . Implementing Network Services in (Top ten web hosting)

Friday, May 4th, 2007

506 Part IV . Implementing Network Services in SUSE Linux Figure 18-9: Specifying the printer type in YaST Figure 18-10: Defining a Samba or Windows printer in YaST
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision j2ee hosting services

Chapter 18 . Setting Up Windows (Web design portfolio) Interoperability with

Thursday, May 3rd, 2007

Chapter 18 . Setting Up Windows Interoperability with Samba 505 Using a Windows Printer from Linux To access a networked Windows printer from your Linux system using Samba, you must have created a printer definition entry for that printer using YaST. You can then print to it as you would to any other local or networked printer. To create a printer definition for a Windows printer after installing and configuring the Samba client software, follow these steps: 1. Start YaST as explained earlier in this chapter in the section Configuring a Samba Client. Click the Hardware icon in the left pane, and select the printer icon from the right pane. The screen shown in Figure 18-8 is displayed. 2. Click the Add button to begin creating a new printer definition. The dialog shown in Figure 18-9 is displayed. 3. Select the Print via SMB Network Server option and click the Next button to display the dialog box shown in Figure 18-10. Figure 18-8: The initial printer configuration dialog box in YaST
Note: In case you are looking for affordable and reliable webhost to host and run your business application check Vision ftp web hosting services

504 Part IV . Implementing Network Services in (Domain and web hosting)

Thursday, May 3rd, 2007

504 Part IV . Implementing Network Services in SUSE Linux The directory on which you want to mount the SMB share must already exist. The mount command actually executes a command called smbmount, which is usually a symbolic link to the command /sbin/mount.smbfs. After executing this command, you will be prompted for the Windows password associated with the specified user. Tip You can also execute a command as a user other than the root user by using the sudo command, which lets users execute commands as privileged users (sudo means do with a substitute user ID ). The privileged commands and the users who can perform them are listed in the file /etc/sudoers. If you have a valid entry in the /etc/sudoers file, you will be prompted for your password and then again for the Windows password associated with the specified user. If you do not have a valid entry in the /etc/sudoers file, there isn t much point in using the sudo command, but if you do you will be prompted for the root password and then again for the Windows password associated with the specified user. You can enable users to execute privileged commands by executing the visudo command as the root user, which enables you to edit the /etc/sudoersfile using the vitext editor. For more information about the sudo command, execute the man sudo command in a console window or xterm. For more information about the /etc/sudoers file, execute the command man sudoers. Tip Just like any other partitions or network drives, you can automatically mount SMB shares when your system boots by adding them to your system s /etc/fstab file. To do this, create a standard /etc/fstab entry such as the following: //SUSE/wvh /mnt/smb/wvh smbfs username=wvh,password=foo,uid=578,gid=500 0 0 The first field defines the name of the SMB share that you want to mount, the second field is the directory on your system where you want to mount the drive, and the third field is the type of filesystem that you are mounting. The fourth field provides options that you want to use when mounting the SMB share, and the fifth and sixth fields define when you want to back up the filesystem and when you want to check the consistency of the filesystem at boot time. These values are almost always 0 (zero) for networked filesystems, which means never. For SMB shares, the mount parameters that you have to pass in the mount options field include the username that you want to use for authentication with the Samba server, your password, and the user and group IDs that you want to associate with the mounted filesystem so that only you can read and write files in the Samba share. Because you have to enter your password, you should also make sure that the /etc/fstab file is not publicly readable by executing a command such as chmod 600 /etc/fstab, or else anyone in the know can view the file and find out your Windows password probably not a good idea.
Note: In case you are looking for affordable and reliable webhost to host and run your business application check Vision ftp web hosting services

Ipower web hosting - Chapter 18 . Setting Up Windows Interoperability with

Thursday, May 3rd, 2007

Chapter 18 . Setting Up Windows Interoperability with Samba 503 Figure 18-7: Browsing SMB resources using LinNeighborhood Mounting a Shared Windows Drive There are many different ways to mount a shared Windows drive on your SUSE system, the easiest of which is to use the standard Linux mount command. For example, to mount an SMB share named wvh that is available on an SMB server named home, mount that share on the directory /mnt/smb, and access those files as the Windows user wvh, you would execute a command such as the following as the root user: # mount -t smbfs -o username=wvh //home/wvh /mnt/smb The previous command line can be broken down as follows: . -tsmbfs Identifies the type of filesystem that you are mounting as an smbfs filesystem (SMB filesystem). . -ousername=wvh Passes the username=wvh option to the mountcommand, which identifies your Windows user login as wvh. . //home/wvh The name of the Windows directory that you want to mount on your SUSE system. In this example, this is a directory named wvhon a Windows file server named home. . /mnt/smb The directory on your SUSE system where you want to mount the specified Windows directory.
Note: In case you are looking for affordable webhost to host and run your web application check Vision cheap hosting services

Web domain - 502 Part IV . Implementing Network Services in

Thursday, May 3rd, 2007

502 Part IV . Implementing Network Services in SUSE Linux Tip If you are using the KDE desktop, you can create a permanent shortcut to the Local Network icon on your SUSE desktop by dragging the Local Network icon from Konqueror to your desktop and selecting Copy Here from the menu that is displayed. You can do the same thing by right-clicking Konqueror s Local Network icon, selecting the Copy To menu item, navigating your Home Folder s Desktop folder, and selecting the Copy Here menu command. A fast alternative to using Konqueror to browse available Windows resources is to use a command-line utility called smbtree. This utility is installed as part of the samba-client package, and provides a fast listing of available SMB resources when executed from within konsole, xterm, or any other Linux terminal emulation utility. Figure 18-6 shows the output from running smbtree on a sample home network featuring two Samba servers that are both members of the WVH workgroup. Figure 18-6: Browsing SMB resources using smbtree Another useful package for browsing SMB resources is the open source project LinNeighborhood (www.bnro.de/~schmidjo/index.html). A package containing LinNeighborhood is included as a separately installable package in your SUSE Linux Professional distribution set. Figure 18-7 shows LinNeighborhood displaying the same set of resources shown in Figures 18-5 and 18-6.
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services