Tremulous Forum

General => Troubleshooting => Topic started by: 1337 1 on December 03, 2007, 09:33:29 am

Title: Tremulous on Ubuntu
Post by: 1337 1 on December 03, 2007, 09:33:29 am
I've been running ubuntu Gutsy, and I'm trying to get tremulous to install, but it says:
"Could not open the file /home/daniel/Desktop/tre…s-1.1.0-installer.x86.run.
gedit has not been able to detect the character coding.
Please check that you are not trying to open a binary file.
Select a character coding from the menu and try again."

Yes, I do have video drivers installed.  But that shouldn't have any impact on the installation process.  Any idea what I'm meant to do: trem doesn't come up on the add/remove apps menu, so that's out.
Is there a seperate installer for ubuntu, or should I just be installing the standard linux file from the frontpage?
Title: Re: Tremulous on Ubuntu
Post by: asc on December 03, 2007, 10:34:05 am
Have you enabled the extra repositories? It's in the 'multiverse'.

System->administration->synaptic package manager->settings->repositories and check the 'multiverse' box. Close the window and hit reload in synaptic. Then it should be available via search->tremulous, the add/remove programs dialog or 'apt-get install tremulous' in a terminal.
Title: Re: Tremulous on Ubuntu
Post by: tuple on December 03, 2007, 12:25:59 pm
I would recommend that you not install through the repositories.  There are issues, like its almost impossible (or totally impossible) to update the binary after that.

Gedit should not be trying to open it, the file is a binary but I think it does not have the correct permissions.

Open a terminal,
chmod +x Desktop/tremulous-1.1.0-installer.x86.run
sudo Desktop/tremulous-1.1.0-installer.x86.run
follow the instructions.
Title: Re: Tremulous on Ubuntu
Post by: Caveman on December 03, 2007, 01:22:09 pm
In addition to tuple's manual, please make sure you have nothing running that has the name "compiz" in it. Neither WM nor decoration.
Title: Re: Tremulous on Ubuntu
Post by: Ryan on December 03, 2007, 03:44:52 pm
It's definitely not impossible to use the backport client on ubuntu, just replace the repository-installed executable with tjw's like any other os. I have done this, and it worked fine.
Title: Re: Tremulous on Ubuntu
Post by: Caveman on December 03, 2007, 04:55:29 pm
*sigh*
Ryan, what makes you think that an Ubuntu-Newb that does not even know about chmod would be able to replace the executable?
Title: Re: Tremulous on Ubuntu
Post by: Ryan on December 03, 2007, 05:01:30 pm
*sigh*
Ryan, what makes you think that an Ubuntu-Newb that does not even know about chmod would be able to replace the executable?

My post was not advising 1337 1, it was addressing tuple's claim for those interested. Should have quoted it I guess, forgive me.

its almost impossible (or totally impossible) to update the binary after that.
It's definitely not impossible to use the backport client on ubuntu
Title: Re: Tremulous on Ubuntu
Post by: 1337 1 on December 04, 2007, 05:28:59 am
Thanks all: it works now ^^

EDIT:
I take that back: I can't enable autodownloads, through either the console or the menu.  It claims it can't write "autoconfig.cfg" or something like that.  Any tips?
Title: Re: Tremulous on Ubuntu
Post by: ODDity on December 04, 2007, 10:39:50 am
Yeh. Youve installed it (as per advice above) as root which is incorrect.

As such the .tremulous directory where all the configuration is stored is in /root instead of your home directory, which you have write access to as a user.

You need to reinstall the program as a normal user, simply by running the executable again without the "sudo" bit.

Just run
Code: [Select]
./tremulous-1.1.0-installer.x86.runFrom where the trem binary is

Hope that helps.


EDIT! Or.... if youre feeling funky you could probably just copy the directories from /root to your home folder and run the exec from there.

The directories you need in your home folder are which ever folder you installed tremulous in (usually ~/tremulous), and ~/.tremulous (note the "." at the beginning indicating a hidden folder)
Title: Re: Tremulous on Ubuntu
Post by: 1337 1 on December 05, 2007, 06:44:20 am
it's not seeming that straightforward: I can't find the trem files in root or anything, and the code method claims I haven't got the permissions to write.  :-\
Title: Re: Tremulous on Ubuntu
Post by: Caveman on December 05, 2007, 07:06:05 am
Sorry, but if you lack the basics, you either need to read the manuals or get back to windows.
We just cant take every linux-newb by the hand.
Title: Re: Tremulous on Ubuntu
Post by: Death On Ice on December 07, 2007, 05:54:02 am
1337 1: Your skills do not stand up for your name.
Title: Re: Tremulous on Ubuntu
Post by: Superpie on December 07, 2007, 01:35:10 pm
seta 1337 "0"
Title: Re: Tremulous on Ubuntu
Post by: Death On Ice on December 09, 2007, 04:56:08 am
Lol'd :)
Title: Re: Tremulous on Ubuntu
Post by: tuple on December 11, 2007, 12:42:14 pm
you don't need to reinstall it as your own user.
don't use sudo before it, open a command line console, and copy/paste:

/usr/local/games/tremulous/tremulous.x86

it should also be in your "start" bar, or the foot bar, or whaterver the hell gnome calls it.  Under games.

The first time you run it, it will create the ~/.tremulous directory which holds your configs.  ~ signifying your home directory.

Make sure you are running it as the same user you logged in as, do not use sudo or su to run the game.  If all else fails, open a console and type
Code: [Select]
id && ls -l /home/and paste that here.


ODDity, installing it this way installs it into /usr/local/games/tremulous for multi-user use.  It is perfectly usable as an install method, and I have done this many, many times.  New files/additional files will be written to the users ~/.tremulous directory, the way it should be.  As we don't know if this individual has brothers/sisters who will fight over the use of the computer, and I don't care to try to revert this if that is the case ;) , it seems a prudent way to go about it.