星期五, 11月 30, 2018

Samba 文字編碼設定

之前安裝的 samba 設定文字編碼,結果這2天因為一些原因,看了一下 log 檔,結果發現一直有噴錯誤訊息,查了一下,有2個問題,一個是放置區段了,得放在 [global] 裡頭才;另一個則是 display charset 參數在 Samba 4 似乎已經不支援了

原先設定:
[share]
    dos charset = UTF-8
    unix charset = UTF-8
    display charset = UTF-8

錯誤訊息:
Unknown parameter encountered: "display charset"

。
修正後設定:
[global]
    dos charset = cp950
    unix charset = utf8
    #display charset = UTF-8

星期三, 11月 28, 2018

轉 [Ubuntu] 10 Best Application Launchers for Linux Desktops

文章來源:FOSSMint 10 Best Application Launchers for Linux Desktops


  1. Cerebro
  2. Synapse
  3. Gnome Pie
  4. Albert
  5. Apwal
  6. Ulauncher
  7. Gnome DoKupfer
  8. Launchy
  9. Rofi


星期一, 1月 09, 2017

[雜] How to make ReCaptcha readable

讓免空下載識別具有可讀性

原文網址:http://wordrider.net/forum/10/17077

How to make ReCaptcha readable with SlimerJS 
There are two kind of versions of SlimerJS: standalone and lightweight. 
  • SlimerJS standalone version is recommended whether you have Firefox installed or not. The standalone version depends on operating system (OS) and architecture. 
  • You can use the lightweight version if you have Firefox installed. You can download SlimerJS lightweight version here. But because the lightweight version depends on your Firefox installation, breakages are possible in the future, you're on your own if you choose the lightweight version. You can use the lightweight version for all operating systems.

Steps to integrate SlimerJS with FRD. We use standalone version (0.9.6) for Windows as an example: 
  1. Copy slimerjs-0.9.6-win32.zip (for Windows standalone version) to "tools" folder inside your FRD installation folder.
  1. Extract slimerjs-0.9.6-win32.zip. You'll get slimerjs-0.9.6-win32 folder, rename it to slimerjs.
  1. Update recaptcha plugin to at least version 1.1.0 (Help -> Check for new plugins).
‧‧‧‧‧‧‧‧‧‧‧‧‧‧‧

星期六, 7月 16, 2016

匯出匯入 Compiz 的設定

compiz  的設定散佈在自己帳號家目錄下好幾個檔案,有沒有辦法把它備份下來,出問題時再匯入呢?
找了一下資料,在 stackoverflow 可以 2、3 種解決辦法,不過,我覺得最簡單的方式是:
dconf  dump (匯出) 和 dconf load (匯入)

將 Compiz 設定匯出
Unity 介面:

  • dconf  dump /org/compiz/profiles/unity/   > my-unity-compiz.ini
  • dconf  dump /org/compiz/profiles/unity/   > my-unity-compiz.ini

mate 介面:

  • dconf  dump /org/compiz/profiles/mate/   > my-mate-compiz.ini
  • dconf  dump /org/compiz/profiles/mate/   > my-mate-compiz.ini



星期一, 12月 15, 2014

[生活] 枸杞根改善溼疹?

轉載:
http://www.life.com.tw/?app=view&no=195116

[生活]衣服、棉被發霉如何去霉


轉載
http://www.life.com.tw/?app=view&no=207468

星期六, 11月 29, 2014

[Ubuntu] Samba (網路芳鄰) 服務效能的設定值

Samba 官方文件說明:
http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html

網路上討論 Samba 效能的設定值:Faster Samba (SMB / CIFS) Share Performance
strict allocate = Yes
read raw = Yes
write raw = Yes
strict locking = No
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
min receivefile size = 16384
use sendfile = true
aio read size = 16384
aio write size = 16384