Installing Nano-X

The link to download the source code for Nano-X is here.

Once downloaded, extract all files usually to the microwindows-x.xx (where x.xx is version number, the version I used is 0.90).

Before the source code can be compiled, a few changes to the source code need to be made before it can be compiled.

First, at terminally, enter the following command:

cd micro-windows-0.90/src

Next the appropriate config file for compiling needs to be copied from the Configs folder. I used the one for Framebuffer. To do this enter:

cp ./Configs/config.fb config

To settings in the config file needs to be amended. To do this use your favourite editor to amend config. The following settings need to be set:


TTYKBD = N
SCANKBD = Y


Save file.

Two of the source files, need to be edited. Firstly, edit ./mwin/winevent.c

The abs macro, starting at line 16, needs to be commented out to look like this:

//#if !(DOS_TURBOC | DOS_QUICKC | _MINIX | VXWORKS)
//static int
//abs(int n)
//{
// return n >= 0? n: -n;
//}
//#endif


Save file.

Secondly, the file ./demos/nanowm/nanowm.h, needs to have line 173 commented out to look like this:

//extern win *windows;

Save file.

Once this is done, enter the following commands

make default
make
sudo make install


The source code should have successfully compiled.

The program gpm (cut and paste utility and mouse server for virtual consoles
) needs to be installed, if not already. If it is not, then enter the following command:

sudo apt-get install gpm

Switch to another virtual console by pressing ctrl+Alt+F2. Log in as normal. Move to microwindows-x.xx/src folder and enter the following command:

sudo ./mouse.sh

This will activate the mouse for use in the Nano-X demos.

There is a number of shell files in the microwindows/src folder that runs the demo. To run these enter

sudo ./shell-file.sh

where shell-file is name of shell file. For example.

sudo ./demo.sh

If everything went well, the demo should work.

When I had first got Nano-X, I had got the mouse working but now it isn't. I don't think this is to do with Nano-X but with the gpm program. I will need to investigate further

0 comments:

Post a Comment