Tuesday, November 28, 2006

ndiswrapper is working my davicom usb lan

Finally ndiswrapper release verion 1.30 which support USBD_ParseDescriptors() method most complete hack the M$ USB.SYS so I'm happy my davicom dm9601E working with ndiswrapper

1. download ndiswrapper from sourceforge http://sourceforge.net/project/downloading.php?group_id=93482&ndiswrapper-1.30.tar.gzuse_mirror=osdn&filename=ndiswrapper-1.30.tar.gz&85250841
2. tar zxvf ndiswrapper-1.30.tar.gz
3. make install
4. download davicom winxp driver and extract
5. ndiswrapper -i dm9usb.inf
6. an /etc/ndiswrapper/dm9usb will create automatically
7. ndiswrapper -a 0a46:0268 dm9usb
8. ndiswrapper -l
installed drivers:
dm9usb driver installed, hardware (0A46:9601) present
9. dmesg
ndiswrapper version 1.30 loaded (preempt=yes,smp=no)
usb 1-1: reset full speed USB device using uhci_hcd and address 4
ndiswrapper: driver dm9usb (DAVICOM Semiconductor, Inc.,03/12/2002, 1.90.0312.2002) loaded
wlan0: ethernet device 00:60:6e:30:17:40 using NDIS driver: dm9usb, version: 0x10009, NDIS version: 0x500, vendor: 'DM9USB!!', 0A46:0268.F.conf
10. ifconfig wlan0 192.168.1.123 up

IT's working ...... :-) :-)

Monday, November 20, 2006

enable nfs

howto enable nfs services

#!/bin/vi /etc/export
/work *(rw,no_root_squash) # share /work directory with read/write
/tmp *(rw,no_root_squash) # share /tmp

# showmount -e 192.168.nn.nn
# mount 192.168.nn.nn :/work /mnt/nfs -t nfs # mount /work to /mnt/nfs
# /etc/init.d/nfs-user-server restart # restart nfs services

Thursday, November 16, 2006

enable bluetooth

-- originally uploaded by VJ Spectra - (?)

++enable bluetooth protocol stacks
http://www.kernel.org
Kernel Device Drivers->Networking Support->
Bluetooth subsystem support->
+L2CAP
+RFCOMM
+RFCTTY
Bluetooth device drivers->HCI USB Driver


0. insmod hci_usb.ko
1. insmod bluebooth.ko
2. insmod l2cap.ko
3. insmod rfcomm.ko

4. hciconfig hci0 up name leflickrBT
5. hcitool dev
Devices:
hci0 00:02:5B:01:CD:FE
6. hcitool scan
Scanning ...
00:12:EE:07:C3:XX W800i
00:20:E0:24:A4:XX 888TIGER-D78C92
00:02:C7:F0:52:XX Xda_Atom_Exec
00:16:XX:XX:XX:XX LeechGSM





++build bluez utils
http://www.bluez.org/redirect.php?url=http%3A%2F%2Fbluez.sf.net%2Fdownload%2Fbluez-utils-3.2.tar.gz
http://www.bluez.org/
must run hcitool utility
Base on bluez-lib
bluez-lib depend on pkg-config
bluez-util depend on dbus
dbus depend on libxml 2.0+


--libxml 2.6
http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.20.tar.bz2
The libxml2 package contains XML libraries. These are useful for parsing XML files.


--dbus
http://www.freedesktop.org/wiki/Software/dbus
D-Bus is a message bus system, a simple way for applications to talk to
one another. D-Bus supplies both a system daemon (for events such as
"new hardware device added" or "printer queue changed") and a
per-user-login-session daemon (for general IPC needs among user
applications). Also, the message bus is built on top of a general
one-to-one message passing framework, which can be used by any two apps
to communicate directly (without going through the message bus daemon).
Currently the communicating applications are on one computer, but
TCP/IP option is available and remote support planned.

--pkg-config
The pkg-config package contains a tool for passing the include path
and/or library paths to build tools during the configure and make file
execution.
http://pkgconfig.freedesktop.org/releases/pkg-config-0.20.tar.gz

++build bluez-lib
http://www.bluez.org/redirect.php?url=http%3A%2F%2Fbluez.sf.net%2Fdownload%2Fbluez-libs-3.2.tar.gz


