KDE should not need any daemon, the app should start whatever kde daemons are needed (that is why you would see if you invoke konsole, there are at least 3-4 other processes that it spawns). For gnome, the settings daemon is per user and is only started by gnome-session. you can write a small wrapper script 'gapps' which checks if the daemon is not running and then run it before running the app.Devport wrote:I have a little problem. I run individual linux apps with CoLinux threw ssh. Yet those GNOME / KDE apps do not use the correct settings. GNOME apps need /usr/libexec/gnome-settings-daemon running to use any settings and for KDE I don't even know what the settings daemon is. And I can try what I want I do not get /usr/libexec/gnome-settings-daemon to keep running. I tried it by adding "/usr/libexec/gnome-settings-daemon &" to /etc/conf.d/local.start but it seems that this is bound to the respictive shell and as soon as it terminates the daemon seems to be terminated as well.
So has anybody an idea how ro run gnome-settings-daemon and the KDE settings daemon automatically at startup ?
Code: Select all
#!/bin/bash
settings-pid=`/bin/ps -fu $USER|grep gnome-settings|grep -v grep|awk '{print $2}'`
if [ -z "$settings-pid" ]
then
/usr/libexec/gnome-settings-daemon &
sleep 2
fi
exec "$@"that's the dpi thing. typically you run in linux with the native system dpi resolution. but Xming/cygwin-X servers always give a display with 75x75. which means that the fonts will look smaller. You can force dpi to 96 by using .Xdefaults and an entry like this for apps which use xft:Devport wrote:You are right. Somehow the same font suddenly appeared small in a KDE app. I adjusted it to be bigger.
Code: Select all
Xft*dpi: 96ok i figured it out on my own.NightTwix wrote: But i have a question:
Is there a sane way to create an extra runlevel 'colinux' and let Gentoo start this runlevel when its run under Colinux and start the default runlevel if its booted directly?
I could pass a bootparameter as described here but i think its too "dirty" to add an IF clause to all initscripts
Code: Select all
<bootparams>root=/dev/cobd/0 softlevel=colinux</bootparams>Code: Select all
This is localhost.(none) (Linux i686 2.6.11-co-0.6.3-rc2) 20:40:47
localhost login: root
Password:
login(pam_unix)[4940]: session opened for user root by (uid=0)
localhost root # mkdir /mnt/test
localhost root # mount -t ext2 /dev/cobd/0 /mnt/test
localhost root # ls /mnt/test
System.map bin grub
boot bzImage lost+found
splash
localhost root # umount /mnt/test
localhost root # mount -t reiserfs /dev/cobd/2 /mnt/test
mount: /dev/cobd/2: unknown device
localhost root # Code: Select all
<block_device index="0" path="\Device\Harddisk1\Partition1" enabled="true"></block_device>
<block_device index="1" path="\Device\Harddisk1\Partition2" enabled="true"></block_device>
<block_device index="2" path="\Device\Harddisk1\Partition3" enabled="true"></block_device>
<block_device index="3" path="\DosDevices\c:\colinux\Gentoo-colinux-stage3-x86-2004.3" enabled="true"></block_device>
<bootparams>root=/dev/cobd3 devfs=mount </bootparams>
<initrd path="initrd.gz" />
<image path="vmlinux" />
<memory size="512" />
<network index="0" type="tap" />
Code: Select all
---------- \Device\Harddisk0 ----------
\Device\Harddisk0\DP(1)0x7e00-0x1116a1b800+2 (Device)
\Device\Harddisk0\DR0 (Device)
\Device\Harddisk0\Partition0 (SymbolicLink) -> \Device\Harddisk0\DR0
\Device\Harddisk0\Partition1 (SymbolicLink) -> \Device\HarddiskVolume1
---------- \Device\Harddisk1 ----------
\Device\Harddisk1\DP(1)0x7e00-0x65f1c00+3 (Device)
\Device\Harddisk1\DP(2)0x65f9a00-0x3d487a00+4 (Device)
\Device\Harddisk1\DP(3)0x43a81400-0x10d377a400+5 (Device)
\Device\Harddisk1\DR1 (Device)
\Device\Harddisk1\Partition0 (SymbolicLink) -> \Device\Harddisk1\DR1
\Device\Harddisk1\Partition1 (SymbolicLink) -> \Device\HarddiskVolume2
\Device\Harddisk1\Partition2 (SymbolicLink) -> \Device\HarddiskVolume3
\Device\Harddisk1\Partition3 (SymbolicLink) -> \Device\HarddiskVolume4
Code: Select all
daemons-0.7.1-hn2.zip 20-Sep-2005 16:23 355k
modules-2.6.12.5-co-..> 20-Sep-2005 16:24 987k
vmlinux-0.7.1-hn2.zip 20-Sep-2005 16:25 1.3M Code: Select all
colinux-daemon.exe mem=32 kernel=vmlinux cobd0=Gentoo-colinux-stage3-x86-2004.3 root=/dev/cobd0 eth0=pcap-bridge,wireless,00:02:2D:93:02:00Code: Select all
cd /
tar xvf /path/to/local/modules.*.tar.gzCode: Select all
emerge =sys-kernel/vanilla-sources-2.6.12.5 -vpCode: Select all
cp -Rp /usr/src/2.6.12.5 $HOME/
cd $HOME/2.6.12.5Code: Select all
echo "=sys-devel/gcc-3.4.4-r1 ~x86">>/etc/portage/package.keyword
emerge =sys-devel/gcc-3.4.4-r1Code: Select all
gcc-config i686-pc-linux-gnu-3.3.6
source /etc/profileCode: Select all
cd $HOME/2.6.12.5
wget http://www.henrynestler.com/colinux/testing/co-2.6.12.5/src/linux-2.6.12.5-hn2b.diff.gzCode: Select all
cd $HOME/2.6.12.5
gzcat colinux-0.7.1-hn2b.patch.gz | patch -p1Code: Select all
gzcat linux-2.6.12.5-config.gz > $HOME/2.6.12.5/.configCode: Select all
General setup --->
(-co-0.7.1-hn2) Local version - append to kernel releaseCode: Select all
makeCode: Select all
colinux-daemon.exe mem=32 kernel=vmlinux_selfCompiled @hdlayout.txt root=/dev/hda3 eth0=pcap-bridge,wireless,00:02:2D:93:02:00 softlevel=colinuxThis goes all into one line, I was not successful with multiple lines. So copy it and remove the \'es!In hdlayout.txt I wrote:hda=\Device\Harddisk0\Partition0 hda2=\Device\Harddisk0\Partition2 \
hda3=\Device\Harddisk0\Partition3 hda5=\Device\Harddisk0\Partition5 \
hda6=\Device\Harddisk0\Partition6 hda7=\Device\Harddisk0\Partition7 \
hda8=\Device\Harddisk0\Partition8 hda9=\Device\Harddisk0\Partition9 \
hda10=\Device\Harddisk0\Partition10 hda11=\Device\Harddisk0\Partition11 \
hda12=\Device\Harddisk0\Partition12
and the colinux window simply shows somthing along the lines of "starting network" and says its ok..searching TAP device named "TAP"
found TAP device named "TAP"
opening TAP: "TAP"
driver version 8.1
enabling TAP...
DMA zone: 0 pages, LIFO batch:1
Normal zone: 32768 pages, LIFO batch:8
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Code: Select all
Windows: Xming -ac -multiwindow
Linux: DISPLAY=$WINIP:0.0 xterm
Code: Select all
VFS: Mounted root (ext2 filesystem).
ReiserFS: hda5: warning: sh-2021: reiserfs_fill_super: can not find reiserfs o
hda5
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS on hda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS on hda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS on hda7, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS on hda8, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Cannot open root device "hda5" or unknown-block(3,5)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,5)Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<colinux>
<!-- root -->
<block_device index="0" path="\Device\Harddisk0\Partition4" enabled="true" alias="hda5"/>
<!-- /tmp -->
<block_device index="1" path="\Device\Harddisk0\Partition5" enabled="true" alias="hda6"/>
<!-- /home -->
<block_device index="2" path="\Device\Harddisk0\Partition6" enabled="true" alias="hda7"/>
<!-- /var -->
<block_device index="3" path="\Device\Harddisk0\Partition7" enabled="true" alias="hda8"/> -->
<bootparams>root=/dev/hda5 COLINUX=42 bootlevel=colinux-boot softlevel=colinux</bootparams>
<initrd path="initrd.gz" />
<image path="vmlinux" />
<memory size="256" />
<network index="0" type="bridged" name="Bridge" />
</colinux>
#
# This is an example for a configuration file that can
# be passed to colinux-daemon in this manner:
#
# colinux-daemon @example.conf
#
# Note that you can still prepend or append configuration and
# boot parameters before and after '@', or you can use more
# that one '@ to load several settings one after another.
#
# colinux-daemon @example.conf @overrider.conf mem=32
#
kernel=vmlinux # The default kernel
cobd0=c:\colinux\gentoo
cobd1=c:\colinux\swap_512Mb
initrd=initrd.gz
mem=64
eth0=tuntap,"coLinux TAP"
C:\colinux>colinux-daemon @example.conf
Cooperative Linux Daemon, 0.7.1
Compiled on Thu Oct 13 19:11:59 2005
using 'vmlinux' as kernel image
using 'initrd.gz' as initrd image
configuring 64 MB of virtual RAM
mapping cobd0 to \??\c:\colinux\gentoo
mapping cobd1 to \??\c:\colinux\swap_512Mb
configured TAP device as eth0
MAC address: auto generated
kernel boot parameters: ''
PID: 1196
colinux: launching console
colinux: booting
64MB LOWMEM available.
initrd enabled: start: 0xc3e07000 size: 0x001f8a3d)
On node 0 totalpages: 16384
DMA zone: 0 pages, LIFO batch:1
Normal zone: 16384 pages, LIFO batch:7
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line:
Initializing CPU#0
Setting proxy interrupt vectors
PID hash table entries: 512 (order: 9, 8192 bytes)
Using cooperative for high-res timesource
Console: colour CoCON 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
unknown command line parameter 7: 'TAP'
Cooperative Linux Cooperative Linux TAP network daemon
Dan Aloni, 2004 (c)
syntax:
colinux-net-daemon -i pid -u unit_index [-n 'adapter name']
-i pid coLinux instance ID to connect to
-u unit_index Network device index number (e.g, 0 for eth0, 1 for
eth1, etc.)
-n 'adapter name' The name of the network adapter to attach to
Without this option, the daemon tries to
guess which interface to use
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Memory: 59136k/65536k available (1550k kernel code, 0k reserved, 564k data, 116k
init, 0k highmem)
Calibrating delay loop... 1658.06 BogoMIPS (lpj=8290304)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0383fbff c1c3fbff 00000000 00000000 00000000
00000000 00000000
CPU: After vendor identify, caps: 0383fbff c1c3fbff 00000000 00000000 00000000 0
0000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0383fbff c1c3fbff 00000000 00000020 00000000 0000000
0 00000000
CPU: AMD Athlon(tm) XP 2200+ stepping 00
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 2018k freed
NET: Registered protocol family 16
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
cofuse init 0.1 (API version 2.2)
Initializing Cryptographic API
serio: cokbd at irq 1
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
cobd: loaded (max 32 devices)
loop: loaded (max 8 devices)
conet: loaded (max 16 devices)
conet0: initialized
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
EXT2-fs warning: maximal mount count reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
input: AT Translated Set 2 keyboard on cokbd
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
colinux: kernel panic suggests that either you forget to supply a
root= kernel boot paramter or the file / device mapped to the root
file system is not found or inaccessible. Please Check your.
coLinux configuration.
colinux: Linux VM terminated
colinux: terminated with code 3 - abnormal exit, aborting
C:\colinux>
Code: Select all
colinux-daemon @example.conf root=/dev/cobd0Code: Select all
colinux-daemon @example.conf root=/dev/cobd/0
/etc/conf.d/net, all uncommented lines :kernel=vmlinux # The default kernel
root=/dev/cobd0
cobd0=c:\colinux\gentoo
cobd1=c:\colinux\swap_512Mb
initrd=initrd.gz
mem=64
eth0=tuntap,"TAP"
iface_eth0="192.168.0.40 broadcast 192.168.0.255 netmask 255.255.255.0"
gateway="eth0/192.168.0.1"


