Page 1 of 1

OpenTTD on UBUNTU?

Posted: 29 Mar 2007 12:01
by andy_blah
Well I am a n00b for UBUNTu so please explain me:
I got the OTTD package for UBUNTU from the OTTD page and I runned it, till here it is ok, the install finished but where have it installed OTTD?

Thanks,
>-Andy-<

Posted: 29 Mar 2007 12:11
by Wolf01
i simply downloaded the nightly build for linux i686 and placed it in my /home folder
after this i added music and data files and (after some changes like timidity and mouse wheel) added an alias to the desktop and started it with no problems

but i must say that i always use nightlies also on windows, and i don't know how linux install openttd, i simply done it like windows :P

Re: OpenTTD on UBUNTU?

Posted: 29 Mar 2007 13:18
by hansen
andy_blah wrote:Well I am a n00b for UBUNTu so please explain me:
I got the OTTD package for UBUNTU from the OTTD page and I runned it, till here it is ok, the install finished but where have it installed OTTD?

Thanks,
>-Andy-<
if i remember this right, you just have to open a console and write openttd there =D


sry for my bad english ! :D


edit:
hmm but the question you asked was where it is installed ... to find out you could try to search for a folder or file named openttd in ubuntus search function.

you can also check something like /usr/share/games/openttd

or /usr/local/share/games/openttd

or /usr/share/local/games/openttd

or /usr/games/openttd

LAST entry by rasmus

im not so good with the filesystem ^^

GL!

