HOWTO: Install the latest version of rTorrent, Ubuntu
Be sure you are root or have sudo rights. At first we try to clean the system, if there's any older version installed from repository. You can try this:
# sudo apt-get remove rtorrent libtorrent7
On newer systems, like my Ubuntu 9.04 you could try this:
# sudo apt-get remove rtorrent libtorrent11
After this we need to install some packet dependencies and compiling tools.
libTorrent's README says:
libsigc++ 2.0 (deb: libsigc++-2.0-dev)
g++ >= 3.3
rTorrents README says:
libcurl >= 7.12.0
ncurses
So we try to install the following packets. Maybe they differ at your system version.
# sudo apt-get install build-essential libsigc++-2.0-dev pkg-config comerr-dev libcurl4-openssl-dev libidn11-dev libkadm55 libkrb5-dev libssl-dev zlib1g-dev libncurses5 libncurses5-dev
If you got some old packets, which are useless, you can clean them up using this command:
# apt-get autoremove
Go to your home directory or another directory you like.
# cd ~
Now we download the lastest stable release of libTorrent and rTorrent. You can find them here.
# wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.4.tar.gz && wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.4.tar.gz
Now we have to extract the files.
# tar -xvvzf libtorrent-0.12.4.tar.gz && tar -xvvzf rtorrent-0.8.4.tar.gz
Configure, Compile & Install:
# cd libtorrent-0.12.4
# ./configure && make && make install
# cd ../rtorrent-0.8.4
# ./configure && make && make install
If there are no errors, we got rTorrent successfully installed. At this point we need a configuration file, a session directory and a torrent directory.
We change to a normal user.
# su your-user-name
We change to his home directory.
# cd ~
Now we create a torrent directory.
# mkdir torrent
In this directory we create a session directory. I make it invisible because we don't have to access it in the future.
# cd torrent
# mkdir .session
Now we have to create a configuration file. Change to your home directory.
# cd ~
# touch .rtorrent.rc
You can get a default configuration file here. Copy the lines into your configuration file and edit the following two:
directory = /home/your-user-name/torrent
session = /home/your-user-name/.session
Save the file. Now we are finished. You can start rtorrent using this command:
# rtorrent
HOWTO: Install/Configure vsftpd FTP Server on Ubuntu Server
Log in as root or use 'sudo' to execute the command as root user.
# apt-get install vsftpd
This will install the FTP Server. Now we have to change the config file. You will find the config file in the /etc directory. Use vim or nano to open and edit this file.
# vi /etc/vsftpd.conf
If you have problems using this editors, you could read this HOWTO for vim, or this HOWTO for nano.
Change the following lines. Be sure to remove the # in front, if there is one, to uncomment the line.
anonymous_enable=NO
This will avoid anonymous FTP Login.
local_enable=YES
This will allow local unix users to use the FTP Server. All User's can login with their unix user and password via FTP.
write_enable=YES
This will make writing possible for all users.
ftpd_banner=*****
Use any sentence you like instead of the asterisks. This welcome message will be displayed every time a user logs on the FTP Server.
chroot_local_user=YES
Lock each user in it's home directory. This will prevent, that a user can see files, that do not belong to him.
Now save the config file.
# /etc/init.d/vsftpd restart
In the end you have to restart your new FTP Server, in order to make the config file changes take effect.