++pybluez
http://org.csail.mit.edu/pybluez/
PyBluez is an effort to create python wrappers around system Bluetooth
resources to allow Python developers to easily and quickly create
Bluetooth applications.

Thanks Albert Huang hint me the following information
(sshp-push/sobexsrv)

++sshp-push
http://www.xmailserver.org/ussp-push.html
ussp-push is a OBEX object pusher for Linux, using the BlueZ BlueTooth
stack. The original ussp-push implementation required explicit binding
to RFCOMM channels before the usage, that made it quite cumbersome to
use. I added BlueTooth name resolution, SDP service resolution, and
direct access to remote BlueTooth listening channels. The syntax now
supported by ussp-push is:

$ ussp-push [--dev DEVID] [--timeo TIMEO] {DEVICE, BTADDR@[BTCHAN]} LFILE RFILE


++sobexsrv
http://www.mulliner.org/bluetooth/sobexsrv.php
sobexsrv is a Bluetooth OBEX server with Bluetooth Security Mode-2
(application triggered security) support. It implements OPUSH (put),
OPULL (get) and OBEX-FTP (setpath + directory listing) and therefore is
a full OBEX server. Further it supports pulling generic mime-types and
provides a capability object. sobexsrv was designed with flexibility
and security in mind and supports chroot (if suid root drop to calling
uid immediately). For flexibility a scripting interface provides access
to all functionalities of the server and therefore allows
implementation of further OBEX services on top of sobexsrv.
Thanks Albert Huang hint me the following information
(sshp-push/sobexsrv)

++sshp-push
http://www.xmailserver.org/ussp-push.html
ussp-push is a OBEX object pusher for Linux, using the BlueZ BlueTooth
stack. The original ussp-push implementation required explicit binding
to RFCOMM channels before the usage, that made it quite cumbersome to
use. I added BlueTooth name resolution, SDP service resolution, and
direct access to remote BlueTooth listening channels. The syntax now
supported by ussp-push is:

$ ussp-push [--dev DEVID] [--timeo TIMEO] {DEVICE, BTADDR@[BTCHAN]} LFILE RFILE


++sobexsrv
http://www.mulliner.org/bluetooth/sobexsrv.php
sobexsrv is a Bluetooth OBEX server with Bluetooth Security Mode-2
(application triggered security) support. It implements OPUSH (put),
OPULL (get) and OBEX-FTP (setpath + directory listing) and therefore is
a full OBEX server. Further it supports pulling generic mime-types and
provides a capability object. sobexsrv was designed with flexibility
and security in mind and supports chroot (if suid root drop to calling
uid immediately). For flexibility a scripting interface provides access
to all functionalities of the server and therefore allows
implementation of further OBEX services on top of sobexsrv.
resources to allow Python developers to easily and quickly create
Bluetooth applications.

Thanks Albert Huang hint me the following information
(sshp-push/sobexsrv)

++sshp-push
http://www.xmailserver.org/ussp-push.html
ussp-push is a OBEX object pusher for Linux, using the BlueZ BlueTooth
stack. The original ussp-push implementation required explicit binding
to RFCOMM channels before the usage, that made it quite cumbersome to
use. I added BlueTooth name resolution, SDP service resolution, and
direct access to remote BlueTooth listening channels. The syntax now
supported by ussp-push is:

$ ussp-push [--dev DEVID] [--timeo TIMEO] {DEVICE, BTADDR@[BTCHAN]} LFILE RFILE


++sobexsrv
http://www.mulliner.org/bluetooth/sobexsrv.php
sobexsrv is a Bluetooth OBEX server with Bluetooth Security Mode-2
(application triggered security) support. It implements OPUSH (put),
OPULL (get) and OBEX-FTP (setpath + directory listing) and therefore is
a full OBEX server. Further it supports pulling generic mime-types and
provides a capability object. sobexsrv was designed with flexibility
and security in mind and supports chroot (if suid root drop to calling
uid immediately). For flexibility a scripting interface provides access
to all functionalities of the server and therefore allows
implementation of further OBEX services on top of sobexsrv.
3. insmod rfcomm.ko

