FR EN DE ES IT PT
Browse forums
Score : 122

[Tutorial] How to install Dofus on Ubuntu

By Selvia April 28, 2012, 16:35:40
With Ubuntu 12.04 been released recently (Thursday 26 april 2012) and having switched to Ubuntu myself, I thought about writing a tutorial about installing Dofus due to having had some small problems myself installing & running Dofus. For references where I got my information from, see sources on the bottom of this post.

First of all, do keep in mind I used a fresh install (of the 32-bit version), so if you installed any of the applications I mention here and did an upgrade, some things might not apply to you. Also, you'll need to have an admin-account for the majority of these steps to work. Furthermore, Ubuntu might ask at certain steps to enter your password to confirm you actually want to execute/install the files (this is a security feature from Ubuntu so that unauthorized people can't install certain files onto your computer).

1. Download Adobe AIR runtime (not SDK) here (I personally used 2.6, which at the time of writing is the most recent supported Linux version).
2. Download Dofus (from the official website).

3. If you're using a 64-bit system, be sure to do the following BEFORE trying to install Adobe AIR (users with a 32-bit system can skip this step):
[code]sudo apt-get install ia32-libs[/code] NOTE: If you're uncertain which version you have, you can check this in system-options -> details.

4. Make BOTH files executable.
This can be done by right click on the file, select properties and go to the rights tab or by using the following in the terminal (while in the folder where you put the files in):
[code]sudo chmod +x AdobeAIRInstaller.bin
sudo chmod +x DofusInstall.run[/code]
5. Install Adobe AIR:
[code]sudo ./AdobeAIRInstaller.bin[/code] If you get an error saying that Adobe AIR is missing gnome-keyring or KDE Wallet, you can fix this by entering the following in the terminal (32-bit):
[code]sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0[/code] For 64-bit systems you'll have to do the following:
[code]sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0[/code]
6. For 32-bit systems, execute the following command in the terminal (this will install a library so that UpLauncher will run, because otherwise you might get an error saying that it can't find libjpeg.so.62):
[code]sudo apt-get install libjpeg62[/code]If you have a 64-bit system, you'll need to add ":i386" (this is because Dofus is a 32-bit executable and therefore the 64-bit version of libjpeg.so.62 won't work), so:[code]sudo apt-get install libjpeg62:i386[/code]This might also be the reason nothing happens when you click the Dofus-icon on your Desktop if you haven't done this step.

7. Install Dofus (by double-clicking the icon) and follow the instructions.

8. Run Dofus (UpLauncher) and let it download all the updates.

9. Enjoy playing Dofus.

OPTIONAL: Add a desktop entry on the unity desktop as explained by Organis.

If you still encounter problems after doing all these steps, go with your terminal to [directory]/Dofus/share/ and type the following:
[code]ldd UpLauncher[/code] This will allow you to see the dependancies of Dofus and if you're missing any of them (keep in mind it's LDD and not IDD).

IMPORTANT: When playing Dofus, do keep in mind to start the game through the UpLauncher. When launching directly (so without the UpLauncher), you might not have any audio (from Dofus).

NOTE: Though I haven't tested it personally (and therefore can't guarantee anything), this method probably also work on 64-bit (as can be seen by posts made by others below).

Sources:
libjpeg.so.62 on ubuntuforums.org
liberiangeek.net about how to install Adobe AIR on Ubuntu 12.04
askubuntu.com about libjpeg.so.62 for 64-bit systems
manual for ldd command line usage

Special thanks:
Death-of-Rats -> For providing the libjpeg62 fix for 64-bit systems.
Dustpuppy (and others who have mentioned it as well) -> For providing a fix to install Adobe AIR on 64-bit systems.
5
Reactions 31
Score : 8317
I did not had problems installing Dofus in 12.04, I hope I will not have problems playing it either tongue 
0
Score : 122
I'll keep my fingers crossed that you'll have sound this time. If you don't got sound though, don't forget to try starting Dofus through the UpLauncher to see if that makes any difference (even if it shouldn't matter) smile

Also, did you upgrade your previous version of Ubuntu or did a clean install? Because that could explain it (not sure though) tongue

Nevertheless, it's good to hear you didn't have any problems with installing Dofus (because trying all kinds of fixes in the hope you'll get Dofus/Adobe AIR working isn't always that fun).
0
Score : 8317
I mean i had problems with default installation way...but with your way....no problems smile

and yes i have sound ^^

awesome thread that it should get sticked

clean install...exams are close, and I dont want to have bad marks tongue ... So I deleted everything ..made a new smooth peacefull installation..bye bye windows..Thought I installed windows a bit after..then installed ubuntu again xD (can not resist...to cod2)
0
Score : 122
I had to personally figure out how to fix each problem (that is... look on the internet for possible solutions and try them out till I found one that worked), so it's good to hear other people find this tutorial useful and can even confirm it works for them biggrin

And thanks for the sticky recommendation, always feels good when someone says that smile

Also, I can fully understand what you mean. Though I use Linux for things I need to do (such as programming), due to few games actually supporting Linux, Windows sometimes stays tempting

P.S. Added that Dofus should be run through the UpLauncher (for sound), so if you do have sound when launching Dofus without the UpLauncher (see my post here), do please tell.
0
Score : 4449
ironically, i have had zero problems installing dofus onto linux. first installation was on a completely fresh 9.x platform, had some of the library issues above, and fixed those pretty quickly. second time was on 10.x (again a freshly installed platform), and had absolutely zero problems. even now running on 11.x (as an upgrade), i've got no issues. as far as sound? you cannot and will not find a way to get it without the launcher running concurrently. its simple dependency. the sound engine requires the launcher. not much to do to get around it.
0
Score : 122
I'm glad to hear you had no problems yourself. However, some people do get problems and in those cases a tutorial can be useful. Instead of having to figure out yourself how to fix it, you can look if there's a tutorial covering your issue (which is the exact reason I created this tutorial).

Also, I thought myself too that the UpLauncher is simply required if you want to have sound (see my post here), though it's never a bad thing to check if other people are noticing the same thing on their own systems (so it isn't your system/drivers/etc. causing it).
0
Score : 4449
even on windows platforms, if you do not leave the launcher running, the sound engine will not launch, run, or stay running at all. the sound engine's dependency on the launcher is far too strong to get sound any other way. granted, it could be a function of simplicity as i've seen flash programs instantly bloat in size the moment you add sound, even at low quality.

