Learning in Ubuntu

Tuesday, November 28, 2006

[apt-get套件 sourcelist的位置]

/etc/apt下

[搜尋檔案的方式]
find vs. locate
find locate
搜尋方式:直接對硬碟作search 去資料庫(/var/lib/slocate/slocate.db)找資料

如果剛加入的檔案要用locate搜尋得到的話 必須先使用updatedb指令 來更新資料庫

為了增加效率 通常會先使用locate(or whereis)先搜尋
如果找不著在使用find來搜尋檔案

Reference:
鳥哥的Linux私房菜-Linux檔案與目錄管理-檔案的搜尋


ps:
grep 此指令可以針對檔案內容進行搜尋

ex.
grep ubuntu a.txt

那麼結果會顯示a.txt中有ubuntu字樣的內容 以行為單位

Monday, November 27, 2006

[Install Stardict in Ubuntu]

  1. 下載安裝檔 位置:http://stardict.sourceforge.net/ 下載:stardict-2.4.8.tar.bz2
  2. 開啟終端機 解壓縮此archive [tar jxvf stardict-2.4.8.tar.bz2] (此處我在/usr/local處解壓縮)
  3. 可參考該目錄下有個安裝說明檔案 檔名為INSTALL(我安裝的流程) ./configure --disable-gnome-support --prefix=/usr apt-get install g++ (我缺少此套件的關係) make make install
  4. 安裝完成 請直接下startdict即可啟動星際譯王
下載字典檔
http://stardict.sourceforge.net/Dictionaries.php
http://stardict.sourceforge.net/Dictionaries_zh_TW.php

下載完之後
將字典檔解壓縮到 /usr/share/stardict/dic
ex. 下載21 century bidirectional dictionary 21世紀英漢漢英雙向詞典
[tar jxvf stardict-21shijishuangyukejicidian-big5-2.4.2.tar.bz2 ]

Sunday, November 19, 2006

[觀看mpg檔]

用totem沒有辦法播放
想要安裝mplayer,使用apt-get install mplayer
卻有下述error messages
/* error message
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
E: 無法找到 mplayer 套件。
*/

目前是安裝gxine 採用xine的引擎
安裝方式相當簡單
apt-get install gxine

完成

Saturday, November 18, 2006

[skype安裝使用成功]

作業系統:Edgy
skype版本:1.3.0.53


安裝方式:
  1. 去skype網站抓檔案,http://www.skype.com/intl/zh-Hant/download/skype/linux/,選取Dynamic binary tar.bz2
  2. 解壓縮此檔案(tar jxvf skype-1.3.0.53-generic.tar.bz2)
  3. 到skype-1.3.0.53的目錄下 執行skype這個檔案(./skype)
音效調整
目前使用usb的音效卡
功能->設定選項->裝置 選擇OOS
下方的聲音輸入 聲音輸出 鈴響 會相對應的設定為/dev/dsp1
按下確定

完成

[要開啟totem卻發生問題]
訊息:totem could not open resource for write

目前所裝設的音效卡 是usb介面

解決方式:
系統->偏好設定->音效
將設定中,事件音效,音樂與影片,音訊會議的聲音播放的選項 設定為USB Audio
就可以正常開啟totem

Monday, November 13, 2006

Some Important Reference Website

Ubuntu 正體中文 Wiki



Ubuntu正體中文站



Ubuntu

Saturday, November 11, 2006

[加入ubuntu-devel mailing list]

