Posted: March 14th, 2012 | By: Rob_K | Filed under: Control Panels, Tutorials | Tags: FTP, Tutorials, Webmin | 1 Comment »
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:
- Login to webmin at http://xx.xx.xx.xx:10000 (may be https:// for Debian/Ubuntu systems)
- Access the Webmin Modules option via Webmin > Webmin Configuration
- Select Standard module from www.webmin.com
- Click the button on the right of that option
- Choose: proftpd
- Click Install Module
- On the left sidebar, after installation, click Refresh Modules
- Click Create a new user accessed via System > Users and Groups
- Provide a username for what is to be your FTP account
- Select Normal Password and provide a unique, complex password for the account
- If desired, select a custom home directory, otherwise choose Create home directory near the bottom of the options.
- Select New Group with same name as user
- 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
Posted: February 9th, 2012 | By: Rob_K | Filed under: Featured, Seedbox, Tutorials | Tags: Debian, rTorrent, Seedbox, Tutorials, Ubuntu | No Comments »
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
Posted: February 7th, 2012 | By: Rob_K | Filed under: Security & Optimization, Tutorials, Uncategorized | Tags: CPU, Tutorials | No Comments »
To check the CPU allocation and information on your VPS, simply log in to SSH as root, and run the following command:
# cat /proc/cpuinfo
This article is also available in the VPS6.NET Knowledgebase:
https://vps6.net/my/knowledgebase/63/How-to-Check-CPU-Info-with-SSH-on-Linux-VPS.html
Posted: January 20th, 2012 | By: Rob_K | Filed under: Tutorials | Tags: Debian, RapidLeech, Tutorials, Ubuntu | No Comments »
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
Posted: January 16th, 2012 | By: Rob_K | Filed under: Tutorials | Tags: CentOS, Nginx, Tutorials | No Comments »
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
Posted: January 14th, 2012 | By: Rob_K | Filed under: Tutorials | Tags: CentOS, Ruby, Tutorials | No Comments »
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:
Posted: January 9th, 2012 | By: Rob_K | Filed under: Security & Optimization, Tutorials | Tags: Timezone, Tutorials | No Comments »
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
Posted: January 8th, 2012 | By: Rob_K | Filed under: Tutorials | Tags: Debian, Tutorials, VNC | No Comments »
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
Posted: January 8th, 2012 | By: Rob_K | Filed under: Tutorials | Tags: MySQL, Tutorials | No Comments »
To export a MySQL database, access your VPS via SSH and run:
# mysqldump -u username -p database_name > dumpfile.sql
To import a MySQL Database, run:
# mysql -u username -p database_name < dumpfile.sql
This article is also available in the VPS6.NET Knowledgebase:
Posted: January 8th, 2012 | By: Rob_K | Filed under: Tutorials | Tags: Debian, LAMP, Tutorials, Ubuntu | No Comments »
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