spacepirate01 wrote:I'm running into the very similar problems as zopilote17 but unfortunately his fixes don't work for me.
I've attempted this with both the gentoo-..-2g as well as the gentoo-..x86-2004.
I'm still a noob, but I think this boils down to a problem with the fstab. Upon booting (the second time) in both instances, I can get it to successfully add swap on /dev/cobd1 or /dev/cobd/1.
it doesn't seem to matter if my first fs entry is /dev/root or /dev/cobd0 or /dev/cobd/0
In both instances it starts like this:
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
ReiserFS: cobd0: warning: sh-2021: reiserfs_fill_super: can not find
reiserfs on cobd0
then continues down the failure path or the success path.
< VFS: Cannot open root device "cobd0" or unknown-block(117,0)
< Please append a correct "root=" boot option
< Kernel panic - not syncing: VFS: Unable to mount root fs on
< unknown-block(117,0)
---
> EXT3-fs warning: checktime reached, running e2fsck is recommended
> EXT3 FS on cobd0, internal journal
> EXT3-fs: mounted filesystem with ordered data mode.
> VFS: Mounted root (ext3 filesystem).
> Trying to move old root to /initrd ... failed
> Unmounting old root
> Trying to free ramdisk memory ... okay
> Freeing unused kernel memory: 108k freed
> kjournald starting. Commit interval 5 seconds
> EXT3-fs warning: checktime reached, running e2fsck is recommended
> EXT3 FS on cobd0, internal journal
Thanks for any help.
How am I supposed to follow thisNow you need to configure X. You can simply copy over your /etc/X11/XF86Config from your Linux installation to your coLinux install (if applicable).
Note: You can only use drivers provided with X (i.e. no nvidia-glx/kernel) and it only seems to work with a color depth of 16, so you'll have to edit the file a little. Remember you have no direct access to the video hardware of Windows, so you have to either copy this file from elsewhere or manually create it. Alternatively you can also just boot the machine with Knoppix and let Knoppix create a XF86Config file for you.
When that is finished create ~/.vnc/xstartup: