用 GameHub 集中管理你 Linux 上的所有游戏
游戏 GameHub
你在 Linux 上是怎么[玩游戏的呢](https://itsfoss.com/linux-gaming-guide/)? 让我猜猜，要不就是从软件中心直接安装，要不就选 Steam、GOG、Humble Bundle 等平台，对吧？但是，如果你有多个游戏启动器和客户端，又要如何管理呢？好吧，对我来说这简直令人头疼 —— 这也是我发现 [GameHub](https://tkashkin.tk/projects/gamehub/) 这个应用之后，感到非常高兴的原因。


GameHub 是为 Linux 发行版设计的一个桌面应用，它能让你“集中管理你的所有游戏”。这听起来很有趣，是不是？下面让我来具体说明一下。


![](/data/attachment/album/201910/27/000309ippisos4osgpwsss.png)


### 集中管理不同平台 Linux 游戏的 GameHub


让我们看看，对玩家来说，让 GameHub 成为一个[不可或缺的 Linux 应用](https://itsfoss.com/essential-linux-applications/)的功能，都有哪些。


#### Steam、GOG & Humble Bundle 支持


![](/data/attachment/album/201910/27/000317qlfqr5fuzsvyjbr1.png)


它支持 Steam、[GOG](https://www.gog.com/) 和 [Humble Bundle](https://www.humblebundle.com/monthly?partner=itsfoss) 账户整合。你可以登录你的 GameHub 账号，从而在你的库管理器中管理所有游戏。


对我来说，我在 Steam 上有很多游戏，Humble Bundle 上也有一些。我不能确保它支持所有平台，但可以确信的是，主流平台游戏是没有问题的。


#### 支持原生游戏


![](/data/attachment/album/201910/27/000505juudl833dkcabrdu.png)


[有很多网站专门推荐 Linux 游戏，并支持下载](https://itsfoss.com/download-linux-games/)。你可以通过下载安装包，或者添加可执行文件，从而管理原生游戏。


可惜的是，现在无法在 GameHub 内搜索 Linux 游戏。如上图所示，你需要分别下载游戏，随后再将其添加到 GameHub 中。


#### 模拟器支持


用模拟器，你可以在 [Linux 上玩复古游戏](https://itsfoss.com/play-retro-games-linux/)。正如上图所示，你可以添加模拟器（并导入模拟的镜像）。


你可以在 [RetroArch](https://www.retroarch.com/) 查看已有的模拟器，但也能根据需求添加自定义模拟器。


#### 用户界面


![Gamehub 界面选项](/data/attachment/album/201910/27/000334qk168kv8ddhs1651.png)


当然，用户体验很重要。因此，探究下用户界面都有些什么，也很有必要。


我个人觉得，这一应用很容易使用，并且黑色主题是一个加分项。


#### 手柄支持


如果你习惯在 Linux 系统上用手柄玩游戏 —— 你可以轻松在设置里添加，启用或禁用它。


#### 多个数据提供商


因为它需要获取你的游戏信息（或元数据），也意味着它需要一个数据源。你可以看到下图列出的所有数据源。


![Data Providers Gamehub](/data/attachment/album/201910/27/000340h4l33oskpalld4ql.png)


这里你什么也不用做 —— 但如果你使用的是 steam 之外的其他平台，你需要为 [IDGB 生成一个 API 密钥](https://www.igdb.com/api)。


我建议只有出现 GameHub 中的提示/通知，或有些游戏在 GameHub 上没有任何描述/图片/状态时，再这么做。


#### 兼容性选项


![](/data/attachment/album/201910/27/000345xq04r6ag2qy40r62.png)


你有不支持在 Linux 上运行的游戏吗？


不用担心，GameHub 上提供了多种兼容工具，如 Wine/Proton，你可以利用它们来玩游戏。


我们无法确定具体哪个兼容工具适用于你 —— 所以你需要自己亲自测试。然而，对许多游戏玩家来说，这的确是个很有用的功能。


### GameHub: 如何安装它呢？


![](/data/attachment/album/201910/27/000346xggt64tuxuraqtup.jpg)


首先，你可以直接在软件中心或者应用商店内搜索。 它在 “Pop!\_Shop” 之下。所以，它在绝大多数官方源中都能找到。


如果你在这些地方都没有找到，你可以手动添加源，并从终端上安装它，你需要输入以下命令：



```
sudo add-apt-repository ppa:tkashkin/gamehub
sudo apt update
sudo apt install com.github.tkashkin.gamehub
```

如果你遇到了 “add-apt-repository command not found” 这个错误，你可以看看，[add-apt-repository not found error.](https://itsfoss.com/add-apt-repository-command-not-found/)这篇文章，它能帮你解决这一问题。


这里还提供 AppImage 和 FlatPak 版本。 在[官网](https://tkashkin.tk/projects/gamehub/) 上，你可以针对找到其他 Linux 发行版的安装手册。


同时，你还可以从它的 [GitHub 页面](https://github.com/tkashkin/GameHub/releases)下载之前版本的安装包.


[GameHub](https://tkashkin.tk/projects/gamehub/)


### 如何在 GameHub 上管理你的游戏？


在启动程序后，你可以将自己的 Steam/GOG/Humble Bundle 账号添加进来。


对于 Steam，你需要在 Linux 发行版上安装 Steam 客户端。一旦安装完成，你可以轻松将账号中的游戏导入 GameHub。


![](/data/attachment/album/201910/27/000348qt4pzsgpolbaa4bm.png)


对于 GOG & Humble Bundle，登录后，就能直接在 GameHub 上管理游戏了。


如果你想添加模拟器或者本地安装文件，点击窗口右上角的 “+” 按钮进行添加。


### 如何安装游戏？


对于 Steam 游戏，它会自动启动 Steam 客户端，从而下载/安装游戏（我希望之后安装游戏，可以不用启动 Steam！）


![](/data/attachment/album/201910/27/000351p8trtkzt7ttct2rs.png)


但对于 GOG/Humble Bundle，登录后就能直接、下载安装游戏。必要的话，对于那些不支持在 Linux 上运行的游戏，你可以使用兼容工具。


无论是模拟器游戏，还是本地游戏，只需添加安装包或导入模拟器镜像就可以了。这里没什么其他步骤要做。


### 注意


GameHub 是相当灵活的一个集中游戏管理应用。 用户界面和选项设置也相当直观。


你之前是否使用过这一应用呢？如果有，请在评论里写下你的感受。


而且，如果你想尝试一些与此功能相似的工具/应用，请务必告诉我们。




---


via: <https://itsfoss.com/gamehub/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[wenwensnow](https://github.com/wenwensnow) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
How do you [play games on Linux](https://itsfoss.com/linux-gaming-guide/)? Let me guess. Either you install games from the software center or from Steam or from GOG or Humble Bundle etc, right? But, how do you plan to manage all your games from multiple launchers and clients? Well, that sounds like a hassle to me – which is why I was delighted when I come across [GameHub](https://github.com/tkashkin/GameHub).

GameHub is a desktop application for Linux distributions that lets you manage “All your games in one place”. That sounds interesting, isn’t it? Let me share more details about it.

![Gamehub Home 1](https://itsfoss.com/content/images/wordpress/2019/10/gamehub-home-1.png)

## GameHub Features to manage Linux games from different sources at one place

Let’s see all the features that make GameHub one of the [essential Linux applications](https://itsfoss.com/essential-linux-applications/), specially for gamers.

### Steam, GOG & Humble Bundle Support

![Gamehub Platform Support](https://itsfoss.com/content/images/wordpress/2019/10/gamehub-platform-support.png)

It supports Steam, [GOG](https://www.gog.com/), and [Humble Bundle](https://itsfoss.com/go/humblebundle/) account integration. You can sign in to your account to see manager your library from within GameHub.

For my usage, I have a lot of games on Steam and a couple on Humble Bundle. I can’t speak for all – but it is safe to assume that these are the major platforms one would want to have.

### Native Game Support

![Gamehub Native Installers](https://itsfoss.com/content/images/wordpress/2019/10/gamehub-native-installers.png)

There are several [websites where you can find and download Linux games](https://itsfoss.com/download-linux-games/). You can also add native Linux games by downloading their installers or add the executable file.

Unfortunately, there’s no easy way of finding out games for Linux from within GameHub at the moment. So, you will have to download them separately and add it to the GameHub as shown in the image above.

### Emulator Support

With emulators, you can [play retro games on Linux](https://itsfoss.com/play-retro-games-linux/). As you can observe in the image above, you also get the ability to add emulators (and import emulated images).

You can see [RetroArch](https://www.retroarch.com/) listed already but you can also add custom emulators as per your requirements.

### User Interface

![Gamehub Appearance](https://itsfoss.com/content/images/wordpress/2019/10/gamehub-appearance.png)

Of course, the user experience matters. Hence, it is important to take a look at its user interface and what it offers.

To me, I felt it very easy to use and the presence of a dark theme is a bonus.

### Controller Support

If you are comfortable using a controller with your Linux system to play games – you can easily add it, enable or disable it from the settings.

### Multiple Data Providers

Just because it fetches the information (or metadata) of your games, it needs a source for that. You can see all the sources listed in the image below.

![Data Providers Gamehub](https://itsfoss.com/content/images/wordpress/2019/10/data-providers-gamehub.png)

You don’t have to do anything here – but if you are using anything else other than steam as your platform, you can generate an [API key for IDGB.](https://www.igdb.com/api)

I shall recommend you to do that only if you observe a prompt/notice within GameHub or if you have some games that do not have any description/pictures/stats on GameHub.

### Compatibility Layer

![Gamehub Windows Game](https://itsfoss.com/content/images/wordpress/2019/10/gamehub-windows-game.png?fit=800%2C569&ssl=1)

Do you have a game that does not support Linux?

You do not have to worry. GameHub offers multiple compatibility layers like Wine/Proton which you can use to get the game installed in order to make it playable.

We can’t be really sure on what works for you – so you have to test it yourself for that matter. Nevertheless, it is an important feature that could come handy for a lot of gamers.

## How Do You Manage Your Games in GameHub?

You get the option to add Steam/GOG/Humble Bundle account right after you launch it.

For Steam, you need to have the Steam client installed on your Linux distro. Once, you have it, you can easily link the games to GameHub.

![Gamehub Library](https://itsfoss.com/content/images/wordpress/2019/10/gamehub-library.png)

For GOG & Humble Bundle, you can directly sign in using your credentials to get your games organized in GameHub.

If you are adding an emulated image or a native installer, you can always do that by clicking on the “**+**” button that you observe in the top-right corner of the window.

## How Do You Install Games?

For Steam games, it automatically launches the Steam client to download/install (I wish if this was possible without launching Steam!)

![Gamehub Linux Install](https://itsfoss.com/content/images/wordpress/2019/10/gamehub-compatibility-layer.png)

But, for GOG/Humble Bundle, you can directly start downloading to install the games after signing in. If necessary, you can utilize the compatibility layer for non-native Linux games.

In either case, if you want to install an emulated game or a native game – just add the installer or import the emulated image. There’s nothing more to it.

## GameHub: How do you install it?

![Gamehub Install](https://itsfoss.com/content/images/wordpress/2019/10/gamehub-install.jpg)

To start with, you can just search for it in your software center or app center. It is available in the **Pop!_Shop**. So, it can be found in most of the official repositories.

If you don’t find it there, you can always add the repository and install it via terminal by typing these commands:

sudo add-apt-repository ppa:tkashkin/gamehub sudo apt update sudo apt install com.github.tkashkin.gamehub

In case you encounter “**add-apt-repository command not found**” error, you can take a look at our article to help fix [add-apt-repository not found error.](https://itsfoss.com/add-apt-repository-command-not-found/)

There are also AppImage and Flatpak versions available. You can find installation instructions for other Linux distros on its [official webpage](https://tkashkin.tk/projects/gamehub/).

Also, you have the option to download pre-release packages from its [GitHub page](https://github.com/tkashkin/GameHub/releases).

**Wrapping Up**

GameHub is a pretty neat application as a unified library for all your games. The user interface is intuitive and so are the options.

Have you had the chance it test it out before? If yes, let us know your experience in the comments down below.

Also, feel free to tell us about some of your favorite tools/applications similar to this which you would want us to try.