0

How to Setup FTP with ProFTPD in Webmin

After installing Webmin on a VPS, you may be wondering how to add and configure FTP users. With Webmin it is not a one-click process, but the procedure is still fairly simple. To install proftpd and add a user, follow these steps:

  1. Login to webmin at http://xx.xx.xx.xx:10000 (may be https:// for Debian/Ubuntu systems)
  2. Access the Webmin Modules option via Webmin > Webmin Configuration
  3. Select Standard module from www.webmin.com
  4. Click the button on the right of that option
  5. Choose: proftpd
  6. Click Install Module
  7. On the left sidebar, after installation, click Refresh Modules
  8. Click Create a new user accessed via System > Users and Groups
  9. Provide a username for what is to be your FTP account
  10. Select Normal Password and provide a unique, complex password for the account
  11. If desired, select a custom home directory, otherwise choose Create home directory near the bottom of the options.
  12. Select New Group with same name as user
  13. Click Create

Once this is done, you should be able to access FTP with the username and password you selected, using your server’s IP address as the host.

This article is also available in the VPS6.NET Knowledgebase:

https://vps6.net/my/knowledgebase/65/How-to-Setup-FTP-with-ProFTPD-in-Webmin-.html

0

How to Install rTorrent/ruTorrent Seedbox on Ubuntu VPS

This tutorial will guide you through the installation of libtorrent 0.13.0, rTorrent 0.9, and the ruTorrent Web UI (3.0) on a Debian or Ubuntu system. It has been tested with Debian 6 (x64) and Ubuntu 11.04 (x64).

To begin, access your VPS via SSH and run the following to update your platform and install some needed dependencies:

# apt-get update

# sudo apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free curl libncurses-dev

# apt-get install apache2 php5 php5-cli php5-curl

Enable scgi for Apache:

# apt-get install libapache2-mod-scgi

# ln -s /etc/apache2/mods-available/scgi.load /etc/apache2/mods-enabled/scgi.load

Install XMLRPC:

# mkdir /install;cd /install

# svn checkout http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c

# cd xmlrpc-c

# ./configure –disable-cplusplus

# make

# make install

Intall libtorrent:

# cd /install

# wget http://vps6.net/src/libtorrent-0.13.0.tar.gz

# tar xvf libtorrent-0.13.0.tar.gz

# cd libtorrent-0.13.0

# ./autogen.sh

# ./configure

# make

# make install

Install rTorrent:

# cd /install

# wget http://vps6.net/src/rtorrent-0.9.0.tar.gz

# cd rtorrent-0.9.0

# ./autogen.sh

# ./configure –with-xmlrpc-c

# make

# make install

# ldconfig

Create required directories:

# mkdir /home/seeder1/rtorrent

# mkdir /home/seeder1/rtorrent/.session

# mkdir /home/seeder1/rtorrent/watch

# mkdir /home/seeder1/rtorrent/download

Setup .rtorrent.rc file (rTorrent config):

# cd ~/

# wget http://vps6.net/src/.rtorrent.rc

# cp .rtorrent.rc /home/seeder1/

(Edit the settings in .rtorrent.rc, like max upload/download speed, max connected peers, etc, as needed.)

Install rTorrent:

# cd /install

# wget http://vps6.net/src/rutorrent-3.0.tar.gz

# tar xvf rutorrent-3.0.tar.gz

# mv rutorrent /var/www

# wget http://vps6.net/src/plugins-3.0.tar.gz

# tar xvf plugins-3.0.tar.gz

# mv plugins /var/www/rutorrent

# rm -rf /var/www/rutorrent/plugins/darkpal

# chown -R www-data:www-data /var/www/rutorrent

Secure /rutorrent:

# a2enmod ssl

# a2enmod auth_digest

# a2enmod scgi

# openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem

# chmod 600 /etc/apache2/apache.pem

# htdigest -c /etc/apache2/passwords seedbox seeder1

(Enter a password of your choice when prompted, you will use this to log in to the ruTorrent web UI.)

# cd /etc/apache2/sites-available/

# rm -rf default

# wget http://vps6.net/src/default

# a2ensite default-ssl

# /etc/init.d/apache2 reload

Install screen:

# apt-get install screen

Start rTorrent in a detached shell using screen:

# screen -fa -d -m rtorrent

(To start rtorrent automatically after reboots, add the above command to /etc/rc.local)

 

Setup is now complete! Access ruTorrent at http://xx.xx.xx.xx/rutorrent/ (replace xx.xx with your server’s IP address). You should be greeted with a login prompt, where the username is “seeder1″ and the password is the one you set above in the “secure /rutorrent” section.

VPS6.NET offers plug-n-play ruTorrent seedbox templates that can be setup instantly on any VPS: https://vps6.net/template-rutorrent.php

This article is also available in the VPS6.NET Knowledgebase:

https://vps6.net/my/knowledgebase/64/How-to-Install-ruTorrent-Seedbox-on-Ubuntu-or-Debian-VPS.html

 

 

0

How to Install RapidLeech v42 on Debian or Ubuntu VPS

This guide will walk you through the installation of RapidLeech v42 r358 on a VPS running Debian or Ubuntu.

To begin, log in to your VPS via SSH as the root user, and run the following commands:

# apt-get -y update

# apt-get -y upgrade

Install dependencies:

# apt-get -y install apache2-prefork-dev apache2-utils apache2.2-bin apache2.2-common apache2

# apt-get -y install php5 php5-cgi php5-cli php5-common php5-curl php5-dev php5-gd php5-tidy php5-xmlrpc php5-xsl php5-suhosin php5-mcrypt php5-imap php5-imagick libapache2-mod-php5

Download RapidLeech:

# cd /var/www

