Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

April 5, 2010

WalkmanをLinuxでSonicStage無しに転送する方法

メモ。

WalkmanをLinuxでSonicStage無しに転送する方法

May 7, 2009

How to install Fedora 11 with btrfs

Fedora 11's installer is capable to install with btrfs now, however disabled by default. you can enable it by booting the installer with "linux icantbelieveitsnotbtr", otherwise it won't appears at partitioning and the installer will rejects regardless you use the existing btrfs partitions.

December 18, 2008

How to setup your Linux box to access HTC Touch Pro through USB

No particular hacks against that, but just to keep it in mind.

Basically I've followed steps explained at SynCE site. and have tried on Fedora 10. there are some attentions on the installation process:

  1. Inputs will be messed up after installing synce-usb-rndis-lite-dkms package until you reboot your machine.
  2. As mentioned on wiki, you have to add ipaq kernel module to the blacklist.
  3. may be better disabling SELinux until AVC messages goes away with any updates.
Anyway, try to run odccm -f directly before starting odccm service, and make sure if you see debug logs like device_info like described in wiki. then SynCE works for you then.

Enjoy,

June 16, 2007

シリアルコンソールを仕込んでみる

最近どうも安定して動かない上に、CPU load食いまくってsshで入るのも難儀なことが多く、その度にvmware-server-consoleを起動させては、ごにょごにょとあれこれや るはめになる。また、セキュリティ上外から902番ポートへ繋げないようにしてるので、sshでport forwardしてとかまあなんつーか面倒くさいことこの上ない。そこで、vmware上のシリアルポートをhostのttyへマップさせ、シリアルコン ソール替わりに使うことにした。

まず、各VMの設定を変更する。シリアルポートをひとつずつ追加し、Use named pipeを選択、pipeの名前は後で識別しやすいように/tmp/serial-hostname portとした。また、今回このシリアルポートはhostから使うので、This end is the serverおよびThe other end is an applicationを選択。あとは、/etc/inittabにgetty経由でログインできるように修正。Debianの場合はすでにコメントアウトされた行があるので、それを有効にするだけでよい。

次にhost側。先ほど指定したnamed pipeはhost上に作られるけど、そのままだとよくあるterminal系のアプリでは使えないので、socatを使ってptyに変換した。ついでにそのまま接続しちゃうように次のようなスクリプトを書いた。

#! /bin/sh

set -e

if [ $# -eq 0 ]; then
echo "$0 "
exit 1
fi

PORT=$2
if [ "x$PORT" = "x" ]; then
PORT=0
fi

if [ ! -S /tmp/serial-$1$PORT ]; then
echo "Unknown hostname"
exit 1
fi

socat unix-connect:/tmp/serial-$1$PORT pty:link=/tmp/ttyv$1$PORT,raw,echo=0,waitslave &
SOPID=$!
if ls /proc/$SOPID > /dev/null 2>&1; then
while [ ! -h /tmp/ttyv$1$PORT ]; do sleep 1; done
cu -l /tmp/ttyv$1$PORT
else
echo failed.
fi