Kerwood / Rtorrent-Auto-Install

Auto install script for rtorrent with Rutorrent as GUI.
259 stars 108 forks source link

Inaccurate "System is not Debian" message #17

Closed ItsAdventureTime closed 10 years ago

ItsAdventureTime commented 10 years ago

Hi,

I just want to commend you first, you really made an awesome script saving a lot of users their time with installing rTorrent and ruTorrent. You also made it easier to install all the plugins, all at once without the hassle of downloading, copying and extracting each plugins. Now, going back, regardless if I am using Debian 6 x64 or Debian 7 x64, I am always receiving a message that says I am not using a Debian operating system. I have no idea why. So, my solution is to put a "#" to the part that lets the user press any key and the "exit" code. Right now, I am installing it on the latest Debian 6 x64 release.

Thanks.

Oh wait, another thing, this site https://bintray.com/novik65/generic/ruTorrent/3.6/files does not work.

Kerwood commented 10 years ago

Thanks man .. I really appreciate it.

Yes, I have noticed that :) .. The point of the OS check is because of all the mails and comments I get, that my script does not work. And then i find out that the OS they use is Ubuntu, Mint or some similar or even CentOS. I cant wait until somebody is gonna ask me, why they cant get it to work on windows :)

Any way.. I'll have to find another way to do the OS check. Im open for suggestions :)

Thank you for the link report.. I'll have to find one that works then.

ItsAdventureTime commented 10 years ago

Awesome :))

Open with suggestions? As much as I want to help you out, unfortunately I am a beginner. Like I was playing with my dedicated server for 7 days straight now and figuring things out on my own. LOL

Right now, I am having issues with your script. Everything was actually installed. It's just that, the .rtorrent.rc is missing. I downoaded one from https://gist.github.com/bryanjswift/1525912/raw/34fe28d70709e6b12840bcede3b82e5ed2abccce/.rtorrent.rc. The next message would be, the directories does not exist. So, I created each and everyone of them basing from the rtorrent config file. I also chmod them to 777 to be sure. It worked, rtorrent is running now. Yet, whenever I go to the rutorrent site, it says "No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file." So now, I don't know what to do next. I'm thinking of manually downloading the latest git or latest svn something of rTorrent... I don't know if that would work though. Here's the order of my installation. I installed proftpd, installed your script, installed fail2ban then installed webmin. what do you think? :)

yelow79 commented 10 years ago

service rtorrent start

That should fix your last issue

ItsAdventureTime notifications@github.com wrote:

Awesome :))

Right now, I am having issues with your script. Everything was actually installed. It's just that, the .rtorrent.rc is missing. I downoaded one from https://gist.github.com/bryanjswift/1525912/raw/34fe28d70709e6b12840bcede3b82e5ed2abccce/.rtorrent.rc. The next message would be, the directories does not exist. So, I created each and everyone of them basing from the rtorrent config file. I also chmod them to 777 to be sure. It worked, rtorrent is running now. Yet, whenever I go to the rutorrent site, it says "No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file." So now, I don't know what to do next. I'm thinking of manually downloading the latest git or latest svn something of rTorrent... I don't know if that would work though. Here's the order of my installation. I installed proftpd, installed your script, installed fail2ban then installed webmin. what do you think? :)

— Reply to this email directly or view it on GitHub.

ItsAdventureTime commented 10 years ago

Hi, thanks for replying. rTorrent can start properly. The problem is, ruTorrent or rTorrent can’t connect with each other. Right now, I reformatted my server again. I’ll try to install the rtorrent script first before anything else. I hope everything’s fine now. I installed Debian 7 x64. By the way, I actually want to dare myself to install everything from scratch. Either, the ones from apt-get or I’ll compile the latest trunk or svn versions then install them both. rTorrent is easy to install. ruTorrent is a bit difficult. Actually, it is difficult. But the most difficult of all is the installation of the 47 plugins :(

Update:

After installing Debian 7 x64, I immediately installed the rTorrent script. I was able to access the WebUI and I was surprised because there is no issue with rTorrent and ruTorrent. However, I received a few warnings about the plugins.

"[10.07.2014 01:07:08] WebUI started. [10.07.2014 01:07:10] rss: Some functionality will be unavailable. Webserver user can't access external program (curl). [10.07.2014 01:07:10] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo). [10.07.2014 01:07:10] rss: Some functionality will be unavailable. rTorrent user can't access external program (curl). [10.07.2014 01:07:10] screenshots: Plugin will not work. rTorrent user can't access external program (ffmpeg)."

I have no idea what happened. Oh yeah, why can't I see a "logout" button in the WebUI? And I'm wondering where is the File Manager.

I did the following: apt-get install curl mediainfo ffmpeg | I hope it works :)

