Monday, November 28, 2005

Printing from DOS to a shared Windows printer

Microsoft's KB article 314499, How to print to a network printer from an MS-DOS-based program in Windows XP has the whole story. Here are the basics:

Windows computer "A" has a printer connected to LPT1, and is shared as HPLJ.

Windows computer "B" is running a DOS program that prints to the parallel port LPT1.

On computer "B" open a command window (cmd) and use this statement:

net use LPT1 \\ComputerA\HPLJ

...and now computer "B" can print to LPT1 from DOS. Amazing :-o

Saturday, November 26, 2005

Printing from Linux

Today's project was to figure out how to print from my newly-installed Suse Linux 9.2 with the KDE 3.3, to my shared Windows printer. After losing track of all the things I tried that did NOT work, I found everything I needed from here:

...this was actually part II of the article by Drew Robb, but it contained the meat of what had to happen.

As a side note, I have all my networked PC's running DHCP but that may need to change - setting up the Samba Server & Client on the Linux side required a hard IP address to the Windows share, so I just ran ipconfig /all to get the current address of the Windows PC, which happened to be which on my network means that it was the first that powered up and it received the .100 address. But of course that needs to be revisited in the future. In a future blog, I'll cover the installation of Oracle 10g on Windows XP Pro which by coincidence also needed a hard IP address.

Now that we're printing, it is time to get down to business. The next task on the Linux list is to download and install MySQL.

Wednesday, November 23, 2005

Fun with Linux

I have an old PC that I refer to as "the beast" that's been my test-bed for new and beta software. It's a CTX brand from the dark days when Windows 98 ruled the desktop.

I re-formatted the disk, installed Windows 2000, added a 2nd disk, a NIC, more memory, swapped the CD for a DVD in order to install Visual Studio .NET 2002. Oh, and replaced the power supply I blew out in the process...

After a while, I realized that the only time I would power it up would be to get the weekly Windows Update patches, so it needed to be re-purposed. I had attempted to install the SQL Server 2005 CTP but it just didn't have the CPU power.

Enter Suse Linux 9.2

I was very impressed with the installation. I accepted most of the defaults. I liked the way it showed enough details about what it was doing. The YaST installer recognized all of my hardware, including a UPS connected via USB, and a legacy sound card. It configured the NIC, got a DHCP IP address from the router, and connected to the Internet. The only uncomfortable spot was when I went online for updates - which took almost as long as the original install.

My next task is to connect to a shared printer on my Windows workgroup...