LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-06-2004, 09:47 AM   #1
gazza
Member
 
Registered: Jun 2003
Distribution: Mandrake 10.1 Official
Posts: 157

Rep: Reputation: 30
sharing files


I have a movie file of 1.3gb and would like a friend of mine to be able to connect to my pc and download the file, (he is using a windows pc) what is the simplest way of achieving this ?
 
Old 09-06-2004, 10:03 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 65
Here's one way to do it:

Create a directory called public_html under your home directory, and put the file there.
Start up apache
Code:
apachectl start
(you may need to give the whole path to apachectl; use “locate apachectl” to find it). (You may also need to install apache from your distro's install CDs or http://www.rpmfind.net/)
Now tell them to download http://IP/~user/file
Where:
IP is the IP address of your computer, user is your login username, and file is the name of the file.

Make sure that your home directory and public_html are readable and executable by user nobody, and that you don't have port 80 blocked by a firewall.
 
Old 09-06-2004, 10:10 AM   #3
gazza
Member
 
Registered: Jun 2003
Distribution: Mandrake 10.1 Official
Posts: 157

Original Poster
Rep: Reputation: 30
how do i find out if port 80 is blocked by my firewall, i use mandy 10, i think its called shorewall.
 
Old 09-06-2004, 10:35 AM   #4
gazza
Member
 
Registered: Jun 2003
Distribution: Mandrake 10.1 Official
Posts: 157

Original Poster
Rep: Reputation: 30
Also, if i follow the above instructions does that mean that my /home dir will be readable by anyone ? if it does i dont like the sound of that.

Will the person be able to browse my home directory ?
 
Old 09-06-2004, 12:28 PM   #5
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 65
By making /home world-readable and world-executable, anyone who is logged onto your computer can browse your /home directory (but not necessarily any subdirectories).

It will not be possible to browse it through a web browser unless you change Apache's configuration (or possibly create a symbolic link to your home directory under public_html).

The alternative is to find the documentation root for your system, put the file there, and skip the ~user/ part of the URL.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing files arell12 Linux - Newbie 1 08-03-2005 06:36 PM
Sharing Files landuchi Linux - General 4 06-23-2005 03:56 AM
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
Sharing files with others Cooner Programming 1 09-23-2004 04:28 PM
sharing files ridha Linux - Networking 1 02-01-2003 10:18 AM


All times are GMT -5. The time now is 03:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration