This forum has been archived. All content is frozen. Please use KDE Discuss instead.
The Discussions and Opinions forum is a place for open discussion regarding everything related to KDE, within the boundaries of KDE Code of Conduct. If you have a question or need a solution for a KDE problem, please post in the apppropriate forum instead.

[Solved] Streaming media from NAS

Tags: None
(comma "," separated)
J.One
Registered Member
Posts
21
Karma
0
OS
When i open media from my NAS, the file i want to open is first copied completelyto my hard drive, and just then its starts playing..
Why it doesn't start immediately?

In windows, when i opened the same file, with the same player (VLC), there was almost no delay. And from Kubuntu its taking minutes before it starts playing.
I was looking in the man pages of VLC, and i installed an extra addon for streaming media but none of it helped me out.

Another thing i was wondering, how can i access my NAS from the Konsole?
I can find my NTFS partions, there in "media"
But i can't find my NAS.

Last edited by J.One on Sun Aug 28, 2011 9:02 pm, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Streaming media from NAS

Mon Aug 01, 2011 5:09 am
KDE does not mount your NAS into the file system. If you want to be able to access your NAS through Konsole, you will need to mount it into the file system. Mounting it into the file system will also fix the complete file download issue as well.

Unfortunately each distribution does the mounting into the file system using their own tools, although it usually centers around altering /etc/fstab.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
steveriley
Karma
0

Re: Streaming media from NAS

Wed Aug 03, 2011 7:03 am
I've had good experiences with the SMB4K package. If you're looking for a GUI interface to mount CIFS or Samba shares, I'd encourage you to check it out.
J.One
Registered Member
Posts
21
Karma
0
OS

Re: Streaming media from NAS

Wed Aug 03, 2011 12:03 pm
bcooksley:

I don't know exactly what you mean with "altering /etc/fstab"
"/etc/fstab" is just a file in my Kubuntu system. Do I have to change something in there?

steveriley:
I'll try it out later when i'm home.
Is it possible to automaticlly mount Samba/NTFS shares using this program? Or do i have create a script that starts with system startup?

Last edited by J.One on Wed Aug 03, 2011 6:56 pm, edited 1 time in total.
steveriley
Karma
0

Re: Streaming media from NAS

Wed Aug 03, 2011 4:54 pm
J.One wrote:I'll try it out later when i'm home.
Is it possible to automaticlly mount Samba/NTFS shares using this program? Or do i have create a script starts with system startup?


Yep. I'm using it for exactly that purpose: automatically mounting three NTFS shares when I boot my computer. They appear under ~/smb4k/ in the file system. Very handy.
J.One
Registered Member
Posts
21
Karma
0
OS

Re: Streaming media from NAS

Wed Aug 03, 2011 8:03 pm
Thanks for the tip! :)
Really usefull, i have one NTFS partition i would like to mount each time i boot up my system. And the same go's for my NAS.
The only problem is.. I don't know how it works! :<
I was using Windows for years, i'm lost..
steveriley
Karma
0

Re: Streaming media from NAS

Wed Aug 03, 2011 8:08 pm
J.One wrote:Thanks for the tip! :)
Really usefull, i have one NTFS partition i would like to mount each time i boot up my system. And the same go's for my NAS.
The only problem is.. I don't know how it works! :<
I was using Windows for years, i'm lost..


I'm away from my home computer at the moment. Later on I can look at my config and tell you how I got it set up. I had to fiddle with a few settings to get it to behave.
J.One
Registered Member
Posts
21
Karma
0
OS

Re: Streaming media from NAS

Wed Aug 03, 2011 8:19 pm
That would be great! :) Thanks for that..
I was going true the settings, trying different things, but it didn't work.
When i'm asked: "enter the path of the share"
I still have the intention to type: \\192.168.x.x\dnas. But this (offcource) is not right. :)
steveriley
Karma
0

Re: Streaming media from NAS

Thu Aug 04, 2011 3:25 am
One thing that took me a while to figure out was that without a DNS server on my network, Linux computers can't locate Windows computers by name. So the first thing you need to do is add the NAS's name and IP address to your /etc/hosts file like this:

Code: Select all
192.168.nnn.nnn   name-of-machine


Then you can start configuring Smb4K. It's been a few weeks since I set mine up, so I'll just describe how mine is configured now.

Code: Select all
Shares
   select "Remount recently used shares on program start"   

Samba | Mounting
   File mask: 0777
   Directory mask: 0777
   Write access: read-write
   Advanced options
      select "Do no cache inode data"
      select "Do not use locking"
      deselect the others

Super User
   select both options

Now you should be able to navigate your shares on the Network Neighborhood tab and select the ones you want to mount.
J.One
Registered Member
Posts
21
Karma
0
OS

Re: Streaming media from NAS

Thu Aug 04, 2011 7:13 pm
I did all the settings like you suggested, and once my NAS is mounted, the files open instantly. So thats great!

However, my NTFS and NAS shares are not mounted when the program starts, although I checked the box "Remount recently used shares on program start"
I can see the directory's in my home directory but they are empty.
Any idea's?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Streaming media from NAS

Sat Aug 06, 2011 3:02 am
That setting likely means you need to run "Smb4k" on system startup/user login. This can be done by dragging the shortcut to start the application from the menu into ~/.config/autostart/


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
steveriley
Karma
0

Re: Streaming media from NAS

Sat Aug 06, 2011 10:46 pm
J.One wrote:I did all the settings like you suggested, and once my NAS is mounted, the files open instantly. So thats great!

However, my NTFS and NAS shares are not mounted when the program starts, although I checked the box "Remount recently used shares on program start"
I can see the directory's in my home directory but they are empty.
Any idea's?


Wow. I'm actually a bit stumped here. When I configured Smb4K as I described, it set itself up to automatically remount on startup without any further intervention on my part. I looked through every "autostart" directory on my computer and can't find any reference to Smb4K. So now I'm actually a bit curious how it's working...?
J.One
Registered Member
Posts
21
Karma
0
OS

Re: Streaming media from NAS

Sun Aug 07, 2011 4:34 pm
Bcooksley,

The applications starts automaticlly, but the drives/Shares are not mounted.
And sometimes is asking if it can access the "KDE Wallet" (whatever that is, i don't have a clue) :)

Steveriley,

"I'm actually a bit curious how it's working...?"


Me to :)
I love the idea, but i think i'm missing something.
steveriley
Karma
0

Re: Streaming media from NAS

Sun Aug 07, 2011 7:29 pm
J.One wrote:And sometimes is asking if it can access the "KDE Wallet" (whatever that is, i don't have a clue) :)

KDE Wallet is a system service that keeps passwords in encrypted storage. I'm guessing you have a password on your NAS? Mine does. When I first configured Smb4K and set up my shares, Smb4K wanted to store the share passwords in the KDE Wallet, which I allowed.

Go ahead and let your Smb4K do the same thing. This could be why your auto remounts aren't working.
J.One
Registered Member
Posts
21
Karma
0
OS

Re: Streaming media from NAS

Mon Aug 08, 2011 7:51 am
Thanks for clearing that. I was wondering what is was for a while now but didn't take the time to look it up, because there are still many other things that i have top figure out first.

And yes, my NAS has a password. And i allowed Smbk4 to access the KDE Wallet. But it didn't ask me directly after the installation, so maybe this has something to do with it, maybe i have to reintall it.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]