2014年10月27日 星期一

大搬家…

 
今天把FB關閉了....
但現在的FB備份,無法備份網誌,
再加上之前 WordPress blog我的舊網誌~
索性就來個大搬家~
全部都搬進來Blogger統一管理!!
以後三不五十就可以在這裏寫些東西了~

Asterisk 1.7.1 Setting Login



進入root prompt

 1) 輸入 system-config-network,更改network設定, /etc/init.d/network restart

 2) 輸入yum -y update

 3) reboot

4) edit /etc/asterisk/http.conf as follows:
enabled = yes (remove semicolon)
enablestatic = yes (remove semicolon)
bindaddr = 0.0.0.0 (change from 127.0.0.1 to 0.0.0.0 to allow all IP)
prefix = asterisk (you have to put this for Asterisk 1.6)

5) edit /etc/asterisk/manager.conf as follows:

eanbled = yes
webenabled = yes

#add the following lines
[admin]
secret = test
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config

 GUI Login name = admin, password(asterisk 叫 secret) = 1234

 6) execute /etc/init.d/asterisk restart

 7) Using an brower with the URL = http://<your_asterisk_server_IP_address>:8088/asterisk/static/config/index.html

 可以看到Asterisk-GUI的界面。

 8) 輸入 username = admin, password = 1234, 就可以Login Asterisk-GUI

[Ubuntu]Lenovo Wifi not work.


解決方法:
sudo gedit /etc/modprobe.d/blacklist.conf
新增一筆內容如下:
blacklist acer_wmi

儲存後Reboot。即可。

[Ubuntu] Wireshark no interface



sudo groupadd wireshark
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 4754 /usr/bin/dumpcap
sudo usermod -a -G wireshark takashi
id takashi
#id takashi check group.reboot

-------------------------------------------------------
Upgrade to 1.8.2

To install the PPA, run the following command:

sudo add-apt-repository ppa:eugenesan/ppa

then run

sudo apt-get install wireshark

[ZPL]BC命令的格式


BC命令的格式:
^BCo,h,f,g,e,m

^BC = Code 128條碼
o  = 字體方向
默認值:^FW默認值或上一個^FW的值。
其他值: N = 正常(Normal)
R = 順時針旋轉90度(Roated)
I  = 順時針旋轉180度(Inverted)
B = 順時針旋轉270(Bottom)
h = 條碼高度
默認值:^BY設置其他值:19999
f = 打印註釋行
默認值: Y = 打印(Yes)
其他值: N = 不打印(No)
g = 將註釋行打印在條碼上方
默認值: N = 不打印在條碼上方其他值: Y = 打印在條碼上方
e = 打印UCC校驗位
默認值:Y = 打印(Yes)
其他值:N = 不打印(No)
m = 模式
默認值:N = 不選擇模式其他值:U = UCC匹配模式。 (^FD^SN後必須有19位數字。)FNC1值自動選擇C子集。

版本16.3.0版本有效:
A = 自動模式。 自動模式將分析收到的數據並自動決定選取最佳的壓縮方式。 ^FD可以用全部ASCII字符。 打印機將確定是否變化子集。 四個及以上的數字將自動變化為C子集。

[ubuntu] install 嘸蝦米(ibus)




sudo dpkg -i ibus-table-boshiamy_1.3.0.20101012-1_all.deb

( ibus need restart)

[Ubuntu] Install WebATM



步驟一:安裝晶片讀卡機驅動程式 

1. 將下載回來的驅動程式解壓縮,使用終端機進到解壓縮後的檔案資料夾中,比如說,解壓到 /home/user/ ,那麼就輸入 

2. cd /home/user/EZUSB_Linux_x86_v1.4.9/driver_ezusb_v1.4.9

3. 輸入以下指令就完成安裝了。 

4. sudo ./install 
步驟二:安裝pcscd套件 

1. 開啟〔系統〕-〔管理〕-Synaptic套件管理程式〕 

2. 找到libccidlibpcsc-perlpcscdpcsc-tools四個套件,並把它們裝起來。 

3. 以上也可以使用終端機來下指令安裝,只要輸入以下指令即可: 

4. sudo apt-get install libccid libpcsc-perl pcscd pcsc-tools

裝好後關閉 Synaptic 視窗,重開機,或是在終端機中,輸入以下指令,重啟 pcscd

sudo /etc/init.d/pcscd restart

承上,重啟成功的話,請插上讀卡機,輸入以下指令,看看讀卡機是否正常運作:pcsc_scan


步驟三:安裝Firefox玉山銀行插件

1. 請用Firefox到這裡安裝Firefox玉山銀行網路ATM套件,安裝完就可以了!


[Ubuntu] virtualbox Kernel driver not installed (rc=-1908)



移除
# sudo apt-get remove virtualbox-dkms

安裝
# sudo apt-get -f install virtualbox-dkms

[Ubuntu] Install ATM EZ100 driver


1. download EZ100 Driver
http://www.casauto.com.tw/in-download-02.aspx?cid=C_00000001&id=P_00000001

2.
cd EZUSB_Linux/EZUSB_Linux_x86_v1.5.3/driver_ezusb_v1.5.3
sudo ./check_env
sudo ./install

3.
Ubuntu 12.04以上需修正
編輯 /etc/rc.local,在 exit 0 上方加上


# for EZ100 SmartCard Reader
/usr/sbin/pcscd&

exit 0

4.
Reboot

[Ubuntu]ubuntu 共享印表機 給 WINDOWS XP/7 使用



Ubuntu本機上新增印表機後,
就可以修改 smb.conf

sudo gedit /etc/samba/smb.conf
找到 ";security = user"
改成
security = share

reboot,然後在XP端,新增網絡印表機就可以找到了~


PS:記得,要先安裝samba.

[Ubuntu]Disable 'System Program Problem Detected' Errors in Ubuntu



 Disable 'System Program Problem Detected' Errors in Ubuntu

sudo gedit /etc/default/apport
· enabled=0

[Game] Rimworld enable Dev mode (for Mac)

In Finder Press Command+Shift+Dot to open hidden folder /Users/[user name]/Library/Application Support/RimWorld/Config/DevModeDisable Dele...