YES IT WORKED! I was able to restart rTorrent just by checking out the /etc/init.d directory, then running the command "sudo /etc/init.d/rtorrent-init restart". Now, I'll be trying to install the File Manager plugin and I have no idea where to extract it.

Thanks.

On Jul 10, 2014, at 12:06 AM, yelow79 notifications@github.com wrote:

service rtorrent start

That should fix your last issue

ItsAdventureTime notifications@github.com wrote:

Awesome :))

Right now, I am having issues with your script. Everything was actually installed. It's just that, the .rtorrent.rc is missing. I downoaded one from https://gist.github.com/bryanjswift/1525912/raw/34fe28d70709e6b12840bcede3b82e5ed2abccce/.rtorrent.rc. The next message would be, the directories does not exist. So, I created each and everyone of them basing from the rtorrent config file. I also chmod them to 777 to be sure. It worked, rtorrent is running now. Yet, whenever I go to the rutorrent site, it says "No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file." So now, I don't know what to do next. I'm thinking of manually downloading the latest git or latest svn something of rTorrent... I don't know if that would work though. Here's the order of my installation. I installed proftpd, installed your script, installed fail2ban then installed webmin. what do you think? :)

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

yelow79 commented 10 years ago

You need to be sure both are using the same port.

ItsAdventureTime notifications@github.com wrote:

Hi, thanks for replying. rTorrent can start properly. The problem is, ruTorrent or rTorrent can’t connect with each other. Right now, I reformatted my server again. I’ll try to install the rtorrent script first before anything else. I hope everything’s fine now. I installed Debian 7 x64. By the way, I actually want to dare myself to install everything from scratch. Either, the ones from apt-get or I’ll compile the latest trunk or svn versions then install them both. rTorrent is easy to install. ruTorrent is a bit difficult. Actually, it is difficult. But the most difficult of all is the installation of the 47 plugins :(

On Jul 10, 2014, at 12:06 AM, yelow79 notifications@github.com wrote:

service rtorrent start

That should fix your last issue

ItsAdventureTime notifications@github.com wrote:

Awesome :))

Right now, I am having issues with your script. Everything was actually installed. It's just that, the .rtorrent.rc is missing. I downoaded one from https://gist.github.com/bryanjswift/1525912/raw/34fe28d70709e6b12840bcede3b82e5ed2abccce/.rtorrent.rc. The next message would be, the directories does not exist. So, I created each and everyone of them basing from the rtorrent config file. I also chmod them to 777 to be sure. It worked, rtorrent is running now. Yet, whenever I go to the rutorrent site, it says "No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file." So now, I don't know what to do next. I'm thinking of manually downloading the latest git or latest svn something of rTorrent... I don't know if that would work though. Here's the order of my installation. I installed proftpd, installed your script, installed fail2ban then installed webmin. what do you think? :)

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

ItsAdventureTime commented 10 years ago

Huh? New port? I guess you didn’t received the edited version of my message. Anyway here it is:

Update:

After installing Debian 7 x64, I immediately installed the rTorrent script. I was able to access the WebUI and I was surprised because there is no issue with rTorrent and ruTorrent. However, I received a few warnings about the plugins.

