- Intel Edisonは、初期状態でルートパーティションの容量が約464MBで、すぐ容量がひっ迫していた。
- ファームウェアrel2から、ルートパーティションの容量が拡大されるという。
- reboot otaからだとパーティションは維持されるが、rel2で変更になるルートパーティションの容量が変わらない。
- flashall.sh / flashall.bat をすることで、パーティションレイアウトが変更になり、ルートパーティションの容量が約1424MBになった。ただし、/homeなどreboot otaでは維持されていたパーティションも消える。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# XenServer 6.2ゲストにCentOS 6.6 x86を最小インストール直後状態から追加でGUIをインストール | |
# 参考: http://blue21.ddo.jp/tips/tips-xenserver6/tips_xs60_003.html | |
yum -y groupinstall "Japanese Support" "X Window System" Desktop | |
yum -y install tigervnc-server xinetd | |
cat << EOS > /etc/xinetd.d/vnc-server | |
service vnc-server | |
{ | |
socket_type = stream | |
wait = no | |
user = nobody |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use utf8; | |
use WWW::Mechanize; | |
# deldel.pl PukiWikiのページ内添付ファイルを根こそぎ消す | |
my $pageurl = 'http://dtpwiki.jp/index.php?Perl'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum -y install at | |
echo '/sbin/service ntpd stop' | at '08:59 30.06.15' | |
echo '/sbin/service ntpd start' | at '09:01 01.07.15' |
CentOS 6で、追加のリポジトリのEPELを使うことがよくありますね。tmux入れたり、grance入れたり、proftpd入れたり(今更FTPなのは察してください)、標準の状態でyumって入らない時はEPELに入っていることが多いですのでよく使いますね。
で、EPELなんだが、いつの間にか標準のパッケージになってたというやつ。
# yum -y install epel-release
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#define OE 7 | |
#define DYNA 8 | |
#define DYNB 9 | |
#define DATA 11 | |
#define LATCH 10 | |
#define CLK 13 | |
char pattern[] = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// akibaLEDピカリ館の単色LEDマトリクスパネルP10を | |
// Raspberry Piのnode.js(v0.12)で光らせる | |
// | |
// 配線については http://cl.hatenablog.com/entry/picari-ledmatrix-raspberrypi 参照 | |
// Usage: | |
// (Raspberry PiにRaspbian Wheezyをインストールして、piユーザでログイン後) | |
// git clone https://gist.github.com/aad7b6ad8f97ca9a8a2a.git picari | |
// cd $_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "picari-banner-gorinpikku.js", | |
"private": true, | |
"scripts": { "start": "node picari-banner-gorinpikku.js" }, | |
"dependencies": { | |
"canvas": ">=1.2.7", | |
"onoff" : ">=1.0.2", | |
"pi-spi": ">=1.0.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# シェルスクリプトでwebuserユーザのパスワードをpassw0rdに設定する。 | |
# 大量のバッチ処理の場合は、別ファイルにユーザパスワードリスト | |
# を用意したうえで、`chpasswd' を使おう。 | |
echo passW0rd | passwd webuser --stdin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ビルドツール・依存パッケージインストール | |
## rootユーザで作業 | |
uname -r | |
yum -y groupinstall 'Development Tools' | |
yum -y install rpmdevtools | |
yum -y install kernel-devel iptables-devel | |
yum -y install epel-release | |
yum -y --enablerepo=epel install perl-Text-CSV_XS |