arakasi72 / rtinst

seedbox installation script for Ubuntu and Debian systems
MIT License
1.22k stars 259 forks source link

How do I upgrade to next releaes of packages? #51

Closed ghost closed 9 years ago

ghost commented 9 years ago

As I see rTorrent etc have been compiled from source and not installed with apt-get.

arakasi72 commented 9 years ago

You can run rtupdate using your sudo user to downgrade or upgrade libtorrent/rtorrent. Currently the latest 3 versions are included, I can add more on request.

'sudo rtupdate'

It will change to the versions selected from a menu. Your configuration, and data will not be touched, so all your torrents, filters etc, will remain intact. The script will also restart rtorrent for each user.

I need to add this to the readme file, but it is all in place.

ghost commented 9 years ago

Thanks for your response @arakasi72.

But please help me understand:

  1. I am talking about future releases of packages rtorrent, rutorrent, nginx, xmlrpc, libtorrent etc, not the ones that is provided in your "current script" and later on I'll have just this version of script and not some newer one where you might have added the new rtorrent release or other packages and I will be using KS-2 for long I think. So what about that?
  2. Can I run "apt-update && apt-upgrade" on the system (which I think I must)? Is it gonna break things? Because iirc the there's this famous seedbox from scratch script which asks users to run it on vanilla 12.04 - yes, even today - and never patch the system again.
  3. I went through the script and saw that it checks whether rTorrent is installed already and skips if it's installed so can I install it using "apt-get" so that upgrading to future versions would be easy.
  4. Also that famous script wanted to be the first thing on the server before installing anything, or before I had created any users. Any such requirements here? Oh, I just saw this Run the script from root, or if you have a sudo user already set up you can run it from there so I guess it's not. That's great!

Also Google has deprecated the download page and hence the developer has moved it to https://bintray.com/novik65/generic/ruTorrent. Officially so instead of installing dev release you can use this.

So I was just wondering, as I don't know much about these things as in server admin stuff (and I was hacked during this shellshock madness as my system was unpatched because I chose the wrong script - that seedbox from scratch script - though it was my fault)

arakasi72 commented 9 years ago
  1. nginx is installed using the package manager, xmlrpc, rtorrent and libtorrent are compiled from source. I will add newer versions to the rtupdate script, when they become available.. You can of course download source and compile yourself, it is fairly straight forward.
  2. Yes you can run update/upgrade. I recommend it, I do on my own live system frequently. You should not run into any issues.
  3. It depends what version apt-update installs, as it may well not be the latest version. If you want the latest version the best way to do this is to compile from source. The main reason I added this check was if for what ever reason people needed to rerun the script. Compiling libtorent/rtorrent is the longest part of the process so if this step has been completed successfully, you can save time by skipping it on a rerun.
  4. No it does not need to be the first thing on the system. Though a clean system is always preferred. Main issue that may arise is if you already have a different webserver installed though, so check this before running the script.

With regards to security issues: I will not be adding fail2ban, as I developed this script with a minimalist approach in mind. There is no reason why you could not add it, and you would not need to make any config changes to what my script installs.

For the ports, the script selects random ports for ssh, and ftp, and reports those to the user, as the script is running and again at the end as well as writing this information to ~/rtinst.info. I wanted to keep user interaction to a minimum.

ghost commented 9 years ago

I will add newer versions to the rtupdate script, when they become available

Oh, so I think I'll need to keep checking for update in this script and also set some kind of notification to be sent to me when a new versions of "xmlrpc, rtorrent and libtorrent" are released. Maybe developer's newsletter or news group.

Anyway, I'll go with this script and then try to find a decent fail2ban and firewall tutorial that can work with a seedbox. I'll just reinstall this system fresh.

Thank you for your response.