"[10.07.2014 01:07:08] WebUI started. [10.07.2014 01:07:10] rss: Some functionality will be unavailable. Webserver user can't access external program (curl). [10.07.2014 01:07:10] mediainfo: Plugin will not work. rTorrent user can't access external program (mediainfo). [10.07.2014 01:07:10] rss: Some functionality will be unavailable. rTorrent user can't access external program (curl). [10.07.2014 01:07:10] screenshots: Plugin will not work. rTorrent user can't access external program (ffmpeg)."

I have no idea what happened. Oh yeah, why can't I see a "logout" button in the WebUI? And I'm wondering where is the File Manager.

I did the following: apt-get install curl mediainfo ffmpeg | I hope it works :)

YES IT WORKED! I was able to restart rTorrent just by checking out the /etc/init.d directory, then running the command "sudo /etc/init.d/rtorrent-init restart". Now, I'll be trying to install the File Manager plugin and I have no idea where to extract it.

On Jul 10, 2014, at 1:37 AM, yelow79 notifications@github.com wrote:

You need to be sure both are using the same port.

ItsAdventureTime notifications@github.com wrote:

Hi, thanks for replying. rTorrent can start properly. The problem is, ruTorrent or rTorrent can’t connect with each other. Right now, I reformatted my server again. I’ll try to install the rtorrent script first before anything else. I hope everything’s fine now. I installed Debian 7 x64. By the way, I actually want to dare myself to install everything from scratch. Either, the ones from apt-get or I’ll compile the latest trunk or svn versions then install them both. rTorrent is easy to install. ruTorrent is a bit difficult. Actually, it is difficult. But the most difficult of all is the installation of the 47 plugins :(

On Jul 10, 2014, at 12:06 AM, yelow79 notifications@github.com wrote:

service rtorrent start

That should fix your last issue

ItsAdventureTime notifications@github.com wrote:

Awesome :))

Right now, I am having issues with your script. Everything was actually installed. It's just that, the .rtorrent.rc is missing. I downoaded one from https://gist.github.com/bryanjswift/1525912/raw/34fe28d70709e6b12840bcede3b82e5ed2abccce/.rtorrent.rc. The next message would be, the directories does not exist. So, I created each and everyone of them basing from the rtorrent config file. I also chmod them to 777 to be sure. It worked, rtorrent is running now. Yet, whenever I go to the rutorrent site, it says "No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file." So now, I don't know what to do next. I'm thinking of manually downloading the latest git or latest svn something of rTorrent... I don't know if that would work though. Here's the order of my installation. I installed proftpd, installed your script, installed fail2ban then installed webmin. what do you think? :)

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

Kerwood commented 10 years ago

Hey dude.. I'm sorry I haven't been to much help, but I've been a bit busy today.

It seems you've got every thing under control for now. I'm gonna go to sleep now and will post answers for you tomorrow morning.

ItsAdventureTime commented 10 years ago

No worries man, it's fine :) I'm exploring your script, rtorrent and rutorrent a lot :)) I am soooo sleepy, actually. I thought installing rTorrent and ruTorrent by hard is difficult.... that is up until I saw your script's source code. It's just like PHP :)

Kerwood commented 10 years ago

You cound not get rtorrent and rutorrent talking together because you downloaded nad use a new "clean" rtorrent .rc file. How you messed it up, I dont know :) .. You can finde the rtorrent.rc file the script uses here. https://github.com/Kerwood/rtorrent.auto.install/tree/master/Files

Alle the dependencies, for the plugins, are not part of the script. You wil have to figure them out by your self :). Installing rtorrent and rutorrent is not that difficult. The tricky part is getting them to talk together.

There is not logout button, because you/we are using htaccess for users which is not a part of rutorrent.

Here's a couple of links you might find usefull.

This is a guide to FlexGet. It's in danish (use google translate). http://linuxbloggen.dk/flexget-rtorrent/

Remote Torrent Adder - Extension for Chome https://chrome.google.com/webstore/detail/remote-torrent-adder/oabphaconndgibllomdcjbfdghcmenci

ItsAdventureTime commented 10 years ago

