Networking between two OpenSuse 11.2, KDE

I have two OpenSuse machines, both running Samba, both with dualboots.

Samba works fine as long as it’s Win to Linux connection but when both are booted into OpenSuse it becomes a royal pain.

It asks for a manually typing in password every time I access shares (Windows remembers it somewhere). Then I can’t just open files on those shares, can’t watch videos. KDE starts copying them into temp folder first, and copying files from one OpenSuse to another is extremely slow, at about 0.3MB per second.

Is there some other protocol for networking two Linux machines, or should I tweak my Samba/KDE/Dolphin settings? I’d like them to work with both Windows and Linux.

I followed Swerdna’s primer when setting samba and this is my config file:

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2009-10-27

[global]
workgroup = HOME
netbios name = OpenSuse
name resolve order = bcast host lmhosts wins
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
#logon path = \%L\profiles.msprofile
#logon home = \%L%U.9xprofile
#logon drive = P:
usershare allow guests = Yes

Share disabled by YaST

[homes]

comment = Home Directories

valid users = %S, %D%w%S

browseable = No

read only = No

inherit acls = Yes

Share disabled by YaST

[profiles]

comment = Network Profiles Service

path = %H

read only = No

store dos attributes = Yes

create mask = 0600

directory mask = 0700

Share disabled by YaST

[users]

comment = All users

path = /home

read only = No

inherit acls = Yes

veto files = /aquota.user/groups/shares/

Share disabled by YaST

[groups]

comment = All groups

path = /home/groups

read only = No

inherit acls = Yes

Share disabled by YaST

[printers]

comment = All Printers

path = /var/tmp

printable = Yes

create mask = 0600

browseable = No

Share disabled by YaST

[print$]

comment = Printer Drivers

path = /var/lib/samba/drivers

write list = @ntadmin root

force group = ntadmin

create mask = 0664

directory mask = 0775

[aaa]
comment = Videos
inherit acls = Yes
path = /media/FreeAgent Drive/AAA
read only = No

[grabit]
comment = downloads
inherit acls = Yes
path = /home/stan/Grabit Downloads
read only = No

If no Windoze is involved, better use NFS instead of SAMBA.

Stan Ice wrote:
> I have two OpenSuse machines, both running Samba, both with dualboots.
>
> Samba works fine as long as it’s Win to Linux connection but when both
> are booted into OpenSuse it becomes a royal pain.

samba was invented to hook Linux and Windows together…not to hook
Linux to Linux…

i have no idea how to do that and suggest you stop trying and use NFS
instead…

look here:
http://www.novell.com/documentation/opensuse112/book_opensuse_startup/?page=/documentation/opensuse112/book_opensuse_startup/data/book_opensuse_startup.html
on the left side where you can click “Installation and Setup” then
“Using Network Manager” and from there is should be just following the
directions…patiently…


palladium

Ok, NFS it is.

On a server machine I added my home directory to exports

/home/stan 192.168.2.100(rw,async)

and left hosts.allow hosts.deny all commented for now, added 111 TCP and UDP and RPC ports to firewall.

This is what I get:

Password:
linux-j88c:~ # rpcinfo -p localhost
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
linux-j88c:~ # rpcinfo quota
rpcinfo: can’t contact rpcbind: RPC: (unknown error code)

I also get Konsole popup after restart, and when I close it gives me some “segmentation” error, nasty thing, from the looks of it, but I’m not sure it’s related to NFS, sometimes my mouse fails to initialise, too. And zypper can’t connect to the Internet, but that’s in another thread.

you also need to open port 2049 upd/tcp and start the services nfs and nfsserver.

There’s only NFS in Yast System Services, it says

“All necessary services for NFS clients”

Oh, after the latest reboot NFS is not running and I get

/etc/init.d/nfs start returned 6 (program is not configured):

What does it need to be configured? I thought uncommented “exports” would have been enough, I don’t care for security in hosts.allow/deny at this stage yet.

You need to go to yast>software and install nfs server on both machines first.
Suse is great for nfs, since yast allows easy setup of both client and server.

Sorry, I don’t get it - why it has to run on both machines to make the server start? It doesn’t make any sense - following this logic the other machine won’t start its server until the first machine is up, and the first machine won’t start until the second machine is online.

I hope it’s just a misunderstanding, I’ve been stupid before.

If you are using one machine as an NFS file server, then you only need the server installed on that machine. I assumed you were doing 2 way sharing.

Yes, eventually I’ll have to configure servers on both machines. So far I’m only at setting NFS server on the first one.

I tried checking its status via “rpcinfo quota”, got it from 3. Setting Up an NFS Server

Instead of giving me a list of all services it says “can’t contact rpcbind: RPC: (unknown error code)”

rpcinfo -p localhost is still the same:

program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

