クライアントコマンドを使うのだけどRaspberry Pi とかも狙っているのか armv6/armv7 もあるのが便利.
case "$(uname -s).$(uname -m)" in
Linux.x86_64) platform=linux-amd64;;
Linux.i?86) platform=linux-386;;
Linux.armv6l) platform=linux-arm;;
Linux.armv7l) platform=linux-arm;;
Darwin.x86_64) platform=darwin-amd64;;
Darwin.i?86) platform=darwin-386;;
*) echo "Sorry, there is no asciinema binary available for your platform. Try building from source." >&2; exit 1;;
esac
導入例
$ curl -sL https://asciinema.org/install > install
$ lv install
$ sh install
Downloading asciinema v0.9.9 for linux-arm...
######################################################################## 100.0%
Warning: you may be asked for administrator password to save the file in /usr/local/bin directory
Installing to /usr/local/bin/asciinema...
Success.
Start recording your terminal by running: asciinema rec
オプションは少ない
$ asciinema
usage: asciinema [-h] [-v] <command> [command-options]
Record and share your terminal sessions, the right way.
Commands:
rec Record terminal session
auth Assign local API token to asciinema.org account
Options:
-h, --help Display help message
-v, --version Display version information
Run "asciinema <command> -h" to see the options available for the given command.
認証
認証しなくても使える.未認証の時にUpしたものも認証後認証ユーザのものになった.
$ asciinema auth
Open the following URL in your browser to register your API token and assign any recorded asciicasts to your profile:
https://asciinema.org/connect/8025b685-d45e-4631-8dcf-xxxxxxxxxxxx
録画
rec option で録画できる.exit で録画終了で,その後 Enter でアップロード,Ctrl+c でキャンセル.
$ asciinema rec
~ Current terminal size is 178x49.
~ It may be too big to be properly replayed on smaller screens.
~ You can now resize it. Press <Enter> to start recording.
~ Asciicast recording started.
~ Hit Ctrl-D or type "exit" to finish.
pi@raspberrypi~ $
pi@raspberrypi~ $
pi@raspberrypi~ $ exit
~ Asciicast recording finished.
~ Press <Enter> to upload, <Ctrl-C> to cancel.
https://asciinema.org/a/16372
Web にアクセスすると録画されたものが閲覧できる.アップロードにはプライベートになっていて公開するには公開設定が必要.この動きは Account settings で設定変更が可能.テーマの選択やトークンの管理もここで出来る.
$ wget http://s-tech.elsat.net.pl/fbv/fbv-1.0b.tar.gz
$ tar tvf fbv-1.0b.tar.gz
$ tar xf fbv-1.0b.tar.gz
$ cd fbv-1.0b
$ ./configure --help
:
$ ./configure --prefix=$HOME/usr/local
$ make
ここで問題発生.
% ./configure
checking for libungif presence... no
:
% make
gif.o: In function `fh_gif_load':
gif.c:(.text+0x111): undefined reference to `DGifOpenFileName'
gif.c:(.text+0x12a): undefined reference to `DGifGetRecordType'
gif.c:(.text+0x156): undefined reference to `DGifGetExtension'
gif.c:(.text+0x189): undefined reference to `DGifGetExtensionNext'
gif.c:(.text+0x1b0): undefined reference to `DGifCloseFile'
gif.c:(.text+0x1c4): undefined reference to `DGifGetImageDesc'
gif.c:(.text+0x2dc): undefined reference to `DGifGetLine'
gif.c:(.text+0x409): undefined reference to `DGifCloseFile'
gif.c:(.text+0x45b): undefined reference to `DGifGetLine'
gif.o: In function `fh_gif_getsize':
gif.c:(.text+0x5df): undefined reference to `DGifOpenFileName'
gif.c:(.text+0x5f8): undefined reference to `DGifGetRecordType'
gif.c:(.text+0x61a): undefined reference to `DGifGetExtension'
gif.c:(.text+0x631): undefined reference to `DGifGetExtensionNext'
gif.c:(.text+0x654): undefined reference to `DGifCloseFile'
gif.c:(.text+0x674): undefined reference to `DGifGetImageDesc'
gif.c:(.text+0x68d): undefined reference to `DGifCloseFile'
collect2: error: ld returned 1 exit status
いつもはssh over (X/RDP/VNC)な感じで事足りてたしTeamViewer はプロプラ&個人用途以外は有償なのであまり興味はなかったのですが,今回使ってみてAndorid のの画面も引っ張ってこれるのはいいなと思いました.丁度ちょっと前に幾つかのAndroid版VNC Server software を試してうまく動かなかったので特に.
いつもはssh over (X/RDP/VNC)な感じで事足りてたしTeamViewer はプロプラ&個人用途以外は有償なのであまり興味はなかったのですが,今回使ってみてAndorid のの画面も引っ張ってこれるのはいいなと思いました.丁度ちょっと前に幾つかのAndroid版VNC Server software を試してうまく動かなかったので特に.
最寄りのマクドナルドが新装開店しました.敷地が広くなり建物も新しくなって駐車場も広くなって利用しやすくなるなと思っていたのですが行ってみるとこれまでの24時間営業からイートインは06:00-23:00 になっていました.でもドライブスルーは24時間と変則的に. OSM に反映しないとなーと思いつつタグが解らなくて放置していました.OpenStreetMap Wiki を見てみるとそのものズバリの項目が(時間まで一緒!)