Best of Technical Support

Our experts answer your technical questions.
SCSI Emulation for Just One Drive

I have an HP IDE CD-Writer, so I am using SCSI emulation to use it with cdrecord. Under the 2.2.18 kernel, I could tell the ide-scsi module only to make use of my burner and leave my ATAPI CD-ROM alone. I did this via an append option in lilo.conf:

append="hdc=ide-scsi"

This worked well, as /dev/hdc is my burner and /dev/hdd is my ATAPI CD-ROM. Unfortunately, under the 2.4 kernel, this no longer works. The ide-scsi module grabs both devices, making /dev/hdd unavailable, preventing cdparanoia from working with it and forcing me to mount it with /dev/scd1. How do I get the same effect under 2.4 and force the ide-scsi module to emulate only /dev/hdc?

—Michael Soulier, michael.soulier@home.com

What you want is for hdc to do SCSI emulation and hdd to continue to be used as an IDE device. Usually IDE-CD support is disabled and SCSI emulation is enabled so that both drives are seen as SCSI devices. See www.wizball.co.uk/linux/cd_rewriter.php and www.teknospy.com/pages/howtos/cdburn.php for tutorials.

—Paul Christensen, pchristensen@penguincomputing.com

What Does This RPM Depend On?

I maintain 39 Red Hat servers and am always adding more (web hosts). I always try to install the bare minimum of packages during an install, figuring that if I don't include something the customer decides they want later, I can always figure out how to add it. Occasionally, a package requested will have such a fun list of dependencies requested that what should be a simple rpm -ivh package.rpm becomes a 30 minute dependency adding game. Is there a simple switch I can enter to have RPM tell me what one package needs before I try to install it?

—Bruce D. Meyer, gh1@rocsoft.net

You describe one of the reasons why many Linux server administrators use Debian Linux instead of a Red Hat derivative. With Debian, it is just a matter of typing apt-get install foo. Last I checked, RPM doesn't have a magic switch to do what you want. One way to do this on Red Hat is to use gnorpm or rpmfind. The problem is that in either case, with RPM-based solutions, RPMs are often incompatible across distributions and even within different versions of the same distribution (like RH 6.2 and RH 7.1). While rpmfind/gnorpm will probably be your best bet, if you get the option to install Debian Linux next time, it would solve all these problems.

—Marc Merlin, marc_bts@valinux.com

One little gem is Red Carpet. Documentation and downloads can be found at the www.Ximian.com web site.

—Paul Christensen, pchristensen@penguincomputing.com

Welcome, Guest Printer Users

I have a Linux box that acts as my DHCP server, firewall and gateway to the Internet. Many of my clients are visiting Windows users. Is it possible to set up the Linux box to be a print server such that a Windows client can print via the Linux print server without the client having to install printer drivers?

—Danny Patel, dharmesh@yahoo.com

I would set up a Samba Share for both the printer and the Windows drivers for that printer.

—Christopher Wingert, cwingert@qualcomm.com

You might want to look into using CUPS (Common UNIX Printing System). It supports IPP, LPD, SMB (Windows) and AppSocket (JetDirect) protocols.

—David Brown, david@caldera.com

cron Won't Run a Shell Script

I can't execute a shell script with crontab. I get this error:

cannot execute binary file

—Leonardo Fermoselle, lfermose@hotmail.com

Does your script start with #!/bin/sh as the very first characters of the file? It should. If this isn't the problem, was the script written on a DOS machine? Open the file with the joe text editor and if you see funny M characters at the end of every line, that is your problem. You can use a tool found at freshmeat.net/projects/fixdos to fix that.

—Ben Ford, ben@kalifornia.com

Run the command file /usr/backup/myscript.sh, or load this file in vi and make sure it does not have any junk characters in the file. Make sure that you can run the script from command line.

—Usman Ansari, uansari@yahoo.com

______________________

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState