Browse forums
Score : 122
[Tutorial] How to install Dofus on Ubuntu
By Selvia April 28, 2012, 16:35:40With 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.
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.
Respond to this thread
Also, did you upgrade your previous version of Ubuntu or did a clean install? Because that could explain it (not sure though)
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).
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
And thanks for the sticky recommendation, always feels good when someone says that
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.
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).
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.
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?
For 64 bits Ubuntu you need to install 32 bits version of libjpeg62:
sudo apt-get install libjpeg62:i386
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).
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.
Thanks for putting this guide together!
My friend with 64-system was unable to install it, though..
At least it works for some of us!
@GimmeANickNameDarnI: Simply run the UpLauncher, like mentioned in step 7.
@bardswithoutborders: You're welcome
@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).
If a mod could sticky this...
UPDATE: Check his second link if you are still having issues (fixed mine)