相機跟電腦上傳資料用藍芽會比插拔USB 線方便一點,但是有時候我的 Broadcom BCM20XX USB 藍芽卡明明在gnome 桌面下 blueman-applet 上看起來是好好的,相機pire 過也設成信任裝置,但是檔案就是無法從相機傳過去,傳了也是說失敗。後來發現一招:把USB藍芽卡拔起來再插回去,這樣做過後重傳相片就沒有問題了。
顯然什麼地方卡到(我是藍芽卡一直都插在USB槽上),但熱插拔之後就重置了
正常狀況下,上傳時blueman-applet 白色圖示會變綠,傳完後,notification 區域也會回報上傳完成,久久沒有看到這些,就可以考慮把USB藍芽卡拔起來再插回去
(This is the 5/20 of my #開放改變20 initiative in this year. )
開放世代("Generation Open"),特指以 "Open Content" (開放內容,包括知識,軟體與創作,...)為出發點的一種新的生活型態 但這裡強調的是群體長期的自由,而非個人一時的自由,因為個人一時的任意自由,是可以被有心人不公不義的用來去擷取個人利益而妨礙群體長期的自由,那不是大家所樂見的。
google code-beautifer
星期一, 10月 10, 2016
星期日, 10月 09, 2016
[solved] 解決gimp 一進入文字編輯模式就當掉的問題
最近遇到一個奇怪的問題,我覺得應該算是 gimp 的bug : 啟用gimp 的各種修圖輸出入功能都沒事,唯獨文字編輯模式不能使用:只要一進入文字模式,整個 gimp 就當掉,也就是說不能加文字到圖上去。
這個問題我搜尋了半天都找不到最近一年內的解答,不得已之下,先把 gimp 2.8版自動在家目錄下產生的.gimp-2.8 做個備份,然後重新啟動,這下就沒事了。比較了一下新的跟舊的~/.gimp-2.8目錄,發現除了一些因為客制化設定而變動的檔案內容外,新的目錄沒有 devicerc 這個檔案,這時才想起之前某些緣故,我把手寫版拿掉了還沒裝上去,也就沒去改設定,自然也就不會有這檔案。該不會是這個出問題吧?雖然字體跟輸入裝置應該不相干,不過我還是試了一下把 devicerc 這個舊檔案copy 過去新設定目錄,一進入文字模式馬上當,把devicerc這個舊檔案刪掉就好了。這實在很沒道理,但是這個問題就是這樣解決了。
之前2.6 版也是有遇到程式當掉,把gimp 的設定目錄刪掉,重啟讓他產生新的設定目錄就沒事了,所以gimp 對設定目錄不正常檔案內容的保護很不周到。下次再遇到gimp 啥怪問題,可以試著砍掉舊的~/.gimp-*.*目錄,然後重啟這一招
(This is the 4/20 of my #開放改變20 initiative in this year. )
這個問題我搜尋了半天都找不到最近一年內的解答,不得已之下,先把 gimp 2.8版自動在家目錄下產生的.gimp-2.8 做個備份,然後重新啟動,這下就沒事了。比較了一下新的跟舊的~/.gimp-2.8目錄,發現除了一些因為客制化設定而變動的檔案內容外,新的目錄沒有 devicerc 這個檔案,這時才想起之前某些緣故,我把手寫版拿掉了還沒裝上去,也就沒去改設定,自然也就不會有這檔案。該不會是這個出問題吧?雖然字體跟輸入裝置應該不相干,不過我還是試了一下把 devicerc 這個舊檔案copy 過去新設定目錄,一進入文字模式馬上當,把devicerc這個舊檔案刪掉就好了。這實在很沒道理,但是這個問題就是這樣解決了。
之前2.6 版也是有遇到程式當掉,把gimp 的設定目錄刪掉,重啟讓他產生新的設定目錄就沒事了,所以gimp 對設定目錄不正常檔案內容的保護很不周到。下次再遇到gimp 啥怪問題,可以試著砍掉舊的~/.gimp-*.*目錄,然後重啟這一招
(This is the 4/20 of my #開放改變20 initiative in this year. )
星期三, 9月 28, 2016
Mageia 5 WPA2 Enterprise setting [solved]!
If your you need to connect to a WPA2 Enterprise wireless server similar to this setting in Ubuntu's network manager
Wireless security: WPA & WPA2 Enterprise
Authentication: Protected EAP (PEAP)
Anonymous Identity: NetID
CA certificate: None
PEAP version: Automatic
Inner Authentication: MSCHAPv2
Username: NetID
Password: password
This is the Ubuntu's WPA2 for setting above using network manager in wpa_supplicant.conf
network={
pairwise=CCMP
proto=RSN
ssid="YOURWPA2_AP_SSID"
password="MYPASSWD"
eap=PEAP
key_mgmt=WPA-EAP
phase2="auth=MSCHAPV2"
identity="MYNETID"
auth_alg=OPEN
phase1="peaplabel=auto peapver=0"
eapol_flag s=0
disbaled=1
}
This is the setting of the default Mageia 5 WPA2 Enterprise setting using network manager. in /etc/wpa_supplicant.conf. This will not work.
network={
pairwise=TKIP
proto=WPA
identity="MYNETID"
ssid="YOURWPA2_AP_SSID"
password="MYPASSWD"
scan_ssid=1
group=TKIP
mode=0
eap=PEAP
key_mgmt=WPA-EAP
phase2="auth=MSCHAPV2"
}
This is the Mageia's working WPA2 Enterprise setting equivalent to the one in Ubuntu . It works!
network={
pairwise=CCMP
proto=RSN
identity="MYNETID"
ssid="YOURWPA2_AP_SSID"
password="MYPASSWD"
scan_ssid=1
group=CCMP TKIP
mode=0
eap=PEAP
key_mgmt=WPA-EAP
phase2="auth=MSCHAPV2"
}
the difference between Ubuntu and Mageia's default WPA2 enterprise setting
+ scan_ssid=1 // mageia default
+ group=TKIP // mageia old use TKIP
+ mode=0 // mageia default
- auth_alg=OPEN // Ubuntu's, not needed in
- phase1="peaplabel=auto peapver=0" // Ubuntu
- eapol_flags=0 // Ubuntu
- disbaled=1 // Ubuntu
diff wpa_supplicant.conf wpa_supplicant.conf.old (the later the is Mageia's non-working default setting)
< pairwise=CCMP
< proto=RSN
< group=CCMP TKIP
> pairwise=TKIP
> proto=WPA
> group=TKIP
This is the 2/20 of my 開放改變20 initiative in this year.
Wireless security: WPA & WPA2 Enterprise
Authentication: Protected EAP (PEAP)
Anonymous Identity: NetID
CA certificate: None
PEAP version: Automatic
Inner Authentication: MSCHAPv2
Username: NetID
Password: password
This is the Ubuntu's WPA2 for setting above using network manager in wpa_supplicant.conf
network={
pairwise=CCMP
proto=RSN
ssid="YOURWPA2_AP_SSID"
password="MYPASSWD"
eap=PEAP
key_mgmt=WPA-EAP
phase2="auth=MSCHAPV2"
identity="MYNETID"
auth_alg=OPEN
phase1="peaplabel=auto peapver=0"
eapol_flag s=0
disbaled=1
}
This is the setting of the default Mageia 5 WPA2 Enterprise setting using network manager. in /etc/wpa_supplicant.conf. This will not work.
network={
pairwise=TKIP
proto=WPA
identity="MYNETID"
ssid="YOURWPA2_AP_SSID"
password="MYPASSWD"
scan_ssid=1
group=TKIP
mode=0
eap=PEAP
key_mgmt=WPA-EAP
phase2="auth=MSCHAPV2"
}
This is the Mageia's working WPA2 Enterprise setting equivalent to the one in Ubuntu . It works!
network={
pairwise=CCMP
proto=RSN
identity="MYNETID"
ssid="YOURWPA2_AP_SSID"
password="MYPASSWD"
scan_ssid=1
group=CCMP TKIP
mode=0
eap=PEAP
key_mgmt=WPA-EAP
phase2="auth=MSCHAPV2"
}
the difference between Ubuntu and Mageia's default WPA2 enterprise setting
+ scan_ssid=1 // mageia default
+ group=TKIP // mageia old use TKIP
+ mode=0 // mageia default
- auth_alg=OPEN // Ubuntu's, not needed in
- phase1="peaplabel=auto peapver=0" // Ubuntu
- eapol_flags=0 // Ubuntu
- disbaled=1 // Ubuntu
diff wpa_supplicant.conf wpa_supplicant.conf.old (the later the is Mageia's non-working default setting)
< pairwise=CCMP
< proto=RSN
< group=CCMP TKIP
> pairwise=TKIP
> proto=WPA
> group=TKIP
This is the 2/20 of my 開放改變20 initiative in this year.
星期六, 9月 03, 2016
.emacs 除錯
emacs 是個很強大的編輯器,把.emacs 設好就會展現強大功能,但要新手一下就能對.emacs除錯不易。
覺得emacs 起始頁說要你用emacs --debug-init真是胡扯,我照做了,啥都看不見。正解應該是(至少是在v24.4 之類在xwindows 下跑的emacs):不管錯誤先進emacs再說 ,然後用meta-x ielm進入 inferior lisp mode,下面幾乎就跟完整lisp 解譯發展環境一樣隨你跑,打入一個變數,他就會立即顯示他的值,然後去觀察這值為何沒有設定好。emacs 的外掛大部份時候其實就是把變數設正確就成了。理論上不跑 ielm 用熱鍵contrl-h v 也可以,可是變數一多,重複打熱鍵這就會很煩
而且既然是個lisp 解譯發展環境,可以拿來解決一些生活上的小問題,或拿來練練功也不錯
覺得emacs 起始頁說要你用emacs --debug-init真是胡扯,我照做了,啥都看不見。正解應該是(至少是在v24.4 之類在xwindows 下跑的emacs):不管錯誤先進emacs再說 ,然後用meta-x ielm進入 inferior lisp mode,下面幾乎就跟完整lisp 解譯發展環境一樣隨你跑,打入一個變數,他就會立即顯示他的值,然後去觀察這值為何沒有設定好。emacs 的外掛大部份時候其實就是把變數設正確就成了。理論上不跑 ielm 用熱鍵contrl-h v 也可以,可是變數一多,重複打熱鍵這就會很煩
而且既然是個lisp 解譯發展環境,可以拿來解決一些生活上的小問題,或拿來練練功也不錯
星期日, 8月 28, 2016
gnome 檔案管理員用/media/或/mnt/方式掛載磁碟分割區的考量
以前linux 的磁碟分割區一般都放在/mnt下。現在非native的異類檔案系統比如說osx 的hpfplus或windows 的ntfs可以放在/mnt也可放在/media (而且是預設值)怎樣用才好?一直到我最近把gnome shell整合跑一遍,我才了解一些使用設計細節:
/media/ 設計是給mount on demand 的分割區用的,所以指定掛載點要選/media/或/mnt/的方式,不是看是不是非native 檔案系統,而是看你打算怎樣用他:
在gnome 的檔案管理員,(如nemo) ,按F9 有個側邊欄可以切換顯示
所以有幾個應用模式可以思考:
/media/ 設計是給mount on demand 的分割區用的,所以指定掛載點要選/media/或/mnt/的方式,不是看是不是非native 檔案系統,而是看你打算怎樣用他:
在gnome 的檔案管理員,(如nemo) ,按F9 有個側邊欄可以切換顯示
- 假如是寫/mnt/的方式在/etc/fstab 裡指定掛載點,檔案管理員側邊欄不會特別顯示(除非你特地加書籤)
- "外部"(這是相對應用固定掛在/mnt/下而言)磁碟分割區不管有沒有mount,都會在側邊欄裏顯示在"裝置"這一區裏,這跟是不是native的檔案系統無關(比如esata 或usb 行動碟也可以用ext 的檔案系統)
- * 但是假如你用/media/的方式在/etc/fstab 裡指定掛載點,一開機他就會mount 起來,但是gnome 的檔案管理員側邊欄會有多一個按鈕可以unmount
所以有幾個應用模式可以思考:
- 每次都掛載的固定不動磁碟分割區,請用/mnt/的方式,必要時用gnome 的書籤指定,方便在檔案管理員側邊欄裏顯示存取
- *不想在gnome檔案管理員側邊欄老看到某個磁碟分割區礙眼,那就在/fstab裡用/mnt的方式把他掛起來吧
- 固定不動磁碟分割區,但是偶一為之才要掛載,請把磁碟分割區的分割區標籤設好(不然在檔案管理員側邊欄只會顯示他的容量大小,不容易看出誰是誰),不要寫進/etc/fstab,系統開機看到他,在使用gnome 的檔案管理員,就會在側邊欄顯示,你可以按右鍵掛載,不過需要root 密碼
- 常常要用,但偶而要卸載的磁碟分割區(也許esata 之類的外接硬碟爾而要拿給其他電腦交換資料會有這種需求),就用/media/的方式在/etc/fstab裡指定掛載點
訂閱:
文章 (Atom)