All posts by tip

Reboot a windows box from Linux

Occasionally I have the need to reboot a windows box from Linux. Here is the command I use to do this.
net -I {IP Address} -U Administrator rpc shutdown -r -f

The net command is part of the samba package and can be used for much more than rebooting, like adding or deleteing users, etc.  Read the man file for more info.

convert is awesome

Someone was asking how to convert PDFs to JPGs and I thought to myself, surely there is a Linux utility to do this. Well ImageMagick comes with a utility called convert and the syntax is really easy.

convert test.pdf test.jpg

This will create a jpeg for each page of the pdf.  Simple right?  Plus it supports many input and output formats.

Accessing MSSQL from PHP on Linux

Need to access a MSSQL database from php on Linux? The remi repository has php-mssql and all the dependencies.  Look for the yum configuration link on the home page.  Very easy.

They also have a link to an IT asset management program called GPLI, I haven’t used it but the demo looks pretty nice.  The functionality seems to be there, but interface could use a little polishing, IMHO.


If you haven’t used screen yet, then you should really check it out. It’s great for running those long jobs (or bittorrent, for legit purposes of course) and coming back to it at a later time. Anyway I always wished that I could share a screen session with another user. Well I should have read the man file because it is already there.

screen -x Attach to a not detached screen. (Multi display mode).

Now if they would just allow scrolling back through the history with <shift><pgup>.

Linux hangs on the HP dc7700

I was working with Altiris the other day and trying to get the HP dc7700 to boot Linux. The machine did not get too far before freezing. After some research I found out that you can add pci=nommconf as a option during boot and the machine boots properly.

Boot: linux pci=nommconf

Hope this helps someone.

Dusting off the site.

I think it’s about time I started making regular posts to this site. The last post was May 15th, 2004! Anyway, just installed WordPress and mostly ported my site design over to it. I got a few ideas of some quick posts I can make in the future. Enough rambling about nothing, come back soon.

WarCraft on Zaurus SL-C860

I recently got warcraft working on my Zaurus SL-860 here are the details:
CACkO Zaurus Qtopia ROM 1.21 Not 1.21a
libsdl_1.2.5-slzaurus20031201 older version, but seems to work
stratagus_2.0.0-1_arm.ipk Thanks lucho!

From ronba: You must use CD warcraft2 version DOS and wargus-2.0pre1.tar. In the tar there is a script build.bat for windows and for linux, this file will allow you to catch the data of CD of warcraft 2, the result of script is a directory data.wc2 , to copy this directory data.wc2 in SD or CF to /mnt/card/data.wc2.

From a shell type the following:
ln -sf /mnt/card/data.wc2 /opt/QtPalmtop/lib/stratagus

Now, Launch Stratagus from the Application tab on your Zaurus and play!

Be sure to check out the forums and email me if you have any comments

Here are some links: