Tremulous Forum

General => General Discussion => Topic started by: Odin on November 28, 2006, 01:44:17 am

Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: Odin on November 28, 2006, 01:44:17 am
Hi! Some of you may know that tjw's server build now includes a "WWW Download Mode" which allows clients to download at a much faster rate without impacting server performance. This works by redirecting the connecting user to a web server which contains the file you need to download. Of course, it's not in the official Tremulous build. You'll need to get the tjw client here:
http://trem.tjw.org/backport/linux/tremulous.x86
Download that(to "~/downloads" in this example), and issue the following command:
Code: [Select]
sudo cp ~/downloads/tremulous.x86 /usr/local/games/tremulous/ && sudo chmod +x /usr/local/games/tremulous.x86
That should overwrite the official build with the tjw one, and make it executable. If you installed Tremulous in any other directory, change the commands to suit your setup.
Now, it should enable WWW download, but on my Linux box, it did not work right out of the box. Apparently, Tremulous looks for "libcurl.so" for use in WWW downloading. However, on mine, I had libcurl.so.3 instead. If you don't know which one you have, try this:
Code: [Select]
slocate libcurl.so
It should give you a list of available files and where they are located. If it returns nothing, try issuing "sudo updatedb" and try again. If you still get nothing, you'll need to install libcurl on your machine. Here's the Debian(Ubuntu/etc) way:
Code: [Select]
sudo apt-get update && sudo apt-get install libcurl3
Your package name may differ. Try looking in Synaptic for libcurl to find the right one.
Now that you have libcurl, make a symbolic link for it into the tremulous directory.
Here's what I did on my system:
Code: [Select]
sudo ln -s /usr/lib/libcurl.so.3 /usr/local/games/tremulous/libcurl.so

OR, you can edit your autogen.cfg to look for libcurl.so.3 instead of libcurl.so. However, I like to allow it to work for all users on my computer, so I used the symlink way.

Tremulous should now auto-download from a WWW download URL if the server is set up that way!
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: rasz_pl on November 28, 2006, 11:58:54 am
I was expecting a tutorial for admins :) there are NO SERVERS with WWW Download set up :/
I simply go elsewhere when I see 5-10KB speed.
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: tuple on November 28, 2006, 01:28:41 pm
Much appreciated Odin!  :)

Rasz_pl, if you play on servers with beta maps without the www download set up, get the MG map pack (http://www.techmight.com/base/), it's the zip file up top :)

178MB, but at this point it is at version .6 and contains 34 maps, all but a couple I have found.  I am working to keep it updated, and at this point it has all the most recent updates I've been able to locate.

Also, the MG Beta Server has www download set up, on a fast link too, so if you see a map you want or don't have, connect and get it :)
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: Confess on November 28, 2006, 01:45:01 pm
SST is currently using the WWW download, ras.
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: rasz_pl on November 28, 2006, 01:58:54 pm
Quote from: "rasz_pl"
there are NO SERVERS with WWW Download set up :/


except two
:)
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: Thorn on November 28, 2006, 02:04:51 pm
Quote from: "rasz_pl"
Quote from: "rasz_pl"
there are NO SERVERS with WWW Download set up :/


except two
:)


Three actually.
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: khalsa on November 28, 2006, 04:54:13 pm
Don't forget }MG{ Central!
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: kevlarman on November 28, 2006, 05:20:59 pm
Quote from: "confess"
SST is currently using the WWW download, ras.
www downloads are useless without sv_pure = 1

edit: you can get client side www downloads without root  (libcurl must be installed), just add
Code: [Select]
set cl_libcurl libcurl.so.3 to your autogen.cfg (or autoexec.cfg).
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: Odin on November 28, 2006, 06:28:16 pm
I said that. But I also said that I like to have it so that it works on all users and all future users without extra tweaking involved.
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: kevlarman on November 28, 2006, 07:10:52 pm
Quote from: "Odin"
I said that. But I also said that I like to have it so that it works on all users and all future users without extra tweaking involved.
future versions will default to libcurl.so.3, just like ioq3 does now.
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: next_ghost on November 28, 2006, 07:28:27 pm
There's no such problem on Gentoo Linux. net-misc/curl has a default libcurl.so symlink.
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: Undeference on November 28, 2006, 07:38:25 pm
I finally set up www downloads on my server. It doesn't mean you'll get better than 5-10KB/s though :wink:
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: vcxzet on November 28, 2006, 07:48:37 pm
Quote from: "Undeference"
I finally set up www downloads on my server. It doesn't mean you'll get better than 5-10KB/s though :wink:

you cant use rapidshare?
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: Undeference on November 28, 2006, 07:57:27 pm
That would be a mess. I was thinking of using mod_rewrite and having everyone leech from http://tremmap.omgwtf.nl/ but when that site's down, that kinda screws the people who don't have maps (until they figure out to turn off wwwDownloads and turn on allowDownloads).
Title: HOWTO: Enable tjw's WWW download in Linux.
Post by: gatewarstrek on January 03, 2007, 07:42:13 pm
I had to put the symlink in the /usr/lib folder with the libcurl.so.3 for it to work properly, thanks for the info :D

-Gate