I actually used your script. And they are not able to communicate with one another. I have this feeling it is because of the order of the installation of apps. As far as I know, before I installed your script, I installed Fail2Ban first. A few hours ago, what I did is to install all the apps and that includes your script, then install Fail2Ban. It’s okay now. However, if you looked at the previous threads, I’ve been experiencing issues with the plugins. Those messages shouldn’t appear in the first place because it is the script’s job to install the dependencies of each of the plugins.

Yup, I agree. It’s difficult for them to connect with each other. Plus, Apache is making me more confused. By default, ruTorrent’s address is like this, right? http://ipaddress:1234 instead of http://ipaddress/rutorrent. So, how can I do that?

Yeah, I was looking for a Logout button and an option to Restart ruTorrent and rTorrent in the WebGUI. Just like with Seedbox services.

On Jul 10, 2014, at 2:31 PM, Kerwood notifications@github.com wrote:

You cound not get rtorrent and rutorrent talking together because you downloaded nad use a new "clean" rtorrent .rc file. How you messed it up, I dont know :) .. You can finde the rtorrent.rc file the script uses here. https://github.com/Kerwood/rtorrent.auto.install/tree/master/Files

Alle the dependencies, for the plugins, are not part of the script. You wil have to figure them out by your self :). Installing rtorrent and rutorrent is not that difficult. The tricky part is getting them to talk together.

There is not logout button, because you/we are using htaccess for users which is not a part of rutorrent.

Here's a couple of links you might find usefull.

This is a guide to FlexGet. It's in danish (use google translate). http://linuxbloggen.dk/flexget-rtorrent/

Remote Torrent Adder - Extension for Chome https://chrome.google.com/webstore/detail/remote-torrent-adder/oabphaconndgibllomdcjbfdghcmenci

— Reply to this email directly or view it on GitHub.

Kerwood commented 10 years ago

If there was a problem with another program, it would properly be Webmin, not fail2ban.

No, the script does not include dependencies for the plugins. You will have to install dem manually. Of course that would be a good idea for the future.

No, rutorrent would be in the folder du decide, on port 80. So if you unpack the content og rutorrent into /var/www/hello-ketty, it would be http://ipaddress/hello-ketty If you want to change the port number, you will have to take a look at Apache Virtual Hosts. Google it.

ItsAdventureTime commented 10 years ago

I was thinking it’s the fail2ban app because that might be blocking the port 80. Well, in my opinion, it is a lot user-friendly if you try to include the auto-installation of the dependencies in your script. Less hassle for users. Thanks for the tip about the Apache Virtual Hosts. Do you think mod_rewrite can also improve things up?

On Jul 10, 2014, at 5:06 PM, Kerwood notifications@github.com wrote:

If there was a problem with another program, it would properly be Webmin, not fail2ban.

No, the script does not include dependencies for the plugins. You will have to install dem manually. Of course that would be a good idea for the future.

No, rutorrent would be in the folder du decide, on port 80. So if you unpack the content og rutorrent into /var/www/hello-ketty, it would be http://ipaddress/hello-ketty If you want to change the port number, you will have to take a look at Apache Virtual Hosts. Google it.

— Reply to this email directly or view it on GitHub.

Kerwood commented 10 years ago

No.. Fail2ban only blocks IP's not ports.

Yes it surely is.

It depends on what you are trying to accomplish. :)

ItsAdventureTime commented 10 years ago

I see. Well, I reformatted my server. I'm planning to install everything from scratch using the latest svn or git svn builds. What do you think? Is it going to be risky and difficult?— Sent from Mailbox

On Thu, Jul 10, 2014 at 7:24 PM, Kerwood notifications@github.com wrote:

No.. Fail2ban only blocks IP's not ports. Yes it surely is.

It depends on what you are trying to accomplish. :)

Reply to this email directly or view it on GitHub: https://github.com/Kerwood/rtorrent.auto.install/issues/17#issuecomment-48592703

Kerwood commented 10 years ago

Well that depends on your skills.. But its good practice for a novice user to do it manually. It gives a better understanding of things and is easier to debug if something goes wrong.

Worst case senario, you'll have to reinstall again :)

yelow79 commented 10 years ago

To add to what Kerwood said, it's much easier to get a solid install on a clean system as well, especially with a script.

