Template/Bytesized Debian5

From Bytesized Wiki

(Redirected from Bytesized Debian5)
Jump to: navigation, search

Contents

Bytesized Debian 5 Full

This page documents the custom bytesized template.
VNC Screenshot

Changelog

Version 1.2

"New applications"

* Sick beard
* CouchPotato
* Headphones

"Changes"

 * Setup Deluge with actual sane configuration

Version 1.1

"Changes"

* Upgraded Deluge to 1.3.5-Stable 
* Upgraded to rTorrent 0.8.9
* Upgraded to libTorrent 0.12.9
* Upgraded ruTorrent

Version 1.0

"Changes"

* Upgraded Deluge to 1.3.3-Stable 
* Added upload permissions via FTP by default
* Disabled anonymous upload

Version 0.9

New applications

* SABnzbd
* X-Chat
* Leafpad
* LXTerminal

Changes

 * Replaced the windows manager with OpenBox
 * Installed lxPanel
 * Added Wallpapers (Thanks Eebs!)
 * Set default Iceweasel url
 * Lowered the default Apache2 settings even more

First Steps

The Debian 5 ByteSized Seedbox template was created to help you get your Seedbox up and running quickly. Using a normal web browser you can complete the final stage of setup by typing in the IP address allocated to your VPS. This stage lets you choose your preferred torrent client and specify a user password. Once you point your browser to the IP you were assigned, you should see the "ByteSized VPS - Client Setup" page.

The password and Client select screen

Select your preferred client and specify a password for the #Default User Account.

Once you have done this, you should be ready to roll! From now whenever you point your browser to you assigned IP address you will be presented with the web interface for torrent client you selected.

You will be prompted for your password and depending on your client choice your username. These details are your #Default User Account's details.

VNC is running on the default port with the same password as you specified in the first step. To connect to it just use the IP dedicated to you with the default port 5900 (IP:5900). Some clients have require to enter a port in double digits and in that case you will connect by using IP:0 (if you are running vnc on a default port.

Preloaded Services

The template comes preloaded with the following things:

Default User Account

It is especially important in a server environment to maintain some level of permission separation. While you have root access to the VPS it is important that minimise your usage of this account, many application and services are dangerous when run as the root account.

As such we have setup a default user account for your SeedBox activities, this user account is "bt".

Default User Details
Username: bt
Password: As specified on the setup page
Home Directory: /var/downloads

Under the Hood

The template is based of Debian 5.0. On your VPS you have full control over system and the software installed. The easiest way to install software is to use the APT package management system. This system provides easy access to over 25,000 packages. For more information please read the APT Wiki

Tips

Deluge

If you want to use the deluge thin client you need to add an extra account to the config file.

echo "username:somepassword:10" >> /var/downloads/.config/deluge/auth

You will also need to find a setting in core.conf file to enable remote connections:

nano /var/downloads/.config/deluge/core.conf

and change false to true:

"allow_remote": true,

VNC

VNC is running on the default port with the same password as you specified in the first step. To connect to it just use the IP dedicated to you with the default port 5900 (IP:5900). Some clients have require to enter a port in double digits and in that case you will connect by using IP:0 (if you are running vnc on a default port.

To start VNC on a different port then the default 5900 (or :0) do the following:

vncserver  :12

this will star VNC server on port 5912(or :12). Change the number to your liking just keep in mind it has to be a double digit number.

To stop VNC server without rebooting the whole VPS issue this command:

vncserver -kill :0

or change :0 with whatever port you started it on.

Sick beard, CouchPotato and Headphones

To use these various download helpers use the following commands.

Name Command Port
Sick beard sickbeard 8081
CouchPotato couchpotato 5050
Headphones headphones 8181

Please note that by default they are started without a password, please be the first thing you do setup proper settings including a strong password.


FTP

Version >= 1.0 should have these settings by default

The FTP (vsftp) server is set up to allow downloading only. To allow uploading edit the config file at a terminal:

sudo nano /etc/vsftpd.conf

uncomment the line: #write_enable=YES

Save the file and then tell vsftp to reload the configuration:

sudo /etc/init.d/vsftpd reload

Disable anonymous FTP-account

Version >= 1.0 should have these settings by default

Although anon-FTP is jailed for security reasons (cannot read/write anything to that directory), you should disable it anyway, just to be sure. You'll never know what kind of security flaws vsftpd MIGHT have.

Open:

sudo nano /etc/vsftpd.conf

uncomment the line (number 23): anonymous_enable=YES, and change YES to NO so it becomes anonymous_enable=NO

Disable root (admin) ssh-login

You should disable root-access trough ssh, once again, because of security. Hackers know that there is always account named root, on linux-server and thus they can bruteforce your password to get full control to YOUR server. You can ALWAYS use command: su to get root access with your password, (it will ask for it) after you've logged in with account bt or similar.


Open:

sudo nano /etc/ssh/sshd_config

uncomment the line (number 26): PermitRootLogin yes, and change yes to no so it becomes PermitRootLogin no NOTE: there is no equal as (=) mark after PermitRootLogin, just space. If that line does not exist, you can create it at the end of /etc/ssh/sshd_config (ssh server does not care in which order settings are).

Enabling multiple FTP users

Read about it here

OpenVPN

How to setup OpenVPN

Autodl-Irssi

To use autodl-irssi on VPS, you can follow the installation guide of Autodl-community:

https://github.com/autodl-community/autodl-irssi/wiki/Installation (ie follow the 'Automatic Installation' instructions for 'Other OS' if you are using the Bytesized Debian)

After you are done with that. you need to install "libxml-perl"

sudo apt-get install libxml-libxml-perl

Then, just setup your config file and you're done. (For more info on autodl-irssi please refer to the bytesized guide on autodl-irssi, found here: http://wiki.bytesized-hosting.com/wiki/index.php/Autodl-irssi )

Personal tools