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
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…
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.
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.
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/
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/
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/
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?
> 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/
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/