I haven't tried andLinux, I use basic coLinux with a Gentoo image, but depending on the coLinux version andLinux is based upon and what you actually want to share, using cofs may be easier.
I found some info on cofs here.
http://wiki.colinux.org/mediawiki/index.php/CofsDevice
cofs sure looks like a lot of work.
Using the synaptics provided in andLinus, I simply installed the ubuntu samba.
Then enabled pecan to use it with the command Yiannis taught me a year ago:
In /etc/samba/smb.conf I added at the bottom:
[pecan]
path = /home/pecan
comment = \home\pecan
available = yes
browseable = yes
public = yes
writable = yes
from Windows I issue the command:
net use n: \\andLinux\pecan myPassWord
now andLinux is avaiable as disk n:\home\pecan\* for any windows or dos program.
If you wish to share the whole system, add in smb.conf
[root]
path = /
comment = \
available = yes
browseable = yes
public = yes
writable = yes
and do something like: "net use n: \\andLinux\root"
I have used TotalCommander for years. It will do the "use" command for me, and looks like:
(http://img185.imageshack.us/img185/9333/88qq9.png)
Now any file can be copied/moved/edited/ etc etc.
A very convenient setup.
I haven't tried andLinux, I use basic coLinux with a Gentoo image, but depending on the coLinux version andLinux is based upon and what you actually want to share, using cofs may be easier.
I found some info on cofs here.
http://wiki.colinux.org/mediawiki/index.php/CofsDevice
It seems to me that this is largely outdated. Guessing from andLinux' changelog they use coLinux 0.6.4. That means add something like
<cofs_device index="0" type="flat" path="\DosDevices\C:\" enabled="true" />
to your coLinux config file and
cofs0:Share /mnt/windows cofs defaults 0 0
to your fstab inside, that's all you need.
(Note: the example will mount C:\Share as /mnt/windows)
For your benefit here's the full cofs readme that comes with 0.6.4:
The cofs driver in the coLinux kernel is based on work by the people
responsible for the fuse-1.3 library and kernel code, namely Miklos
Szeredi <miklos@szeredi.hu>.
cofs is similar to UML's hostfs. It is a binding between the host's
VFS and Linux's VFS layers. By using cofs it is possible to mount
host OS directories inside Linux.
* Flat mode (default)
Mounting in flat mode (the default) under Windows, means that the
expected behavior of the mounted file system is similar to that of
vfar or samba, which means there is no support for the regular
UNIX meta data and all the UNIX attributes (mode, uid, gid) are
virtually the same for all files and directories. Creation of special
files like symlinks, device nodes, and pipes are not supported.
* UNIX meta data mode
Future versions of cofs support will introduce the UNIX meta data
mode, which is similiar to hostfs. It will allow to have a true
UNIX file system on top of a Windows (or Linux) file system by
storing the VM's UNIX meta data as regular inaccessible files.
Theoretically, it will allow to boot a full Linux system without
a root file system image.
* Ports
For the host OS side, cofs is only supported on the Windows port
at the time this is written (October 23, 2004).
The planned Linux port will be designed to behave more like UML's
hostfs in flat mode (with support for UNIX attributes), and UML's
humfs in UNIX meta data mode.
* Configuring cofs (using the colinux-daemon command line interface):
cofsXX=host-pathname
XX is a number between 0 and 31.
or in the XML config file:
<cofs_device index="0" type="<flat | meta>" path="\DosDevices\<path>" enabled="true" />
* mount syntax:
mount -t cofs (cofs)XX(:path) (-o options) /mnt/point
'cofs' as a prefix to the device name is optional and its purpose
it clarity.
The optional ':path' suffix can specify an inner path to mount
instead of the mapped root.
'options' are parallel to smbfs:
gid= Set the default group.
uid= Set the default user.
dmask= Set the default directory permission.
fmask= Set the default regular file permission.
* Examples:
Using the following configuration:
colinux-daemon kernel=vmlinux hda1=root_fs cofs0=c:\
This map cofs0 to c:\.
mount -t cofs 0 /mnt/windows
Mount c:\ as /mnt/windows.
mount -t cofs cofs0 -o uid=dax,gid=dax /mnt/windows
Mount c:\ as /mnt/windows and give dax full access to all the
files and directories.
mount -t cofs cofs0:Share -o uid=dax,gid=dax,dmask=0700,fmask=0700 /mnt/windows
Mount c:\Share as /mnt/windows and give dax exclusive full
access to all the files and directories.
An example fstab entry:
cofs0:Share /mnt/windows cofs defaults 0 0
Does anyone know how to turn that andLinux startup sound off?
If I forget to turn the sound off at power-down, that andLinux noise makes me jump out of my skin at power-up. it's so damn loud.
thanks
pecan
andLinuxPreBeta\Sound>esd --help
Esound version 0.2.36
Usage: esd [options]
-v --version print version information
-d DEVICE force esd to use sound device DEVICE
-b run server in 8 bit sound mode
-r RATE run server at sample rate of RATE
-as SECS free audio device after SECS of inactivity (-1 to disable)
-unix use unix domain sockets instead of tcp/ip
-tcp use tcp/ip sockets instead of unix domain
-public make tcp/ip access public (other than localhost)
-promiscuous start unlocked and owned (disable authenticaton) NOT RECOMMENDED
-terminate terminate esd daemon after last client exits
-noterminate do not terminate esd daemon after last client exits
-nobeeps disable startup beeps
-beeps enable startup beeps
-trust start esd even if use of /tmp/.esd can be insecure
-port PORT listen for connections on PORT (only for tcp/ip)
-bind ADDRESS binds to ADDRESS (only for tcp/ip)
Possible devices are: /dev/dsp, /dev/dsp2, etc.
edit your "settings_static.txt"
from
exec1="sound\esd","-tcp -public"
to
exec1="sound\esd","-tcp -public -nobeeps"
brgds
--tiwag
Has anyone been successful running a program from within CB on andLinux.
I dont seem to have an xterm on andLinux, so I changed Setting/Environment Terminal to /usr/bin/xfce4-terminal -T $TITLE -e
I see the console quickly flash by and get the following messages:
Checking for existence: /home/pecan/proj/Hello/Hello
Executing: /usr/bin/xfce4-terminal -T 'Hello' -e 'LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH /home/pecan/devel/trunk/src/devel/cb_console_runner "/home/pecan/proj/Hello/Hello" ' (in /home/pecan/proj/Hello/.)
Process terminated with status 0 (0 minutes, 0 seconds)
with the following error message in my andLinux terminal window
pecan@andLinux:~/devel/trunk/src/devel$ ./run.sh
-------------- Build: Debug in Hello ---------------
g++-4.0 -Wall -g -c main.cpp -o obj/main.o
g++-4.0 -o ./Hello obj/main.o
Process terminated with status 0 (0 minutes, 4 seconds)
0 errors, 0 warnings
Unable to register terminal service: Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)
Process terminated with status 0 (0 minutes, 0 seconds)
Unable to register terminal service: Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)
Process terminated with status 0 (0 minutes, 0 seconds)
I installed the dbus stuff with synaptic, rebooted andLinux and started the dbus-daemon:
andLinux:~# dbus-daemon
No configuration file specified.
dbus-daemon [--version] [--session] [--system] [--config-file=FILE] [--print-address[=DESCRIPTOR]] [--print-pid[=DESCRIPTOR]] [--fork] [--nofork] [--introspect]
top shows the daemon running, but it all made no difference at all.
I think I'm now over my head here.
Is there another way to get CB to run a program under andLinux?
To add truetype fonts to andLinux (and therby CodeBlocks), copy the font from \windows\fonts to /usr/share/fonts/truetype/{somedir}; then run
dpkg-reconfigure fontconfig
eg., for CourierNew
from windows, copy \windows\fonts\cour*.ttf \andLinux\Transfer
from andLinux
cd /usr/share/fonts/truetype
mkdir ttf-courier
cd ttf-courier
cp /mnt/and/Transfer/*.ttf .
su
dpkg-reconfigure fontconfig
now you should be able to pick courier new in the CB font picker.
ok i've updated my ancient andlinux with wxWidgets 2.8.4
it was not very complicated,
on the wxWidgets download page there is a link to a repository,
with a few changes it works also with andlinux res. ubuntu 6.10 edgy
the repository
deb http://apt.tt-solutions.com/ubuntu/ edgy main
has to be added to the file
then run
and you get some errors about untrustet public key.
the commands how to add the public key used for signing wxWidgets packages
to the list of keys trusted by apt are described in the /etc/apt/sources.list
just run them with the key you got from the last apt-get update command.
finally run another
or use synaptic and update the repositories.
then all wx2.8.4 packages are available.
hth,
brgds, tiwag
ps. CB built fine !