ラベル debian の投稿を表示しています。 すべての投稿を表示
ラベル debian の投稿を表示しています。 すべての投稿を表示

2011-06-02

Again sarge debian

Now 2011, But need to use old kernel for...even now linux 3.0!!!

linux 2.4.27 is in Debian Sarge from here

*kernel version and debian vesion is not mentioned official.

That archive site has below img.

*this links go to good old days package

I stuck by ancient apt repo pkg, Could not apt-get build-essential,even gcc...

and change /etc/apt/sources.list like a below.

1 2 3 
deb http://archive.debian.org/backports.org sarge-backports main
deb http://archive.debian.org/debian sarge main contrib non-free
deb-src http://archive.debian.org/debian sarge main contrib non-free

2010-11-30

Debian Cgit nginx + simpleCGI

aptitude install nginx gitosis git-core
get cgit and build:http://hjemli.net/git/cgit/
cpan FCGI, FCGI::ProcManager,Socket


setup cgit
vi /etc/cgitrc



setup gitosis


refs1:http://gebi.supersized.org/archives/4-Installing-gitosis-on-debian.html
refs:2:http://dora.bk.tsukuba.ac.jp/~takeuchi/index.php?%A5%D7%A5%ED%A5%B0%A5%E9%A5%DF%A5%F3%A5%B0%2Fgitosis%20%A4%CB%A4%E8%A4%EB%20git%20%A5%B5%A1%BC%A5%D0%A1%BC%A4%CE%B4%C9%CD%FD
refs3:http://phichyudebow.blogspot.com/2010/07/cgit-on-debian-apache2.html

setup nginx
vi /etc/nginx/site-available/default



setup SimpleCGI:refs:http://wiki.nginx.org/SimpleCGI
vi /usr/local/bin/cgiwrap-fcgi.pl



.Start
perl /usr/local/bin/cgiwrap-fcgi.pl
bind/listen error: -> mkdir /var/run/nginx/
chmod 0666 /var/run/nginx/cgiwrap-dispatch.sock
/etc/init.d/nginx restart

2010-11-19

Bravo external display

Andoird Bravo external display






I build kernel cm-kernel 2.6.35.4 with USB host,Displaylink driver and aufs.
then my aim is use directvnc on extend monitor(usb-hosted displaylink dev).
But can not open /dev/tty0.
Does anyone know how fix it ?


by theway mplayer can play mp4 video on extend monitor from bravo device.

Forked kernel(ccyrowski/cm-kernel->defer/cm-kernel->teamdesire/cm-kernel)
then -> tknv / cm-kernel.
and modify.
+ USB host patch from sven.killig:http://sven.killig.de/android/N1/2.2/usb_host/
+ aufs from http://aufs.sourceforge.net/
+ udlfb from http://git.plugable.com/gitphp/index.php?p=udlfb&a=summary
+ Native and Chroot Debian from http://www.telesphoreo.org/pipermail/g1-hackers/2008-November/000032.html

This ROM Based on DeFroST6.0C.
How to
1.download:[ROM]:http://firestorage.jp/download/e05648f28bcd0a7582c102b3c7792b050d621dbf
2.download:native Debian set:http://firestorage.jp/download/2ba5aaebf241f4968592fbc83ffbb2020dbd83af
uncompress zip and put all in SDcard(same dir hierarchie)
3.put all download file to SDcard
4.Flash ROM to 1 ROM image(pls. backup your origin ROM)
5.Connect your USB devices,Should Powered USB hub,Displaylink USB monitor,USB keyboard(for easy input) and what ever you like.
6.Boot your bravo
7.Need gscript.apk or input your self for loading modules.
7a.from gscript:
  • load 01-ld-usb-cores -- wait loading modules and init device.
  • load 02-ld-usb-hid -- wait loading modules and init device until keyboard work etc.
  • load 03-ld-udlfb -- wait loading modules and init monitor,when active monitor show green panel.
7b.from terminal emu:
be root
  • # sh /sdcard/gscript/01-ld-usb-cores.sh.sh
  • # sh /sdcard/gscript/02-ld-usb-hid.sh.sh
  • # sh /sdcard/gscript/03-ld-udlfb.sh.sh
8.Set Debian system from terminal emu
be root
# sh /sdcard/set-deb.sh
9.Set Framebuffer env from terminal emu
Maybe already Debian system ovelay on Android linux.
# export FRAMEBUFFER=/dev/graphics/fb1
# mplayer
Then should can see video on external display.

Now I am going to fork kernel, I need help fixing can not open /dev/tty0 for running directvnc on external monitor from Android.

In the ROM there is dvd driver etc. I did not test it,Because I do not have it.
WARNING: No Guarantee,No responsibility.

P.S.
apt-get is can not use at Native Debian on Android.
If you want use apt-get, please below way.
Run debian in chroot, use /sdcard/chroot-set-deb.sh at 8 of "HOW to" sequence.
# sh /sdcard/chroot-set-deb.sh
from here in chroot.
# mount -t devpts devpts /dev/pts
# mount -t proc proc /proc
# mount -t sysfs sysfs /sys

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.

2009-09-03

redmine & git repo on debian

1.setup redmine

普通にrubyの環境があって、passengerが入ってて、redmineが/var/wwwの下に展開されています。
サーバのホスト名:base08。
セットアップしているマシンのユーザがtknv。
#/etc/apache2/httpd.conf
LoadModule passenger_module /home/tknv/.gem/ruby/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so
PassengerRoot /home/tknv/.gem/ruby/1.8/gems/passenger-2.2.4
PassengerRuby /usr/bin/ruby1.8

PassengerDefaultUser www

ServerName base08
DocumentRoot /var/www/redmine/public


で、redmineで使用するdbの準備が完了していれば、http://base08でredmineが表示されるはず。
表示されないようだったらサイトで確認。
サーバで/var/log/apache2のログを見てもおかしいところがなければ、redmine/tmpのパーミッションが強すぎだったり、666では起動する。または、/etc/apache2/.htaccessファイルがあっていないとか、、、
2.git リポジトリーを立てる。

このサイトが参考になります。
概要:ここで作成したgitユーザがこのbase08ホストで、gitのリポジトリーを立てたり、アップデートしたりします。
注意は説明で行われている、gitリポジトリーを使用するユーザ、gitユーザもbase08ホストで使用しますが、通常業務(趣味ではやらない)で使用するほうで、gitosisの設定を行います。
下記ユーザのマシンでの設定
#~/gitosis-admin/gitosis.conf
[gitosis]

[group gitosis-admin]
writable = gitosis-admin
members = aaa@TKNV bbb@bbc usr1@base08 root@base08

[group dev-Ateam]
writable = project1 project2 project-foo project-wow
members = aaa@TKNV tuka@REP USER1@thinkpad-x300 usr1@base08 root@base08 git@base08

# git@base08が今回の肝です。

[repo project1]
gitweb = yes
owner = tknv@amateras
description = module for UI and support Ajax

大事なのはgit@base08
アカウントをredmineで登録したいリポジトリーのグループに入れておくこと。
あとは、リンクにあるように、/gitosis-admin/keydirに、git@base.pubのように、sshの公開鍵を入れて、gitでサーバにプッシュ。必要なユーザ分、全部おこなう。
3.サーバ上でどうやって、gitリポジトリーを作成しpushのたびに更新するか。

ここ参考になります。しかしながら、ネットにある大抵のHowToは簡単には最近、うまくゆかない。こちらのスキルレベルもあるが、こんだけユーザが多いと、ゴミ情報がたくさん、また、最近は新しいこうゆうテクノロジーが出てくると、とにかくやってみて(やればいいのだが、未検証もあり)サイトにアップする人が多く、間違えもそのままコピペしていたり、、、で
#~/home/git/repositories//hooks/post-update
export GIT_DIR=/home/git/checkout//.git

pushd /home/git/checkout/ > /dev/null
git reset --hard
git pull
popd > /dev/null

WORKDIR="/home/git/checkout/"

/usr/bin/git-update-server-info

unset GIT_DIR

で、先のサイトにもあるが、Don’t forget to create a _local git copy_ (via git clone git@localhost:.git in /home/git/checkout (or whatever folder you prefer)
しかし、このままでも、まだ、無理で、もう2つやることが必要で、まずは、


1.先の今回の肝、git@base08がこの、cloneした、ソースのユーザになっている必要がある。
2.ssh-agentでこのgit@base08ユーザの秘密鍵の方を登録して、パスワード認証を無しにする必要がある。


チェックリスト
  • git@~ ユーザがredmineでブラウジングしたいgitリポジトリーのアクセス許可グループに入っているか?(gitosis.conf)
  • git@~ ユーザのsshの秘密鍵がサーバ(redmineとgitリポジトリのある)にてssh-agentで追加され、パスワード認証が不要になっているか?
  • サーバ(redmineとgitリポジトリのある)の/home/git/checkout/のユーザがgit@~ であるか?

勘違いでした。
git clone で問題ない、、、

How to create repo from remote(not at server)

2009-07-30

Linux network manager

Wicd is an open source wired and wireless network manager for Linux which aims to provide a simple interface to connect to networks with a wide variety of settings.


Some of Wicd's features include:

No Gnome dependencies (although it does require GTK), so it is easy to use in XFCE, Fluxbox, Openbox, Enlightenment, etc.
Ability to connect to wired and wireless networks
Profiles for each wireless network and wired network
Many encryption schemes, some of which include WEP/WPA/WPA2 (and you can add your own)
Remains compatible with wireless-tools
Tray icon showing network activity and signal strength
A full-featured console interface

There are instructions for installing Wicd on Ubuntu, Debian, Arch, Fedora, Slackware, and Gentoo on the downloads page, although it should work on any Linux distro.

Linuxをnotebookで使ってる人には、便利。

home of wicd

2009-07-17

Make Java environment,Stuck on Debian

Make Java environment on Debian Lenny

(non free)

I stuck to ant for jruby.

1st.add it your /etc/apt/sources.list

deb http://mirrors.kernel.org/debian/ lenny main non-free
# this is your main mirrors when you install
deb-src http://mirrors.kernel.org/debian/ lenny main non-free
# this is your main mirrors when you install

deb http://security.debian.org/ lenny/updates main non-free
deb-src http://security.debian.org/ lenny/updates main non-free

2nd.

aptitude update
aptitude install sun-java6-jdk

3rd.if you need.
update-java-alternatives -s java-6-sun
echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment

2009-07-15

Debian Enable IBM embedded bluetooth

Bluetooth

Works out of the box using the bluetooth and hci_usb driver. The laptop's Bluetooth device is USB-attached internally and shows up in lsusb as:

$ lsusb
Bus 003 Device 004: ID 1668:0441 Actiontec Electronics, Inc. [hex] IBM Integrated Bluetooth II

The device is not enabled per default though (which is a good thing), you can enable it like this:

$ echo enable > /proc/acpi/ibm/bluetooth

Disabling is equally simple:

$ echo disable > /proc/acpi/ibm/bluetooth

After that, you can use hcitool / hciconfig etc. as usual, and/or enable more related stuff with /etc/init.d/bluetooth restart.
also

Get skype for Debian Lenny

# vim /etc/apt/sources.list
ADD:
deb http://download.skype.com/linux/repos/debian/ stable non-free
then
aptitude update
to install the skype:
# aptitude install skype

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:...