Install everything manually and then try again with the script and you will better understand what the script is doing and how to work the script.

To access rutorrent, you shouldn't have to put in a port. It's possible to set it up to listen to a specific port but it's not necessary. It's possible through different configuration option in apache to use http://rutorrent.ip/ http://ip/rutorrent http://ip:port or http://ip

These are all things you can learn along the way by doing things manually

ItsAdventureTime notifications@github.com wrote:

I see. Well, I reformatted my server. I'm planning to install everything from scratch using the latest svn or git svn builds. What do you think? Is it going to be risky and difficult?— Sent from Mailbox

On Thu, Jul 10, 2014 at 7:24 PM, Kerwood notifications@github.com wrote:

No.. Fail2ban only blocks IP's not ports. Yes it surely is.

It depends on what you are trying to accomplish. :)

Reply to this email directly or view it on GitHub: https://github.com/Kerwood/rtorrent.auto.install/issues/17#issuecomment-48592703

— Reply to this email directly or view it on GitHub.

ItsAdventureTime commented 10 years ago

Soryr for the late reply. By default, ruTorrent will listen to a port right? Then you'll be accessing it like this http://1.2.3.4:5678/ but what if I want something like this http://1.2.3.4/rutorrent? Because it looks friendlier and organized. Another thing, how can I make it access https instead of http? Will it generate SSL certificates and keys automatically? There are free SSL certificates online, right? For example, StarSSL and Comodo. How can I use them properly? And can I use them in ruTorrent?

yelow79 commented 10 years ago

When you connect and don't specify a port you automatically connect on port 80. This is equivalent to http://ip:80. Port 80 happens to be the port that apache2 or as far as I know any other apache type software listens to by default. Now, I say this because rutorrent listens to the default port that apache2 listens to.

Now as to answer your ask questions. Ssl is not handled by rutorrent but, is handled by apache. You will need to do a few things to enable ssl and create a certificate. There are plenty of well written tutorials available with a simple Google search so I won't be explaining how to do this. Good luck

ItsAdventureTime notifications@github.com wrote:

Soryr for the late reply. By default, ruTorrent will listen to a port right? Then you'll be accessing it like this http://1.2.3.4:5678/ but what if I want something like this http://1.2.3.4/rutorrent? Because it looks friendlier and organized. Another thing, how can I make it access https instead of http? Will it generate SSL certificates and keys automatically? There are free SSL certificates online, right? For example, StarSSL and Comodo. How can I use them properly? And can I use them in ruTorrent?

— Reply to this email directly or view it on GitHub.

Kerwood commented 10 years ago

@ItsAdventureTime - As yelow79 said: No. rutorrent uses po 80 by default.

Here a guide on how to make SSL on Apache. In Danish though :).. Use google translate. http://linuxbloggen.dk/https-ssl-paa-apache-debian-7/

ghost commented 10 years ago

Hi ItsAdventureTime, regarding your issues about the plugins RSS, MediaInfo, Screenshots,I found how to fix it : RSS plugin : apt-get install curl

MediaInfo plugin : cd /tmp wget http://downloads.sourceforge.net/zenlib/libzen0_0.4.26-1_amd64.Debian_6.0.deb && dpkg -i libzen0_0.4.26-1_amd64.Debian_6.0.deb wget http://downloads.sourceforge.net/mediainfo/libmediainfo0_0.7.58-1_amd64.Debian_6.0.deb && dpkg -i libmediainfo0_0.7.58-1_amd64.Debian_6.0.deb wget http://downloads.sourceforge.net/mediainfo/mediainfo_0.7.58-1_amd64.Debian_6.0.deb && dpkg -i mediainfo_0.7.58-1_amd64.Debian_6.0.deb

Screenshots plugin : apt-get install ffmpeg

If the plugin GeoIP doesnt work as well (the flag/country doesnt appear)here is how to fix it : cd /tmp wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz mkdir -v /usr/share/GeoIP gunzip GeoLiteCity.dat.gz mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat apt-get install php5-geoip

