在Linux终端玩转bastet俄罗斯方块小游戏

一、bastet小游戏介绍

1.1 bastet小游戏简介

Bastet 是 Linux 的俄罗斯方块,在Linux终端命令行下,我们可以使用一个命令快速安装该游戏。我们可以选择普通版或困难版本来挑战自己。

1.2 项目预览

  • 可以看下部署好的项目预览

在Linux终端玩转bastet俄罗斯方块小游戏

二、本次实践介绍

2.1 本地环境规划

本次实践为个人测试环境,操作系统版本为centos7.6。

hostname IP地址 操作系统版本 内核版本
ubuntu-001 192.168.3.251 Ubuntu 22.04.1 LTS 5.15.0-105-generic

2.2 本次实践介绍

1.本次实践环境为个人测试环境,生产环境请谨慎; 2.在ubuntu环境下安装bastet俄罗斯方块小游戏。

三、检查系统镜像源

3.1 检查系统镜像源

对于Ubuntu 22.04.1 LTS版本,将镜像源配置文件/etc/apt/sources.list修改内容如下。

deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse  deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse  deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse  # deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse # deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse  deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse  

查看本地的sources.list文件。

root@ubuntu-001:~# cat /etc/apt/sources.list deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse  deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse  deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse  # deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse # deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse  deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse 

3.2 更新软件列表

执行以下命令,更新软件列包表。

root@ubuntu-001:~# apt update Hit:1 https://mirrors.aliyun.com/ubuntu jammy InRelease Hit:2 https://mirrors.aliyun.com/ubuntu jammy-security InRelease Hit:3 https://mirrors.aliyun.com/ubuntu jammy-updates InRelease Hit:4 https://mirrors.aliyun.com/ubuntu jammy-backports InRelease Hit:5 https://mirrors.aliyun.com/docker-ce/linux/ubuntu jammy InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 116 packages can be upgraded. Run 'apt list --upgradable' to see them. 

3.3 查询软件

查询软件源中是否有bastet软件包,我们可以看到之前已经安装过的bastet软件。

root@ubuntu-001:~# apt search  bastet Sorting... Done Full Text Search... Done bastet/jammy,now 0.43-7 amd64 [installed]   ncurses Tetris clone with a bastard algorithm 

四、安装bastet小游戏

4.1 安装bastet

可以使用apt命令一键安装bastet俄罗斯方块小游戏,这里由于是测试环境,使用root账号,其他非root环境下,命令前面加上sudo

apt install  -y bastet 
在Linux终端玩转bastet俄罗斯方块小游戏

4.2 启动bastet游戏

直接在命令行输入bastet命令,自动启动bastet游戏。

bastet 
在Linux终端玩转bastet俄罗斯方块小游戏

五、试玩小游戏

5.1 选择难度

点击菜单栏,选择游戏难度,可以选择普通和困难模式。

在Linux终端玩转bastet俄罗斯方块小游戏

5.2 开始游戏

选择模式后,按回车键确认即可开始游戏。

在Linux终端玩转bastet俄罗斯方块小游戏


原文始发于微信公众号(运维江湖客):在Linux终端玩转bastet俄罗斯方块小游戏

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/287037.html

(0)
土豆大侠的头像土豆大侠

相关推荐

发表回复

登录后才能评论
极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!