If you are a gamer and a Linux user, you probably were delighted when GOG announced a few months ago that it will start proposing games for your favorite OS. If you have never heard of GOG before, I encourage you to check out their catalog of “good old games”, reasonably priced, DRM-free, and packed with goodies. However, if the Windows client for GOG existed for quite some time now, an official Linux version is nowhere to be seen. So if waiting for the official version is uncomfortable for you, an unofficial open source program named LGOGDownloader gives you access to your library from the command line.
Install LGOGDownloader on Linux
Install LGOGDownloader on Ubuntu or Debian
For Debian-based users, the official page recommends that you download the sources and do:
$ tar -xvzf lgogdownloader-2.17.tar.gz
$ cd lgogdownloader-2.17
$ make release
$ sudo make install
Install LGOGDownloader on Fedora
The credit for this build instruction goes to AM (in the comment below).
First, install prerequisite packages with yum.
Download source code of other required packages and lgogdownloader.
$ wget http://downloads.sourceforge.net/project/rhash/rhash/1.3.3/rhash-1.3.3-src.tar.gz
$ wget http://downloads.sourceforge.net/project/htmlcxx/htmlcxx/0.84/htmlcxx-0.84.tar.gz
Build and install rhash.
To add /usr/local/lib to your LD_PATH, append "/usr/local/lib" line to /etc/ld.so.conf, and run the following command.
Next, build and install htmlcxx.
htmlcxx source needs a fix with Fedora. After running the above command, when vi text editor opens up html/tree.h, add "#include <cstddef>" at line 53.
Now all dependencies are taken care of. Finally, let's compile and install lgogdownloader.
lgogdownloader's Makefile needs slight editing as well. When vi editor opens up Makefile in the above command, change "-I/usr/include/rhash" to "-I/path/to/rhash-1.3.3/librhash" at line 16. Once you finish editing Makefile, the rest of the step will install lgogdownloader.
Install LGOGDownloader on Arch Linux
If you are an Arch Linux user, an AUR package is waiting for you.
Usage of LGOGDownloader
Once the program is installed, you will need to identify yourself with the command:
Notice that the configuration file if you need it is at ~/.config/lgogdownloader/config.cfg
Once authenticated, you can list all the games in your library with:
Then download one with:
You will notice that lgogdownloader allows you to resume previously interrupted downloads, which is nice because typical game downloads are not small.
Like every respectable command line utility, you can add various options:
- --platform [number] to select your OS where 1 is for windows and 4 for Linux.
- --directory [destination] to download the installer in a particular directory.
- --language [number] for a particular language pack (check the manual pages for the number corresponding to your language).
- --limit-rate [speed] to limit the downloading rate at a particular speed.
As a side bonus, lgogdownloader also comes with the possibility to check for updates on the GOG website:
The result will list the number of forum and private messages you have received, as well as the number of updated games.
To conclude, lgogdownloader is pretty standard when it comes to command line utilities. I would even say that it is an epitome of clarity and coherence. It is true that we are far in term of features from the relatively recent Steam Linux client, but on the other hand, the official GOG windows client does not do much more than this unofficial Linux version. In other words lgogdownloader is a perfect replacement. I cannot wait to see more Linux compatible games on GOG, especially after their recent announcements to offer DRM free movies, with a thematic around video games. Hopefully we will see an update in the client for when movie catalog matches the game library.
What do you think of GOG? Would you use the unofficial Linux Client? Let us know in the comments.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!