4. hciconfig hci0 up name leflickrBT
5. hcitool dev
Devices:
hci0 00:02:5B:01:CD:FE
6. hcitool scan
Scanning ...
00:12:EE:07:C3:XX W800i
00:20:E0:24:A4:XX 888TIGER-D78C92
00:02:C7:F0:52:XX Xda_Atom_Exec
00:16:XX:XX:XX:XX LeechGSM





++build bluez utils
http://www.bluez.org/redirect.php?url=http%3A%2F%2Fbluez.sf.net%2Fdownload%2Fbluez-utils-3.2.tar.gz
http://www.bluez.org/
must run hcitool utility
Base on bluez-lib
bluez-lib depend on pkg-config
bluez-util depend on dbus
dbus depend on libxml 2.0+


--libxml 2.6
http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.20.tar.bz2
The libxml2 package contains XML libraries. These are useful for parsing XML files.


--dbus
http://www.freedesktop.org/wiki/Software/dbus
D-Bus is a message bus system, a simple way for applications to talk to
one another. D-Bus supplies both a system daemon (for events such as
"new hardware device added" or "printer queue changed") and a
per-user-login-session daemon (for general IPC needs among user
applications). Also, the message bus is built on top of a general
one-to-one message passing framework, which can be used by any two apps
to communicate directly (without going through the message bus daemon).
Currently the communicating applications are on one computer, but
TCP/IP option is available and remote support planned.

--pkg-config
The pkg-config package contains a tool for passing the include path
and/or library paths to build tools during the configure and make file
execution.
http://pkgconfig.freedesktop.org/releases/pkg-config-0.20.tar.gz

++build bluez-lib
http://www.bluez.org/redirect.php?url=http%3A%2F%2Fbluez.sf.net%2Fdownload%2Fbluez-libs-3.2.tar.gz


++pybluez
http://org.csail.mit.edu/pybluez/
PyBluez is an effort to create python wrappers around system Bluetooth
resources to allow Python developers to easily and quickly create
Bluetooth applications.

Thanks Albert Huang hint me the following information
(sshp-push/sobexsrv)

++sshp-push
http://www.xmailserver.org/ussp-push.html
ussp-push is a OBEX object pusher for Linux, using the BlueZ BlueTooth
stack. The original ussp-push implementation required explicit binding
to RFCOMM channels before the usage, that made it quite cumbersome to
use. I added BlueTooth name resolution, SDP service resolution, and
direct access to remote BlueTooth listening channels. The syntax now
supported by ussp-push is:

$ ussp-push [--dev DEVID] [--timeo TIMEO] {DEVICE, BTADDR@[BTCHAN]} LFILE RFILE


++sobexsrv
http://www.mulliner.org/bluetooth/sobexsrv.php
sobexsrv is a Bluetooth OBEX server with Bluetooth Security Mode-2
(application triggered security) support. It implements OPUSH (put),
OPULL (get) and OBEX-FTP (setpath + directory listing) and therefore is
a full OBEX server. Further it supports pulling generic mime-types and
provides a capability object. sobexsrv was designed with flexibility
and security in mind and supports chroot (if suid root drop to calling
uid immediately). For flexibility a scripting interface provides access
to all functionalities of the server and therefore allows
implementation of further OBEX services on top of sobexsrv.
stack. The original ussp-push implementation required explicit binding
to RFCOMM channels before the usage, that made it quite cumbersome to
use. I added BlueTooth name resolution, SDP service resolution, and
direct access to remote BlueTooth listening channels. The syntax now
supported by ussp-push is:

$ ussp-push [--dev DEVID] [--timeo TIMEO] {DEVICE, BTADDR@[BTCHAN]} LFILE RFILE


++sobexsrv
http://www.mulliner.org/bluetooth/sobexsrv.php
sobexsrv is a Bluetooth OBEX server with Bluetooth Security Mode-2
(application triggered security) support. It implements OPUSH (put),
OPULL (get) and OBEX-FTP (setpath + directory listing) and therefore is
a full OBEX server. Further it supports pulling generic mime-types and
provides a capability object. sobexsrv was designed with flexibility
and security in mind and supports chroot (if suid root drop to calling
uid immediately). For flexibility a scripting interface provides access
to all functionalities of the server and therefore allows
implementation of further OBEX services on top of sobexsrv.

