This document contains the procedure to run X server on coLinux console window. The software such as Cygwin, Xming, and VNC Viewer is not required. The testing coLinux is used. Ubuntu 9.04 is used for guest Linux.
[Contents]
[See also]
Download coLinux-0.7.7.exe from "Browse Cooperative Linux Files on SourceForge.net".
Moreover, download the following three files from http://www.henrynestler.com/colinux/testing/cofb-2.6.26.8/20100509/.
Run the downloaded file coLinux-0.7.7.exe to install it. The check on "Root Filesystem Image Download" is removed on the screen of "Choose Components" under the installation.
Installing the testing coLinux in the environment where you installed coLinux-0.7.7.exe.
In a windows command prompt, run the following commands:
cd /d "C:\Program Files\coLinux" colinux-daemon --remove-driver
"C:\Program Files\coLinux" depends on your coLinux install folder.
You can get the following files from your downloaded files.
vmlinux
linux.sys and many exe files
vmlinux-modules.tar.gz
In a windows command prompt, run the following commands:
cd /d "C:\Program Files\coLinux" colinux-daemon --install-driver
Download Ubuntu-9.04-1gb.7z from "Browse Cooperative Linux Files on SourceForge.net".
Unpack Ubuntu-9.04-1gb.7z, and copy the unpacked files into C:\colinux folder.
Create C:\colinux\boot.bat file as follows:
set d=C:\colinux\ cd /d "C:\Program Files\coLinux" colinux-daemon kernel=vmlinux initrd=initrd.gz cobd0="%d%Ubuntu-9.04.ext3.1gb.fs" eth0=slirp root=/dev/cobd0 cofb_mem0=16384
Start Ubuntu with C:\colinux\boot.bat and log in as root user.
Install X server with commands as follows.
apt-get update apt-get install xserver-xorg-video-fbdev xterm xinit
Change /etc/X11/xorg.conf as follows:
Section "ServerFlags" Option "AutoAddDevices" "False" EndSection Section "Device" Itentifier "Linux frame buffer" Driver "fbdev" EndSection
Run xinit command to start X server.
If you want to change the resolution to 800x600,
insert SubSection "Display" into /etc/X11/xorg.conf as follows:
Section "Screen" Itentifier "Default Screen" SubSection "Display" Depth 24 Modes "800x600" EndSubSection EndSection
LXDE needs more free space in the root disk to be installed,
and a non-root user to log in from the graphical log in screen.
So,
you have to extend the size of the disk image file Ubuntu-9.04.ext3.1gb.fs,
and add a non-root user.
Shutdown Ubuntu.
In a Windows command prompt, run the following commands:
set d=C:\colinux set f=Ubuntu-9.04.ext3.1gb.fs cd /d "%d%" ren "%f%" "%f%.bak" copy /b "%f%.bak"+"%f%.bak" "%f%"
Start Ubuntu and log in as root user. Run commands as follows:
resize2fs -f /dev/cobd0
Backup file of Ubuntu-9.04.ext3.1gb.fs is Ubuntu-9.04.ext3.1gb.fs.bak.
If you do not have a non-root user on Ubuntu,
add a non-root user by using adduser command.
Install LXDE with command as follows:
apt-get install lxde xorg
Restarting Ubuntu, the graphical log in screen will appear.
If you want to boot without X,
append "S" at the end of the last line in C:\colinux\boot.bat file as follows:
colinux-daemon ... cofb_mem0=16384 S
|