Random Wisdom

Tag: windows

Graphics format conversion

by Mostafa on Dec.09, 2009, under LaTeX, Linux, Software

Up until now I have been using the ‘convert‘ tool that comes with ImageMagick to switch between image formats — mainly for creating EPS files from JPG/PNG (raster format) files for use with LaTeX. Then I came across sam2p.

It is a light-weight utility that does one thing only and it does it well: convert between image formats. I’ve been using it for a while now and find that it can greatly reduce files sizes with minimal drop in quality. I’ve even used it to process existing EPS files just to get the reduction in file size. Best of all, it is multi-platform — executables are available for both Windows and Linux on the project homepage.

Goodbye convert and hello sam2p!

Leave a Comment :, , , , , , , more...

coLinux

by Mostafa on Jan.19, 2006, under How To ..., Linux, Software

Recently, I needed to use Umbrello but didn’t have access to a workstation that had it installed. And since I’m stuck with a Windows PC, I thought I’d take a look at the KDE-Cygwin project. It seems that they’ve stopped working on the project since there is a better alternative: Cooperative Linux. It’s basically a modified Linux 2.6.10 kernel that runs on Windows — kind of a like a virtual machine but it’s different — it’s definitely a lot faster. Here’s a snippet from the coLinux homepage:

Cooperative Linux is the first working free and open source method for optimally running Linux on Microsoft Windows natively. More generally, Cooperative Linux (short-named coLinux) is a port of the Linux kernel that allows it to run cooperatively alongside another operating system on a single machine. For instance, it allows one to freely run Linux on Windows 2000/XP, without using a commercial PC virtualization software such as VMware, in a way which is much more optimal than using any general purpose PC virtualization software.

The project page had a preconfigured Debian image and so that’s what I’m using at the moment. The native X server does not work though — so the Cygwin based X server is needed to diplay all the GUI stuff.

Getting it installed was a piece of cake. The Wiki site for coLinux has a lot of helpful info.

Once the basic text-mode linux is up and running (must be able to reach the host via the network), we need to run some commands from the cygwin shell. First run

$ cygserver-config

to configure the cygwin server and then start the server with:

$ cygrunserver -S cygserver

Then, we need to set

$ export CYGWIN=server

And then start the X server in rootless mode. The easiest way is to just make a copy of the startxwin.bat file and then edit it to change the options to XWin.

Once the X server is running, we need to run “xhost +” from the xterm that had popped up. Then, we switch over to the coLinux console and run:

$ export DISPLAY=<ip of windows host>:0

And that’s it! Now you have a fully functional linux distro! I would have gone for a Fedora install but couldn’t find a proper image.

Leave a Comment :, , , more...

First day at DoCoMo

by Mostafa on Jan.09, 2006, under Life

Thus starts my first day at work. I’ve already got 2 papers to read and a meeting scheduled for later today. Got a brand new computer (HP Compaq DC5100) running only Win XP :( . For the kind of work I’ll be doing (software development), I would have liked a *nix based machine. Apparently the simulation workstations are *nix so I’ll have to make do with Xwin32 for the next 6 months.

Well .. at least I still have my own PC which should become net active again sometime after next weekend.

Alright then, back to my reading. Good luck to me! :)

Leave a Comment :, more...

Bypassing Microsoft’s “Genuine Advantage”

by Mostafa on Sep.03, 2005, under How To ..., Software

Piece of cake; before clicking “Express” or “Custom” paste the following in the addressbar and hit enter:

javascript:void(window.g_sDisableWGACheck='all')

Got this tip from here.

1 Comment :, , more...