Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in
/home/cvxvgjca/public_html/www.kenming.idv.tw/wp-content/plugins/wp-syntax/wp-syntax.php on line
380
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in
/home/cvxvgjca/public_html/www.kenming.idv.tw/wp-content/plugins/wp-syntax/wp-syntax.php on line
380
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in
/home/cvxvgjca/public_html/www.kenming.idv.tw/wp-content/plugins/wp-syntax/wp-syntax.php on line
380
Linux 有些有趣的小遊戲,也可以作些基本的安裝與設定,就可以移轉到樹莓派的 Raspbian OS 內。例如有些使用 perl 開發的終端模式的 ASCII 動態文字秀,只要安裝好所需要的模組即可以執行展示。
這裡介紹個很有趣的 ASCII-based 的水族箱,它是以 perl 語言開發,並使用到 Term-Animation 模組 (module)。所以為了要能在樹莓派內執行這個程式,就需要額外再安裝所需要的 Library 與 perl 模組:
$ sudo apt-get install libcurses-perl
$ cd /tmp
$ wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.6.tar.gz
$ tar -zxvf Term-Animation-2.6.tar.gz
$ cd Term-Animation-2.6/
$ perl Makefile.PL && make && make test
$ sudo make install |
$ sudo apt-get install libcurses-perl
$ cd /tmp
$ wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.6.tar.gz
$ tar -zxvf Term-Animation-2.6.tar.gz
$ cd Term-Animation-2.6/
$ perl Makefile.PL && make && make test
$ sudo make install
然後再安裝這個 ASCIIQuarium:
$ cd /tmp
$ wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
$ tar -zxvf asciiquarium.tar.gz
$ cd asciiquarium_1.0/
$ sudo cp asciiquarium /usr/local/bin
$ sudo chmod 0755 /usr/local/bin/asciiquarium |
$ cd /tmp
$ wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
$ tar -zxvf asciiquarium.tar.gz
$ cd asciiquarium_1.0/
$ sudo cp asciiquarium /usr/local/bin
$ sudo chmod 0755 /usr/local/bin/asciiquarium
好啦,在終端機下執行:
$ /usr/local/bin/asciiquarium |
$ /usr/local/bin/asciiquarium
就可以展示利用 ASCII 字符所創建的五彩繽紛、魚兒還會游動的海底世界囉 (R 鍵重新執行;Q 鍵結束)。

※ 延伸參考
o Linux / UNIX Desktop Fun: Terminal ASCII Aquarium。