Printing Scripts from Eclipse in Ubuntu

Printing scripts can be very useful – but not if the font size is enormous. Unfortunately, eclipse (3.4.1) under Ubuntu (Jaunty) had exactly this problem (see also A solution I found was to shrink the font, print, and then restore the font. Given that I hardly ever want to print scripts (only when I’m really, really stuck and dealing with a complex piece of code) this is an acceptable workaround.

But how do you change the font? Doug Hughes supplied the answer here – ( In Ubuntu it is Window>Preferences>General>Appearance>Colors and Fonts>Text Font. Because of the hundreds of options available, it can be very difficult to find the ones you need most.

Full-screen Warcraft under Wine

Dimitar Boichev shows how you can play games like Starcraft and Warcraft in full-screen under WINE in his Full Circle article (Better Game Speed With X).

Here is what worked for me (minor changes from what Dimitar did):

sudo gedit /etc/X11/Xwrapper.config



Then save and quit.

Applications>Wine>Configure Wine select the game you want under applications and then, under Graphics, make sure you untick “Emulate a virtual desktop”.

I also copied /etc/X11/xorg.conf as /etc/X11/only_one_monitor.conf so that I could handle my dual monitor setup by playing Warcraft full-screen in one monitor only. I needed to change:

"TwinView" "1"
"TwinView" "0"
i.e. turn dual (twin) view off

Then I created a bash script with the following content (NB to use your username and the correct path to your game) and saved it to my desktop:

X :2 -ac -terminate -config only_one_monitor.conf & sleep 2
DISPLAY=:2 nice -20 env WINEPREFIX="/home/username/.wine" wine "c:\Program Files\Warcraft III\Warcraft III.exe"

NB there are only 3 lines – the line starting DISPLAY goes to the end.

Then make the bash script executable (under the file’s Properties>Permissions>Execute – tick the tickbox). Double click it and select run to enjoy full-screen Warcraft etc.

Ctrl+Alt+F7 and Ctrl+Alt+F9 lets you switch between X windows.

One further way of improving your Ubuntu Warcraft experience – grab the latest patches. Then there will be no need to have the CD in the tray to play plus some other enhancements. NB not to confuse Warcraft The Frozen Throne (TFT) with Reign Of Chaos (ROC).

A key link is here – thanks to Brian. You can also grab some nice icons.

For reference, the files I needed were War3ROC_122a_English.exe and then War3Patches_ROC_122a_123a_enUS.exe.

Using Xsane without going Insane

Xsane works well enough once you figure out the interface. Whatever you do, don’t accidentally mess the colour settings up ;-). Here is a tentative set of instructions for mass scanning of photos my mother put together using Xsane on Intrepid. I’ll expand upon them later from a machine with a scanner on it:

Choose appropriate scanner

Within X-Sane, Preferences
Window – Show Preview
Viewer – change to SAVE if doing multiple
Choose folder for saving to
Choose TIFF
Choose COLOR or GREY
Choose 300 for Dots per inch


Acquire preview then crop

PREFERENCES Name file in folder
Check folder