But, you need to mount a filesystem or only access to it, if you only
need access use fish or sftp from Dolphin, and make ssh keys to your
users to access without password


VampirD
No in elenath hîlar nan hâd gîn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkt3ZhgACgkQJQ+0ABWtaVllOQCgjI8vANtscxSZ2x6i9QzGqtjA
kQcAoISdrJZEmbtzmOCn+Id6G/U9iZtX
=imGJ
-----END PGP SIGNATURE-----

Fish or sftp from Dolphin? I have no idea what are those. Let me check it out first.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  • From one PC open Dolphin and type fish://user@otherPChost, this will
    open the otherPChost user home and let you move on the file system,
    other thing I remember I used a long ago is sshdfs to mount directories
    without a server configuration

VampirD
No in elenath hîlar nan hâd gîn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEUEARECAAYFAkt5e3IACgkQJQ+0ABWtaVkQ+ACY60CqNwPZVZJiq/7KBWBC1B8h
zwCgiSWA8X7PJ67hOomguYu1gnBxdoE=
=OA0l
-----END PGP SIGNATURE-----

Well, I tried fish and got connection refused. What should be set on the server to make fish work?

Firewall there is down, sshd is enabled and running.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you have ssh access you could have connection with fish, if not try
sftp instead of fish


VampirD
No in elenath hîlar nan hâd gîn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkt7JTUACgkQJQ+0ABWtaVny9wCgvWwmnvC0h9ETDsaXq++wZeJz
/cwAoIrlnchfpVx/rrHMbUiksW3vpnxK
=eUd2
-----END PGP SIGNATURE-----

Maybe I didn’t give enough time to machines to discover each other on the network. After a couple of hours online they are all suddenly visible and working.

The main problem, however, hasn’t been solved - when I try to play a video from a remote host Dolphin starts to copy it into a temporary folder and it calculates anywhere between 10 and 20 minutes to do it.

Is it possible to feed the file to the player straight from a network folder? Windows does it, maybe it’s less secure but it’s a lot more convenient.

By now I think it’s somewhere in Dolphin settings rather than a networking issue.

Regarding fish/sftp itself - how can I add a folder outside home/stan directory, specifically an external drive?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Maybe I didn’t give enough time to machines to discover each other on
> the network. After a couple of hours online they are all suddenly
> visible and working.

verify dns servers

> The main problem, however, hasn’t been solved - when I try to play a
> video from a remote host Dolphin starts to copy it into a temporary
> folder and it calculates anywhere between 10 and 20 minutes to do it.

Yes, it happens

> Is it possible to feed the file to the player straight from a network
> folder? Windows does it, maybe it’s less secure but it’s a lot more
> convenient.
>
> By now I think it’s somewhere in Dolphin settings rather than a
> networking issue.

in that case I would use sshfs, see man sshfs

> Regarding fish/sftp itself - how can I add a folder outside home/stan
> directory, specifically an external drive?

you type fish://user@machine and you go to
fish://user@machine/home/user, the first / is the “machine” / directory,
so you can type fish://user@machine/media to go to the /media and use
the external drive


VampirD
No in elenath hîlar nan hâd gîn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkt8ewIACgkQJQ+0ABWtaVlBlgCgzEklWSSvOV/fxydPtkyU+p2J
61IAnioMMDeluK0krT9oKK+7dpMQweIn
=s4eE
-----END PGP SIGNATURE-----

Thanks, will do later in the day, it’s 7AM here now.

Ok, managed to mount home folder via terminal

sshfs user@server: /mountPoint

Does it mount the whole server’s filesystem? I can’t find a way to go to root/media on the remote machine from my Dolphin.

Another question - what is the best way to automate this mounting and store the password somewhere so I don’t have to type it manually?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stan Ice wrote:
>
> Ok, managed to mount home folder via terminal
>
> sshfs user@server: /mountPoint

Good!!!

> Does it mount the whole server’s filesystem? I can’t find a way to go
> to root/media on the remote machine from my Dolphin.

No, it mount the directory you specify, you can use sshfs
user@server:/root/media /mountPoint to mount root/media and then use Dolphin

> Another question - what is the best way to automate this mounting and
> store the password somewhere so I don’t have to type it manually?

I use a ssh public key, and add the following line to your fstab
sshfs#user@server:/servermountpoint /mountPoint fuse defaults 0 0, but I
never use it and maybe you have to do a mount -a because network start
after fstab is readed, so you can make a script to mount it and put it
on the KDE autostart directory


VampirD
No in elenath hîlar nan hâd gîn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkt9xzoACgkQJQ+0ABWtaVlLWgCfZwpuPJ+ECdXAPi1pT3jz16rF
Ph4An0jWu3mEyVf1RtxZEGk9NMPB+60l
=5Tp8
-----END PGP SIGNATURE-----