2010-10-20

Debian squeeze usb-lcd(Displaylink) dual head

Set up USB-LCD device and set Framebuffer option for kernel

apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get clean
apt-get install build-essential xorg-dev libusb-dev git-core


git clone http://git.plugable.com/webdav/udlfb
cd udlfb
make && make install

.../build pathがないエラー

当環境でmoduleをビルドしていないからで、moduleビルドする
or
apt-get install module-assistant
m-a prepare
module-assistant:http://wiki.debian.org/ModuleAssistant

apt-get install xserver-xorg-video-fbdev

set framebuffer(It is for grub v2)
/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet vga=xxx"
update grub
vga params:http://tldp.org/HOWTO/Framebuffer-HOWTO/x168.html#AEN235
Here also details about grub v2.

2010-10-13

Article of Russian Tea

Russian Tea

1.2 What makes it Russian
If you adhere to the above rules, you make tea. Not necessarily good tea, but real tea, nevertheless. These rules are universal, there's nothing Russian so far. What makes all the difference, is the so-called "zavarka", the tea concentrate. The Russian process of tea-making is a two stage one; First, you make the zavarka, then water it down with hot, boiled water ("kipyatok" in Russian).
...continue...

Install tools for Open Embedded

apt-get --yes install git-core subversion patch help2man diffstat texi2html makeinfo libncurses5-dev cvs gawk python-dev python-pysqlite2 unzip python-psyco dosfstools quilt build-essential

Format SDcard for Gumstix and Beagle

フォーマットするスクリプトで楽に。
2つのファイルを同じディレクトリにおいて、rootで実行。
sh fdisk_for_overoSD.sh
でフォーマットするdeviceを聞いてきます。
fdisk_for_overoSD.sh
inputs.sh

Format SDcard for Android storage

fdisk /dev/-sdcard-
- type "c" - WIN FAT 32 (LBA)
他はお好みで。
mkfs.vfat -F 32 /dev/-sdcard-1 -n FAT

Make Debian squeeze image for running debian on Android

echo 'deb http://ftp.jp.debian.org/debian squeeze main contrib non-free' > /etc/apt/sources.list
apt-get install debootstrap qemu-user-static binfmt-support
cd ~/control-project/Android-dual-head/project/src/qemu-ubuntus
wget http://kr.archive.ubuntu.com/ubuntu/pool/universe/q/qemu-kvm/qemu-kvm-extras-static_0.12.3+noroms-0ubuntu9_i386.deb
dpkg -c qemu-kvm-extras-static_0.12.3+noroms-0ubuntu9_i386.deb
*パッケージの確認
dpkg -x qemu-kvm-extras-static_0.12.3+noroms-0ubuntu9_i386.deb .
*カレントで展開
*build-arm-chrootを確認、シンボリックリンクになっているので、元を/usr/bin/build-arm-chrootにリンクを貼る。
dd if=/dev/zero of=debian.img-rc1 bs=1024 count=1950000
*おおよそ2GBのデビアン領域を作成
mkfs.ext2 -F debian.img-rc1
tune2fs -c0 debian.img-rc1
mkdir debian
mount -o loop debian.img-rc1 debian-rc1/
build-arm-chroot --verbose --arch=armel --foreign squeeze debian http://ftp.jp.debian.org/debian
mkdir debian/sdcard
mount -t proc none debian-rc1/proc/
mount -t sysfs sysfs debian-rc1/sys/
mount -t devpts devpts debian-rc1/dev/pts
chroot debian-rc1/ /bin/bash
export HOME=/root
export USER=root
export LC_ALL=C
echo 'deb http://ftp.jp.debian.org/debian squeeze main contrib non-free' > /etc/apt/sources.list
aptitude update
aptitude --yes install openssh-server
*他に必要ならAndroid上でもaptできるので後から。
aptitude clean
echo localhost > /etc/hostname
echo 'nameserver 4.2.2.2' > /etc/resolv.conf
exit
umount debian-rc1/proc
umount debian-rc1/dev/pts
umount debian-rc1/sys
umount debian-rc1/
終わり
debian.imgが目的のブツ

boot debian on chroot

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
mkdir /sdcard/debian-rc1
losetup /dev/block/loop5 /sdcard/debian.img-rc1
mount -t ext2 /dev/block/loop5 /sdcard/debian-rc1
rm -rf /sdcard/debian-rc1/tmp
mkdir /sdcard/debian-rc1/tmp
mount -t devpts devpts /sdcard/debian-rc1/dev/pts
mount -t proc proc /sdcard/debian-rc1/proc
mount -t sysfs sysfs /sdcard/debian-rc1/sys
mount -o bind /dev /sdcard/debian-rc1/dev
busybox mount /sdcard /sdcard/debian-rc1/root/sdcard
sysctl -w net.ipv4.ip_forward=1
chroot /sdcard/debian-rc1 /bin/bash

framebuffer vgaなどの設定

/boot/grub/menu.lstの
kernel /boot/vmlinuz-2.9.53-7-686 root=/dev/sda1 ro vga=771
この値が、bootで選択するものとなる。
vgaの設定がないと、framebufferすら有効にならん。
vgaの値について
値 解像度 色
771 800x600 256色
773 1024x7682 256色
775 1280x1024 256色
788 800x600 6万5000色
791 1024x768 6万5000色
794 1280x1024 6万5000色
789 800x600 1600万色
792 1024x768 1600万色
795 1280x1024 1600万色

GUIの停止、x-serverによるGUIの停止

aptitude removeする方法
/etc/init.d/(g)dm stopする方法(x)dmだったり環境しだい。

2010-09-09

ちょっと為になるいい話

巻紙で有名な、RIZLAは、聖書の紙を作ってたメーカー。
GIZEHは、ドイツの会社なんですが、パピルスを発明したエジプト由来の名前。

眠い、windowsのサーバはホント触りたくない、意味が分からない事が多すぎ

盆休み、まだ、とれない。
もう、盆も終わって、夏でもなくなり、あーあ。
暖かい、ところで休みたい。

---- windows7 delete service ----
C:\Windows\Microsoft.NET\Framework\v2.0.50727>sc.exe delete FooService
[SC] OpenService FAILED 5:

アクセスが拒否されました。

then

C:\Windows\System32\cmd.exeを管理者で開いて、同様におこなうと、SUCCESS

--------------------------
'/FOO_web' アプリケーションでサーバー エラーが発生しました。
--------------------------------------------------------------------------------

パーサー エラー
説明: この要求の処理に必要なリソースの解析中にエラーが発生しました。以下の解析エラーの詳細を確認し、ソースファイルに変更を加えてください。

パーサー エラー メッセージ: アセンブリ 'App_Web_Foo' を読み込めませんでした。ページにアクセスする前にアセンブリがコンパイルされているかどうか確認してください。

ソース エラー:


行 1: <%@ page language="C#" autoeventwireup="true" inherits="Login, App_Web_Foo" %>
行 2:
行 3:


ソース ファイル: /FOO_web/Login.aspx 行: 1


--------------------------------------------------------------------------------
バージョン情報: Microsoft .NET Framework バージョン:2.0.50727.4927; ASP.NET バージョン:2.0.50727.4927

------------------
/bin/App_Web_Foo.dllがあるか確かめる、なければ、正しいdllを指定。

2010-08-28

ぼん休み が ない

盆休みがない、そのまま9月の連休に混じってしまうのだろうか、、、
是非、休みたい。
1ヶ月ぐらい休みたい。
Out of Our Heads: Why You Are Not Your Brain, and Other Lessons from the Biology of Consciousnessこの本の著者とインドの人との対談を読んでみて、結局、著者が言っている事が、科学から離れ、遠くに発散し、科学者なの?東洋の問わず、坊さんが言ってるような事とさほど変わらないにも関わらず、相手のインドの人は妙に納得して、関心して、、、
この本買おうかなとamazonで評価を見たが、ボロクソに言ってる方もいるのですが、読んでいないので本に関してはコメントできないです。もっと安くなったら読んでみたいですね。
あと、この相手方のインドの人は、経験についての質問が、現代インドのOsho(日本語の和尚からきているのかは不明)の考え方、純粋経験(西田 幾多郎氏)に通ずることの理解不足、または知らないのかと思わせる内容で、知らないのなら好奇心からの質問だが、red rose,red roseが何回も対談中に出てくると、Oshoの本は読んでいるがどうなの?と、が、それもいい。
なにが引っかかったと思うと、ストレートのガチンコ対談でないからかも。大人の対談でした。
まぁ、こういうジャンルもお金儲けの対象になっているんだなと、、、
対談中でも言ってますが

みんなで考えよう!

2010-07-22

convert Docbook to PDF

I got great support from XMLmind,quick and XMLmind are more easy than Oxygen.Also it means I did not read FAQ well,so RYFM!,shame...