enable ubuntu tftpd

-- from T Glow - (?)


1. apt-get install xinetd tftpd

2. create /etc/xinetd.d/tftp
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}

3. Make /tftpboot directory
# mkdir /tftpboot
# chmod -R 777 /tftpboot
# chown -R nobody /tftpboot

4. Start tftpd through xinetd
# /etc/init.d/xinetd start

5.

Tuesday, November 14, 2006

windows netsh (backup you home/office seeting in second)

1. setting you ip config through GUI in home
netsh -c interface dump > home.cmd

2. setup you ipconfig in office via GUI and backup as
netsh -c interface dump > office.cmd

3. switch your necessary home/office usage
netsh -f home.cmd


-- from lecheel - (?)
-- from lecheel - (?)

install linkstation torrentflux 2.1

1. you must have apache/apache2 install
#apt-get install apache

2. install your mySQL
#apt-get install myserl-server
#mysqladmin -u root password "123456" <----- password as 123456

3. you also need php4 install
#apt-get install php4 php4-mysql
#nano /etc/php4/apache/php.ini
extension =mysql.so <---- uncomment this line

4. restart your apache
/etc/init.d/apache restart

5. download torrentflux
# cd /var/tmp
# wget http://nchc.dl.sourceforge.net/sourceforge/torrentflux/torrentflux_2.1.tar.gz
# tar -zxvf torrentflux_2.1.tar.gz
# cp -rf html /var/www/bt
# mysqladmin create torrentflux -p <--- create torrentflux database (123456 as your password :-) )
# cd sql
# mysql -u root torrentflux < mysql_torrentflux.sql -p <--- import torrentflux default setting

6. change bt password configure
# cd /var/www/bt
# nano config.php
$cfg[db_pass] = "123456" <--- if you still keep 123456 as your password

7. links you web interface BT
http://127.0.0.1/bt
username root
password 123456 <--- same as mysql you can change it later

Thursday, November 02, 2006

ubuntu install console fonts



1. apt-get install xfonts-konsole


2. ln -s /usr/X11R6/lib/X11/fonts/misc/console8x16.pcf.gz /usr/share/X11/fonts/misc/console8x16.pcf.gz

3. ln -s /usr/X11R6/lib/X11/fonts/misc/console8x8.pcf.gz /usr/share/X11/fonts/misc/console8x8.pcf.gz

4. dpkg-reconfigure -plow fontconfig
"Yes" to "Enable bitmapped fonts by default?"

5. fc-cache -f

6. Terminal-> edit-current profile->general (font)-->console

ubuntu 1st setting (source.list and media player)

-- originally uploaded by T Glow - (?)

++login as root
1. sudo passwd root -- create your root password
2. modify /etc/gdm/gdm.conf -- enalbe root can login in X11
vi /etc/gdm/gdm.conf -- AllowRoot=true


++add local tw mirror and more
#vi /etc/apt/source.lst -- add mirror list

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe

# apt.ubtw

deb http://apt.ubuntu.org.tw/ubuntu dapper-updates main restricted universe multiverse
deb-src http://apt.ubuntu.org.tw/ubuntu dapper-updates main restricted universe multiverse
deb http://apt.ubuntu.org.tw/ubuntu dapper main universe multiverse restricted
deb-src http://apt.ubuntu.org.tw/ubuntu dapper main universe multiverse restricted

deb http://apt.ubuntu.org.tw/ubuntu dapper-backports main universe multiverse restricted
deb-src http://apt.ubuntu.org.tw/ubuntu dapper-backports main universe multiverse restricted

deb http://apt.ubuntu.org.tw/ubuntu dapper-security main restricted universe multiverse
deb-src http://apt.ubuntu.org.tw/ubuntu dapper-security main restricted universe multiverse


# ubtw
deb http://apt.ubuntu.org.tw ubtw/
deb http://apt.ubuntu.org.tw ubtw-dapper/
#deb http://apt.ubuntu.org.tw ubtw-testing/

---------------------------------------------------------------------------------------------------------------------
#apt-get update -- update respository

++install media player and codec
1. apt-get install beep-media-player -- bmp player enhance xmms


++play mp3 in totem
1.aptitude update && sudo aptitude install gstreamer0.10-plugins-ugly