XMLinux Home | follow XMLinux | japanese

X Server on coLinux Console Window on Ubuntu

(2010-06-16)
[Ubuntu LXDE gdm] [Ubuntu LXDE desktop]

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]

  1. Downloading and Installing coLinux
  2. Downloading and Configuration of Guest Linux
  3. Installation, Configuration, and Start of X Server
  4. Changing of the Resolution
  5. Installation of Desktop Environment LXDE

[See also]


Downloading and Installing coLinux

Downloading coLinux

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/.

Installing coLinux

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

Installing the testing coLinux in the environment where you installed coLinux-0.7.7.exe.

Removing Driver

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.

In the case you can not remove the driver on Windows 7/Vista, it seems to be able to install the testing coLinux by doing only the following "Overwriting Files", and restarting Windows.

Overwriting Files

You can get the following files from your downloaded files.

  1. vmlinux
    Unpack vmlinux-2.6.26.8-co-0.8.0-fb-20100509.zip.
  2. linux.sys and many exe files
    Unpack daemons-0.8.0-20100509.zip.
  3. vmlinux-modules.tar.gz
    Rename modules-2.6.26.8-co-0.8.0-fb-20100509.tgz to vmlinux-modules.tar.gz.
Overwrite these files into your coLinux install folder.

Reinstalling Driver

In a windows command prompt, run the following commands:

cd /d "C:\Program Files\coLinux"
colinux-daemon --install-driver

Downloading and Configuration of Guest Linux

Downloading and Unpacking

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.

Creating the Start Batch File

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

Installation, Configuration, and Start of X Server

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.

[xterm]

Changing of the Resolution

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

Installation of Desktop Environment LXDE

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.

Extending the Root Disk

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.

Adding A Non-Root User

If you do not have a non-root user on Ubuntu, add a non-root user by using adduser command.

Installation of LXDE

Install LXDE with command as follows:

apt-get install lxde xorg

Restarting Ubuntu, the graphical log in screen will appear.

[Ubuntu LXDE gdm] [Ubuntu LXDE desktop]

Booting without X

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
[Ubuntu single]
XMLinux Home | follow XMLinux | japanese
E-Mail: xmlinux2004@yahoo.co.jp
Copyright (c) 2010 HANAI Mitsuru. All rights reserved.
WITHOUT ANY WARRANTY