TABLE OF CONTENTS:
I. TUTORIAL # 1 > Basic Server Setup > Page - 1, Post - 1
Parts #1-6 > Installing Fluxbox, VNC
II. TUTORIAL # 2 > uTorrent Seedbox > Page - 1, Post - 2
Parts #7-9 > Installing wine, uTorrent, FTP
III. TUTORIAL # 3 > rtorrent Seedbox > Page - 2, Post - 12
Parts #10-15 > rtorrent, lighttpd, rutorrent + authentication
IV. TUTORIAL # 4 > Securing Server PART 1> Page - 3, Post - 24
Parts #16-18 > Securing SSH, FTP, tunneling VNC
V. TUTORIAL # 5 > Proxy. irssi > Page - 4, Post - 32
Parts #19-20 > Using Seedbox as Proxy, irssi setup
VI. TUTORIAL # 6 > Securing Server PART 2 > Page 4, Post 33
Parts #21-22 > Lighttpd (rutorrent) with SSL (HTTPS), Fail2ban
VII. TUTORIAL # 7 > Multiple user ruTorrent setup with own IP address > Page 5, Post 49
Parts #23-28 > Creating another rtorrent + rutorrent user, extra IP
VIII. TUTORIAL # 8 > APACHE WEB-SERVER w/ RUTORRENT > Page 8, Post 75
Parts # 29-30 > Installing and configuring Apache
EXTRA : rutorrent install/update script- Page 5, Post 47
EXTRA : RTORRENT START-UP SCRIPT - Page 8, Post 72
TUTORIAL # 1 - BASIC SERVER SETUP
NOTE :This tutorial contains a complete setup of a seedbox running on a dedicated server. It will feature Fluxbox, VNC, uTorrent, Wine, FTP, rTorrent, ruTorrent and Lighttpd. However, u dont need to install all of this and can choose any torrent client u want or could install both as well. The tutorial is not all in one post and scattered between posts in this thread. I split it up so it wouldnt take up much space all in one post. rTorrent + ruTorrent tutorial can be found here on page 2 > Debian/Ubuntu Dedicated Server Setup
*TO RUN A HEADLESS SERVER* To run a Headless, all CLI server, start here "Tutorial #1", with "PARTS 1-2" (skip Part 3), then continue with "PARTS 4-5". After thats done u can move to "Tutorial #3" and start & finish that tutorial. When all is finished u will be running a Headless Server instead of a GUI.
**This whole tutorial is only for Debian/Ubuntu Distro's. This part is based on installing the GUI or Window Manager. There are other GUI's or Window Managers u can install, but Im going with Fluxbox because its light and low on resources**
PART 1: LOGIN TO SERVER
--Login to your server using Putty or any terminal u like with your username being root and the password provided to u by your provider. After u are successfully logged into your server, u are now connected through ssh in a Putty Terminal.
PART 2 : UPDATE / SECURE SYSTEM
--Now that your logged in with Putty u want to issue a couple of commands to bring your system up to date: Do not type the # sign from this tutorial. That just shows u are logged in as root.
# apt-get update
# apt-get upgrade
--Now that your system is up to date, the next step u want to do is change the root password and delete SSH authorized keys as u dont want anyone logging into your server.
# passwd
New Password:
Verify:
# ls .sshauthorized_keys2
# rm .ssh/authorized_keys2
PART 3 : INSTALL DESKTOP / SOFTWARE
--Now u want to install the Desktop enviroment & software:
# apt-get install vnc4server xterm fluxbox firefox
# update-menus
# apt-get install xfonts-base xfonts-75dpi xfonts-100dpi
NOTE : U may have to substitute "iceweasel" for "firefox" and can also use "tightvncserver" on some Distro's.
PART 4 : CREATE USER
--Create another user with "superuser" privileges:
# useradd -m UserName
# passwd UserName
New Password:
Verify:
--Now add your new created user to the sudoers list so u can use the command sudo. If u get error with this command then u need to install sudo - "# apt-get install sudo":
NOTE : Press "i" to insert, "esc" to exit insert mode and ":wq" to save + exit vi (text editor). If it opens up in "Nano" (text editor) press "ctrl + o" to save and "ctrl + x" to exit.
--Now look for the following line - "root ALL=(ALL) ALL" - and add your new created user to the file directly underneath the root user then save + exit:
root ALL=(ALL) ALL
UserName ALL=(ALL) ALL
PART 5 : LOGIN WITH NEW USER
--Login with our newly created user. To do this just open up another Putty terminal by right clicking on the Putty title bar and select "duplicate session". Another Putty session will open and then login with our new user.
NOTE : Dont close root session putty window till your successfully logged in with new user. Once logged in u can exit old session. Also u will now see $, this shows u are now logged in as your normal user. Again dont type $ from this tutorial.
PART 6 : CONFIGURE VNC
--CD to your home directory:
--Next we want to configure VNC:
--Now open the xstartup file and add "fluxbox", without quotes, to the file and save (ctrl + o) and exit (ctrl + x). This will start Fluxbox with VNC.
--Make the xstartup file executable:
--Now start the vnc4server. The first time u start it, it will ask u to create a password no longer then 8 characters:
$ vnc4server :1
Password:
Verify:
view only password:
NOTE: To kill VNC just use this command "vnc4server -kill :1". Never run VNC as root user.
--Now Just Open "VncViewer" on your home computer and type in your "IPAddress:1"and press connect. Then type in your password and bang u are connected to your server using VNC.
NOTE : Thats it for the 1st Tutorial & u now have a basic setup of a Server running a Fluxbox GUI. U can now move to the 2nd tutorial and install uTorrent, FTP or move to the 3rd Tutorial and install rTorrent + ruTorrent. However, u can just follow both 2nd & 3rd Tutorials to install both.. If u have any questions or found any mistakes please dont hesitate to correct me.
**ALL Tutorials were solely written by me (MikeD). However, i did learn all this using several different sources from all over the web and through Trial & Error. So credit & thanks to the author's who helped me setup/crash countless servers over a long period of time. Have Fun and Thanks. Remember if u have any questions, want to add or found mistakes, please post here and i will help u, fix the mistakes and give credit to u**