ubuntu-devel maillist list是一個關於program的mailing list
可以讓你寫新的軟體 增加新的功能 以及修改bug
  • 加入ubuntu-devel mailing list
  • 如果較沒有經驗在maintain distribution packages,可以在Masters of the Universe尋求協助。MOTU ToDo list可以讓你知道哪個project需要協助。
  • 一但有經驗之後,能夠從universe-only maintainer變成an Ubuntu main distribution maintainer,following this process.
  • 然後從Ubuntu specifications可以獲得足夠資訊去implementation.
  • 如果你對KDE有興趣,可以參考Helping Kubuntu wiki page.
  • There are some software projects for Ubuntu that are available as paid bounties. You can look through the list of bounties and then submit a proposal and references.
  • 撰寫完成的新軟體,可以給Ubuntu,在一段時間測試修改之後,你所撰寫的軟體就可以成為part of the Ubuntu Main portfolio of applications.
Original:

Programming and Packaging

The final way to make an impact in Ubuntu is by getting your hands on the code. You can make technical contributions to Ubuntu by writing new software, by packaging additional software, and by fixing bugs in software. If you're interested in hacking on Ubuntu:

  • The first step is to join and begin reading the ubuntu-devel mailing list. This is a requirement for anyone who contributes to Ubuntu as a maintainer.

  • If you are relatively inexperienced with maintaining distribution packages, then you should seek out the Masters of the Universe. The MOTU maintain the packages in universe, which has less strict requirements than the core Ubuntu components. They also mentor new maintainers on the policies and processes of Ubuntu. You can look over the MOTU ToDo list to see which projects need help.

  • Once you have gained experience with packaging tasks (for example, by playing an active role in the MOTU team), you will be able to move from a universe-only maintainer to an Ubuntu main distribution maintainer, following this process.

  • Look through the list of Ubuntu specifications. You can pick one of these and there should be enough information to begin with an implementation.

  • If you are interested in KDE, you may be interested in helping with the Kubuntu subproject. There is a list of ways to do this on the Helping Kubuntu wiki page.

  • There are some software projects for Ubuntu that are available as paid bounties. You can look through the list of bounties and then submit a proposal and references.

  • Write and package brand new software for Ubuntu. We can get new software into the Ubuntu Universe so that people can try it out and give you feedback, and in time it may become part of the Ubuntu Main portfolio of applications that are available to all Ubuntu users by default.

Reference:
http://www.ubuntu.com/community/participate

Thursday, November 09, 2006

[Network card can not work]

前事提要
This network card can operate correctly in Microsoft XP.

Used in Ubuntu
ping localhost and ping 127.0.0.1 It's OK.
But It can't ping out to website.

原因:
Guess the network card does not support Linux-like OS.
這就跟所做的廠商有很大的關係。
所以阿 如果要在LINUX上執行硬體的話 通常灌driver的方式比較難搞定
盡量選擇大廠的網路卡
因為通常大廠的網路卡都有支援各個平台的作業系統

Sunday, November 05, 2006

Debian上的軟體管理系統為apt-get這個指令
同時亦有圖形使用者介面的synaptic可供使用。

apt-get可以使用的功能包含 安裝,移除,升級,三種功能
會自動檢查套件的相關性以及自動更新

功能 || 指令 || 備註
安裝 || apt-get install 套件名稱 ||
移除 || apt-get remove [--purge] 套件名稱 ||
升級 || apt-get update || 系統會自動由 Debian 映射點更新套件列表
or apt-get update [-u] || 系統會自動將所有已經安裝在系統內的套件升級為最新版
or apt-get dist-upgrade [-u]||安裝和移除套件來滿足依存關,因此具有一定的危險性。

Reference : http://zh.wikipedia.org/wiki/Debian

Synaptic : 是一種GUI,方便使用者不用透過下指令的方式管理套件
Reference : http://zh.wikipedia.org/w/index.php?title=Synaptic&variant=zh-tw

如何在終端機中擁有root權限
  • sudo -s -H
reference: http://www.oo8h.com/news_460.html

Saturday, November 04, 2006

從2006/11/4灌完Ubunto6.10版本使用到現在已經兩天

我發現非常容易上手

目前也都在Ubunto上使用

希望此Blog可以紀錄我在Ubunto的學習過程

下一步計畫將要加入Ubunto正體中文站 以加入支援小組