1 2 3 4 5 6 7 8 9 10 > 下一頁 | 最後一頁 1/17
檢視方式: 列表 摘要
[Ubuntu] Enable/Disable command suggestion
cdarkz 在天空部落發表於17:25:52 | Linux
Disable
1. Remove the package "command-not-found"
sudo apt-get remove command-not-found

2. Change folder name from command-not-found to command-not-found.bak
sudo mv /usr/share/command-not-found /usr/share/command-not-found.bak
(this will fix the bug "/usr/bin/python: can’t find ‘__main__.py’ in ‘/usr/share/command-not-found’")

Enable
1. Restore folder name
sudo mv /usr/share/command-not-found.bak /usr/share/command-not-found

2. Install the package "command-not-found"
sudo apt-get install command-not-found

Reference:
How to disable command-not-found in Ubuntu


[Mac] Setup 802.1x connection to Freeradius
cdarkz 在天空部落發表於14:19:48 | Mac
1. Using TTLS+MD5

2. Select PAP for TTLS


[Ubuntu] Setup Freeradius
cdarkz 在天空部落發表於14:16:27 | Linux
1. Install Freeradius
sudo apt-get install freeradius

2. Change folder mode bits
sudo chmod a+r /etc/freeradius

3. Add Client in radius server and co
sudo vim /etc/freeradius/clients.conf
client 192.168.0.10 {
        secret = 123456
        shortname = ap
}

4. Add user in radius server (this uses accounts of system)
sudo vim /etc/freeradius/users
DEFAULT Auth-Type = System

5. Restart Freeradius
sudo /etc/init.d/freeradius restart

6. You can use debug mode to execute Freeradius
sudo /etc/init.d/freeradius stop
sudo /usr/sbin/freeradius -X

7. You can test the account that can login radius server
radtest username password 127.0.0.1 0 testing123


[Ubuntu] GNOME terminal's default color & maximize option in Ubuntu 10.04
cdarkz 在天空部落發表於17:55:17 | Linux
I like the default color of the GNOME terminal in Ubuntu 10.04 very much. So I record it at this lest I should modify it mindlessly.
color 1:#2E3436
color 2:#CC0000
color 3:#4E9A06
color 4:#C4A000
color 5:#3465A4
color 6:#75507B
color 7:#06989A
color 8:#D3D7CF
color 9:#555753
color 10:#EF2929
color 11:#8AE234
color 12:#FCE94F
color 13:#729FCF
color 14:#AD7FA8
color  15:#34E2E2
color 16:#EEEEEC

I'm used to add an icon link to open ssh or kermit terminal, and I want it's opened minimized.

The method is to type the command below at command column:
gnome-terminal --maximize -e "ssh user@192.168.xx.xx"




觀看全文...
[Ubuntu] Add Thunderbird to Indicator Applet & using Gnome standard notification with Thunderbird
cdarkz 在天空部落發表於15:26:19 | Linux
If you want to replace Evolution to Thunderbird in Ubuntu, you can add Thunderbird to Indicator Applet besides install Thunderbird.

Please refer to http://ubuntuforums.org/showthread.php?t=1439519

I use Ubuntu 10.04 for my PC, I just do:
1. Install Thunderbird via Ubuntu Software Center or Synaptic
2. Add the text
/usr/share/applications/thunderbird.desktop
to the new file "/usr/share/indicators/messages/applications/thunderbird"
3. Logout and login and then done

But this method is just to add the Thunderbird link into Indicator Applet, I want Thunderbird to display new mail notification.

