災難是那個 touchpad -- button 跟 pad 合併在一起。
所以按button 時,會 移動 一下游標..
真是災難呀!!
枉費那個 tackpoint....
-- 這不知道是那一格無腦的工程師設計出來的..
-- 超。無。腦。
ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上
New USB device found, idVendor=07d1, idProduct=a804mount 再 umount 後,vid, pid 是:
New USB device found, idVendor=07d1, idProduct=7e11但是這時後也沒有出現 usb serial port。
sudo vi /etc/usb_modeswitch.d/07d1:a804
########################################################
# D-Link DWM-156 HSUPA 3.75G USB Modem
DefaultVendor= 0x07d1
DefaultProduct=0xa804
TargetVendor= 0x07d1
TargetProduct= 0x7e11
MessageContent="5553424312345678000000000000061b000000020000000000000000000000"
CheckSuccess=20
寫好就可以用 usb_modeswitch 來切了..[25387.281621] usb 2-1.1.4.2: new high speed USB device using ehci_hcd and address 19
[25387.391940] usb 2-1.1.4.2: New USB device found, idVendor=07d1, idProduct=a804
[25387.391946] usb 2-1.1.4.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[25387.391950] usb 2-1.1.4.2: Product: D-Link WCDMA Technologies MSM
[25387.391954] usb 2-1.1.4.2: Manufacturer: D-Link,Incorporated
[25387.391957] usb 2-1.1.4.2: SerialNumber: MF112DDLKD010000
[25387.392114] usb 2-1.1.4.2: configuration #1 chosen from 1 choice
[25387.394534] scsi16 : SCSI emulation for USB Mass Storage devices
[25387.394655] usb-storage: device found at 19
[25387.394659] usb-storage: waiting for device to settle before scanning
[25392.392130] usb-storage: device scan complete
[25392.392810] scsi 16:0:0:0: CD-ROM HSPA USB SCSI CD-ROM 2.31 PQ: 0 ANSI: 2
[25392.397282] sr1: scsi-1 drive
[25392.397481] sr 16:0:0:0: Attached scsi CD-ROM sr1
[25392.397632] sr 16:0:0:0: Attached scsi generic sg4 type 5
用 usb_modeswitch 來切換 mode:
$ sudo usb_modeswitch -c /etc/usb_modeswitch.d/07d1:a804
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode or class (1)
Accessing device 022 on bus 002 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
SCSI inquiry data (for identification)
-------------------------
Vendor String: HSPA
Model String: USB SCSI CD-ROM
Revision String: 2.31
-------------------------
USB description data (for identification)
-------------------------
Manufacturer: D-Link,Incorporated
Product: D-Link WCDMA Technologies MSM
Serial No.: MF112DDLKD010000
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Waiting for original device to vanish ...
Original device can't be accessed anymore. Good.
Searching for target devices ...
Found correct target device
Mode switch succeeded. Bye.
[38715.226573] usb 2-1.1.4.2: new high speed USB device using ehci_hcd and address 23
[38715.337316] usb 2-1.1.4.2: New USB device found, idVendor=07d1, idProduct=7e11
[38715.337321] usb 2-1.1.4.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[38715.337324] usb 2-1.1.4.2: Product: D-Link WCDMA Technologies MSM
[38715.337327] usb 2-1.1.4.2: Manufacturer: D-Link,Incorporated
[38715.337329] usb 2-1.1.4.2: SerialNumber: MF112DDLKD010000
[38715.337460] usb 2-1.1.4.2: configuration #1 chosen from 1 choice
sudo modprobe usbserial vendor=0x07d1 product=0x7e11
[38715.339951] usbserial_generic 2-1.1.4.2:1.0: generic converter detected
[38715.340069] usb 2-1.1.4.2: generic converter now attached to ttyUSB0
[38715.340178] usbserial_generic 2-1.1.4.2:1.1: generic converter detected
[38715.340280] usb 2-1.1.4.2: generic converter now attached to ttyUSB1
[38715.340537] scsi20 : SCSI emulation for USB Mass Storage devices
[38715.340695] usb-storage: device found at 23
[38715.340699] usb-storage: waiting for device to settle before scanning
[38715.340788] usbserial_generic 2-1.1.4.2:1.3: generic converter detected
[38715.340889] usb 2-1.1.4.2: generic converter now attached to ttyUSB2
[38720.337127] usb-storage: device scan complete
/$ smbclient //192.168.147.235/source -U softwaretest -W lowtech
注意是用 unix 的 folder seperator (/) 不是 windows 的 (\)-U : with user name. -W : with working groupelogin 完成後,就可以用類似 ftp 的 command. get put ls dir cd 來傳檔,工作。
-L : browse the share -- 看看/列出 內容就好。-W 的 workgroup 很重要,如果沒有加這個 option, smbclient 會用 /etc/samba/smb.conf 的設定。
session setup failed: NT_STATUS_LOGON_FAILURE
的 error
update-alternatives: error: alternative path /etc/X11/xinit/xinput.d/scim-bridge doesn't exist.
查一下我連 xinput.d 這個 folder 都沒有,所以就 install xinput。
然後到舊的 把 xinput.d/sci* copy 過來,再作一次 dist-upgrade 就..
The following partially installed packages will be configured:
scim-bridge-agent scim-bridge-client-gtk
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up scim-bridge-agent (0.4.16-2+b1) ...
update-alternatives: using /etc/X11/xinit/xinput.d/scim-bridge to provide /etc/X11/xinit/xinput.d/ja_JP (xinput-ja_JP) in auto mode.
update-alternatives: using /etc/X11/xinit/xinput.d/scim-bridge to provide /etc/X11/xinit/xinput.d/ko_KR (xinput-ko_KR) in auto mode.
update-alternatives: using /etc/X11/xinit/xinput.d/scim-bridge to provide /etc/X11/xinit/xinput.d/zh_CN (xinput-zh_CN) in auto mode.
update-alternatives: using /etc/X11/xinit/xinput.d/scim-bridge to provide /etc/X11/xinit/xinput.d/zh_TW (xinput-zh_TW) in auto mode.
update-alternatives: using /etc/X11/xinit/xinput.d/scim-bridge to provide /etc/X11/xinit/xinput.d/zh_HK (xinput-zh_HK) in auto mode.
update-alternatives: using /etc/X11/xinit/xinput.d/scim-bridge to provide /etc/X11/xinit/xinput.d/zh_SG (xinput-zh_SG) in auto mode.
Setting up scim-bridge-client-gtk (0.4.16-2+b1) ...
就 OK 了(?)
$lspci | grep VGA
01:00 VGA compatible controller: ATI Technologies Inc RV350 AQ [Radeon 9600]
所以 install
$sudo aptitude istall xorg xserver-xorg-video-radeon mesa-utils
然後 follow instruction..
# Xorg -configure
# cp /root/xorg.conf.new /etc/X11/xorg.conf
edit .xinitrc
#!/bin/sh
exec xterm
這樣 run startx 後,已經可以開啟 X,並且有 xterm。
但是沒有 windows manager。
所以 install 一個小的:
$sudo aptitude install lwm
啟動 startx 後,再下 command : lwm&
就有 windows manager 了
exec gnome-session
就可以用 startx 進入 gnome。
可是重開機後,gdm3 就直接進 gnome 了。
比較一下當初 upgrade 完 squeeze 後,gdm login 完變成black screen (只有 mouse cursor) 好像是 video driver 的問題。從 ati 改成 radeon 就是現在的版本。
What fixed the issue for me was: 1. Deleting /var/lib/locales/supported.d/local 2. Deleting /usr/lib/locales/* (you may want to backup the data in this directory, to recover if the next step doesn't work) 3. sudo dpkg-reconfigure locales After that, gnome-language-selector works.
#export http_proxy="http://192.168.147.242:3128"
先 設好環境變數,
再 依照 instruction run
#/arch/setup
台灣的 mirror:
http://www.mirror.tw/pub/ArchLinux/core/os/i686
安裝完後,在 /etc/pacman.d/mirrirlist 里..
Server = http://www.mirror.tw/pub/ArchLinux/$repo/os/i686
增加的 "$" 符號,在 /etc/pacman.conf 中有說明。
$ 以後的字串,會依照 pacman.conf 的設定代換其他path。
之後,如果想自動設定 http_proxy ,可以在 /etc/profile.d 下 create proxy.sh:
export http_proxy="http://192.168.147.242:3128"
開機有點慢耶network driver 自動load 好了,中間的(modprobe ethernet driver)都不比作,進入 network config..
export http_proxy="http://192.168.147.240:3128"接著作 hd create partition (可以只用一個 partition 嗎? 加上 swap 是 2 個 )
mount /dev/hda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
Download
stage3 安裝檔 : stage3-i686-這個解開後,root 的 file architecture(/dev, /usr /etc...) 好像就好了portage : portage-latest.tar.bz2 (37M) 解開到剛剛由 stage3-i686-.tar.bz2 解開的 /usr 下 (就是 /mnt/gentoo/usr)
設好好像沒有用準備好環境作 chroot
會在 /usr/src/linux
debootstrap lenny /mnt http://ftp.us.debian.org/debian
如果在 proxy 後面就要先設 proxy。所以沒有網路連線能力的就沒拜法裝了Download Android SDK : http://developer.android.com/intl/zh-TW/sdk/index.html
所以最好把 解開的 android-sdk-windows copy 到適當的地方裝完 SDK 後再去裝 Eclipse 和 ADT plugin,因為裝完後 。 要去設 Eclipse 的 Android SDK location。
./configure --prefix=/home/charles/pilotmake結果出現 error:
contactsdb-test.c:28:18: 錯誤: popt.h:沒有此一檔案或目錄 contactsdb-test.c: In function 「main」: contactsdb-test.c:348: 警告: 「pilot_connect」 is deprecated (declared at ../include/pi-header.h:31) make[2]: *** [contactsdb-test.o] Error 1 make[2]: Leaving directory `/home/charles-chang/pilot-link-0.12.4/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/charles-chang/pilot-link-0.12.4' make: *** [all] Error 2看一下,是有 popt 這個 folder,也有 popt.h 呀。 所以用 ./configure --help 看一下.. 有這個選項:
--enable-conduits Build the userland conduits所以 重新 configure..
./configure --enable-conduits --prefix=/home/charles/pilot這樣出現的config message 就有:
Userland Tools -------------------------. Build userland tools.... : yes Support for popt........ : yes (internal)之後再make 就 OK 了!
wget http://kernel.org/pub/software/scm/git/git-1.5.4.5.tar.gz tar zxvf git-1.5.4.5.tar.gz cd git-1.5.4.5 make prefix=/usr/local all sudo make prefix=/usr/local install要裝 man page的話:
wget http://kernel.org/pub/software/scm/git/git-manpages-1.5.4.5.tar.gz cd /usr/local/share/man sudo tar zxvf ~/git-manpages-1.5.4.5.tar.gz然後就可以
git --version man git看看是不是 work.
deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main然後收 GPGKEY
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com EF4186FE247510BE然後再install firefox 3.6 就可以
Basically the steps are: 1 - sudo apt-get install socket 2 - in your home directory, put a shell script called "proxy-cmd.sh" containing (replace YOUR_PROXY and YOUR_PROXY_PORT with your own proxy parameters): #! /bin/bash (echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket YOUR_PROXY YOUR_PROXY_PORT | (read a; read a; cat ) 3 - chmod +x proxy-cmd.sh 4 - export GIT_PROXY_COMMAND=<PATH TO YOUR SCRIPT>/proxy-cmd.sh Enjoy, Matthieu PS: you can export GIT_PROXY_COMMAND in your ~/.bashrc file to make this permanent還沒確認有沒有效...
From: Jan-Benedict Glaw <jbglaw@lug-owl.de> Date: 2006-05-18 18:31:32 On Wed, 2006-05-17 20:44:28 -0700, Sam Song <samlinuxkernel@yahoo.com> wrote: > Petr Vandrovec <petr@vmware.com> wrote: > > Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote: > > > Well, install some package to have `socket' > > > available? Debian calls > > > the packet `socket', too, so I guess Fedora may > > > have something similar. > > > > Surprisingly they do not... You should be able to > > replace 'socket' with > > 'netcat' - and I believe that netcat/nc package is > > available for Fedora. For > > this purpose they have same command line & behavior. > > Ummm, I am trying on that. nc is avaiable for Fedora. > But what could be the replacement for CONNECT in > Fedora? :-) Erm, you haven't understood what you're doing there, have you? With the GIT_PROXY_COMMAND helper, you're expected to create a clean tunnel which in turn git can use to transfer its data. You've only got some limited internet connectivity via a HTTP proxy available, so you need to use this. This means: * The proxy administrator needs to allos outgoing connections for the CONNECT method with git's TCP port. * You need to have some minimalistic program to initially speak HTTP with the proxy and later on just stream the raw git protocol through the link. * You may or may not need to strip anything that came into the git stream by accident because you tunnled it through a HTTP proxy. A reply message from the proxy server is an example for this. So this little script (using "CONNECT" and netcat or socket) does the first part: it talks in the language HTTP with the proxy server. It may be enough to just use CONNECT, but you may need to speak some more lines, eg. for proxy authorization. The first `cat' in there is just for pushing the git protocol though the HTTP proxy connection later on (hopefully after the proxy was made to accept the the CONNECT request.) Once the proxy accepted it, it'll send you a HTTP/200 message (or something like that) and an empty line. This is what the two reads are for; the next `cat' simply again transfers all the rest (the git protocol). To draw the line, there's not _one_ solution to HTTP proxy tunneling, there are many, and you'll need to design one that fits your network. It should be quite simple, given that you've got nice tools like `strace' and `tcpdump', which will help you to understand how the proxy reacts and so on. MfG, JBG -- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)); - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
charles-chang@rbtlegacy:~/android-eee$ repo init -u git://android.git.kernel.org/platform/manifest.git Getting repo ... from git://android.git.kernel.org/tools/repo.git fatal: protocol error: bad line length character所以是 Fail... 不知道是不是公司的squid proxy 不允許 CONNECT 這個 operation. 同樣的一篇有說:
Note: most HTTP proxy servers allow CONNECT method to a very limited range of ports, and administrators will need to enable the git port (9418) explicitly.所以要問 MIS 有沒有 允許 CONNECT method和開啟 git 要用的 9418 port。