とりあえず、↓にいろいろ書いてある。
XCoLinux - coLinux
coLinux側にVNCを入れるというのが、
一番軽く動くらしい。
とりあえず、ssh X11Forwarding を採用。
coLinux は Gentoo で動いてる。
いつもはまるのだけれど、Gentoo での sshd の初期設定は、
X11Forward no
これを yes にしておかないと、X転送ができない。
<http://hoop.euqset.org/archives/001086.html>
Linux が入ってる実パーティションをルートにして、
coLinux で起動する。
色々めんどくさそうなことが書いてあったけれど、
実は最新の coLinux だと、すごく簡単。
<?xml version="1.0" encoding="UTF-8"?> <colinux> <block_device index="0" path="\DosDevices\e:\programs\coLinux\root_fs" enabled="true" alias="hda6"/> <block_device index="3" path="\DosDevices\e:\programs\coLinux\root_fs3" enabled="true" alias="hda7"/> <block_device index="5" path="\Device\Harddisk0\Partition4" enabled="true" alias="hda5" /> <block_device index="1" path="\DosDevices\e:\programs\coLinux\swap_device" enabled="true" /> <cofs_device index="0" path="\DosDevices\e:\" type="flat" enabled="true" alias="hda3"/> <bootparams>root=/dev/hda5 fastboot=yes</bootparams> <initrd path="initrd.gz" /> <image path="vmlinux" /> <memory size="256" /> <network index="0" type="tap" name="TAP" /> </colinux>
通常使用している ネットワークの接続 -> プロパティ -> 詳細設定 -> インターネット接続の共有
でTAPを選ぶ。
ここで TAP のIPアドレス設定が上書きされてしまうので、
設定しなおす。
書き忘れていたが、
/etc/resolv.conf
を書く必要があったと思う。
Windows からみえるDNSサーバーと同じでいい。
<http://www.gcd.org/sengoku/stone/Welcome.ja.html>
software repeater
<http://www.ex-machina.jp/zsh/index.cgi>
screen番号をプロンプトに表示するのは便利。
bashでもできたのかな?
xorg.conf とかはない けど、
X 起動のときのオプションでいくらか設定できる。
startx -- -fp "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,\ /usr/X11R6/lib/X11/fonts/75dpi/,/usr/share/fonts/mplus" -multiwindow -emulate3buttons -clipboardフォントパス追加と、XアプリケーションウィンドウのWindowsへの透過と、
<http://scratchpad.fc2web.com/colinux/install/install-5-1.html>
要点は、
ホスト(Windows)側の実際のネットワーク接続を「共有」にし、
coLinux で DNS をただしく指定すること。
coLinux の設定ファイルは次のような感じ。
<?xml version="1.0" encoding="UTF-8"?> <colinux> <!-- This line needs to point to your root file system. For example change "root_fs" to the name of the Debian image. Inside coLinux it will be /dev/cobd0 Block Device Aliasing: You can now handle most dual-boot issues by adding an alias="devname" to block_device. i.e. alias="hda", alias="hda1" You can do this for SCSI as well as IDE. You need to be aware that if you add an alias, you need to change your bootparams root="devname" appropriately (you may need to use devfs naming in some situations). --> <block_device index="0" path="\DosDevices\e:\programs\coLinux\root_fs" enabled="true" /> <!-- This line can specify a swap file if you wish, or an additional image file, it will /dev/cobd1. Additional block_devices can be specified in the same manner by increasing the index --> <block_device index="1" path="\DosDevices\e:\programs\coLinux\swap_device" enabled="true" /> <!-- This is an experimental feature, it may not function completely. <cofs_device index="0" type="flat" path="\DosDevices\C:\" enabled="true" /> --> <!-- bootparams allows you to pass kernel boot parameters --> <bootparams>root=/dev/cobd0</bootparams> <!-- Initial RamDISK (initrd) support --> <initrd path="initrd.gz" /> <!-- image allows you to specify the kernel to boot --> <image path="vmlinux" /> <!-- this line allows you to specify the amount of memory available to coLinux --> <memory size="64" /> <!-- This allows you to modify networking parameters, see the README or website or wiki for more information --> <network index="0" type="tap" name="TAP" /> </colinux>
fsutil file createnew swap_device 268435456
で作る。
fsutil file createnew root_fs2 8589934592
まわりを 1/10 消して、10/9 倍に拡大。
alias pstrim='pstops "1:0@1.111(-10.5mm,-14.65mm)"'
1/20 消して、20/19 倍
alias pstrim='pstops "1:0@1.0526(-5.25mm,-7.325mm)"'
error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
so ファイル、もしくは呼出元の実行ファイルが壊れたか、と思ったが、
よく考えると、見付からない、というのはパス情報が壊れているということ。
/etc/ld.so.cache
というバイナリファイルを正常なものと見比べてみると、
パス情報らしき部分が2つに分裂していて、何かおかしい。
Gentoo ではふつうは
env-update
でこのファイルを再構成するが、これも動かないので、
ldconfig
で元に戻った。