User forums > General (but related to Code::Blocks)

Linux distro for devs?

<< < (4/8) > >>

MortenMacFly:
Good information that is. :-)
I could add my 2 cents here, too: I modified the distro in a way it uses my (already installed) Xming. I adopted the path in settings_static.txt accordingly. In addition there was a hint on the andLinux webpage how to disable the file system check on startup. This actually works and has speed up the launch a lot for me.
With regards, Morten.
Ps.: If you have any further infos on that topic, keep it coming! ;-)

Belgabor:

--- Quote from: Pecan on December 18, 2006, 02:20:55 pm ---I installed samba, and now have shared file accessabilty with windows. Very convenient.

--- End quote ---

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.

stahta01:

--- Quote from: Belgabor on December 18, 2006, 06:10:55 pm ---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.

--- End quote ---

I found some info on cofs here.
http://wiki.colinux.org/mediawiki/index.php/CofsDevice

Pecan:

--- Quote from: stahta01 on December 18, 2006, 09:18:21 pm ---
--- Quote from: Belgabor on December 18, 2006, 06:10:55 pm ---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.

--- End quote ---

I found some info on cofs here.
http://wiki.colinux.org/mediawiki/index.php/CofsDevice

--- End quote ---

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:

--- Code: ---smbpasswd -a pecan

--- End code ---

In /etc/samba/smb.conf I added at the bottom:

--- Code: ---[pecan]
path = /home/pecan
comment = \home\pecan
available = yes
browseable = yes
public = yes
writable = yes

--- End code ---

from Windows I issue the command:

--- Code: ---net use n: \\andLinux\pecan myPassWord

--- End code ---

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

--- Code: ---[root]
path = /
comment = \
available = yes
browseable = yes
public = yes
writable = yes

--- End code ---
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:


Now any file can be copied/moved/edited/ etc etc.
A very convenient setup.

Belgabor:

--- Quote from: stahta01 on December 18, 2006, 09:18:21 pm ---
--- Quote from: Belgabor on December 18, 2006, 06:10:55 pm ---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.

--- End quote ---

I found some info on cofs here.
http://wiki.colinux.org/mediawiki/index.php/CofsDevice

--- End quote ---

It seems to me that this is largely outdated. Guessing from andLinux' changelog they use coLinux 0.6.4. That means add something like

--- Code: ---<cofs_device index="0" type="flat" path="\DosDevices\C:\" enabled="true" />

--- End code ---
to your coLinux config file and

--- Code: ---cofs0:Share      /mnt/windows            cofs    defaults          0 0

--- End code ---
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:

--- Code: ---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

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version