Posted: 29 Mar 2007 14:03
by andy_blah
Yes, thanks, I didn`t know I just have to type 'openttd' in the terminal to start OTTD XD, and thanks for providing me the list of possibile locations :)

Posted: 29 Mar 2007 14:31
by andy_blah
Sorry for double posting but how could I move the game from that path to where I want to and how could I add to it the files it needs, the same as I did in the Windows version?

Posted: 29 Mar 2007 18:32
by Zuu
If you install OpenTTD with the .deb-file you don't want to move it. The .deb file installs OpenTTD where all other programs are installed.=> in /usr/... What you want is to create an item in your program-menu for OpenTTD if you don't like to open the run-dialog or a terminal and type "openttd". If you can't or don't know how to add a menu item make a desktop shortcut.

I guess you run Gnome as that is ubuntu's default desktop. In that case I can not help you with how to make a menu-item or create a short-cut since that is far away from what I am using (wmii).

If you want to install it somewhere else, in you home directory for instance, you should grab the i686-version just as Wolf01 suggests.

Posted: 29 Mar 2007 19:08
by Vloris
If you installed the .deb, the game files are located somewhere in /usr/games if I recall correctly. You're own game files and newgrf's and so on can be put in your own openttd config-directory under ~/.openttd

Posted: 29 Mar 2007 22:00
by hansen
andy_blah wrote:Sorry for double posting but how could I move the game from that path to where I want to and how could I add to it the files it needs, the same as I did in the Windows version?
if you want to use your current installation instead of downloading the linux i686 (where can i find that btw?) you can (please dont kill me now, you kings of *nix)

1. copy the six needed files to your home directory (~/ttfiles/), or make them available somewere else in the filesystem

2. assuming usr/games/openttd is the path to the game: in a terminal, run some commands like this:

Code: Select all

cd /usr/games/
sudo chmod -R 777 openttd/
cd openttd/
mkdir data
sudo cp -R ~/ttfiles /data
I dont know if the security is compromised in some way by doing that second line. it sets owner, group, and others to read, write and execute stuff in that directory ...

Maybe its safer to create a group on your ubuntu system like "games" .. or edit the already existing one. Then only set owner and that group to allow this. Maybe ottd dont even need all those rights to run? can someone tell?
=D

lol the forum think im spamming .. am i? =D

Posted: 29 Mar 2007 22:11
by Sacro
andy_blah wrote:

Code: Select all

sudo chmod -R 777 openttd/
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!

chmod 777 should never be used lightly, and certainly not in this situation, it leaves the whole system open to security problems.
andy_blah wrote:

Code: Select all

sudo cp -R ~/ttfiles /data 
Why is this sudo needed? You just left the folder world writeable...

Posted: 30 Mar 2007 03:32
by DaleStan
/tmp should be 777. I think that's about it. Maybe /usr/tmp too, if it exists.
Sacro wrote:
andy_blah wrote:

Code: Select all

sudo cp -R ~/ttfiles /data 
Why is this sudo needed? You just left the folder world writeable...
Because Andy's copying to /data, not to data. Please don't ask me why this is a good idea.

Posted: 30 Mar 2007 07:11
by iNVERTED
1. Download the Linux source. Put it in something like /home/username/bin/openttd
2. Open a terminal.
3. cd /home/username/bin/openttd
4. ./configure
5. make
6. Copy the necessary TTD files into your OpenTTD data/ folder.
7. Make a launcher to the openttd binary on your desktop or panel if you want.
8. Click the launcher, or if you didn't make one, open the binary.


And that's it. Not hard, and you certainly don't need to mess around with /usr/wherever.

Posted: 30 Mar 2007 08:35
by jonty-comp
I think I got mine quite nicely sorted, I have OTTD in /usr/games/openttd and TTDPatch in /home/jonty/ttdp.
I keep all my grfs updated by downloading them to TTDPatch and then ln'ing them to /usr/games/openttd/data !
Works quite nicely for the trg* files too. :]

Posted: 30 Mar 2007 10:35
by hansen
i can see that my lack in skills in linux and english has started some interesting discussions in this thread =D

Now i wounder how much better it is to make a special group, like "games" (maybe it already exists?) and add read/write/exec permissions for that group in the /usr/game/openttd (or whatever path that ottd has created) and add your own user to that group? I think the most past of this can be done by some "clicky-clicky" with the mouse in the ubuntu environment instead of "tappering-tappering" on the keyboard for all the needs. This could be good for the (like me) noobs on ubuntu/linux systems.

yes no?

bratwurst

Posted: 30 Mar 2007 10:44
by XeryusTC
iNVERTED wrote:1. Download the Linux source. Put it in something like /home/username/bin/openttd
2. Open a terminal.
3. cd /home/username/bin/openttd
4. ./configure
5. make
6. Copy the necessary TTD files into your OpenTTD data/ folder.
7. Make a launcher to the openttd binary on your desktop or panel if you want.
8. Click the launcher, or if you didn't make one, open the binary.


And that's it. Not hard, and you certainly don't need to mess around with /usr/wherever.
Don't use white please, it is hard to read on the sub-silver skin.

Posted: 30 Mar 2007 13:32
by Sacro
DaleStan wrote: Because Andy's copying to /data, not to data. Please don't ask me why this is a good idea.
But that won't work... /data doesn't exist...

Posted: 30 Mar 2007 15:25
by hansen
Sacro wrote:
DaleStan wrote: Because Andy's copying to /data, not to data. Please don't ask me why this is a good idea.
But that won't work... /data doesn't exist...
this was just a misstype by me =D i meant the data folder in the openttd directory =D

Posted: 30 Mar 2007 15:57
by phil88
Step by step on installing the ubuntu/debian version:

1. Download and run the .deb file.
2. Once it's installed, open a terminal and run'
sudo nautilus ./
and enter your password
3. This will open up a GUI window that has root rights therefore, be careful what you do as any changes could totally mess up your system.
4. Browse to /usr/share/games/openttd/data
5. Copy the required game files from your transport tycoon folder or wherever you have the files.
6. Paste them into the root window /usr/share/games/openttd/data
7. Close the root window (don't leave it open longer than you have to).
8. You can run the game by typing openttd into a terminal, or, press Alt + F2 to bring up a run dialog box. Type in openttd and click run.

Or

Run alacarte (either from terminal, or in the Applications menu) and in the left-hand pane, browse to the games section. Click it and then go to File -> New Entry.

Give it the name "OpenTTD" or whatever you like, comment if you want, the command is "openttd" (without the quotes). Give it an icon if you feel like it and click OK.


Close alacarte and check the Applications -> Games menu. If it's not there, open up a terminal and run "killall gnome-panel" (no quotes) and it should be there after it's done reloading the panel.





You do not need to change the mode of any files/directories (chmod).

Posted: 30 Mar 2007 19:13
by andy_blah
Thanks to all of you for helping me, now I have OTTD working :D