Results 1 to 9 of 9

Thread: Setting up 12.10 Server for torrents and samba help

  1. #1
    Join Date
    Apr 2009
    Beans
    113

    Cool Setting up 12.10 Server for torrents and samba help

    I have googled myself to exhaustion trying to figure out a good way to set this up.

    What I would like to do:
    Set up a server that primarily functions as a torrent server with a samba share to easily share the downloaded files with my Windows computers.

    I have a fresh install of Ubuntu 12.10 Server edition (x64) with OpenSSH, LAMP Stack and Samba. I chose those as they will probably be the most useful to me and my plans for the server, other than having it torrent.

    Most of the guides I have found included setting up virtual machines on the server... That is not something I want to do unless I really, really have to. I want to keep things as simple as possible.

    So, my question is, is there a guide, or perhaps just an outline of how I can go about setting this up? I would prefer a setup with rtorrent + webui, but any client will do so long as it supports magnet links and has a webui.

    Note: I do not have a gui (gnome, etc) on the server itself and do not want one.

    If this is in the wrong section, I apologize, multimedia seemed like the most relevant place to put it.
    Last edited by RandomP; January 25th, 2013 at 03:55 AM.
    Current: Raspberry Pi 2 Model B - Setting up....
    Legacy: Raspberry Pi Model B Rev 2 powered by Minibian (Debian Jessie)

  2. #2
    Join Date
    Oct 2006
    Beans
    58,286

    Re: Setting up 12.10 Server for torrents and samba help

    Thread moved to the "Server Platforms" forum.

  3. #3
    Join Date
    Jun 2011
    Beans
    357

    Re: Setting up 12.10 Server for torrents and samba help

    Ideally, I think you will want to use Transmission as the bittorrent client. it supports both command line and web interfaces. http://www.transmissionbt.com/ You could set up the Transmission web interface for control and have it save all of your downloaded torrents in the Samba share. Ubuntu has some good documentation on configuring Samba shares here: https://help.ubuntu.com/community/Samba

  4. #4
    Join Date
    Jan 2008
    Location
    USA
    Beans
    751
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Setting up 12.10 Server for torrents and samba help

    Install Transmission
    Code:
    apt-get install transmission-cli transmission-common transmission-daemon
    Create folders if you don't have them
    Code:
    mkdir downloading        # incomplete downloads
    mkdir complete           # completed downloads/seeding torrents
    Add your user to Transmission' group
    Code:
    usermod -a -G debian-transmission $USER
    Change group ownership of folder you created or had
    Code:
    chgrp -R debian-transmission $folders
    Give group permissions to write in folders
    Code:
    chmod -R 775 $folders
    Edit Transmission's config
    Code:
    vim /etc/transmission-daemon/settings.json
    Reload
    Code:
    /etc/init.d/transmission-daemon reload
    Open port 9091

    Transmission should be available @

    http://localhost:9091
    Amor cuerdo, no es Amor.

  5. #5
    Join Date
    Apr 2009
    Beans
    113

    Re: Setting up 12.10 Server for torrents and samba help

    Thanks for the responses guys.

    Quote Originally Posted by donniezazen View Post
    Change group ownership of folder you created or had
    Code:
    chgrp -R debian-transmission $folders
    At this point I get:

    Code:
    chgrp: missing operand after `debian-transmission'
    Try `chgrp --help' for more information.
    I am not sure why.
    Current: Raspberry Pi 2 Model B - Setting up....
    Legacy: Raspberry Pi Model B Rev 2 powered by Minibian (Debian Jessie)

  6. #6
    Join Date
    Jan 2008
    Location
    USA
    Beans
    751
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Setting up 12.10 Server for torrents and samba help

    Quote Originally Posted by RandomP View Post
    Thanks for the responses guys.


    At this point I get:

    Code:
    chgrp: missing operand after `debian-transmission'
    Try `chgrp --help' for more information.
    I am not sure why.
    Replace all $folders with your actual folders.

    Code:
    chgrp -R debian-transmission downloading
    You should most definitely do Google search before executing any command on your system and not blindly execute codes.
    Amor cuerdo, no es Amor.

  7. #7
    Join Date
    Apr 2009
    Beans
    113

    Re: Setting up 12.10 Server for torrents and samba help

    Quote Originally Posted by donniezazen View Post
    Replace all $folders with your actual folders.

    Code:
    chgrp -R debian-transmission downloading
    You should most definitely do Google search before executing any command on your system and not blindly execute codes.
    I tried to check the command, but Google came up with nothing and there is nothing I can lose on this server either. If something borks up, I can easily just wipe the drive and reinstall Ubuntu server.

    That reload command does not work though, the one that does is:
    Code:
    reload transmission-daemon
    Many thanks for your help in helping me set up transmission. Working great now.

    I have an external NTFS drive connected, it is dev/sdb1, what would be the location of that drive if I wanted to download torrents onto it? I have been googling, but nothing has come up. Is it just media/external?
    Last edited by RandomP; February 4th, 2013 at 05:09 AM.
    Current: Raspberry Pi 2 Model B - Setting up....
    Legacy: Raspberry Pi Model B Rev 2 powered by Minibian (Debian Jessie)

  8. #8
    Join Date
    Jan 2008
    Location
    USA
    Beans
    751
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Setting up 12.10 Server for torrents and samba help

    I am not sure what reload transmission does.

    These commands are same and should work flawlessly. These are used to reload transmission. If you use restart then Transmission will reset your edited config.
    Code:
    sudo service transmission-daemon reload
    Code:
    sudo /etc/init.d/transmission-daemon reload
    For your drive. Format it using what ever GUI you have Gparted or Windows. Then mount that drive in a folder somewhere. For example.

    Code:
    mkdir /media/usbdrive
    Code:
    mount /dev/sdb1 /media/usbdrive
    You may want to add an fstab entry to make sure you load the external drive at same location every time you reboot your server.

    https://wiki.archlinux.org/index.php/Fstab
    https://help.ubuntu.com/community/Fstab
    Amor cuerdo, no es Amor.

  9. #9
    Join Date
    Apr 2009
    Beans
    113

    Re: Setting up 12.10 Server for torrents and samba help

    Quote Originally Posted by donniezazen View Post
    I am not sure what reload transmission does.

    These commands are same and should work flawlessly. These are used to reload transmission. If you use restart then Transmission will reset your edited config.
    Code:
    sudo service transmission-daemon reload
    Code:
    sudo /etc/init.d/transmission-daemon reload
    For your drive. Format it using what ever GUI you have Gparted or Windows. Then mount that drive in a folder somewhere. For example.

    Code:
    mkdir /media/usbdrive
    Code:
    mount /dev/sdb1 /media/usbdrive
    You may want to add an fstab entry to make sure you load the external drive at same location every time you reboot your server.

    https://wiki.archlinux.org/index.php/Fstab
    https://help.ubuntu.com/community/Fstab
    Thanks a bunch man. Got it running how I want it. I would mark this thread as solved, but I cannot seem to be able to edit the original post.
    Last edited by RandomP; February 4th, 2013 at 06:49 AM.
    Current: Raspberry Pi 2 Model B - Setting up....
    Legacy: Raspberry Pi Model B Rev 2 powered by Minibian (Debian Jessie)

Bookmarks

Posting Permissions

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