OpenTTD on UBUNTU?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
andy_blah
Tycoon
Tycoon
Posts: 1725
Joined: 01 Nov 2005 14:27

OpenTTD on UBUNTU?

Post 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-<
Join us today at Sunshine Team ORG.
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post 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
hansen
Engineer
Engineer
Posts: 5
Joined: 15 Mar 2006 15:32

Re: OpenTTD on UBUNTU?

Post 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!
andy_blah
Tycoon
Tycoon
Posts: 1725
Joined: 01 Nov 2005 14:27

Post 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 :)
Join us today at Sunshine Team ORG.
andy_blah
Tycoon
Tycoon
Posts: 1725
Joined: 01 Nov 2005 14:27

Post 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?
Join us today at Sunshine Team ORG.
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Post 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.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Vloris
Engineer
Engineer
Posts: 108
Joined: 13 Jan 2007 22:39
Location: Enschede, The Netherlands
Contact:

Post 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
hansen
Engineer
Engineer
Posts: 5
Joined: 15 Mar 2006 15:32

Post 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
Sacro
Tycoon
Tycoon
Posts: 1145
Joined: 18 Jun 2005 21:08
Location: Here
Contact:

Post 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...
We Am De Best

Host of ThroughTheTube site
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post 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.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
iNVERTED
Route Supervisor
Route Supervisor
Posts: 387
Joined: 24 Apr 2005 21:21
Location: Torquay, England
Contact:

Post 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.
User avatar
jonty-comp
Tycoon
Tycoon
Posts: 2542
Joined: 22 Oct 2005 16:05
Location: Chesterfield, England
Contact:

Post 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. :]
hansen
Engineer
Engineer
Posts: 5
Joined: 15 Mar 2006 15:32

Post 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
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Post 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.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
Sacro
Tycoon
Tycoon
Posts: 1145
Joined: 18 Jun 2005 21:08
Location: Here
Contact:

Post 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...
We Am De Best

Host of ThroughTheTube site
hansen
Engineer
Engineer
Posts: 5
Joined: 15 Mar 2006 15:32

Post 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
phil88
Transport Coordinator
Transport Coordinator
Posts: 267
Joined: 25 Jan 2007 23:26

Post 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).
- Phil
andy_blah
Tycoon
Tycoon
Posts: 1725
Joined: 01 Nov 2005 14:27

Post by andy_blah »

Thanks to all of you for helping me, now I have OTTD working :D
Join us today at Sunshine Team ORG.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 9 guests