Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
I installed samba, wanting to do http serive to show music files. It shows up however when I add a location it does not show up. sudo ln -s <path ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! dareofficer's Avatar
    Join Date
    May 2006
    Location
    DeKalb County Indiana
    Posts
    57

    samba help


    I installed samba, wanting to do http serive to show music files.

    It shows up however when I add a location it does not show up.

    sudo ln -s <path to your music folder> /var/www/

    That is the command I use. What am I doing wrong?

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Quote Originally Posted by dareofficer
    I installed samba, wanting to do http serive to show music files.

    It shows up however when I add a location it does not show up.

    sudo ln -s <path to your music folder> /var/www/

    That is the command I use. What am I doing wrong?

    Are you talking about Samba or Apache here?

    Because this command would apply to Apache, not Samba.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Just Joined! dareofficer's Avatar
    Join Date
    May 2006
    Location
    DeKalb County Indiana
    Posts
    57
    You are right, my mistake. It is apache.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jun 2006
    Location
    Monterey, California USA
    Posts
    16
    I believe, by default, most distros with apache would use:
    /var/www/html as the DocumentRoot value.

    So, if you put your files in /var/www/html, you should be fine. You would have to point at the documents directly by name, as browsing would probably not be enabled.

    (This is just to get your httpd running.)

  6. #5
    Just Joined! dareofficer's Avatar
    Join Date
    May 2006
    Location
    DeKalb County Indiana
    Posts
    57
    berlin@berlin-ubuntu:/$ cd var
    berlin@berlin-ubuntu:/var$ cd www
    berlin@berlin-ubuntu:/var/www$ ls
    apache2-default Folder movies Movies Music video Video
    berlin@berlin-ubuntu:/var/www$ cd video
    bash: cd: video: No such file or directory
    berlin@berlin-ubuntu:/var/www$ /home/berlin/Video Movies
    bash: /home/berlin/Video: No such file or directory
    berlin@berlin-ubuntu:/var/www$ ls
    apache2-default Folder movies Movies Music video Video
    berlin@berlin-ubuntu:/var/www$

    This is what I'm showing in that directory. How do I point to my home folder?

  7. #6
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    You can do it with a symlink like you mentionned in your first post.

    For example, if your folder is "/home/berlin/Video Movies".

    Then
    Code:
    cd /var/www
    sudo ln -s /home/berlin/Video\ Movies
    should do the trick.

    It will then be accessible there : http://yourdomain.com/Video Movies
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  8. #7
    Just Joined!
    Join Date
    Jun 2006
    Location
    Monterey, California USA
    Posts
    16
    If you can, just change any names that have spaces to Video_Movies or VideoMovies, etc...

    I avoid spaces whenever possible in web server configurations.



    How to find you DocumentRoot directive:
    type:
    $ grep DocumentRoot /etc/httpd/conf/httpd.conf

    If it is pointing to /var/www/html, then you'll need to move your folders to /var/www/html or change the apache directive.

  9. #8
    Linux Enthusiast
    Join Date
    Dec 2004
    Posts
    637
    Are you using this setup as an FTP server or are you going to create HTML pages and suitable links? The reason that I ask is that if you are making these files available for download, wouldn't an FTP server be a lot easier to configure (i.e. vsftpd)?

  10. #9
    Just Joined! dareofficer's Avatar
    Join Date
    May 2006
    Location
    DeKalb County Indiana
    Posts
    57
    PERFECT!! Took right off.

    Thanks


    Quote Originally Posted by antidrugue
    You can do it with a symlink like you mentionned in your first post.

    For example, if your folder is "/home/berlin/Video Movies".

    Then
    Code:
    cd /var/www
    sudo ln -s /home/berlin/Video\ Movies
    should do the trick.

    It will then be accessible there : http://yourdomain.com/Video Movies

  11. #10
    Just Joined! dareofficer's Avatar
    Join Date
    May 2006
    Location
    DeKalb County Indiana
    Posts
    57
    Quote Originally Posted by gtmtnbiker98
    Are you using this setup as an FTP server or are you going to create HTML pages and suitable links? The reason that I ask is that if you are making these files available for download, wouldn't an FTP server be a lot easier to configure (i.e. vsftpd)?
    For now I'm making a HTTP server. For future reference, how would I make a FTP server? I'm new to this but when all of you help I print of the info, and add it to my book of Linux. I appreciate all the help I get from all of you!

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •