Author Topic: HOWTO: Enable tjw's WWW download in Linux.  (Read 5945 times)

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
HOWTO: Enable tjw's WWW download in Linux.
« 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!

rasz_pl

  • Guest
HOWTO: Enable tjw's WWW download in Linux.
« Reply #1 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.

tuple

  • Posts: 833
  • Turrets: +97/-80
HOWTO: Enable tjw's WWW download in Linux.
« Reply #2 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, 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 :)

Confess

  • Posts: 237
  • Turrets: +25/-15
    • http://sstcentral.com
HOWTO: Enable tjw's WWW download in Linux.
« Reply #3 on: November 28, 2006, 01:45:01 pm »
SST is currently using the WWW download, ras.
know that I myself cannot do anything, that I will fall, and that I am a sinful man, but I know that I can do ANYTHING through God Almighty, whom strengthens me.

rasz_pl

  • Guest
HOWTO: Enable tjw's WWW download in Linux.
« Reply #4 on: November 28, 2006, 01:58:54 pm »
Quote from: "rasz_pl"
there are NO SERVERS with WWW Download set up :/


except two
:)

Thorn

  • Guest
HOWTO: Enable tjw's WWW download in Linux.
« Reply #5 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.

khalsa

  • Administrator
  • Posts: 597
  • Turrets: +187/-132
    • http://www.mercenariesguild.net
HOWTO: Enable tjw's WWW download in Linux.
« Reply #6 on: November 28, 2006, 04:54:13 pm »
Don't forget }MG{ Central!
}MG{ Mercenariesguild
ਮਨੁ ਜੀਤੇ ਜਗੁ ਜੀਤਿਆ

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
HOWTO: Enable tjw's WWW download in Linux.
« Reply #7 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).
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
HOWTO: Enable tjw's WWW download in Linux.
« Reply #8 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.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
HOWTO: Enable tjw's WWW download in Linux.
« Reply #9 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.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

next_ghost

  • Posts: 892
  • Turrets: +3/-6
HOWTO: Enable tjw's WWW download in Linux.
« Reply #10 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.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
HOWTO: Enable tjw's WWW download in Linux.
« Reply #11 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:
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

vcxzet

  • Guest
HOWTO: Enable tjw's WWW download in Linux.
« Reply #12 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?

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
HOWTO: Enable tjw's WWW download in Linux.
« Reply #13 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).
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

gatewarstrek

  • Posts: 2
  • Turrets: +0/-0
HOWTO: Enable tjw's WWW download in Linux.
« Reply #14 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