Saturday, July 18, 2015

Compiling FreeSwitch on Lubuntu


I referenced the following page:

Debian/Ubunut and apt Based Systems
http://edoceo.com/howto/freeswitch#apt

~ # apt-get install gawk
~ # update-alternatives --set awk /usr/bin/gawk
~ # apt-get install autoconf build-essential git libtool make
~ # apt-get install libssl-dev libasound2-dev libogg-dev libvorbis-dev
~ # cd /usr/src
. # git clone -b v1.4 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
. # cd freeswitch
. # ./bootstrap.sh
. # ./configure ...
. # make
. # make install


The following commands are what I did actually. You may have to change them to fit your environment:

# apt-get install gawk
# update-alternatives --set awk /usr/bin/gawk
# apt-get install autoconf build-essential git libtool make
# apt-get install libssl-dev libasound2-dev libogg-dev libvorbis-dev
# apt-get install libjpeg-dev pkg-config sqlite3 libsqlite3-dev libcurl3 libcurl4-openssl-dev libpcre3-dev libspeex-dev  speex libspeex1 libspeexdsp-dev libldns-dev libedit-dev
# cd /usr/src/
# git clone -b v1.4 https://freeswitch.org/stash/scm/fs/freeswitch.git /usr/src/freeswitch
# cd /usr/src/freeswitch/
# ./bootstrap.sh
# ./configure
# make
# make install


Reference:

・No speex packages for freeswitch building on Ubuntu
http://askubuntu.com/questions/491479/no-speex-packages-for-freeswitch-building-on-ubuntu





Saturday, July 04, 2015

メモ Lubuntu サービスの管理

・登録されているサービスの一覧とその状態を表示する

sudo /usr/sbin/service --status-all

・指定したサービスを(開始|停止)する

sudo /usr/sbin/service サービス名 (start|stop)

・サービスを(有効|無効)にする

sudo /usr/sbin/update-rc.d サービス名 (enable|disable)

※ランレベルを指定することも可能


Sunday, November 30, 2014

autohotkeyでコントロールのClassNNを調べる

Windowsで自動操作を行うためにautohotkeyを調べています。

クリックするコントロールを指定する場合に、ClassNNを調べる必要があり、それはautohotkey付属のWindow spyを使うということなのですが、Windows 8.1では、shift+alt+tabでWindow spyにフォーカスがうまく移せません。

で、調べているとautohotkeyでコントロールの情報を取得することができるようです。これを少し変更してみました。

使い方は次の通りです。


  1. 調べたいコントロールの上にマウスをのせて、Ctrlキーとマウスの左ボタンを押す。
  2. ポップアップで情報が表示され、その情報がクリップボードにコピーされます。

; Reference:
; http://www.autohotkey.com/board/topic/116344-window-spy-shiftalttab-doesnt-freeze-text/

^LButton::
;get the position of mouse pointer and a handle id of the control under the mouse pointer
MouseGetPos, M_X, M_Y, M_Win, M_Ctrl, 2

;get text in the control
ControlGetText, OutputText,,ahk_id %M_Ctrl%

;set focus to the control to get ClassNN of the %M_Ctrl%
ControlFocus,,ahk_id %M_Ctrl%
ControlGetFocus, OutputClassNN, ahk_id %M_Win%

info = Win:%M_Win%`nCtrl:%M_Ctrl%`nText:%OutputText%`nClassNN:%OutputClassNN%`n

Msgbox, %info% 
Clipboard = %info%
Return