It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
/!\: This thread is not kept up-to-date anymore, please go to the following one to get the latest links and instructions, or for any kind of feedback on the scripts:
[./play.it] Install The Witcher 2 on Linux

-----

Hello fellow Debian users, Ubuntu lovers and Mint freaks!

Here you’ll find scripts allowing you to turn your .tar.gz archive of The Witcher 2 into .deb packages, allowing to install them through DPKG and remove them through any APT front-end (apt-get, synaptic, gnome-software, etc.).

First thing first, there you can download the scripts:

English version (GOG release 1.2.0.7):
dead link removed

French version (GOG release 1.2.0.7):
dead link removed

Choose the language you feel most comfortable with, but reste assured it won’t mess with you game’s language. It’s only the language used by the script itself.

I tried to make these scripts as easy to use as possible:
1. Download the script and put in a same directory the script and the GOG .tar.gz archive (gog_the_witcher_2_assassins_of_kings_1.2.0.7.tar.gz);
2. Install the script’s dependencies. To run, this script only need the 'fakeroot' package to be installed on your system. You can install it by running the following command as root (or via sudo):

apt-get install fakeroot
3. Open a terminal in the directory containing the script then run it via the following command:

sh ./play-the-witcher-2_gog-1.2.0.7.sh
 
That’s it! The script will take a couple minutes to work its magic, and end by giving you the commands to launch as root (or via sudo) to install the freshly built .deb packages.

-----

advanced usage:
https://www.gog.com/forum/the_witcher_2/linux_turn_your_targz_archive_into_a_deb_package/post2

-----

Any return, be it a bug report, a suggestion, a request, a demand for clarification, an insult or a simple "thank you" is welcome in this thread. Demands for similar scripts for other GOG games should be sent directly via the chat.

I hope you’ll enjoy these scripts as much as I enjoy writing and tweaking them ;)
Have fun, and see you in Vizima!

-----

Here you go for more supported games!

-----

2015-06-20: Script updated to work with the 1.2.0.7 GOG release (release 3 build 20150306204412)
Added an English version of the script

2015-04-08: fixed broken checksum method
Thanks to yohh for pointing it out.
Post edited February 17, 2019 by vv221
If you renamed your GOG archive, the script will not find it automatically. You’ll have to give it the path to the archive as an argument. This can allow you to run the script without the need to have the archive in the same directory.
Here is an example:
sh ./play-the-witcher-2_gog-1.2.0.7.sh "/home/geralt/GOG games/The Witcher 2.tar.gz"
 
You can set different options while running this script to define some of its behaviours. Here comes the list of these options, with the default option in bold characters.

CHECKSUM=md5,none
By default, the script will check the archive integrity through md5sum. If you want to bypass this check for any reason, set this option to none while launching the script:
CHECKSUM=none sh ./play-the-witcher-2_gog-1.2.0.7.sh
 
COMPRESSION=none,gzip,xz
By default, the final .deb package is built without compression to speed up the building and installation. You can use DPKG built-in gzip or xz compression by setting this option to the adequate value:
COMPRESSION=xz sh ./play-the-witcher-2_gog-1.2.0.7.sh
 
PREFIX=/usr/local,any absolute path
By default, the .deb package will install the game data under /usr/local. If you want to install it under another path, you can by setting this option to the relevant path. Only an absolute path can be defined this way.
PREFIX=/opt/witcher2 sh ./play-the-witcher-2_gog-1.2.0.7.sh
Post edited June 20, 2015 by vv221