# wget http://rapidleech.googlecode.com/files/Rapidleech.v42.r358.zip

Install RapidLeech:

# unzip Rapidleech.v42.r358.zip

# rm -rf Rapidleech.v42.r358.zip

# chown -hR www-data:www-data Rapidleech.v42.r358

# chmod 777 Rapidleech.v42.r358/files

# mv Rapidleech Rapidleech.v42.r358 rapidleech

Restart Apache:

# /etc/init.d/apache2 restart

RapidLeech should now be accessible at: http://xx.xx.xx.xx/rapidleech/

This article is also available in the VPS6.NET Knowledgebase:

https://vps6.net/my/knowledgebase/62/How-to-Install-RapidLeech-v42-on-Debian-or-Ubuntu-VPS.html

0

How to Install Nginx on CentOS with Yum

Nginx is a popular lightweight alternative to Apache. Installing it with the yum package manager is simple:

# yum update

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/x86_64/epel-release-5-4.noarch.rpm

# yum install nginx

Start Nginx:

# /etc/init.d/nginx start

Check if Nginx is running at: http://xx.xx.xx.xx – You should see a default Nginx page.

Set Nginx to start automatically in case of reboot:

# /sbin/chkconfig nginx on

For more information, see: http://wiki.nginx.org

This article is also available in the VPS6.NET Knowledgebase:

https://vps6.net/my/knowledgebase/61/How-to-Install-Nginx-with-Yum-on-CentOS.html

0

How to Setup Ruby on Rails for CentOS or Fedora

This tutorial will guide you through setting up a basic Ruby on Rails environment, installing:

  • Ruby 1.8.7
  • RubyGems 1.8.15
  • Rails 3.1.3
  • Sqlite3
This tutorial was written for CentOS, Fedora, and other EL-based systems.
To start, log in to your VPS via SSH and update your system:
# yum update
Install Ruby:
# yum install ruby ruby-devel ruby-irb ruby-rdoc ruby-ri
Check the version installed:
# ruby -v
Install RubyGems:
# mkdir ~/sources
# cd ~/sources
# wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
# tar xzvf rubygems-1.3.1.tgz
# cd  rubygems-1.3.1
# ruby setup.rb
Update RubyGems:
# gem update –system
Install Rails:
# gem install rails
Install Sqlite3:
# yum install sqlite-devel
# gem install sqlite3-ruby
Install Postfix and Subversion:
# yum install postfix subversion -y
You should now have an updated and functional RoR environment!
This article is also available in the VPS6.NET Knowledgebase:

 

0

How to Update Your VPS Timezone

You may find that your virtual server’s default timezone is not the timezone you (or your users) reside in. Updating your timezone is simple:

First, log in to your VPS as the root user via SSH, then run the following command to list all available timezones (there will be many):

# find /usr/share/zoneinfo/

You can use grep to refine the search:

# find /usr/share/zoneinfo/ | grep -i turkey

Once you have selected a timezone, create a symbolic link to /etc/localtime:

# ln -f -s /usr/share/zoneinfo/CST6CDT /etc/localtime

To verify the timezone change, use date:

# date

That’s it! Your new timezone should be set.

This article is also available in the VPS6.NET Knowledgebase:

https://vps6.net/my/knowledgebase/53/How-to-Update-VPS-Timezone-OpenVZ.html

0

How to Install VNC w/ GNOME on Debian VPS

VNC is a desktop sharing system that will allow you to connect to a Linux desktop from your home PC, for easy remote management of your VPS. This walkthrough will guide you through the installation of a VNC server on Debian.

Before starting, log in to your VPS as the root user, and run the following:

# apt-get update

# apt-get upgrade

1. Install GNOME:

#apt-get install gnome-desktop-environment

2. Install some required fonts:

# apt-get install xfonts-100dpi

# apt-get install xfonts-100dpi-transcoded

# apt-get install xfonts-75dpi

# apt-get install xfonts-75dpi-transcoded

# apt-get install xfonts-base

3. Install the VNC server:

# apt-get install tightvncserver

4. Start TightVNCServer for the first time, it will copy config files and prompt you for a password:

# tightvncserver :1

5. Stop the VNC server, for additional configuration:

# tightvncserver -kill :1

6. Edit the xstartup file:

# vi ~/.vnc/xstartup

Press “A” to enter edit mode. Replace the contents of the file with the following (or edit to match):

#!/bin/shxrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# x-window-manager &

gnome-session &

Press ESC, type :wq, then press enter to save and close the file.

7. Start the VNC server with your desired resolution:

# tightvncserver -geometry 1024×768 :1

You can now use a desktop VNC client to access your server’s GNOME desktop. In your VNC client (TightVNC, for example), enter your server’s main IP address, Port 1 (or 5901, alternately), and the password you set earlier to connect to the desktop.

This article is also available in the VPS6.NET Knowledgebase:

https://vps6.net/my/knowledgebase/52/How-to-Install-VNC-wor-GNOME-on-Debian-or-Ubuntu-VPS.html

0

How to Setup LAMP on Debian/Ubuntu VPS

LAMP stands for Linux – Apache – MySQL – PHP, a common software stack used on Linux webservers. To install the basics of a LAMP server on a Debian or Ubuntu VPS, simply access your server via SSH and run the following commands:

# apt-get update

# apt-get install apache2

# apt-get install mysql-server

# apt-get install php5 php-pear php5-suhosin

# apt-get install php5-mysql

Finally, restart Apache, and everything should be functional:

# /etc/init.d/apache2 restart

 

This article is also available in the VPS6.NET Knowledgebase:

https://vps6.net/my/knowledgebase/35/How-to-Setup-LAMP-on-DebianorUbuntu-VPS.html