2012年11月8日 星期四

Installing eric5 IDE on Ubuntu 10.04



Note it is very important to install everything in the right order. From the Eric5 installation Readme you have install in this order:
  1. Install Python 3.1.0
  2. Build + install SIP
  3. Build + install PyQt 4.7.0 or better
  4. Build + install QScintilla 2.4.0 or better
  5. Build + install QScintilla 2.4.0 or better Python bindings.
  6. Eric5
Step-1: Install Python 3.1 and lib

apt-get install 
libqt4-dev python-qt4 python-qt4-dev pyqt4-dev-tools qt4-dev-tools python3-all 

Step-2: SIP installation
      a. python2.6 configure.py
      b. make
      c. make install

Step-3PyQt installation
      a. python2.6 configure.py
      b. make
      c. make install

Step-4QScintilla installation
      a. Edit qscintilla.pro => find DEFINES = QSCINTILLA_MAKE_DLL QT SCI_LEXER       
                                   =>QT3_SUPPORT  (add)      when you find message "ListBoxQt.cpp:250: error: 'class QPixmap' has no member named  
          'convertFromImage' "
      b. cd Qt4Qt5
      c. qmake qscintilla.pro
      d. make
      e. make install

Step-5 QScintilla Python installation

      a. cd python
      b. python configure.py  
      c. make
      d. make install

Step-6: Eric IDE installation
      a. python3.1 install.py
      b. make
      c. make install










2012年10月11日 星期四

Windows media audio 9 decoder for ubuntu 10.04

Step-1: Download decoder form fluend

32 bit:Fluendo.Playback.Plugins.v8.LINUX.zip

64 bit:Fluendo.Playback.Plugins.v7.x64.LINUX.zip

Supported Decoder List :

* Windows Media Audio Decoder (Windows Media 7, 8, 9, 10, Pro, Lossless and Speech)
* Windows Media Video Decoder (Windows Media 7, 8, 9 and VC1)
* Windows Media ASF Demuxer
* Windows Media MMS Networking
* MPEG2 Video Decoder
* MPEG4 Part 2 Video Decoder
* DivX 3.11 Alpha Video Decoder
* H.264/AVC Video Decoder
* MPEG2 Program Stream and Transport Stream demuxer
* MPEG4 ISO Demuxer
* MP3 Audio Decoder
* AAC Audio Decoder
* LPCM Audio Decoder

Step-2: Unzip download File

Unzip Fluendo.Playback.Plugins.v8.LINUX.zip or Fluendo.Playback.Plugins.v7.x64.LINUX.zip

Step-3: Move File To Lib

move file to /usr/lib/gstreamer-0.10 or /usr/lib/gstreamer0.10

2012年7月20日 星期五

PPPoE Server on Ubuntu


Step-1 安裝 PPPoE Server Software
a. sudo apt-get install ppp
b. wget -c http://easylinux.info/uploads/rp-pppoe-3.6.tar.gz
c. sudo tar zxvf rp-pppoe-3.6.tar.gz -C /opt/
d. sudo chown -R root:root /opt/rp-pppoe-3.6/

3)
安裝軟體開發函示庫:
sudo apt-get install libc6-dev
4)
產生需要的pppoe server程式
sudo /opt/rp-pppoe-3.6/go

Step-2修改vi /etc/ppp/option vi /etc/ppp/pppoe-server-options內容
#
edit vi /etc/ppp/option 參數設定
lock
crtscts
nobsdcomp
nodeflate
nopcomp
#

#Edit vi /etc/ppp/pppoe-server-options參數設定
require-chap
default-mru
default-asyncmap
lcp-echo-interval 60
lcp-echo-failure 5
ms-dns 168.95.1.1
noipdefault
noipx
nodefaultroute
# 

Step-3 設定Client所要求的IP
pppoe-server -I eth1 -L 192.168.1.1 -R 192.168.1.10-200
-L IP :
指定interface 端的IP
-R IP:
發出去的IP範圍

修改
/etc/ppp/pppoe-server-options
require-chap
require-pap
可選擇兩種之ㄧ

/etc/ppp/pap-secrets
test    *       123    *

/etc/ppp/chap-secrets
test    *       123    *

Step-4 設定NAT Forward

echo "1">/proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

2012年6月21日 星期四

自從開始使用Android手機後, 很久沒有更新過自己的Blog, 都忙著使用app與朋友互相傳送訊息, 工作上現在使用Python 與 Sikuli IDE寫測試程式, Sikuli IDE的影像辨識有時會發生錯誤, 但是在GUI上的操作, 很容易上手直覺化.

 Ubuntu has a mechanism, that is, the installed network card (NIC) will be renamed to another name when the system is booted. Although there...