So I use the extension "Gnome Integration" of Thunderbird to achieve it:
1. Install the extension "Gnome Integration" (https://addons.mozilla.org/en-US/thunderbird/addon/123887/)
2. In Gnome Integration Option, you can press the "Test" button to test this function.
3. If the error indicates the command "notify-send" isn't exist, please install "libnotify-bin" via Synaptic.

But I am not still satisfy with this, because the method I want likes Thunderbird in Windows can show the tray icon to point out how much mails unread, I will keep going to discovery new method to do this.


觀看全文...
[Ubuntu] Fix word block for Flash player
cdarkz 在天空部落發表於16:17:30 | Linux
Please refer to http://255121.blogspot.com/2010/05/ubuntu-1004-flash-player.html

That article described three solutions.

I choice the second solution and it's worked fine.

The second method is:
1. Edit "/etc/fonts/conf.avail/49-sansserif.conf"
2. Modify the last
        <edit name="family" mode="append_last">
                <string>sans-serif</string>
        </edit>
to
        <edit name="family" mode="append_last">
                <string>sans serif</string>
        </edit>

3. That means to replace the dash to a space.


觀看全文...
[PHP] php_exif.dll cannot find module
cdarkz 在天空部落發表於14:57:57 | 程式語言
"php_exif.dll找不到指定的模組"的解決方法就是

修改php.ini,把extension=php_mbstring.dll放到extension=php_exif.dll之前就可以了

然後重啟Apache就完工啦~~


另外,要修改PHP execution time,修改php.ini裡的max_execution_time,預設是30秒

Beep in Linux
cdarkz 在天空部落發表於15:47:21 | Linux
在Linux中有個指令可以令電腦的蜂鳴器響起來,那就是beep

這個程式可以透過套件安裝,也可以去作者的網頁去下載原始碼來編譯,其實稍微看了一下原始碼,發現要讓電腦發出聲音還真簡單阿~~

相關網站:
beep Main page

Read Magazine in Adobe Reader
cdarkz 在天空部落發表於13:53:38 | 資訊家電
***好久沒發文了~有空就把知道的小技巧做個紀錄***

最近常有用Adobe Reader來看一些中文的雜誌,再加上家裡的電腦螢幕是寬螢幕的,所以我通常都會用"連續雙欄"的顯示方式來閱讀,如果閱讀的是外文的電子書或雜誌,因為這類的實體書籍通常都是"由左至右"的文字格式,所以在這種"連續雙欄"的顯示方式閱讀起來沒有太大問題,而起看起來跟實體書籍的感覺一樣。

但是大部分中文書籍或是雜誌的文字卻是屬於"由右至左"的格式,一般Adobe Reader預設的"連續雙欄"的顯示方式會使得左右兩頁的文章顛倒,閱讀起來完全跟實體書籍不同,而且有些跨頁面的顯示也會很奇怪,所以這裡提供一個小技巧可以幫助這些"由右至左"格式的電子書看起來跟實體書籍一樣:

在【編輯】→【偏好設定...】中的【國際】選項,裡面有個【預設閱讀方向】的選單可以選,要閱讀右開格式的電子書就選擇【由右至左】,然後確定再從開文件既可。


Vim status bar
cdarkz 在天空部落發表於10:31:40 | Linux
在之前的文章Ubuntu 9.04 install note中有提到去修改Vim的設定,讓Vim更好用。

過去有時候要知道現在編輯的檔案名稱或檔案的長度,都要下指令去顯示,但現在我又在Vim中加入status bar,讓Vim可以顯示更多資訊,使得Vim更好用,之前的問題也就沒有了,唯一的缺點就是這個status bar會佔去一列的空間,不過這還可以接受。

在Vim的設定檔/etc/vim/vimrc中,加入以下的code,就可以產生如下圖的效果:

set laststatus=2
set statusline=File:\ %m%<%f\%r%h%w\ [%{&ff},%{&fileencoding},%Y]%=\ [ASCII=\%03.3b]\ [Hex=\%02.2B]\ [Pos=%l,%v,%p%%]\ [Total\ Line=%L]


至於這兩行code的意義,請自行參考Vim的文件Vim documentation


1 2 3 4 5 6 7 8 9 10 > 下一頁 | 最後一頁 1/17
檢視行動版網頁  |  檢視正常版網頁
系統公告
熱情贊助
yam揪便宜
個人檔案
個人圖檔
ID:cdarkz
暱稱:Casper群
地區:臺中市

yam今日我最殺
搜尋此頻道內容
搜尋:
cdarkz的最新的回應
文章分類
每月文章彙集
相關標籤
XBOX360
人氣指數
當日人次:
累積人次:
誰來我家
RSS 訂閱
其它資訊
本部落所刊登之內容,皆由作者個人所提供,不代表 yam 天空部落 本身立場。
POWERED BY
POWERED BY 天空部落
會員登入免費註冊