cifs and windows, do you know how to?

Hi…

I have been trying to get fs-cifs to work with windows, but I am missing
a point somewhere. I have navigated the cifs postings on the web, and I
am not sure what I have done, what I am missing, etc.

  1. do we have a number of points to follow so that we can get fs-cifs to
    work properly?
  2. on windows, how do I make it be CIFS server?

Any way, I am green on this, and any pointers will be welcomed. Thanks.


ASIDE:

  1. how do I do a search on the news groups (both currently active an
    defunct ng)?


    Regards…

Miguel.

Miguel Simon wrote:

I have been trying to get fs-cifs to work with windows, but I am missing
a point somewhere. I have navigated the cifs postings on the web, and I
am not sure what I have done, what I am missing, etc.

  1. do we have a number of points to follow so that we can get fs-cifs to
    work properly?

Once you’re running fs-cifs, you’ll need to use the mount command. Here
are the command I use. Catdog is my desktop windows box, athena is one
of our internal windows machines. Note how you can start fs-cifs with a
mount or you can just start it and then use mount for other shares (or
both). I don’t know if -d is documented yet but it allows you to set a
domain if you’ve got a primary domain controller. You won’t need that
if you’re just using a single windows box.

/usr/sbin/fs-cifs -d QSSL //catdog:10.4.2.2:/kewarken
/home/kewarken/catdog kewarken

mount -tcifs -okewarken, //athena:10.2.0.7:/kewarken$
/home/kewarken/athena

  1. on windows, how do I make it be CIFS server?

You have to share a directory or drive in much the same way as you would
if you were going to map a network drive to another windows machine.
CIFS is to windows as NFS is to unix. You may need to monkey with
permissions though. If you open the file manager and select
tools->folder options->view, you can disable simple file sharing which
will give you more control about how you share. Good luck.

cheers,

Kris

Hi Kris…

Thanks for your help here. I had some network problems, and after fixing
those, fs-cifs worked as advertised.

I have one more question:

I have a workspace directory with Momentics-IDE projects on it. I mount
this directory via fs-cifs from a box running QNX. I try to run the IDE
with this workspace from the QNX box. But the IDE does not come up. It
keeps resetting itself, and it never comes up.

Should this have worked?

Thanks.

Regards…

Miguel.



Kris Warkentin wrote:

Miguel Simon wrote:

I have been trying to get fs-cifs to work with windows, but I am
missing a point somewhere. I have navigated the cifs postings on the
web, and I am not sure what I have done, what I am missing, etc.

  1. do we have a number of points to follow so that we can get fs-cifs
    to work properly?


    Once you’re running fs-cifs, you’ll need to use the mount command. Here
    are the command I use. Catdog is my desktop windows box, athena is one
    of our internal windows machines. Note how you can start fs-cifs with a
    mount or you can just start it and then use mount for other shares (or
    both). I don’t know if -d is documented yet but it allows you to set a
    domain if you’ve got a primary domain controller. You won’t need that
    if you’re just using a single windows box.

/usr/sbin/fs-cifs -d QSSL //catdog:10.4.2.2:/kewarken
/home/kewarken/catdog kewarken <my password

mount -tcifs -okewarken, //athena:10.2.0.7:/kewarken$
/home/kewarken/athena

  1. on windows, how do I make it be CIFS server?


    You have to share a directory or drive in much the same way as you would
    if you were going to map a network drive to another windows machine.
    CIFS is to windows as NFS is to unix. You may need to monkey with
    permissions though. If you open the file manager and select
    tools->folder options->view, you can disable simple file sharing which
    will give you more control about how you share. Good luck.

cheers,

Kris

I have a workspace directory with Momentics-IDE projects on it. I mount
this directory via fs-cifs from a box running QNX. I try to run the IDE
with this workspace from the QNX box. But the IDE does not come up. It
keeps resetting itself, and it never comes up.

Should this have worked?

No, you can’t share physical workspaces between OS versions like this. Your
best bet is to setup a CVS repository on some other machine and use source
control to manage the two workspaces.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Hi Chris…

Thanks. I figure that this would be the case. However…

Say that I zip the workspace that I use in Windows, unzip it in QNX,
then the workspace works just fine and vice versa. It seems that the
same workspace works well in both OS. I suppose that there are some
environment variables that determine what can and cannot be done with
the workspace directory depending on the working OS. Would this be the
case?

Finally, if I have a workspace directory in a Linux box, I use NFS to
access this directory, can I or can I not use the same workspace in both
OS? If the answer is not too long/complex/etc, why or why not?

Thanks for your help.

Regards…

Miguel.



Chris McKillop wrote:

I have a workspace directory with Momentics-IDE projects on it. I mount
this directory via fs-cifs from a box running QNX. I try to run the IDE
with this workspace from the QNX box. But the IDE does not come up. It
keeps resetting itself, and it never comes up.

Should this have worked?



No, you can’t share physical workspaces between OS versions like this. Your
best bet is to setup a CVS repository on some other machine and use source
control to manage the two workspaces.

chris

Miguel Simon <simon@ou.edu> wrote:

Hi Chris…

Thanks. I figure that this would be the case. However…

Say that I zip the workspace that I use in Windows, unzip it in QNX,
then the workspace works just fine and vice versa. It seems that the
same workspace works well in both OS. I suppose that there are some
environment variables that determine what can and cannot be done with
the workspace directory depending on the working OS. Would this be the
case?

The trouble is that there is OS specific information in the workspace/.metadata
directory. What you CAN do is setup a workspace on one machine and then
create a new workspace on a second (third, …) and then create a linked
project. On the second machine do a File->Import->Existing Project for
each project you want to share. Then you will be sharing the project
data and not the workspace itself. HOWEVER, there may be some quirky
behavior since I have never actually done this myself. I always just
have CVS running on a file server and check code in/out. Easy to do
if you have a Linux machine running NFS and sshd.

ssh fileserver
mkdir cvsroot
cvs -d cvsroot/ init

And under eclipse you can add a path to this directory and use the
extssh connection method.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/