Categories
ASP.Net CUPS Printing SAMBA Windows Server

CUPS and SAMBA a match made in h…

In this entry I’ll be going on about the printers setup in the office. Currently there are two network printers, one Samsung and one MFP as Konica-Minolta BizHub 250. The printers are not currently controlled by a print server. Mainly because we don’t want the printers to rely on a single machine, which may be turned off and prevent printing to happen.

So as an experiment I setup a CUPS server on the small Linux box which would serve the Samsung. Getting CUPS going wasn’t hard, but gettin the printer driver on was hard. The printer driver didn’t show up during the setup, eventhough I am sure that there was a driver available. I also downloaded a setup from Samsung which didn’t go through 100%. End result I did get the printer going.

Getting the printing going from the other Linux (CentOS) machine I have. It instantly showed up in the printers listing. Being used to Windows I then attempted to setup the printer drivers. The Samsung install would not work on CentOS, but eventually I determined that a driver was not needed. Linux printing is quite clever!

Next up was getting my small Linux box to server the printer through SAMBA and also support Point’n Print. The printer was automatically exposed by SAMBA the moment I installed the CUPS driver. Point’n Print was a bit tricky to get working. It doesn’t help that I didn’t fully read the manual! I got the driver installed and got the Point’n Print to install the correct driver, but when I did a test page, Windows spooler and window manager crashed! Repeatedly, Because being a idiot I just kept trying it again and again.

I gave up on it and had to uninstall the drivers and files using the rpc interface (not a very well written piece of software BTW). And then after that I learn that I had to setup the printer information by manipulating the printer setting first. Saving the information and then using test page is supposed to work. By this time I had pulled out the Samsung CD and installed the driver from it.

It does seem to work reasonable except for a few niggles. If the printer is off the print queue get hung and jobs never get printed even after I turn the printer on. I have to kill the jobs and re-print, which doesn’t come in hang if I’ve printed off a webpage receipt. I also don’t get the printer queue properly displaying on the status bar. So far I’m only using CUPS as an experiment until I sort these issues.

I’ve got a potential contract who wants a mini e-commerce website built. Just an excuse to learn ASP.Net and try and get a demo working. I does work in the development environment, but attempting to install it onto IIS 5.0 gives a Metabase access error. I’m sorting that out…more next time.

Categories
FORALL Linux oracle RAID Sharepoint Windows Server

It’s still working

Its been over two weeks now that I’ve had my Linux file server running and I am quite impressed with Linux. Its quite stable and reasonably quick. I don’t think anything can come close to FreeBSD however. I will miss BSD, but when it comes to stability vs. speed – stability wins every time.

I have thrown a lot at the server and nothing has broken the mirror. I only had two problems with the boot up process which I rectified as an incorrect configuration in the RAID. I had hard-coded in the partition names into the RAID startup file by accident. As anyone who uses Linux knows, the disk names can change occaisionally so it is not wise to refer to them in the fstab or mdadm.conf file directly. You have to refer to them by UUID.

Speed-wise it is significantly slower than FreeBSD. I suspect BSD can handle threads and DMA better. As well the device drivers are probably also better written. BSD is less fragmented development wise and thus I think there is more coordination and quality checks. Then again, FreeBSD couldn’t keep my SATA based RAID together whilst Linux can. I also discovered during this process that whilst SATA II is capable of 3Gbps transfer, each individual disk maxes out at either UDMA/100 or UDMA/133. Confusing to say the least.

I got my Windows Server 2008 going as well. Installation was dead easy – just pop the DVD in and follow the prompts. Setting the administrator password was tricky, as I did not realise that it needs to be a minimun 7 chars with a mix of letters upper and lowercase and numbers. Once in I was able to turn off that password policy. I don’t need it. SQL Server 2008 CTP went quite easily as well. But this is the CTP and I will need to re-install it at a later date, when SQL Server is released. This will be interesting as I have also installed Sharepoint 3 on the machine, and I wonder how the two will interact. I had some trouble getting Sharepoint to recognise my credentials from the other machines. I think I have it sorted, I am not running a domain and perhaps this is why? Any tips would be most welcome.

In other news I discovered the FORALL construct in Oracle. This is a fantastic operator and saved me from pulling my hair out. I needed to transfer 1M records from one database server to another – whilst consolidating the records through a map. I used a cursor with BULK INTO set at 1000 and a commit after inserting the 1000 records. This was done to help reduce Oracle undo as well as redo. Even on my fast servers this took ages to even get half-way through. Using FORALL cured my problem, reducing the transfer time to less than 10minutes! Fantastic.

Next time I have my first experience with mySQL and maybe some Linux tuning.