New blog space

Effective right now, I’m starting a new blog with a friend of mine. It’s all about UNIX, since I gave up on using Microsoft Windows ;) You can find it here: http://www.unix-junkies.org/

Inhibiting Windows’ command-line output

I use xterm from SFU 3.5, and posix.exe always opens a command-line window, even when there is no output to show. This is quite annoying, and you can get rid of this using the WScript.Shell activeX object.

I created a JScript file which uses this object to run xterm:

xterm.js
var wshell = new ActiveXObject('WScript.Shell');
wshell.Run('"C:\\Windows\\System32\\posix" /c C:\\SFU\\usr\\X11R5\\bin\\xterm',0);

Interix + cygwin

I’ve re-runned my Windows XP box today, and just for fun, started to cope with Windows services for UNIX. Although XP’s terminal is awful, it was cool to find common tools like vi, make and gcc on windows. I’ve put my habitual “Rotating Cube” test program, and it compiled well without major changes. The main problem is that make seems to work in a different way. I used the X server from Cygwin (interix does not have one) and had my cool UNIX app on my windows box.

See the screenshot here.

BTW, bash installed from source without any problem. I wonder what had been already ported to interix (KDE 4 ? ;-)

Solaris 10 on Amilo M7440G

Sick of gentoo, I decided to install Solaris 10 on my laptop. Here is some installation notes that can be useful ( to be modified ):

Wifi : intel ipw2200 chipset, driver at opensolaris.org : http://opensolaris.org/os/community/laptop/wireless/iwi/

Beware of the unfamous software kill switch. I’ve taken a dummy driver at sun.com and added some lines to get the radio turned on. See here for the driver template : http://docs.sun.com/app/docs/doc/817-5789/eoqrt?a=view. Here is my modified _init version :

/* Here begins fsam stuff */
#define AMILOM7440_PORT1 0x118f
#define AMILOM7440_PORT2 0x118e
#define AMILOM7440_RADIO_ON1 0x12
#define AMILOM7440_RADIO_ON2 0x80
/* Loadable module configuration entry points */
int
 _init(void)
 {
   cmn_err(CE_NOTE, "Inside _init");

   outb(AMILOM7440_PORT1, AMILOM7440_RADIO_ON1);
   outb(AMILOM7440_PORT2, AMILOM7440_RADIO_ON2);

   cmn_err(CE_NOTE, "Radio on, thank you.");
   return(mod_install(&ml));
 }

Insert the module and your wifi will be up.

I’ll write a real driver when I have the time. BTW, additionnal software like gcc and make resides in /usr/sfw/bin and /usr/ccs/bin. Update your $PATH.

Sound : Intel ich6 chipset. All you need is here : http://blogs.sun.com/anilg/entry/sound_on_solaris

Installation of KDE : don’t get it from kde.org, but rather from the companion DVD. Binaries are patched and easier to install.

Page suivante »