Here is solution

This add 2010.7.24

How to config none Alphabetical font,like CJK chars. I used to XMLmind and Oxygen,but both could not done it at default. When converting,XMLmind depend on XEP software,Oxygen probably independent. There is no font configuration on XMLmind,then I asked XEP online chat support and not fix it yet. At Oxygen when occur error,it try to send report and I agree it. They answer very quick. It would help,but very hard configure.

The Oxygen config for using and to show Japanese font.

please change path and some vars,when not fit for you.

GUI:Never show Japanese font,just show white blocks.

There is config at Options → Preferences → Fonts, Editor

converted PDF:Never show Japanese font,just show #.

1.Make font metrics xml file from ttf(TrueTypeFont).

For Windows: ttfConvert.bat

This bat should run in Oxygen folder that application installed.
*I want to use OTF font,but no way to know metrics now also want to know how.
**ipamp.ttf,This is Japanese char font from Information-technology Promotion Agency, Japan.
very clear font and nice license.Here is font:ipa

2.Make fopConfiguration.xml.


3.Set FOP configuration file in Oxygen

Go to menu Options → Preferences → XML → XSLT / FO / XQuery → FO Processors
Click the browse button near Configuration file for the built-in FOP text field and locate the fopConfiguration.xml file.
Click on the OK button to accept the changes.

4.Add new font to FO output for DocBook Stylesheets

Click on the Parameters button in the transformation scenario edit dialog and enter the following parameters indicating the font for the body text and for the titles.
Name Value
body.font.family ipamp
title.font.family ipamp

2010-07-14

cgit - on Debian Apache2

cgit - a very fast web frontend for git repositories

installation to Apache2 on debian lenny

  • Setup git server by gitosys. ref.-link1(lang_JP),link2(lang_EN)
  • add permission by chomod 755 to git repo for cgit exec .git.(Maybe chmod 755 -R /home/git/repositories/)
  • build & install cgit.(I had error curl for getting git and extract tar.bz2 at make get-git.)
  • config file:/etc/cgitrc
  • virtual-root=/cgi-bin/

    # Enable caching of up to 1000 output entriess
    cache-size=1000

    # Show extra links for each repository on the index page
    enable-index-links=1

    # Show number of affected files per commit on the log pages
    enable-log-filecount=1

    # Show number of added/removed lines per commit on the log pages
    enable-log-linecount=1

    # Enable statistics per week, month and quarter
    max-stats=quarter

    # Set the title and heading of the repository index page
    root-title=tknv git repositories

    # Set a subheading for the repository index page
    root-desc=tracking the tknv development

    # Include some more info about foobar.com on the index page
    root-readme=/var/www/htdocs/about.html

    # Allow download of tar.gz, tar.bz2 and zip-files
    snapshots=tar.gz tar.bz2 zip

    ##
    ## List of common mimetypes
    ##

    mimetype.gif=image/gif
    mimetype.html=text/html
    mimetype.jpg=image/jpeg
    mimetype.jpeg=image/jpeg
    mimetype.pdf=application/pdf
    mimetype.png=image/png
    mimetype.svg=image/svg+xml


    ##
    ## List of repositories.
    ## PS: Any repositories listed when section is unset will not be
    ## displayed under a section heading
    ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos')
    ## and included like this:
    ## include=/etc/cgitrepos
    ##


    repo.url=SuperEngine
    repo.path=/home/git/repositories/SuperEngine.git
    repo.desc=the SUperEngine repository
    repo.owner=foo@bar.com

    repo.url=OSGi-module
    repo.path=/home/git/repositories/OSGi-module.git
    repo.desc=the OSGi-module repository
    repo.owner=foo@bar.com
  • config file:/etc/apache2/httpd.conf

  • ServerName halryporya.co.foo
    DocumentRoot /var/www/htdocs/cgit/
    ScriptAlias /cgi-bin/ "/var/www/htdocs/cgit/cgit.cgi/"

    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all

    Alias /cgit.png /var/www/htdocs/cgit/cgit.png
    Alias /cgit.css /var/www/htdocs/cgit/cgit.css
    Alias / /var/www/htdocs/cgit/cgit.cgi/

  • check by w3m http://localhost/cgi-bin/

http://halryporya.co.foo/cgi-bin/

by browser

watching CGIT site...

BCM4321 on Latitude D430

At kernel 3 find wireless hardware lspci | grep -i wireless  check using current kernel module with PCI bus address lspci -vv -s 0c:...