Source: http://wiity.net/2014/01/31/installation-dune-seedbox-sous-rtorrentrutorrent-3-6-a-laide-dun-script/

ghost commented 10 years ago

Patrick, Thanks for your awesome script. I edited your script to fix the issues regarding those plugins.

http://files.wiity.net/rtorrent.auto.install-NEWEST-VERSION

Kerwood commented 10 years ago

@didifsx - Thanks man.. I will have a look at it tonight :)

Kerwood commented 10 years ago

Script is now updated with needed dependencies and OS check is fixed.

ghost commented 10 years ago

Great job, thanks.

skeeve42 commented 10 years ago

To go back to the first point in this thread, I have also tried to install the script on a debian VPS after a (mostly) fresh install of Debian Wheezy64 and it has told me I am not running Debian... I'll just edit and comment out but I wanted to let you know it was happening to someone else. :)

yelow79 commented 10 years ago

Yes, it was a known issue that just hadn't been fixed yet.

skeeve42 notifications@github.com wrote:

To go back to the first point in this thread, I have also tried to install the script on a debian VPS after a (mostly) fresh install of Debian Wheezy64 and it has told me I am not running Debian... I'll just edit and comment out but I wanted to let you know it was happening to someone else. :)

— Reply to this email directly or view it on GitHub.

Kerwood commented 10 years ago

@skeeve42 - Have you tried with the new 2.0.4 version ? .. It should be fixed. Please try and report back.

skeeve42 commented 10 years ago

I just downloaded and installed earlier today on a fresh (minimal) Debian install and received that message. Worked like a charm when I commented out that bit though. Thanks for the script!

Kerwood commented 10 years ago

@skeeve42 - Would you mind returning the output of the following commands ?

cat /proc/version cat /etc/issue

skeeve42 commented 10 years ago

:~$ cat /proc/version Linux version 2.6.32-042stab090.2 (root@rh6-build-x64) (gcc version 4.4.6 201203 05 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Wed May 21 19:25:03 MSK 2014 :~$ cat /etc/issue Debian GNU/Linux 7 \n \l

Kerwood commented 10 years ago

Why does the first return Redhat ?

skeeve42 commented 10 years ago

No idea... that's weird. This is an install from my VPS provider.

ItsAdventureTime commented 10 years ago

Hi everyone. So sorry for the late reply.

@didifsx regarding those plugins, I was able to resolve them just by using "apt-get install" then the name of the missing package/dependencies. Although thanks for telling me the code to use the latest build, svn or git.

@skeeve42 what's the name of your VPS provider?

@Kerwood thanks to @didifsx i just had another idea. before the installation starts, why not ask the user of he/she wants to get the latest stable builds or the latest trunk, svn or git builds? then upon the installation of plugins, the script must automatically install the dependencies too. also, ask the user to use the default download directory for rTorrent or allow the user to specify his or her own directory during the installation of the script.

Kerwood commented 10 years ago

I was able to resolve them just by using "apt-get install"

@ItsAdventureTime - I didn't even think of looking in the reposetories. Thanks.

why not ask the user of he/she wants to get the latest stable builds

I dont want the script to be too complicated. Its has to be as simple as possible.

upon the installation of plugins, the script must automatically install the dependencies too.

It already does that :)

also, ask the user to use the default download directory for rTorrent or allow the user to specify his or her own directory during the installation

That is not a bad idea. I will have that in mind.

Kerwood commented 10 years ago

@skeeve42 - Hey man .. Could you try the new version ? 2.0.5 Just the OS validation part. No need to install again.

skeeve42 commented 10 years ago

At an airport, heading on vacation... Maybe in a few weeks? ;-) On Jul 17, 2014 6:42 PM, "Kerwood" notifications@github.com wrote:

@skeeve42 https://github.com/skeeve42 - Hey man .. Could you try the new version ? 2.0.5 Just the OS validation part. No need to install again.

— Reply to this email directly or view it on GitHub https://github.com/Kerwood/rtorrent.auto.install/issues/17#issuecomment-49290959 .

Kerwood commented 10 years ago

@skeeve42 - Haha.. Have a good vacation :)