玄箱HG(debian lenny) mysqlディレクトリ変更

参考 mysql停止 sudo /etc/init.d/mysql stop データ移行 mkdir -p /path/to/mysql_directory chown mysql:mysql /path/to/mysql_directory cd /path/to/mysql_directory mkdir mysqldata mysqldump chown mysql:mysql mysqldata chown mysql:mysql mysqldump sudo cp -fprv /var/lib/mysql/ ./mysqldata/ ディレクトリ指定設定 sudo vi /etc/mysql/conf.d/my_datadir.cnf 修正内容は以下 [mysqld] datadir = /path/to/mysql_directory/mysqldata/mysql 正しく設定変更され起動できるか確認する為、元のデータは別場所へ移動 mkdir /data/tmp sudo mv /var/lib/mysql /data/tmp mysql 再起動 sudo /etc/init.d/mysql restart 不要となったデータを削除 sudo rm /data/tmp

2012-10-20 ·  2012-10-20 · 1 分 · 53 文字

Ubuntuで壁紙を自動で変更する

Ubuntuで壁紙を自動で変更する 参考 tool/installを変更 #timeout=$1 #enabled=$2 #depth=$3 #shift;shift;shift #base=$@ base=$1 timeout=$2 enabled=$3 depth=$4 kickerを新規作成 vim ~/bin/kick-wp-show.sh #! /bin/bash cd ~/bin/gnome-3-wp-gnome-3-wp nohup ./wp-show & wait 1 exit

2012-09-20 ·  2012-09-20 · 1 分 · 25 文字

tf201 root化

tags: [“tf201”,“android”] title: 20120816 tf201 root化 tf201 root化 参考1 参考2 bootloader unlock download apk here Unlock Device App install apk & done flash recovery clockworkmod fastboot mode Boot your tablet into fastboot by holding down the power and volume-down buttons. The tablet will power off and reboot. Wait until you see several lines of white text in the upper-left corner of the screen, then let go of the power and volume buttons. Then wait for five seconds and you will see the fastboot options. check fastboot -i 0x0b05 finished. total time: 1345126235.306s flash recovery image fastboot -i 0x0b05 flash recovery recovery-clockwork-5.8.3.4-tf201.img sending 'recovery' (5408 KB)... OKAY [ 3.242s] writing 'recovery'... OKAY [ 2.136s] finished. total time: 5.379s ...

2012-08-16 ·  2012-08-16 · 1 分 · 148 文字

玄箱lenny リストアテストを行う

玄箱lenny,リストアテスト 新しく買ってきたWD20 EARX(9Kなり)でリカバリテストを行う MBRフォーマットへ切り替え Ubuntu 11.10へUSB接続し、ディスクユーティリティから 対象HDDのフォーマットをマスターブートレコードへ切り替える(もともとなってる?) 次に、 AFT,4096問題 通常パーティション切りで書き込みテストを行う sudo fdisk /dev/sdh Disk /dev/sdh: 2000.4 GB, 2000398934016 bytes ヘッド 255, セクタ 63, シリンダ 243201, 合計 3907029168 セクタ Units = セクタ数 of 1 * 512 = 512 バイト セクタサイズ (論理 / 物理): 512 バイト / 512 バイト I/O サイズ (最小 / 推奨): 512 バイト / 512 バイト ディスク識別子: 0x0006c4b4 cd /media/test dd if=/dev/zero of=./hage bs=128k count=32768 32768+0 レコード入力 32768+0 レコード出力 4294967296 バイト (4.3 GB) コピーされました、 193.343 秒、 22.2 MB/秒 # やたら遅い。。。これは酷い。 8で割り切れる対応 パーティション切り ...

2012-07-28 ·  2012-07-28 · 4 分 · 779 文字

ubuntu11.10でGoogle日本語入力

ubuntu11.10でGoogle日本語入力 参考 sudo apt-get install ibus-mozc mozc-server mozc-utils-gui

2012-07-13 ·  2012-07-13 · 1 分 · 8 文字