LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-07-2004, 05:30 PM   #1
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Rep: Reputation: 15
reading files over the network


ok...samba seems to be working, but it is not working the way i want it to...
when i want to say, play a music video off of a SMB share, it has to read the whole file and then it opens it...with a small file(~100Mb) it is not such an issue....but if it is a movie(~700Mb-1.4Gb) it is quite annoying....i think has something to do with network writing?....using KDE when i select a file it gives me the options 'to save', 'open', and 'cancel'....like a web link

my question is this... how can it set up to where i dont have to transfer the whole file to open it?...

i have been armwrestling with this for months...just tired of it and want to work right....lol

thanks
 
Old 06-07-2004, 05:39 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
I would think that would be a setting in whatever you are using to play the movie, xine maybe? For some formats, I think it necessary to read in the header and footer of the file for validity, so you have to read the entire thing before it will start to play.
 
Old 06-07-2004, 06:03 PM   #3
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
hmm...one shouldn't have to do that for all file types...should one?...
hrmm.... it doesnt matter what i am using to open the media....it still has to pull down the whole darn thing...it should be able to open it with out reading the whole darn thing....

windows does it the way i want it to...

i know linux can do it...i want the networking to work better....but how?..

thanks for the reply

Last edited by derfaust; 06-07-2004 at 06:09 PM.
 
Old 06-07-2004, 06:14 PM   #4
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
So if you mount the Samba share and start xmms, for instance, and add a song from that share to the playlist, it won't start playing until it has transfered the whole thing or will it start playing after a certain amount of the song is transefred? That does seem screwy to have to get the whole thing first...
 
Old 06-07-2004, 07:22 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Have you tired VLC to play the movies? I use the Windows version, and it does an excellent job of streaming and buffering a video file from a shared directory on another machine. Perhaps that will work better for you.
 
Old 06-07-2004, 07:27 PM   #6
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Rep: Reputation: 30
On slack 9.1 current with the latest samba installed and it doesn't do this to me.
If I open a 700MB movie, it plays instantly.

Are you mounting these files somewhere? for instance all my samba shares are mounted in /mnt/COMPUTERNAME/SHARENAME.
I could see why if they aren't mounted and you're trying to play a file with smb://computername/sharename/filename that it would do this. I don't know if it will even allow you to open files with smb:// though.
 
Old 06-08-2004, 02:05 PM   #7
derfaust
Member
 
Registered: Feb 2004
Location: TX, USA
Distribution: slack 9.1, 10, and 10.2
Posts: 144

Original Poster
Rep: Reputation: 15
there was my problem...i wasnt mounting the smb shares right...

so.....

i have been messing with smb4k(a smb share browser)....how would i set up smb4k so that a user can use it?

it works fine as root(as does everyting)....i think it has something to do with smbmount....

anybody use smb4k and know how to set it up for a regular user...


thanks
 
Old 06-08-2004, 02:39 PM   #8
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Rep: Reputation: 30
the gui clients for samba can be a big, big pain in the butt. smb4k is the one I've had most success with, though.

As for root only being able to use it 'correctly,' normal users cannot mount samba shares I don't believe. There's some way or another to fix it, but I can't remember right now.
Best idea is to set the shares to be mounted on boot.

You'll need to edit your /etc/fstab file for this, take a look at mine to get an idea.
Code:
-snip-
//JOEY/Music	  /mnt/JOEY/Music 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/Downloads  /mnt/JOEY/Downloads 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/Drivers	  /mnt/JOEY/Drivers 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/Kazaa	  /mnt/JOEY/Kazaa 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/Movies	  /mnt/JOEY/Movies 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/Soulseek	  /mnt/JOEY/Soulseek 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/Warez	  /mnt/JOEY/Warez 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/floodspics /mnt/JOEY/floodspics 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/slack	  /mnt/JOEY/slack 	smbfs		rw,credentials=/home/floods/Samba 0   0
//JOEY/xvids	  /mnt/JOEY/xvids 	smbfs		rw,credentials=/home/floods/Samba 0   0
That mounts 10 different shares, all under /mnt/JOEY.
rw gives read-write access (though the w does no good if the XP computer doesn't let me write to it ) and the credentials=/home/floods/Samba directs to a file that has two lines it it. They are..
Code:
username=USERNAME
password=PASSWORD
replacing USERNAME and PASSWORD with the windows username and password of course.. good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading files in C++, using *. poeta_boy Programming 4 07-08-2004 01:01 AM
reading PDF files vineet Linux - Newbie 5 06-26-2004 12:10 PM
Reading Files clowns119 Programming 12 09-23-2003 06:06 PM
reading files MrGardenHoseMan Linux - Newbie 2 07-06-2003 05:58 PM
Not reading all files on CDRom AnthonyM Linux - Newbie 2 03-26-2002 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration