From 6d4b83d471ed9b473d7aa7a4260c50df36ac328b Mon Sep 17 00:00:00 2001 From: qhwdw <33189910+qhwdw@users.noreply.github.com> Date: Wed, 26 Sep 2018 12:13:48 +0800 Subject: [PATCH 1/4] Translating by qhwdw (#10351) --- ... of the Best Linux Educational Software and Games for Kids.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/tech/20180813 5 of the Best Linux Educational Software and Games for Kids.md b/sources/tech/20180813 5 of the Best Linux Educational Software and Games for Kids.md index f6013baab2..66850b2260 100644 --- a/sources/tech/20180813 5 of the Best Linux Educational Software and Games for Kids.md +++ b/sources/tech/20180813 5 of the Best Linux Educational Software and Games for Kids.md @@ -1,3 +1,4 @@ +Translating by qhwdw 5 of the Best Linux Educational Software and Games for Kids ====== From 9c982a4d75ee5612d522be463c93164bf336d6b4 Mon Sep 17 00:00:00 2001 From: Hank Chow <280630620@qq.com> Date: Wed, 26 Sep 2018 12:16:30 +0800 Subject: [PATCH 2/4] translated (#10352) --- ...icks that can save you time and trouble.md | 171 ------------------ ...icks that can save you time and trouble.md | 170 +++++++++++++++++ 2 files changed, 170 insertions(+), 171 deletions(-) delete mode 100644 sources/tech/20180917 Linux tricks that can save you time and trouble.md create mode 100644 translated/tech/20180917 Linux tricks that can save you time and trouble.md diff --git a/sources/tech/20180917 Linux tricks that can save you time and trouble.md b/sources/tech/20180917 Linux tricks that can save you time and trouble.md deleted file mode 100644 index 61fae6d4bc..0000000000 --- a/sources/tech/20180917 Linux tricks that can save you time and trouble.md +++ /dev/null @@ -1,171 +0,0 @@ -HankChow translating - -Linux tricks that can save you time and trouble -====== -Some command line tricks can make you even more productive on the Linux command line. - -![](https://images.idgesg.net/images/article/2018/09/boy-jumping-off-swing-100772498-large.jpg) - -Good Linux command line tricks don’t only save you time and trouble. They also help you remember and reuse complex commands, making it easier for you to focus on what you need to do, not how you should go about doing it. In this post, we’ll look at some handy command line tricks that you might come to appreciate. - -### Editing your commands - -When making changes to a command that you're about to run on the command line, you can move your cursor to the beginning or the end of the command line to facilitate your changes using the ^a (control key plus “a”) and ^e (control key plus “e”) sequences. - -You can also fix and rerun a previously entered command with an easy text substitution by putting your before and after strings between **^** characters -- as in ^before^after^. - -``` -$ eho hello world <== oops! - -Command 'eho' not found, did you mean: - - command 'echo' from deb coreutils - command 'who' from deb coreutils - -Try: sudo apt install - -$ ^e^ec^ <== replace text -echo hello world -hello world - -``` - -### Logging into a remote system with just its name - -If you log into other systems from the command line (I do this all the time), you might consider adding some aliases to your system to supply the details. Your alias can provide the username you want to use (which may or may not be the same as your username on your local system) and the identity of the remote server. Use an alias server_name=’ssh -v -l username IP-address' type of command like this: - -``` -$ alias butterfly=”ssh -v -l jdoe 192.168.0.11” -``` - -You can use the system name in place of the IP address if it’s listed in your /etc/hosts file or available through your DNS server. - -And remember you can list your aliases with the **alias** command. - -``` -$ alias -alias butterfly='ssh -v -l jdoe 192.168.0.11' -alias c='clear' -alias egrep='egrep --color=auto' -alias fgrep='fgrep --color=auto' -alias grep='grep --color=auto' -alias l='ls -CF' -alias la='ls -A' -alias list_repos='grep ^[^#] /etc/apt/sources.list /etc/apt/sources.list.d/*' -alias ll='ls -alF' -alias ls='ls --color=auto' -alias show_dimensions='xdpyinfo | grep '\''dimensions:'\''' -``` - -It's good practice to test new aliases and then add them to your ~/.bashrc or similar file to be sure they will be available any time you log in. - -### Freezing and thawing out your terminal window - -The ^s (control key plus “s”) sequence will stop a terminal from providing output by running an XOFF (transmit off) flow control. This affects PuTTY sessions, as well as terminal windows on your desktop. Sometimes typed by mistake, however, the way to make the terminal window responsive again is to enter ^q (control key plus “q”). The only real trick here is remembering ^q since you aren't very likely run into this situation very often. - -### Repeating commands - -Linux provides many ways to reuse commands. The key to command reuse is your history buffer and the commands it collects for you. The easiest way to repeat a command is to type an ! followed by the beginning letters of a recently used command. Another is to press the up-arrow on your keyboard until you see the command you want to reuse and then press enter. You can also display previously entered commands and then type ! followed by the number shown next to the command you want to reuse in the displayed command history entries. - -``` -!! <== repeat previous command -!ec <== repeat last command that started with "ec" -!76 <== repeat command #76 from command history -``` - -### Watching a log file for updates - -Commands such as tail -f /var/log/syslog will show you lines as they are being added to the specified log file — very useful if you are waiting for some particular activity or want to track what’s happening right now. The command will show the end of the file and then additional lines as they are added. - -``` -$ tail -f /var/log/auth.log -Sep 17 09:41:01 fly CRON[8071]: pam_unix(cron:session): session closed for user smmsp -Sep 17 09:45:01 fly CRON[8115]: pam_unix(cron:session): session opened for user root -Sep 17 09:45:01 fly CRON[8115]: pam_unix(cron:session): session closed for user root -Sep 17 09:47:00 fly sshd[8124]: Accepted password for shs from 192.168.0.22 port 47792 -Sep 17 09:47:00 fly sshd[8124]: pam_unix(sshd:session): session opened for user shs by -Sep 17 09:47:00 fly systemd-logind[776]: New session 215 of user shs. -Sep 17 09:55:01 fly CRON[8208]: pam_unix(cron:session): session opened for user root -Sep 17 09:55:01 fly CRON[8208]: pam_unix(cron:session): session closed for user root - <== waits for additional lines to be added -``` - -### Asking for help - -For most Linux commands, you can enter the name of the command followed by the option **\--help** to get some fairly succinct information on what the command does and how to use it. Less extensive than the man command, the --help option often tells you just what you need to know without expanding on all of the options available. - -``` -$ mkdir --help -Usage: mkdir [OPTION]... DIRECTORY... -Create the DIRECTORY(ies), if they do not already exist. - -Mandatory arguments to long options are mandatory for short options too. - -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask - -p, --parents no error if existing, make parent directories as needed - -v, --verbose print a message for each created directory - -Z set SELinux security context of each created directory - to the default type - --context[=CTX] like -Z, or if CTX is specified then set the SELinux - or SMACK security context to CTX - --help display this help and exit - --version output version information and exit - -GNU coreutils online help: -Full documentation at: -or available locally via: info '(coreutils) mkdir invocation' -``` - -### Removing files with care - -To add a little caution to your use of the rm command, you can set it up with an alias that asks you to confirm your request to delete files before it goes ahead and deletes them. Some sysadmins make this the default. In that case, you might like the next option even more. - -``` -$ rm -i <== prompt for confirmation -``` - -### Turning off aliases - -You can always disable an alias interactively by using the unalias command. It doesn’t change the configuration of the alias in question; it just disables it until the next time you log in or source the file in which the alias is set up. - -``` -$ unalias rm -``` - -If the **rm -i** alias is set up as the default and you prefer to never have to provide confirmation before deleting files, you can put your **unalias** command in one of your startup files (e.g., ~/.bashrc). - -### Remembering to use sudo - -If you often forget to precede commands that only root can run with “sudo”, there are two things you can do. You can take advantage of your command history by using the “sudo !!” (use sudo to run your most recent command with sudo prepended to it), or you can turn some of these commands into aliases with the required "sudo" attached. - -``` -$ alias update=’sudo apt update’ -``` - -### More complex tricks - -Some useful command line tricks require a little more than a clever alias. An alias, after all, replaces a command, often inserting options so you don't have to enter them and allowing you to tack on additional information. If you want something more complex than an alias can manage, you can write a simple script or add a function to your .bashrc or other start-up file. The function below, for example, creates a directory and moves you into it. Once it's been set up, source your .bashrc or other file and you can use commands such as "md temp" to set up a directory and cd into it. - -``` -md () { mkdir -p "$@" && cd "$1"; } -``` - -### Wrap-up - -Working on the Linux command line remains one of the most productive and enjoyable ways to get work done on my Linux systems, but a group of command line tricks and clever aliases can make that experience even better. - -Join the Network World communities on [Facebook][1] and [LinkedIn][2] to comment on topics that are top of mind. - --------------------------------------------------------------------------------- - -via: https://www.networkworld.com/article/3305811/linux/linux-tricks-that-even-you-can-love.html - -作者:[Sandra Henry-Stocker][a] -选题:[lujun9972](https://github.com/lujun9972) -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://www.networkworld.com/author/Sandra-Henry_Stocker/ -[1]: https://www.facebook.com/NetworkWorld/ -[2]: https://www.linkedin.com/company/network-world diff --git a/translated/tech/20180917 Linux tricks that can save you time and trouble.md b/translated/tech/20180917 Linux tricks that can save you time and trouble.md new file mode 100644 index 0000000000..1dbc81bfbd --- /dev/null +++ b/translated/tech/20180917 Linux tricks that can save you time and trouble.md @@ -0,0 +1,170 @@ +让你提高效率的 Linux 技巧 +====== +想要在 Linux 命令行工作中提高效率,你需要使用一些技巧。 + +![](https://images.idgesg.net/images/article/2018/09/boy-jumping-off-swing-100772498-large.jpg) + +巧妙的 Linux 命令行技巧能让你节省时间、避免出错,还能让你记住和复用各种复杂的命令,专注在需要做的事情本身,而不是做事的方式。以下介绍一些好用的命令行技巧。 + +### 命令编辑 + +如果要对一个已输入的命令进行修改,可以使用 ^a(ctrl + a)或 ^e(ctrl + e)将光标快速移动到命令的开头或命令的末尾。 + +还可以使用 `^` 字符实现对上一个命令的文本替换并重新执行命令,例如 `^before^after^` 相当于把上一个命令中的 `before` 替换为 `after` 然后重新执行一次。 + +``` +$ eho hello world <== 错误的命令 + +Command 'eho' not found, did you mean: + + command 'echo' from deb coreutils + command 'who' from deb coreutils + +Try: sudo apt install + +$ ^e^ec^ <== 替换 +echo hello world +hello world + +``` + +### 使用远程机器的名称登录到机器上 + +如果使用命令行登录其它机器上,可以考虑添加别名。在别名中,可以填入需要登录的用户名(与本地系统上的用户名可能相同,也可能不同)以及远程机器的登录信息。例如使用 `server_name ='ssh -v -l username IP-address'` 这样的别名命令: + +``` +$ alias butterfly=”ssh -v -l jdoe 192.168.0.11” +``` + +也可以通过在 `/etc/hosts` 文件中添加记录或者在 DNS 服务器中加入解析记录来把 IP 地址替换成易记的机器名称。 + +执行 `alias` 命令可以列出机器上已有的别名。 + +``` +$ alias +alias butterfly='ssh -v -l jdoe 192.168.0.11' +alias c='clear' +alias egrep='egrep --color=auto' +alias fgrep='fgrep --color=auto' +alias grep='grep --color=auto' +alias l='ls -CF' +alias la='ls -A' +alias list_repos='grep ^[^#] /etc/apt/sources.list /etc/apt/sources.list.d/*' +alias ll='ls -alF' +alias ls='ls --color=auto' +alias show_dimensions='xdpyinfo | grep '\''dimensions:'\''' +``` + +只要将新的别名添加到 `~/.bashrc` 或类似的文件中,就可以让别名在每次登录后都能立即生效。 + +### 冻结、解冻终端界面 + +^s(ctrl + s)将通过执行流量控制命令 XOFF 来停止终端输出内容,这会对 PuTTY 会话和桌面终端窗口产生影响。如果误输入了这个命令,可以使用 ^q(ctrl + q)让终端重新响应。所以只需要记住^q 这个组合键就可以了,毕竟这种情况并不多见。 + +### 复用命令 + +Linux 提供了很多让用户复用命令的方法,其核心是通过历史缓冲区收集执行过的命令。复用命令的最简单方法是输入 `!` 然后接最近使用过的命令的开头字母;当然也可以按键盘上的向上箭头,直到看到要复用的命令,然后按 Enter 键。还可以先使用 `history` 显示命令历史,然后输入 `!` 后面再接命令历史记录中需要复用的命令旁边的数字。 + +``` +!! <== 复用上一条命令 +!ec <== 复用上一条以 “ec” 开头的命令 +!76 <== 复用命令历史中的 76 号命令 +``` + +### 查看日志文件并动态显示更新内容 + +使用形如 `tail -f /var/log/syslog` 的命令可以查看指定的日志文件,并动态显示文件中增加的内容,需要监控向日志文件中追加内容的的事件时相当有用。这个命令会输出文件内容的末尾部分,并逐渐显示新增的内容。 + +``` +$ tail -f /var/log/auth.log +Sep 17 09:41:01 fly CRON[8071]: pam_unix(cron:session): session closed for user smmsp +Sep 17 09:45:01 fly CRON[8115]: pam_unix(cron:session): session opened for user root +Sep 17 09:45:01 fly CRON[8115]: pam_unix(cron:session): session closed for user root +Sep 17 09:47:00 fly sshd[8124]: Accepted password for shs from 192.168.0.22 port 47792 +Sep 17 09:47:00 fly sshd[8124]: pam_unix(sshd:session): session opened for user shs by +Sep 17 09:47:00 fly systemd-logind[776]: New session 215 of user shs. +Sep 17 09:55:01 fly CRON[8208]: pam_unix(cron:session): session opened for user root +Sep 17 09:55:01 fly CRON[8208]: pam_unix(cron:session): session closed for user root + <== 等待显示追加的内容 +``` + +### 寻求帮助 + +对于大多数 Linux 命令,都可以通过在输入命令后加上选项 `--help` 来获得这个命令的作用、用法以及它的一些相关信息。除了 `man` 命令之外, `--help` 选项可以让你在不使用所有扩展选项的情况下获取到所需要的内容。 + +``` +$ mkdir --help +Usage: mkdir [OPTION]... DIRECTORY... +Create the DIRECTORY(ies), if they do not already exist. + +Mandatory arguments to long options are mandatory for short options too. + -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask + -p, --parents no error if existing, make parent directories as needed + -v, --verbose print a message for each created directory + -Z set SELinux security context of each created directory + to the default type + --context[=CTX] like -Z, or if CTX is specified then set the SELinux + or SMACK security context to CTX + --help display this help and exit + --version output version information and exit + +GNU coreutils online help: +Full documentation at: +or available locally via: info '(coreutils) mkdir invocation' +``` + +### 谨慎删除文件 + +如果要谨慎使用 `rm` 命令,可以为它设置一个别名,在删除文件之前需要进行确认才能删除。有些系统管理员会默认使用这个别名,对于这种情况,你可能需要看看下一个技巧。 + +``` +$ rm -i <== 请求确认 +``` + +### 关闭别名 + +你可以使用 `unalias` 命令以交互方式禁用别名。它不会更改别名的配置,而仅仅是暂时禁用,直到下次登录或重新设置了这一个别名才会重新生效。 + +``` +$ unalias rm +``` + +如果已经将 `rm -i` 默认设置为 `rm` 的别名,但你希望在删除文件之前不必进行确认,则可以将 `unalias` 命令放在一个启动文件(例如 ~/.bashrc)中。 + +### 使用 sudo + +如果你经常在只有 root 用户才能执行的命令前忘记使用 `sudo`,这里有两个方法可以解决。一是利用命令历史记录,可以使用 `sudo !!`(使用 `!!` 来运行最近的命令,并在前面添加 `sudo`)来重复执行,二是设置一些附加了所需 `sudo` 的命令别名。 + +``` +$ alias update=’sudo apt update’ +``` + +### 更复杂的技巧 + +有时命令行技巧并不仅仅是一个别名。毕竟,别名能帮你做的只有替换命令以及增加一些命令参数,节省了输入的时间。但如果需要比别名更复杂功能,可以通过编写脚本、向 `.bashrc` 或其他启动文件添加函数来实现。例如,下面这个函数会在创建一个目录后进入到这个目录下。在设置完毕后,执行 `source .bashrc`,就可以使用 `md temp` 这样的命令来创建目录立即进入这个目录下。 + +``` +md () { mkdir -p "$@" && cd "$1"; } +``` + +### 总结 + +使用 Linux 命令行是在 Linux 系统上工作最有效也最有趣的方法,但配合命令行技巧和巧妙的别名可以让你获得更好的体验。 + +加入 [Facebook][1] 和 [LinkedIn][2] 上的 Network World 社区可以和我们一起讨论。 + +-------------------------------------------------------------------------------- + +via: https://www.networkworld.com/article/3305811/linux/linux-tricks-that-even-you-can-love.html + +作者:[Sandra Henry-Stocker][a] +选题:[lujun9972](https://github.com/lujun9972) +译者:[HankChow](https://github.com/HankChow) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://www.networkworld.com/author/Sandra-Henry_Stocker/ +[1]: https://www.facebook.com/NetworkWorld/ +[2]: https://www.linkedin.com/company/network-world + From 5fe1a903760a28633a343e7b56f634b2269fd12a Mon Sep 17 00:00:00 2001 From: LuMing <784315443@qq.com> Date: Wed, 26 Sep 2018 12:17:18 +0800 Subject: [PATCH 3/4] LuuMing translating (#10353) --- ...How to Use the Netplan Network Configuration Tool on Linux.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/tech/20180907 How to Use the Netplan Network Configuration Tool on Linux.md b/sources/tech/20180907 How to Use the Netplan Network Configuration Tool on Linux.md index 9ba21a367f..a9d3eb0895 100644 --- a/sources/tech/20180907 How to Use the Netplan Network Configuration Tool on Linux.md +++ b/sources/tech/20180907 How to Use the Netplan Network Configuration Tool on Linux.md @@ -1,3 +1,4 @@ +LuuMing translating How to Use the Netplan Network Configuration Tool on Linux ====== From 24b0867ee36f12df2aadfa08fa65fa95350217e7 Mon Sep 17 00:00:00 2001 From: hopefully2333 <787016457@qq.com> Date: Wed, 26 Sep 2018 12:20:36 +0800 Subject: [PATCH 4/4] translated over (#10354) * translated over translated over * Update 20180824 Steam Makes it Easier to Play Windows Games on Linux.md * translated over translated over --- ...t Easier to Play Windows Games on Linux.md | 74 ------------------- ...t Easier to Play Windows Games on Linux.md | 73 ++++++++++++++++++ 2 files changed, 73 insertions(+), 74 deletions(-) delete mode 100644 sources/tech/20180824 Steam Makes it Easier to Play Windows Games on Linux.md create mode 100644 translated/tech/20180824 Steam Makes it Easier to Play Windows Games on Linux.md diff --git a/sources/tech/20180824 Steam Makes it Easier to Play Windows Games on Linux.md b/sources/tech/20180824 Steam Makes it Easier to Play Windows Games on Linux.md deleted file mode 100644 index 73080089bf..0000000000 --- a/sources/tech/20180824 Steam Makes it Easier to Play Windows Games on Linux.md +++ /dev/null @@ -1,74 +0,0 @@ -translated by hopefully2333 - -Steam Makes it Easier to Play Windows Games on Linux -====== -![Steam Wallpaper][1] - -It’s no secret that the [Linux gaming][2] library offers only a fraction of what the Windows library offers. In fact, many people wouldn’t even consider [switching to Linux][3] simply because most of the games they want to play aren’t available on the platform. - -At the time of writing this article, Linux has just over 5,000 games available on Steam compared to the library’s almost 27,000 total games. Now, 5,000 games may be a lot, but it isn’t 27,000 games, that’s for sure. - -And though almost every new indie game seems to launch with a Linux release, we are still left without a way to play many [Triple-A][4] titles. For me, though there are many titles I would love the opportunity to play, this has never been a make-or-break problem since almost all of my favorite titles are available on Linux since I primarily play indie and [retro games][5] anyway. - -### Meet Proton: a WINE Fork by Steam - -Now, that problem is a thing of the past since this week Valve [announced][6] a new update to Steam Play that adds a forked version of Wine to the Linux and Mac Steam clients called Proton. Yes, the tool is open-source, and Valve has made the source code available on [Github][7]. The feature is still in beta though, so you must opt into the beta Steam client in order to take advantage of this functionality. - -#### With proton, more Windows games are available for Linux on Steam - -What does that actually mean for us Linux users? In short, it means that both Linux and Mac computers can now play all 27,000 of those games without needing to configure something like [PlayOnLinux][8] or [Lutris][9] to do so! Which, let me tell you, can be quite the headache at times. - -The more complicated answer to this is that it sounds too good to be true for a reason. Though, in theory, you can play literally every Windows game on Linux this way, there is only a short list of games that are officially supported at launch, including DOOM, Final Fantasy VI, Tekken 7, Star Wars: Battlefront 2, and several more. - -#### You can play all Windows games on Linux (in theory) - -Though the list only has about 30 games thus far, you can force enable Steam to install and play any game through Proton by marking the “Enable Steam Play for all titles” checkbox. But don’t get your hopes too high. They do not guarantee the stability and performance you may be hoping for, so keep your expectations reasonable. - -![Steam Play][10] - -#### Experiencing Proton: Not as bad as I expected - -For example, I installed a few moderately taxing games to put Proton through its paces. One of which was The Elder Scrolls IV: Oblivion, and in the two hours I played the game, it only crashed once, and it was almost immediately after an autosave point during the tutorial. - -I have an Nvidia Gtx 1050 Ti, so I was able to play the game at 1080p with high settings, and I didn’t see a single problem outside of that one crash. The only negative feedback I really have is that the framerate was not nearly as high as it would have been if it was a native game. I got above 60 frames 90% of the time, but I admit it could have been better. - -Every other game that I have installed and launched has also worked flawlessly, granted I haven’t played any of them for an extended amount of time yet. Some games I installed include The Forest, Dead Rising 4, H1Z1, and Assassin’s Creed II (can you tell I like horror games?). - -#### Why is Steam (still) betting on Linux? - -Now, this is all fine and dandy, but why did this happen? Why would Valve spend the time, money, and resources needed to implement something like this? I like to think they did so because they value the Linux community, but if I am honest, I don’t believe we had anything to do with it. - -If I had to put money on it, I would say Valve has developed Proton because they haven’t given up on [Steam machines][11] yet. And since [Steam OS][12] is running on Linux, it is in their best interest financially to invest in something like this. The more games available on Steam OS, the more people might be willing to buy a Steam Machine. - -Maybe I am wrong, but I bet this means we will see a new wave of Steam machines coming in the not-so-distant future. Maybe we will see them in one year, or perhaps we won’t see them for another five, who knows! - -Either way, all I know is that I am beyond excited to finally play the games from my Steam library that I have slowly accumulated over the years from all of the Humble Bundles, promo codes, and random times I bought a game on sale just in case I wanted to try to get it running in Lutris. - -#### Excited for more gaming on Linux? - -What do you think? Are you excited about this, or are you afraid fewer developers will create native Linux games because there is almost no need to now? Does Valve love the Linux community, or do they love money? Let us know what you think in the comment section below, and check back in for more FOSS content like this. - --------------------------------------------------------------------------------- - -via: https://itsfoss.com/steam-play-proton/ - -作者:[Phillip Prado][a] -选题:[lujun9972](https://github.com/lujun9972) -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]:https://itsfoss.com/author/phillip/ -[1]:https://4bds6hergc-flywheel.netdna-ssl.com/wp-content/uploads/2018/08/steam-wallpaper.jpeg -[2]:https://itsfoss.com/linux-gaming-guide/ -[3]:https://itsfoss.com/reasons-switch-linux-windows-xp/ -[4]:https://itsfoss.com/triplea-game-review/ -[5]:https://itsfoss.com/play-retro-games-linux/ -[6]:https://steamcommunity.com/games/221410 -[7]:https://github.com/ValveSoftware/Proton/ -[8]:https://www.playonlinux.com/en/ -[9]:https://lutris.net/ -[10]:https://4bds6hergc-flywheel.netdna-ssl.com/wp-content/uploads/2018/08/SteamProton.jpg -[11]:https://store.steampowered.com/sale/steam_machines -[12]:https://itsfoss.com/valve-annouces-linux-based-gaming-operating-system-steamos/ diff --git a/translated/tech/20180824 Steam Makes it Easier to Play Windows Games on Linux.md b/translated/tech/20180824 Steam Makes it Easier to Play Windows Games on Linux.md new file mode 100644 index 0000000000..75c42b3ab3 --- /dev/null +++ b/translated/tech/20180824 Steam Makes it Easier to Play Windows Games on Linux.md @@ -0,0 +1,73 @@ + +steam 让我们在 Linux 上玩 Windows 的游戏更加容易 +====== +![Steam Wallpaper][1] + +总所周知,Linux 游戏库中的游戏只有 Windows 游戏库中的一部分,实际上,许多人甚至都不会考虑将操作系统转换为 Linux,原因很简单,因为他们喜欢的游戏,大多数都不能在这个平台上运行。 + +在撰写本文时,steam 上已有超过 5000 种游戏可以在 Linux 上运行,而 steam 上的游戏总数已经接近 27000 种了。现在 5000 种游戏可能看起来很多,但还没有达到 27000 种,确实没有。 + +虽然几乎所有的新的独立游戏都是在 Linux 中推出的,但我们仍然无法在这上面玩很多的 3A 大作。对我而言,虽然这其中有很多游戏我都很希望能有机会玩,但这从来都不是一个非黑即白的问题。因为我主要是玩独立游戏和复古游戏,所以几乎所有我喜欢的游戏都可以在 Linux 系统上运行。 + +### 认识 Proton,Steam 的一次 WINE 分叉。 + +现在,这个问题已经成为过去式了,因为本周 Valve 宣布要对 Steam Play 进行一次更新,此次更新会将一个名为 Proton 的分叉版本的 Wine 添加到 Linux 和 Mac 的客户端中。是的,这个工具是开源的,Valve 已经在 GitHub 上开源了源代码,但该功能仍然处于测试阶段,所以你必须使用测试版的 Steam 客户端才能使用这项功能。 + +#### 使用 proton ,可以在 Linux 系统上使用 Steam 运行更多的 Windows 上的游戏。 + +这对我们这些 Linux 用户来说,实际上意味着什么?简单来说,这意味着我们可以在 Linux 和 Mac 这两种操作系统的电脑上运行全部 27000 种游戏,而无需配置像 PlayOnLinux 或 Lutris 这样的服务。我要告诉你的是,配置这些东西有时候会非常让人头疼。 + +对此更为复杂的答案是,某种原因听起来非常美好。虽然在理论上,你可以用这种方式在 Linux 上玩所有的 Windows 平台上的游戏。但只有一少部分游戏在推出时会正式支持 Linux。这少部分游戏包括 DOOM,最终幻想 VI,铁拳 7,星球大战:前线 2,和其他几个。 + +#### 你可以在 Linux 上玩所有的 Windows 平台的游戏(理论上) + +虽然目前该列表只有大约 30 个游戏,你可以点击“为所有游戏使用 Steam play 进行运行”复选框来强制使用 Steam 的 Proton 来安装和运行任意游戏。但你最好不要有太高的期待,它们的稳定性和性能表现不一定有你希望的那么好,所以请把期望值压低一点。 + +![Steam Play][10] + +#### 体验 Proton,没有我想的那么烂。 + +例如,我安装了一些中等价格的游戏,使用 Proton 来进行安装。其中一个是上古卷轴 4:湮没,在我玩这个游戏的两个小时里,它只崩溃了一次,而且几乎是紧跟在游戏教程的自动保存点之后。 + +我有一块英伟达 Gtx 1050 Ti 的显卡。所以我可以使用 1080P 的高配置来玩这个游戏。而且我没有遇到除了这次崩溃之外的任何问题。我唯一真正感到不爽的只有它的帧数没有原本的高。在 90% 的时间里,游戏的帧数都在 60 帧以上,但我知道它的帧数应该能更高。 + +我安装和发布的其他所有游戏都运行得很完美,虽然我还没有较长时间地玩过它们中的任何一个。我安装的游戏中包括森林,丧尸围城 4,H1Z1,和刺客信条 2.(你能说我这是喜欢恐怖游戏吗?)。 + +#### 为什么 Steam(仍然)要下注在 Linux 上? + +现在,一切都很好,这件事为什么会发生呢?为什么 Valve 要花费时间,金钱和资源来做这样的事?我倾向于认为,他们这样做是因为他们懂得 Linux 社区的价值,但是如果要我老实地说,我不相信我们和它有任何的关系。 + +如果我一定要在这上面花钱,我想说 Valve 开发了 Proton,因为他们还没有放弃 Steam 机器。因为 Steam OS 是基于 Linux 的发行版,在这类东西上面投资可以获取最大的利润,Steam OS 上可用的游戏越多,就会有更多的人愿意购买 Steam 的机器。 + +可能我是错的,但是我敢打赌啊,我们会在不远的未来看到新一批的 Steam 机器。可能我们会在一年内看到它们,也有可能我们再等五年都见不到,谁知道呢! + +无论哪种方式,我所知道的是,我终于能兴奋地从我的 Steam 游戏库里玩游戏了。多年来我通过所有的收藏包,游戏促销,和不定时地买一个贱卖的游戏来以防万一,我想去尝试让它在 Lutris 中运行。 + +#### 为 Linux 上越来越多的游戏而激动? + +你怎么看?你对此感到激动吗?或者说你会害怕只有很少的开发者会开发 Linux 平台上的游戏,因为现在几乎没有需求?Valve 喜欢 Linux 社区,还是说他们喜欢钱?请在下面的评论区告诉我们您的想法,然后重新搜索来查看更多类似这样的开源软件方面的文章。 + +-------------------------------------------------------------------------------- + +via: https://itsfoss.com/steam-play-proton/ + +作者:[Phillip Prado][a] +选题:[lujun9972](https://github.com/lujun9972) +译者:[hopefully2333](https://github.com/hopefully2333) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]:https://itsfoss.com/author/phillip/ +[1]:https://4bds6hergc-flywheel.netdna-ssl.com/wp-content/uploads/2018/08/steam-wallpaper.jpeg +[2]:https://itsfoss.com/linux-gaming-guide/ +[3]:https://itsfoss.com/reasons-switch-linux-windows-xp/ +[4]:https://itsfoss.com/triplea-game-review/ +[5]:https://itsfoss.com/play-retro-games-linux/ +[6]:https://steamcommunity.com/games/221410 +[7]:https://github.com/ValveSoftware/Proton/ +[8]:https://www.playonlinux.com/en/ +[9]:https://lutris.net/ +[10]:https://4bds6hergc-flywheel.netdna-ssl.com/wp-content/uploads/2018/08/SteamProton.jpg +[11]:https://store.steampowered.com/sale/steam_machines +[12]:https://itsfoss.com/valve-annouces-linux-based-gaming-operating-system-steamos/