On 07/23/2011 08:36 PM, China Jobs wrote:
>
> 2) There are different possible ways to connect.
>
> //192.168.18.112/share
> //server/share
Those are both possible.
The first is by IP, the second is by name.
We’ll come back to that later.
Earlier I asked:
> If you go to smb://server/yesitsme
> >you should be able to browse also the sub directories in the file
manager.
And you replied:
Confirmed
So we can go on from there.
I’m assuming here now that the following addresses are actually the same
one directory in your server:
//192.168.18.112/share
//server/share
smb://server/yesitsme
Let’s keep it that way and only use
smb://192.168.18.112/share
as we talk about it, OK? You can go there with file manager?
>
> So I keep track of all the possible ways I could connect, which right
> now mean, which way is going to work first.
Don’t try different stuff. Let’s focus on
smb://192.168.18.112/share
>
> I would rather just get a permanent connection to the server only.
You will, within short, just follow with me precisely.
> Figuring that once I get that, I can have applications that need, to
> connect with applications in other folders on the server quietly
> connecting. This may or may not be a fantasy, but it’s a thought.
It’s not phantasy, it’s simple.
>
> When editing of course I use a text editor. Kwrite was default in KDE
> so I use it.
That’s fine. When you edit /etc/fstab you open konsole and type
kdesu kwrite /etc/fstab
You give root password and you’re in business.
>
> I also loaded Kate. I like it better.
That’s just fine, too. Let’s use kwrite for now.
> When
> messaging here, I write in a word processor, as I never won at the
> spelling contests and since living in China, I have seen far too much
> Chinglish to find it entertaining.
Whatever. An editor is an editor. Or a word processor it you like.
Anyways, let’s try this now:
You can connect via file manager to
smb://192.168.18.112/share
Are we cool so far?
Then:
Make a directory in your /home like
/testdir
The full path to that is then:
/home/you/testdir
Then:
You make a file /etc/.credentials.
Command:
kdesu kwrite /etc/.credentials
type there:
username=yourname
password=yourpw
Use the real ones there and save the file.
Then you open /etc/fstab:
kdesu kwrite /etc/fstab
and make a (one) line there at the bottom:
//192.168.18.112/share /home/you/testdir cifs
credentials=/etc/.credentials,_netdev 0 0
Then, as root:
mount -a
What do you get after all this?
Then, in file manager, go to home/testdir
What can you see?
Go through these steps, note any problems and come back, OK?
Vahis
http://waxborg.servepics.com
openSUSE 11.2 (x86_64) 2.6.31.14-0.8-default “Evergreen” main host
openSUSE 11.4 (x86_64) 2.6.37.6-0.5-desktop in VirtualBox
openSUSE 11.4 (i586) 2.6.39.3-37-desktop “Tumbleweed” in EeePC 900