2015-12-23 08:38:01 +08:00
|
|
|
|
Linux/Unix桌面趣事:显示器里的猫和老鼠
|
2015-12-15 10:46:54 +08:00
|
|
|
|
================================================================================
|
2015-12-23 08:38:01 +08:00
|
|
|
|
Oneko 是一个有趣的应用。它会把你的光标变成一只老鼠,并在后面创建一个可爱的小猫,并且始终追逐着老鼠光标。单词“neko”在日语中的意思是老鼠。它最初是一位日本人开发的 Macintosh 桌面附件。
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
### 安装 oneko ###
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
试下下面的命令:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
$ sudo apt-get install oneko
|
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
示例输出:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
[sudo] password for vivek:
|
|
|
|
|
Reading package lists... Done
|
|
|
|
|
Building dependency tree
|
|
|
|
|
Reading state information... Done
|
|
|
|
|
The following NEW packages will be installed:
|
|
|
|
|
oneko
|
|
|
|
|
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
|
|
|
|
|
Need to get 38.6 kB of archives.
|
|
|
|
|
After this operation, 168 kB of additional disk space will be used.
|
|
|
|
|
Get:1 http://debian.osuosl.org/debian/ squeeze/main oneko amd64 1.2.sakura.6-7 [38.6 kB]
|
|
|
|
|
Fetched 38.6 kB in 1s (25.9 kB/s)
|
|
|
|
|
Selecting previously deselected package oneko.
|
|
|
|
|
(Reading database ... 274152 files and directories currently installed.)
|
|
|
|
|
Unpacking oneko (from .../oneko_1.2.sakura.6-7_amd64.deb) ...
|
|
|
|
|
Processing triggers for menu ...
|
|
|
|
|
Processing triggers for man-db ...
|
|
|
|
|
Setting up oneko (1.2.sakura.6-7) ...
|
|
|
|
|
Processing triggers for menu ...
|
|
|
|
|
|
2015-12-23 08:38:01 +08:00
|
|
|
|
FreeBSD 用户输入下面的命令安装 oneko:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
# cd /usr/ports/games/oneko
|
|
|
|
|
# make install clean
|
|
|
|
|
|
2015-12-23 08:38:01 +08:00
|
|
|
|
### 我该如何使用 oneko? ###
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
输入下面的命令:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
$ oneko
|
|
|
|
|
|
2015-12-23 08:38:01 +08:00
|
|
|
|
你可以把猫变成 “tora-neko”,一只像白老虎条纹的猫:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
$ oneko -tora
|
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
### 不喜欢猫? ###
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
你可以用狗代替猫:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
$ oneko -dog
|
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
下面可以用樱花代替猫:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
$ oneko -sakura
|
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
用大道寺代替猫:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
$ oneko -tomoyo
|
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
### 查看相关媒体 ###
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
这个教程同样也有视频格式:
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
注:youtube 视频
|
|
|
|
|
<iframe width="596" height="335" frameborder="0" allowfullscreen="" src="http://www.youtube.com/embed/Nm3SkXThL0s"></iframe>
|
|
|
|
|
|
2015-12-23 08:38:01 +08:00
|
|
|
|
(Video.01: 示例 - 在 Linux 下安装和使用 oneko)
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
### 其他选项 ###
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-20 15:16:41 +08:00
|
|
|
|
你可以传入下面的选项
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-23 08:38:01 +08:00
|
|
|
|
1. **-tofocus**:让猫在获得焦点的窗口顶部奔跑。当获得焦点的窗口不在视野中时,猫像平常那样追逐老鼠。
|
2015-12-20 15:16:41 +08:00
|
|
|
|
2. **-position 坐标** :指定X和Y来调整猫相对老鼠的位置
|
|
|
|
|
3. **-rv**:将前景色和背景色对调
|
|
|
|
|
4. **-fg 颜色** : 前景色 (比如 oneko -dog -fg red)。
|
|
|
|
|
5. **-bg 颜色** : 背景色 (比如 oneko -dog -bg green)。
|
2015-12-23 08:38:01 +08:00
|
|
|
|
6. 查看 oneko 的手册获取更多信息。
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
via: http://www.cyberciti.biz/open-source/oneko-app-creates-cute-cat-chasing-around-your-mouse/
|
|
|
|
|
|
|
|
|
|
作者:Vivek Gite
|
2015-12-20 15:16:41 +08:00
|
|
|
|
译者:[geekpi](https://github.com/geekpi)
|
2015-12-23 08:38:01 +08:00
|
|
|
|
校对:[wxy](https://github.com/wxy)
|
2015-12-15 10:46:54 +08:00
|
|
|
|
|
2015-12-20 14:58:37 +08:00
|
|
|
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|