VPS help?

DA-LION-619

Honorary Master
Joined
Aug 22, 2009
Messages
13,774
Reaction score
1,613
Location
Randburg
Basically I set up a VPS running Ubuntu 12, I installed rtorrent on it with rutorrent managing the GUI interface. Is there a way to make the directories or files viewable on a normal browser? as my downloads tend to fail on my tablet as I cannot use a download manger.
 
Yes, install apache and create a config with the index flag set. You also probably want to then add a password to protect it.

I don't see how this would solve your problem though. If you're using an Android tablet then I would just rather use a download manager, something like this maybe: https://play.google.com/store/apps/details?id=com.acr.androiddownloadmanager

If you're using Apache vhosts then you can set up a conf file similar to this:

Code:
<VirtualHost *:80>
     DocumentRoot /var/www/my_downloads
     ServerName mydownloads.mysite.com

<Directory "/var/www/my_downloads">
    Options +Indexes
    AuthType Basic
    AuthName "Password Protected Area"
    AuthUserFile /etc/httpd/.htpasswd
    Require valid-user
</Directory>

</VirtualHost>
 
Yes, install apache and create a config with the index flag set. You also probably want to then add a password to protect it.

I don't see how this would solve your problem though. If you're using an Android tablet then I would just rather use a download manager, something like this maybe: https://play.google.com/store/apps/details?id=com.acr.androiddownloadmanager

If you're using Apache vhosts then you can set up a conf file similar to this:

Code:
<VirtualHost *:80>
     DocumentRoot /var/www/my_downloads
     ServerName mydownloads.mysite.com

<Directory "/var/www/my_downloads">
    Options +Indexes
    AuthType Basic
    AuthName "Password Protected Area"
    AuthUserFile /etc/httpd/.htpasswd
    Require valid-user
</Directory>

</VirtualHost>

Thanks will check it out. I do use a download manager it just doesn't work with this particular setup.
 
On my server I've set up and FTP client and have the torrent program write to the FTP share folder with 755 permissions. Works great.
 
On my server I've set up and FTP client and have the torrent program write to the FTP share folder with 755 permissions. Works great.

Any guide you got to doing that? I'm a real noob when it comes to server related stuff.
 
Any guide you got to doing that? I'm a real noob when it comes to server related stuff.

EDIT: More info here http://www.howtogeek.com/139433/how-to-turn-a-raspberry-pi-into-a-low-power-network-storage-device/

SSH into the shell, then do the following

Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install samba samba-common-bin

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old

Now restart samba

Code:
sudo /etc/init.d/samba restart
Now need to set up the ftp folder and permissions

Code:
sudo nano /etc/samba/smb.conf

First tell the samba client it must ask for a password. Remove the # symbol from the security = user line to read
Code:
security = user

Add the following lines at the bottom to link the shared folder to samba ftp.

Code:
[ShareFTP]
comment = FTPFolder
path = /media/ftpstuff/share
browsable = yes
writable = yes
create mask = 0755
directory mask = 0755
read only = no
valid users = @users
force group = users
Ctrl+X to save and exit.

Now need to add a user account for you to login on:

Code:
sudo /etc/init.d/samba restart
sudo useradd ftp -m -G users
sudo passwd ftp

Add the user "ftp" to samba's allowed lists:
Code:
sudo smbpasswd -a ftp
Reboot once more
Code:
sudo /etc/init.d/samba restart

Should be done :)
 
Last edited:
okay guys, thanks for all the advice but I took the easy way out:D

I'm just moved the files to var/www/example
 
Apache with dir listing, samba or even plain old winscp will make it easy enough to see what is on the machine.
 
Apache with dir listing, samba or even plain old winscp will make it easy enough to see what is on the machine.

I made a mistake in requesting FTP info as FTP works, its just that with rutorrent the download doesn't start via a direct link but a javascript void thingy which many download managers can't work with. Trust me I tried all in the Play Store.
 
Top
Sign up to the MyBroadband newsletter
X