its only when you dont get sound while the launcher AND sound engine processes are running that there are problems you should look for/solve.
0
Score : 2
Thanks for the help! Although I'm stuck after following all steps; nothing happens when I click on Dofus (even when I've installed libjpeg). Ubuntu 12.04 64bit.
0
Score : 3
I'm having problems too(Ubuntu 12.04 64bits)

The problem is UpLauncher - libjeg62

Even after i installed libjeg62, UpLacuher still don't find...

So i use:

ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so.62 /usr/lib/libjpeg.so.62

But now this error occours:

error while loading shared libraries: libjpeg.so.62: wrong ELF class: ELFCLASS64

Any sugestion?
0
Score : 2
Hello,
For 64 bits Ubuntu you need to install 32 bits version of libjpeg62:

sudo apt-get install libjpeg62:i386
 
0
Score : 122
Like Death-of-Rats says, you'll need to install the 32-bit version of libjpeg62 (this is because Dofus is a 32-bit executable and can't use the 64-bit version of libjpeg62).

Also, thank you Death-of-Rats for mentioning the fix. I hope you don't mind that I added it to the walkthrough as well (with a special thanks for you mentioning the fix).
0
Score : 70
Thank you so much for this thread!!! I recently installed linux on my windows machine for security reasons. And I couldn't get dofus to work. Thanks again! smile 
0
Score : 122
You're welcome smile

Keep in mind though that using an older version of Adobe AIR (or older software in general) might increase your security risks. This is due to the fact that security updates made after version 2.6 (the latest supported version for Linux) aren't available for Linux.
0
Score : 618
On an Ubuntu 12.04 64-bit system I had to install ia32-libs too, before I could get it to work. I think the AIR installer needed a 32-bit version of libgtk2.
Thanks for putting this guide together!
0
Score : 385
I got everything downloaded now how do i update the game? :s
0
Score : 4
Yaaay! It appears to be working. Thank you so much for this tutorial! I agree that it should get sticky.
0
Score : -11
It worked! Thank you very much!
My friend with 64-system was unable to install it, though..
At least it works for some of us!
0
Score : 122
@DustPuppy: You're welcome & thanks for the info regarding ia32-libs. If more people are having the exact same issue (needing to install ia32-libs), I'll add a note to it in the tutorial.

@GimmeANickNameDarnI: Simply run the UpLauncher, like mentioned in step 7.

@bardswithoutborders: You're welcome smile

@mori-ann: Good to know it works for you. About your friend: Has he checked for other library dependencies of Dofus/Adobe AIR that he might still be missing (information about how to check dependencies is below step 8 & in source 4: Click here)? It might be that he needs to install more packages than just "libjpeg62:i386". If he finds more missing libraries, he simply needs to do the following (replacing "LIBRARYNAME" with the actual name of the library like he did with "libjpeg62:i386"):
[code]sudo apt-get install LIBRARYNAME[/code]
Also, another user posted that he needed to install ia32-libs on Ubuntu 64-bit, so maybe your friend could try this first and see if it fixes his problem (see quote below for more info).
DustPuppy|2012-06-26 04:32:17
On an Ubuntu 12.04 64-bit system I had to install ia32-libs too, before I could get it to work. I think the AIR installer needed a 32-bit version of libgtk2.
Thanks for putting this guide together!
 
0
Score : 9893
Awesome guide, now that this works (tested in VM) I'm thinking about dropping the dual boot on My PC (not on laptop though)

If a mod could sticky this...

UPDATE: Check his second link if you are still having issues (fixed mine)
0
Respond to this thread