歡迎光臨 Planet openSUSE

這是一個訊息來源(feed)整合,收集了 openSUSE 貢獻者在他們個人部落格中的文章

要將您的部落格加入此整合中,請參閱此指引


週二
2012年04月17日


face


這次有機會受 真理大學 紀宗衡 老師邀請回到自己的母校 -- 真理大學
針對國際志工分享 Clonezilla 與 Portableapps 感覺相當開心
尤其是想到自己有機會於七月到蒙古分享自由軟體更是雀躍不已.

此次的培訓是針對國家高速網路中心的 Clonezilla Live 再生龍 ( http://clonezilla.nchc.org.tw ) 以及 Windows 上面的可攜式軟體, 進行介紹與實作.


主要的進行方式除了介紹軟體以及提供實作之外,還讓同學自行依照自己的想法, 組織相關軟體, 並介紹他們的組合.
同學對 VLC ( for Streaming and Online Edit )以及 網路相關套件 產生很濃厚的興趣

此次也很感謝 GNOME and openSUSE 贊助的光碟
也介紹了 GNOME 以及 GNOME Outreach Program for Women ( http://live.gnome.org/GnomeWomen/OutreachProgram2012 ) 以及 Google Summer of Code ( http://code.google.com/soc/ )
希望他們有機會多參與這樣的活動 ^^

同學 GNOME 3 Live DVD with openSUSE 合照


也辛苦了我們的攝影師 ^^( The girl with black coat)



謝謝真理大學 ^^





週一
2012年04月09日


face

openSUSE 12.1 with Moodle 小記

前提為 apache 以及mysql 套件已經安裝 (可以透過軟體管理 #yast2 sw_single 安裝)
並且預設已經啟動
可以使用下列指令檢查

現在 Fedora 15 以後, openSUSE 12.1 以後都使用 systemd 來取代 System V
但是原有的 chkconfig 或是 service 指令還是存在

可以先使用 systemctl 列出所有服務狀況
#systemctl --all

可以使用 --type 指定顯示的類型
# systemctl --all --type service

可以使用指令確認 apache and mysql 有沒有在運作

# systemctl status apache2.service
apache2.service - apache
Loaded: loaded (/lib/systemd/system/apache2.service; disabled)
Active: active (running) since Sun, 15 Jan 2012 03:36:40 +0800; 3h 31min ago
Process: 24758 ExecStop=/usr/sbin/httpd2 -D SYSTEMD -k stop (code=exited, status=0/SUCCESS)
Process: 24760 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -k start (code=exited, status=0/SUCCESS)
Main PID: 24779 (httpd2-prefork)
CGroup: name=systemd:/system/apache2.service
├ 24779 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 24780 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 25736 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 25776 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 25859 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 25901 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 26030 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 26280 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 26656 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
├ 26723 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start
└ 26725 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start

# systemctl status mysql.service
mysql.service - LSB: Start the MySQL database server
Loaded: loaded (/etc/init.d/mysql)
Active: active (running) since Sun, 15 Jan 2012 03:22:06 +0800; 3h 50min ago
Process: 24053 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/mysql.service
├ 24153 /bin/sh /usr/bin/mysqld_safe --mysqld=mysqld --user=mysql --pid-file=/var...
└ 24479 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/us...


確認是否有預設啟動

# systemctl is-enabled apache2.service
disabled

設定預設啟動
# systemctl enable apache2.service
ln -s '/lib/systemd/system/apache2.service' '/etc/systemd/system/multi-user.target.wants/apache2.service'

再次確認
# systemctl is-enabled apache2.service
enabled

以同樣的方式確認 mysql.service

確認 php5-zip 以及 php5-curl 套件是否有安裝

下載 moodle 套件
#wget http://downloads.sourceforge.net/project/moodle/Moodle/stable22/moodle-2.2.1.tgz

解壓縮
# tar zxvf moodle-2.2.1.tgz

將解壓縮的套件移動到 網站的預設根目錄 /srv/www/htdocs
# mv moodle /srv/www/htdocs/

變更目錄的擁有者為 wwwrun
# chown -R wwwrun /srv/www/htdocs/moodle/

建立 moodledata 目錄, 以供日後上傳檔案使用 (以後記得備份)
# mkdir /srv/www/moodledata

修改相關權限(將擁有者變更為wwwrun)
# chown wwwrun /srv/www/moodledata/

變更 mysql root 密碼 ( linux 預設是空白)
# mysqladmin -u root password '自行設定的密碼'

進行 Moodle 安裝
開啟瀏覽器
http://主機IP/moodle/install.php


大量上傳使用者於 Moodle

可以使用 libreoffice 試算表 分別輸入相關資料 (紅色為第1, 之後為使用者資料)
username password firstname lastname email
user1 TestP@ss test pass testpass@example.com

將檔案另存成 CSV 格式, 分隔符號為 逗號, 編碼為UTF-8
Moodle 的網站管理 → 用戶 → 帳戶 → 上傳使用者
將檔案上傳即可

如果上傳還原的課程超過伺服器限制
可以修改 /etc/php5/apache2/php.ini 內的
upload_max_filesize =



enjoy it ~

週六
2012年04月07日


face
Nagios 網路監控主機架設

Nagios 是一個 opensource 的電腦系統與網路服務的監控軟體.

Nagios 可以監控主機與服務,當異常狀況發生時, 可以通知指定的聯絡人. 或是以指定的通知方式來聯繫, 另外也有眾多的 Plugin 可以使用.

官方網站
http://www.nagios.org/

openSUSE Linux 為開放社群的 openSUSE Poroject 所開發.
openSUSE 10.3 之後可以藉由 one-click Install 的方式來進行套件安裝
使用者可以在  http://software.opensuse.org/search
搜尋 想要安裝的套件, 藉由單鍵安裝, 快速安裝套件以及增加套件庫.
另外, http://software.opensuse.org/search 也提供其他 Linux 發行版本的套件下載( Fedora, Debian, Ubuntu, CentOS, RHEL, SLES)

架設環境介紹
Server
OS: openSUSE 12.1
IP: 192.168.3.128 (請依照實際的IP 調整)

Linux Client: 192.168.3.130 (請依照實際的IP 調整)
Windows Client: 192.168.3.129 (請依照實際的IP 調整)

Part I: Nagios伺服器的建置

Server:
1. 安裝Nagios 套件
server 上面使用 one-click install 安裝 Nagios 套件

Nagios
http://software.opensuse.org/ymp/openSUSE:12.1/standard/nagios.ymp

Nagios Plugins
http://software.opensuse.org/ymp/openSUSE:12.1/standard/nagios-plugins.ymp


Nagios Addons Extras
http://software.opensuse.org/ymp/openSUSE:12.1/standard/nagios-plugins-extras.ymp


(如果要使用 putty 連線SSH 到主機, 請確認SSH 服務有開 #rcsshd status )
( 啟動SSH 服務  #rcsshd  start )
(可以使用 #hostname  server 來變更主機名稱, 並請重新連線 SSH 還有 #rcxdm restart 重新啟動 X -- 如果使用 Ezilla Lab)

當然也可以使用指令的方式
# zypper   install   nagios   nagios-plugins   nagios-plugins-extras

2.建立nagiosadmin 密碼
第一次建立密碼的時候 請加上 -c 選項,
新增第二個使用者, 則不需要加上 -c ( 會清空現有的密碼)
請於server 上面
#htpasswd2   -c   /etc/nagios/htpasswd.users   nagiosadmin
輸入密碼
再次輸入

3.建立nagiosuser 密碼
請於server 上面
#htpasswd2   /etc/nagios/htpasswd.users   nagiosuser
輸入密碼
再次輸入

筆記補充: 預設的nagiosadmin 為管理者, 其相關設定, 設定於/etc/nagios/cgi.cfg 所以如果不想使用 nagiosadmin 為預設管理者帳號, 請修改該檔案內的設定.


4.檢視並設定開機啟動nagios
#chkconfig  nagios  --list
#chkconfig  nagios  on
#chkconfig  nagios  --list

5.重新啟動.apache2 並設定開機啟動
#rcapache2  restart
#chkconfig   apache2   --list
#chkconfig   apache2   on
#chkconfig   apache2   --list

6.啟動Nagios
#rcnagios   start

7.測試Nagios 主機運作
開啟瀏覽器 於 URL上面輸入 http://127.0.0.1/nagios/
以上的URL 請視連線的IP調整
會出現需要授權的視窗
請輸入
使用者名稱 nagiosadmin
密碼 之前設定的密碼





這個時候應該會出現 Nagios 的相關畫面


如下圖所示



可以觀察相關服務狀況
此時會發現 HTTP 呈現警告狀態
原因為 Apache2 有啟動但是沒有預設的網頁
要解除這個情形可以 建立一個預設網頁
#vi   /srv/www/htdocs/index.html
加入
<html> It works ! </html>


受監控的相關主機都會被紀錄在 /etc/nagios/nagios.cfg
Linux 的本機的監控設定也是設定於 /etc/nagios/nagios.cfg 內的
# Definitions for monitoring the local (Linux) host
cfg_file=/etc/nagios/objects/localhost.cfg

也可以使用資料夾的方式匯入設定檔(設定於 /etc/nagios/nagios.cfg)
# You can also tell Nagios to process all config files (with a .cfg
# extension) in a particular directory by using the cfg_dir
# directive as shown below:

#cfg_dir=/etc/nagios/servers


故可以得知之後要監控的主機,
相關的設定檔都要放在 /etc/nagios/objects 資料夾內,
且於/etc/nagios/nagios.cfg 要有cfg_file=xxxx.cfg的設定




另外如果要檢視 Nagios 設定有沒有問題
可以使用
#nagios  -v   /etc/nagios/nagios.cfg

來觀察匯入那些設定檔, 以及有沒有問題
更多的文件也可以參考這邊

http://wiki.nagios.org/index.php/Main_Page

**修改通知 e-mail **
# vi   /etc/nagios/objects/contacts.cfg
修改預設的  e-mail
define contact{
       contact_name    nagiosadmi    ; Short name of user
       use    generic-contact         ; Inherit default values from generic-contact template (defined above)
       alias       Nagios Admin            ; Full name of user
       email  sakana@study-area.org ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
       }

當然這邊要確認 mail service 有沒有啟動
可以下 #rcpostfix  status 確認 ( 啟動請用 #rcpostfix  start )

檢視 Nagios 設定有沒有問題
#nagios  -v   /etc/nagios/nagios.cfg

重新啟動 Nagios
#rcnagios   restart

**以上 Nagios 伺服器建置完成**


Part II: Nagios 用戶端-- Linux 伺服器用戶端建置

1.安裝 nagios-nrpe套件

請於Client端啟動 YaST 軟體管理

#yast2  sw_single

並搜尋 nrpe 應該就會看到
nagios-nrpe 套件
nagios-plugins-nrpe 套件
→ 安裝 → 套用
( 或是考慮使用 #yast  -i  nagios-nrpe  nagios-plugins-nrpe)
(根據官方的說法是 相較於 check_by_ssh 的方式比較省資源)

2.設定nagios-nrpe 套件
(另外最好去確認 /etc/services 有沒有 nrpe 5666/tcp # nagios nrpe 的設定)
#grep  5666  /etc/services

修改設定檔 允許 Nagios 伺服器連線
# vi  /etc/nagios/nrpe.cfg

allowed_hosts=127.0.0.1,192.168.3.128

這邊要注意 127.0.0.1後面要加上 逗點 , 然後主機 IP 不能有空格
不然會出現沒有辦法建立 SSL HandShake
(這個部份可以解釋, 如果nrpe是使用 SystemV 的形式啟動後面都會出現不能建立SSL Handshake ,但是以Xinetd 就不會)

#rcnrpe   start


4.測試nagios-nrpe
設定完成之後 可以於本機及遠端測試

請於Client
執行 check_nrpe 測試, 成功應該會出現 NRPE的版本
# /usr/lib/nagios/plugins/check_nrpe   -H   localhost
NRPE v2.12

*************************************************************
請於 Server
安裝 nagios-nrpe 套件
#yast  -i  nagios-nrpe  nagios-plugins-nrpe

針對 nagios client 測試 nagios-nrpe 成功應該會出現 NRPE的版本
#/usr/lib/nagios/plugins/check_nrpe  -H  192.168.3.130
NRPE v2.12

(這邊請確認 firewall 是否關閉, 或是准許 nrpe 通過, 可以使用 #yast2  firewall 關閉防火牆測試)

有關於 /etc/nagios/nrpe.conf
(為了防止之後 /etc/hosts 名稱對應有問題建議可以將 localhost 改為 127.0.0.1)
#vi  /etc/nagios/nrpe.conf
command[check_ssh]=/usr/lib/nagios/plugins/check_ssh   127.0.0.1
command[check_smtp]=/usr/lib/nagios/plugins/check_smtp  127.0.0.1



*************************************************************
接下來來測試本機相關資訊
請於 Client
執行相關測試
線上使用者人數
#/usr/lib/nagios/plugins/check_nrpe -H localhost

週五
2012年04月06日


face

昨天收到 Scott Lamberton 的信件,通知 LPIC-1 與 LPIC-2 的更新事宜,原文如下:

1.  Changes to LPIC-1 and LPIC-2 Objectives

LPI alumni and registered LPI candidates will know that LPI regularly
revises and updates its certification objectives to ensure technical
currency and industry relevance.  Minor revisions are undertaken every
2.5 years with major updates happening at the 5 year milestone.

Revisions to our exam objectives for the 2.5 year mark have been
completed and are available at http://wiki.lpi.org.

New exams reflecting these changes were originally scheduled for
publishing on April 1, 2012 (LPIC-1) and July 1, 2012 (LPIC-2).
However, in order to allow greater time for our candidates, training
partners, and courseware publishers to prepare for these changes we will
publish these new exams at the following dates--July 2, 2012 (LPIC-1)
and August 1, 2012 (LPIC-2).

A comparison description of objective changes made between "old" and
"revised" exam objectives will be available as "addenda" on
http://wiki.lpi.org

1.1 Summary of Changes for LPIC-1

Minor changes to the objectives of LPIC-1 included in the new exams are
as follows (July 2, 2012 for all available languages):

- Explicit coverage at the basic configuration level of GRUB 2
- Explicit coverage of the ext4 file system
- Basic feature knowledge of systemd and Upstart
- Basic feature knowledge of IPv6 and LVM
- Removal of LILO coverage

1.2 Summary of Changes for LPIC-2

Changes to the objectives of LPIC-2 included in the new exams are as
follows (August 1, 2012):

- Explicit coverage of the ext4 file system
- Explicit coverage of the IPv6
- Basic feature knowledge of encrypted file systems
- Basic feature knowledge of xfsdump/xfsrestore commands
- Explicit coverage of Linux 3.0 kernel

從這次的更新來看,雖然更動幅度不大,但卻也把一些比較新的內容添加近來,包含 LILO 終於移除了,GRUB 2 進入取代相關 Boot Loader 的測驗,EXT4、IPv6、LVM、systemd 與 encrypted file systems 等觀念,看的到 LPI 組織的用心,若是之前有採購 "一次擁有LINUX雙認證:LPIC Level I + Novell CLA自學手冊 " 讀者好友們別擔心,當初在規劃此書時是參照 LPIC WIKI 的考綱,所以相關內容幾乎都有涵蓋,請放心服用 ^^


週三
2012年04月04日


face


GNOME.Asia 2012 is now Calling for Papers


GNOME.Asia 2012 is calling for papers. GNOME.Asia Summit is Asia’s GNOME user and developer conference, spreading the knowledge of GNOME across Asia. The conference will be held in Hong Kong on June 9 and 10.  The conference follows the release of GNOME 3.4, helping to bring new desktop paradigms that facilitate user interaction in the computing world.  It will be a great place to celebrate and explore the many new features and enhancements to the groundbreaking GNOME 3 release and to help make GNOME as successful as possible.

Call for Papers

Let’s Submit a Talk!

Important Information

  • The deadlines:
    • Submission: April 20th, 2012
    • Notification of Acceptance: April 27th, 2012
  • Conference:
    • Conference Date: June 9th-10th, 2012
    • Venue: City University of Hong Kong, Tat Chee Avenue, Kowloon (Tentative), Hong Kong

Main Topics

Possible topics include, but not limited to
  1. How to Promote/Contribute to GNOME in Asia
- GNOME Marketing
- Promotion of Free and Open Source Software
- How to run a Local GNOME User Group
- Asia Success Stories/Local GNOME Projects
- GNOME and Education
- GNOME Outreach Program for Women
- Google Summer of Code
  1. Hacking GNOME
- Lastest Development in GNOME
- GNOME 3 & GNOME 3 Usability
- GNOME Human Interface Engineering (Icons and Graphic Design)
- Bugsquadding in GNOME
- GNOME Accessibility
- GNOME 3 Coding How-to
  1. Adapting GNOME to New Types of Devices
- Develop GNOME on mobile device, like smart phone, tablet PC
- On-going Projects, Success Stories
- Find FOSS Friendly Hardware Manufacturers

  1. Localization & Internationalization
- Translation
- Input Methods
- Fonts
  1. Other topics
Any free and open source related topic which is relevant to GNOME but not listed above is still welcome. Your participation can help us make the conference better!
  1. Lightning talks
A five-minutes presentation to demonstrate your work or promote an interesting topic. Reservation and on-site application are both accepted.

A standard session at GNOME.Asia 2012 will be scheduled as 25mins talk + 5 mins Q&A.  Please take into consideration any time you will need for preparation. The session could be a technical talk, panel discussion, or BOF.

If you’d like to share your knowledge and experience at GNOME.Asia 2012, please fill in the form at http://2012.gnome.asia/rfp/ before April 20th, 2012.  Please provide a short abstract about your proposal (under 150 words). Include your name, biographical information, a photo suitable for the web, a title, and a description of your presentation . The reviewing team will evaluate the entries based on the submitted abstracts and available time in the schedule. You will be contacted before April 27th, 2012 on whether your submission has been accepted or not.

All interested contributors are highly encouraged to send in their talks.  Please help us to spread the invitation to other potential participants. Even you do not plan to be a speaker, please consider joining GNOME.Asia 2012. This is going to be a great event!

Sincerely,

GNOME.Asia Organizing Team

週二
2012年04月03日


face
KDE 與 openSUSE 社群歡迎您參加 COSCUP 2012!



COSCUP 是由台灣本土社群所舉辦的最大型自由/開放源碼軟體會議。

這個會議的議程適合新的使用者,熱情的推廣者,撰寫程式碼的人或是任何對於尖端的自由
/開放源碼軟體有興趣之人士。目的在於為來自不同社群的人們創造一個友善以及有益於結
交同好的環境,學習新知或是彼此砥礪。


去年的 COSCUP,幾位 KDE 和 openSUSE 貢獻者有精彩的演說並且在他們的攤位上介紹了很
酷的東西。


今年,我們想做的更好!


我們很榮幸的宣佈在 COSCUP 2012 我們有兩天的KDE和openSUSE議程。兩個組織的人將會聯
合起來為大家帶來最棒的演說。
為了達成這個目標,我們需要您的協助!


議程委員會正在徵求關於KDE和openSUSE的演說,我們期待(但非侷限)以下的主題:

        desktop technologies (d-bus, gstreamer, etcetera)
        桌面技術
        embedded and mobile
        嵌入式技術與行動裝置
        distribution technologies (packaging tools, build systems, etcetera)
        發行版技術
        challenges in adapting software to local needs (L10N, I18N)
        軟體在地化需求(L10N,I18N)
        cross-desktop collaboration
        跨桌面協作
        cross-distro collaboration
        跨發行版協作
        cloud computing and integration into the desktop
        雲端運算與桌面系統之整合
        or anything else you think the world should hear about!
        或是任何您覺得應該要讓大家聽聽看的東西!


雖然KDE和openSUSE一直以來都是緊密聯繫著的,但是演說不見得必須要同時關於KDE與openSUSE。


兩個社群都是非常開放的,我們歡迎其他的發行版(例如 Fedora,Ubuntu...等)上關於KDE>的演說,也歡迎其他的桌面系統在openSUSE上的演說(例如 GNOME,XFCE...等)。

投稿時間將於六月十五日截止。 請撰寫大約200字的提案,並附上一份約略50字的傳記,不 論內容中文或是英文,在截止日期前請寄到 cfp@opensuse.org。


face


轉貼自 openSUSE 正體中文社團 by Max Lin

COSCUP 是由台灣本土社群所舉辦的最大型自由/開放源碼軟體會議。這個會議的議程適合新的使用者,熱情的推廣者,撰寫程式碼的人或是任何對於尖端的自由/開放源碼軟體有興趣之人士。目的在於為來自不同社群的人們創造一個友善以及有益於結交同好的環境,學習新知或是彼此砥礪。

去年的 COSCUP,幾位 KDE 和 openSUSE 貢獻者有精彩的演說並且在他們的攤位上介紹了很酷的東西。

今年,我們想做的更好!

我們很榮幸的宣佈在 COSCUP 2012 我們有兩天的KDE和openSUSE議程。兩個組織的人將會聯合起來為大家帶來最棒的演說。為了達成這個目標,我們需要您的協助!

議程委員會正在徵求關於KDE和openSUSE的演說,我們期待(但非侷限)以下的主題:

* 桌面技術
* 嵌入式技術與行動裝置
* 發行版技術
* 軟體在地化需求(L10N,I18N)
* 跨桌面協作
* 跨發行版協作
* 雲端運算與桌面系統之整合
或是任何您覺得應該要讓大家聽聽看的東西!

雖然KDE和openSUSE一直以來都是緊密聯繫著的,但是演說不見得必須要同時關於KDE與openSUSE。兩個社群都是非常開放的,我們歡迎其他的發行版(例如 Fedora,Ubuntu...等)上關於KDE的演說,也歡迎其他的桌面系統在openSUSE上的演說(例如 GNOME,XFCE...等)。

投稿時間將於六月十五日截止。 請撰寫大約200字的提案,並附上一份約略50字的傳記,不論內容中文或是英文,在截止日期前請寄到 cfp@opensuse.org

議程委員會成員如下:
Franklin Weng (KDE)
Aaron J. Seigo (KDE)
Sakana (openSUSE)
Al Cho (openSUSE)
Bryen Yunashko (openSUSE)
Greg Kroah-Hartman (the Linux Foundation)
Jos Poortvliet 也在 openSUSE News 上宣傳:
http://news.opensuse.org/2012/04/03/the-kde-and-opensuse-communities-welcome-you-to-coscup-2012/


週五
2012年03月16日


face
之前突然被問到 GNOME 3 的電源管理設定要從那邊設定
需求是: 按下 Notebook 電源按鍵, 系統會進入休眠.

自己換了 GNOME 3 之後其實沒有特別去做一些調整
之前雖然有去試過 gnome-tweak-tool


但是 GNOME 3 剛出來的時候這個工具有些許的 Bug
所以就放著沒有去使用他.
目前 GNOME 3 有些設定已經簡化很多, 所以有些細微設定還真的不知道在那邊調整


目前 GNOME 3 的電源設定已經非常的簡化了
像是下面的樣子

所以也沒有像早期那樣可以有比較多的選擇
在網路上面搜尋相關解法, 有些人是用 XFCE 的套件來設定 電源按鍵的行為
但是畢竟那個不是使用 gnome 的作法, 所以就沒有採用.
後來爬文, 找到了一個方法, 就是安裝 dconf-editor 套件來設定


我用的是 openSUSE所以使用 zypper 來查詢套件



# zypper search dconf





S | Name                    | Summary                                                    | Type   
--+-------------------------+------------------------------------------------------------+--------
i | dconf                   | Simple key-based configuration system                      | package
  | dconf-devel             | Simple key-based configuration system -- Development Files | package
  | dconf-editor            | Simple key-based configuration system -- Graphical Editor  | package




預設沒有安裝所以使用 zypper 來安裝他


# zypper install dconf-editor



設定電源相關的方式非常簡單
啟動 dconf-editor


#dconf-editor



然後展開 org --> gnome --> setting-daemon --> plugins --> power 裏面設定






點選相關設定即可

也可以使用  gsettings 的指令來處理


#gsettings set org.gnome.settings-daemon.plugins.power button-power shutdown



enjoy it ~~


週三
2012年03月07日


face
關於雲端服務的Box
最近的活動:
『Now through Friday, March 23, 2012, log in to receive a free 50GB account upgrade!』
Box App :https://market.android.com/details?id=com.box.android
相關詳細文章可以參考: Box.net 送 Android 用戶終生免費 50 GB 檔案上傳空間



如此一來有Andriod手機的使用者可以得到了50G的空間.
由於Box有提供Webdav的服務,
openSUSE 11.4 (with Gnome) 上你可以從
Nautilus(檔案總管) 的 [File] (檔案) - [Connection to Server..] (連線到服務...)
設定如下:



Server: www.box.net/dav
User name: [Your Box.net account ]
你也可以勾選[Add bookmark],這樣這個設定就會被保存在Nautilus(檔案總管) 的Bookmarks中
填完之後按下[Connect]
然後會出現:


你可以選擇要如何保存你的密碼,
選擇完選項,鍵入密碼之後就可以按下Connect連線了。

在openSUSE 12.1 (with Gnome3 ) 上你可以從
Nautilus(檔案總管) 的 [File] (檔案) - [Connection to Server..] (連線到服務...)
設定如下:


Server: www.box.net/dav
User name: [Your Box.net account ]
Password:[Your password]

如此就可以讓Box空間被掛載起來.
再來就是隨意使用啦!

Reference:老兵不死,為什麼有 Dropbox 我還在用 Box.net?



週一
2012年02月27日


face


openSUSE PromoDVD 可以安裝(64-bit 和 32-bit)也可以用 Live 方式體驗 KDE 或 GNOME3
使用 Live 功能時,都需要在自行加裝中文支援
簡報在此:
https://docs.google.com/presentation/d/16LJuRBq7efflJuP5Sdu30HKRoGf3S2IitHZ3A7dPZ68/edit#slide=id.p5

週六
2012年02月25日


Ray Chen: wine work with pulseaudio

13:42 UTCmember

face


openSUSE 12.1 開始 KDE 也全面使用 Pulseaudio 音效控制
用到目前為止一切正常
但是原生的 wine 不支援 PA
請參考 http://art.ified.ca/?page_id=40
如果您使用 PulseAudio 音效又需要用 wine
您必須更新您的 wine 為支援 PA 的版本

當執行 winecfg 可以選擇 PulseAudio Driver 作為音效輸出

然後我的 WoW 又可以跑了

face
最近由於要跟 GNOME 與 openSUSE 的朋友連繫
所以都會使用 IRC 來保持連繫

IRC 的程式, 在linux 上面我是使用 Xchat

如果是 KDE 的桌面環境, 可以參考 黑眼珠大大的文章
http://swyear.blogspot.com/2012/02/konversation-irc.html

如果是 portable 版本於 Windows 上面我是使用 pidgin
http://portableapps.com/apps/internet/pidgin_portable

註冊暱稱的方式
使用自己喜歡的暱稱登入 IRC  之後, 鍵入以下資訊

/msg  NickServ   REGISTER   您要使用的密碼  您的電子郵件信箱

於信箱收信取得確認碼

/msg  NickServ  VERIFY  REGISTER   您的暱稱   確認碼

驗證暱稱的方式為

/msg  NickServ   identify  您的暱稱  您的密碼

但是有時候會發生, 雖然已經註冊了暱稱, 但是還是使用次用暱稱登入
例如 註冊暱稱為 sakana, 但是是以 sakana_ 登入

可能的原因是 這個暱稱有非註冊的人正在使用
這個時候可以使用 GHOST -- Reclaims use of a nickname. 來取回暱稱

/msg  NickServ   ghost   sakana  您使用的密碼

此時非註冊者就會被更換暱稱
接下來使用
/nick  sakana

改變暱稱  ^__^

先記下來

enjoy it ~~


週三
2012年02月22日


face


如果您想找人線上即時聊天,可以試試 irc
在 KDE 環境中, IRC 的聊天應用程式是 konversation
(有沒有 KDE 應用程式都用 k 開頭的八卦啊?)

在 openSUSE 的 KDE 環境中,konversation 已經預設安裝好了
您只需要把它找出來

開啟 konversation,首先出現的就是這個畫面
只要按連線,就可以連上 openSUSE 預設的聊天頻道


在#opensuse頻道上,主要是以英文交談
如果想用中文,請輸入
/j #opensuse-tw


會多出一個 #opensuse-tw 的分頁,和大家打聲招呼吧

預設是使用您的電腦使用者名稱為預設使用者(除非這個名字已經被註冊或正在有人使用)
您可以註冊一個自己常用的名稱
由「設定」-「身份」

輸入您想要用的暱稱,然後別忘了按「新增」

再次登入時就會用您設定的暱稱

如果可以用這個暱稱登入,您就可以把這個暱稱註冊起來
用下列指令:
/msg NickServ REGISTER 您要使用的密碼 您的電子郵件信箱

然後到您的信箱中收信
將確認信中的指令複製貼上
/msg NickServ VERIFY REGISTER 您的名稱 確認碼

這樣就完成了註冊程序,
這個暱稱就是您專用的了

幾個常用的設定:
由「檔案」-「伺服器清單」-「編輯」-「自動加入頻道」中加上 #opensuse-tw
並勾選「程式啟動時自動連線」


openSUSE 的 irc 伺服器 irc.opensuse.org 是由 Freenode 所提供的

如果您已經註冊了暱稱,您也可以編輯預設身份進行自動認証
在「服務」的欄位輸入 NickServ 並輸入您的密碼,然後按「確定」


在「設定」-「設定 konversation」-「行為」-「一般」

可以設定
「活化到系統匣」-當 konversation 啟動時,系統匣會有小圖示

「為新訊息通知使用系統匣」-當頻道上有人講話時,系統匣上的圖示就會閃動
「只有...暱稱被佔用才通知」-有人提到您的暱稱時系統匣圖示才閃動提醒

所以當一堆人在頻道上時,通常會先打上說話對象的暱稱(可以用 Tab 自動補滿)
這樣對方才知道您是在和他說話
「啟動時隱藏視窗」-不會出現聊天視窗,而是直接只在系統匣出現圖示

IRC 可以作為線上聊天,網路會議,或討論問題的地方
當然掛在上面的不見得就代表有時間回你(即時通訊或臉書也是如此吧)
但是如果你運氣好的話,可以找到人線上指導或討論
也不用給 e-mail 或 msn,我覺得還蠻好用的

那如果別人沒有常用 irc 呢?或者不再自己的電腦上如何上 irc 討論呢?
可以用網頁介面:
http://webchat.freenode.net/

輸入暱稱,指定頻道,輸入驗證碼,就可以直接進入頻道交談了

如果在線上看到我的話,可以打個招呼喔!(我的暱稱是 swyear)

freenode 的指令可以參考: https://toxin.jottit.com/freenode

週日
2012年02月19日


Ray Chen: 忘記密碼

11:37 UTCmember

face


因為密碼常常更換,結果忘了密碼...囧
openSUSE 11.4 無法登入
還好找到了這個網頁
http://www.linuxquestions.org/questions/linux-software-2/forgot-password-suse-linux-10-a-434891/
根據 #8 的作法,還真的蠻簡單的
(這又讓我有點擔心)

1. 在開機選項(Boot option)中,加上
init=/bin/sh

2. 開機後執行指令
mount -a

3. 接著執行
passwd

就會提示輸入 root 密碼
4. 接著重開機
reboot

新的密碼就可以用了
(所以只要電腦離開視線1分鐘,很可能就...)

週三
2012年02月01日


face


首頁:http://code.google.com/p/pcmanx-gtk2/
fourdollars 也幫 openSUSE 12.1 的使用者在 obs 上打包了
請直接用以下指令來安裝
$ sudo zypper ar -c \
http://download.opensuse.org/repositories/M17N:/fonts/openSUSE_12.1/ fonts
$ sudo zypper ar -c \
http://download.opensuse.org/repositories/home:/fourdollars/openSUSE_12.1/
fourdollars \
$ sudo zypper in pcmanx-gtk2

如果套件庫中有 home:swyear
可能要使用
$ sudo zypper in --from fourdollars pcmanx-gtk2

來變更供應者

週日
2012年01月29日


Ray Chen: KDE 4.8

04:03 UTCmember

face



在 openSUSE 12.1 升級 KDE 4.8 就下面幾個步驟
# zypper ar http://download.opensuse.org/repositories/KDE:/Release:/48/openSUSE_12.1/ KR48
# zypper ref
# zypper dup --from KR48

你需要回答一些問題:(每個人的情況可能不同)
問題: k3b-codecs-2.0.2-13.8.x86_64 需要 k3b = 2.0.2-13.8,但無法提供此需求
解決方案 1:反安裝 k3b-codecs-2.0.2-13.8.x86_64
解決方案 2:保留過期的 k3b-2.0.2-13.8.x86_64
解決方案 3:保留過期的 k3b-2.0.2-13.8.x86_64
解決方案 4:藉由忽略某些它的相依性破壞 k3b-codecs

使用'數字'選擇上列的解決方法,或 skip(跳過)、retry(重試)或 cancel(取消) [1/2/3/4/s/r/c] (c): 1

k3b-codecs 這個套件是由 packman 來的
請先移除避免麻煩(您以後還是可以再裝回來的)
問題: qt4-qtscript-0.1.0-14.1.2.x86_64 需要 libqt4 = 4.7.4,但無法提供此需求
無法安裝的提供者: libqt4-4.7.4-19.2.2.x86_64[openSUSE-12.1-12.1-1.4]
libqt4-4.7.4-19.2.2.i586[repo-oss]
libqt4-4.7.4-19.2.2.x86_64[repo-oss]
解決方案 1:下列行動將被執行:
保留過期的 libqt4-4.7.4-19.4.1.x86_64
保留過期的 kdegames4-carddecks-default-4.7.2-3.1.2.noarch
保留過期的 libkdeedu4-data-4.7.2-2.1.2.noarch
解決方案 2:反安裝 qt4-qtscript-0.1.0-14.1.2.x86_64
解決方案 3:保留過期的 libqt4-4.7.4-19.4.1.x86_64
解決方案 4:藉由忽略某些它的相依性破壞 qt4-qtscript

使用'數字'選擇上列的解決方法,或 skip(跳過)、retry(重試)或 cancel(取消) [1/2/3/4/s/r/c] (c): 2

qt4-qtscript 需要 libqt4-4.7.4 表示是和舊版 kde 綁在一起的
也先移除
問題: kdm-4.8.0-723.3.x86_64 需要 kdm-branding = 4.8.0,但無法提供此需求
無法安裝的提供者: kdm-branding-upstream-4.8.0-723.3.i586[KR48]
kdm-branding-upstream-4.8.0-723.3.x86_64[KR48]
kdm-branding-basedonopensuse-12.1-6.1.2.i586[repo-oss]
kdm-branding-basedonopensuse-12.1-6.1.2.x86_64[repo-oss]
解決方案 1:反安裝 kdm-4.7.2-6.4.1.x86_64
解決方案 2:反安裝 kdm-branding-openSUSE-12.1-15.3.9.noarch
解決方案 3:保留過期的 kdm-4.7.2-6.4.1.x86_64
解決方案 4:保留過期的 kdm-4.7.2-6.4.1.x86_64
解決方案 5:保留過期的 kdm-4.7.2-6.4.1.x86_64
解決方案 6:藉由忽略某些它的相依性破壞 kdm

使用'數字'選擇上列的解決方法,或 skip(跳過)、retry(重試)或 cancel(取消) [1/2/3/4/5/6/s/r/c] (c): 2

kdm 當然是要的
所以選擇 2,刪除 kdm-branding-openSUSE

接下來就可以順利安裝升級

安裝完畢重開機因為原本的 kdm theme "SUSE" 已經被移除了
可能造成 KDM 無法啟動
所以可以先編輯 /etc/sysconfig/displaymanager
修改
DISPLAYMANAGER_KDM_THEME=""

使用預設 KDM 主題,或
DISPLAYMANAGER_KDM_THEME="openSuSe"

請依照您系統中有安裝的 kdm 佈景主題來修改
您已經順利升級 KDE 4.8 了

週四
2012年01月26日


face


Hime 首頁:https://github.com/caleb-/hime/
Hime 是由 gcin 輸入法分支出來開發的,
http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=234&blogId=1
兩方面仍維持合作的關係,
不過可能開發的重心會不一樣,
也就是說,隨著時間流逝,兩者的差別將越來越大
如果您想要嘗試一下 hime
可以由 home:swyear 套件庫安裝
以 openSUSE 12.1 為例:
# zypper ar obs://home:swyear/openSUSE_12.1 swyear
(若已經加過 home:swyear 套件庫,上面步驟不必再做)
# zypper in hime

重新登入後會自動改用 hime
(這裡的優先順序並不代表任何的偏好,
只是希望新安裝一個輸入法後能順利的切換)

若要改回用其他輸入法可以
1. 移除 hime,回到您的原本設定
2. 要同時保有 hime
在 ~/.profile 加上
export INPUT_METHOD=gcin

全域設定在 /etc/sysconfig/language
設定
INPUT_METHOD=gcin

或其他您想要的輸入法


週二
2012年01月17日


Ray Chen: 啟動觸控板點擊

13:47 UTCmember

face


雖然您可以在 KDE 控制中心中來啟動觸控板的點擊(Tapping)
參考:
http://swyear.blogspot.com/2011/11/opensuse-121-2.html
但這只在進入 KDE 後才有用
在 KDM 的登入畫面就不能用
您可以在 /etc/X11/xorg.conf.d/50-synaptics.conf
加入
        Option "TapButton1" "1"

這樣在 KDM 中也可以使用 Tapping 了

週六
2012年01月14日


face

在 PHP 中若要啟用支援 Sybase Database 的函數,需要在編譯的時候添加上 --with-sybase_ct=XXXXX 的參數,在32Bit 環境中基本上沒有太大的問題與挫折,可以很容易編譯完成。但若是你的使用環境與我一樣是64Bit環境時就得稍微注意一下在 ./configure 完成後所產生的 Makefile,編譯過程如下所示:

  • [root@Server1 ~]# tar jxvf php-5.3.9.tar.bz2
  • [root@Server1 ~]# cd php-5.3.9
  • [root@Server1 ~]# ./configure --prefix=/opt/php5 --with-apxs2=/opt/apache2/bin/apxs  --with-gd --with-zlib-dir --with-sybase_ct=/usr/opt/sybase/OCS-12_5
  • 接著,修改 Makefile 中 EXTRA_LIBS 這串如下:
    EXTRA_LIBS = -lcrypt -lsybtcl64 -lintl64 -lcomn64 -lct64 -lcs64 -lresolv ...... (後面省略)
    主要是將引入 Sybase 中函數的 -lsybtcl、-lintl、-lcomn、-lct與-lcs這幾個參數後面添加上 64
  • [root@Server1 ~]# make ; make install

週五
2012年01月13日


face



留下來做紀念

週二
2012年01月10日


face


在 openSUSE 12.1 中可以很容易安裝 radiotray
如果安裝完後不能運作,
檢查您的多媒體環境
開啟終端機
$ su
密碼:
# zypper in radiotray radiotray-lang

就可以安裝網路收音機軟體

這裡有我從 ubuntu-tw 的相關討論串蒐集來的網路電台書籤
http://dl.dropbox.com/u/6331820/radiotray-bookmarks.xml
請在連結上按右鍵--另存新檔
將他改名為 bookmark.xml 放在 ~/.local/share/radiotray/ 中
取代原來的檔案
就會有台灣及港澳日本地區的電台

感謝 ubuntu-tw 上的熱心網友

週日
2012年01月08日


face


買了一台新的雷射印表機:SAMSUNG ML-1865w
http://www.samsung.com/tw/consumer/computers-peripherals/printers-multifunction/monochrome-laser-printers/ML-1865W/TED/index.idx?pagetype=prd_detail
for Linux 的驅動程式並沒有附在光碟中
請到 samsung 網站下載:
http://www.samsung.com/ie/consumer/print-solutions/print-solutions/mono-printers/ML-1865W/XEU-support
您要下載 Unified Driver (一定要)
至於 Smart Panel 和 Printer Setting Utility 倒是不一定需要
如果您也下載了這些工具,請放在同一個目錄一起解壓縮
執行 autorun 時會一起為您安裝

$ tar -xf UnifiedLinuxDriver_0.98.tar.gz
$ cd cdroot/
$ su
密碼:
# ./autorun

接下來開始安裝

同意授權聲明

如果您直接使用 usb 連線列印,需要將您的使用者加入 lp 群組
請勾選您會用到列印的使用者

問您是否需要 LPT 埠的支援(通常不需要)

開始安裝了

接著的精靈會引導您設定您的印表機
請注意您的系統是否安裝了 CUPS

偵測印表機
(因為我不打算用 usb 列印,所以這裡沒偵測到,
若您先插上了 usb ,此時應該會在 Local Printer 中會出現 ML-1865w 的選擇)

選擇列印埠,用預設的就可以

選擇印表機,當然是 Samsung ML-1865W Series

印表機名稱、描述、位置等,自行輸入

恭喜完成,如果您是用 usb 連接印表機,此時可以按 Test Printer 測試列印
(但是我還沒完成)

最後問您要不要註冊


※如果您的無線網路路由器支援 WPS
可能就不必以下的步驟了
※如果您想在 windows 或 Mac 下設定,就放入光碟
用 usb 連接線進行設定

要使用 Linux 修改印表機的無線網路設定,需要用印表機提供的 SyncThru Web Service
所以您要找一台有無線網路卡的電腦連上印表機

請確認印表機的無線網路訊號是亮的,
因為省電功能,ml-1865w 會自動睡覺,
如果睡著了,按一下 Power 他就會醒來

接著按 WPS 按鈕 15 秒,放手後印表機會印出他的基本設定
您會需要下面的資訊(請依照您的印表機資料為準)
IP Address:     192.0.0.192
SubNet Mask: 255.255.255.0
Default Gateway: 192.0.0.192
SSID: portthru
Current Channel: 10


接下來進行連線:
從 NetworkManager 連線到 portthru 網路

如果沒辦法連線,請修改 portthru 連線的內容
依照列印出來的資料,將您的網路設成同一個網域

確認一下印表機無線網路運作中,再次連線

連線後開啟瀏覽器,輸入該印表機的網址 192.0.0.192
就可以連線到印表機了
建議不要使用 firefox (好像有點小問題),您可以試試其他瀏覽器
中文介面只有簡體中文

按右上角的 「登录」,預設的管理者 ID 是 admin ,密碼是 sec00000
您登入後可以自行修改

登入管理介面

由 「设置」-- 「网络设置」來進行網路設定
首先是 TCP/IPv4
通常設定固定的 IP 方便使用,請依照您的網路來設定,
完成後請記得按右上角的 「应用」

接著設定 「无线」 部份
用 「高级设置:」 -- 「自定义」

請依照您所使用的網路修改 SSID、加密方式、加密的密碼
然後不要忘了按右上角的 「应用」 來套用新的設定

印表機此時應該已經連上您家中的網路而成為你家無線區域網路的一份子了
若您需要再重新設定印表機的網路,請用新的位址

現在只要連上你家區域網路的 Linux 電腦,安裝印表機驅動程式後,
都可以用 CUPS 來進行印表機設定:

開啟瀏覽器,在網址列輸入 localhost:631 進入 CUPS 設定

按「新增印表機」(Add Printer)
此時會提示輸入管理員密碼(使用者 root )
這裡的密碼是您的電腦上的 root 密碼
選擇 ipp 協定

「連線」(Connection) 輸入 http://您的印表機位址/ipp/

輸入您想用的印表機名稱、描述及位置

選擇製造商(Make): SAMSUNG

選擇機型(Model): Samsung ML-1865W Series (en)

依照個人需求將紙張大小(PageSize)改成 A4

設定完成

您可以由 Maintenance 選擇 Print Test Page 列印測試頁

如果沒問題,由 Administration 選擇 Set As Server Default 設成預設的印表機

這樣就大功告成了

週五
2012年01月06日


face


http://kde-apps.org/content/show.php?content=111750
就是用您的 webcam 照相、錄影的工具
可以用 software.opensuse.org 搜尋 kamoso 然後用單鍵安裝
KDE 使用者以後不必用 cheese 了


週一
2012年01月02日


face


老婆新買了筆電:
acer ASPIRE 4752G
CPU: Intel Core i5-2450M 2.5GHz
顯示卡:NVIDIA GeForce 610M with NVIDIA OPTIMUS TECHNOLOGY

openSUSE 12.1 GNOME Live CD 測試:
開機畫面正常,但選擇 Live GNOME 進入後,在 splash 畫面錯亂,
最後螢幕變黑,無法開機
強迫關機,重新開機時按 F2 進入 BIOS 設定畫面
將 Graphic Mode 由 Switchable 改成 Integrated,儲存,離開
再次測試 Live GNOME,這次就可以進入 GNOME 3,
而且是標準模式,有桌面特效
表示可以使用 openSUSE 系統
結束測試

接著要使用 openSUSE 12.1 64-bit DVD 來安裝
光碟放進去卻不會出現 GRUB 的開機畫面(就是選擇安裝的畫面)
而是黑色終端機螢幕,左上角顯示
ELILO boot:....
Loading kernel linux...

跑一陣子之後會直接進入安裝畫面
照著步驟做下去,到選擇安裝位置時,最後決定取消
因為這種方法會要求您將所有的分割區刪除
但我想留著 windows 做多重開機
本以為是需要先將磁碟空間空出,
但用 GParted 重新化分割區後再重做
仍無法僅用空白分割區安裝
系統說:
Your system states that is requires all EFI boot setup,
Since the selected disk does not contain a GPT disk lable
we creat a GPT lable on this disk.
You need to mark all partitions on this disk for removal.

差點就要放棄了,打算改用 Live CD 安裝
後來發現在 ELILO boot:... 出現時按 ESC
就會出現 GRUB 的安裝畫面
而且可以順利將作業系統安裝到所規劃好的磁區
雖然在安裝前摘要有紅字,說 GRUB 所安裝的位置可能無法正常開機
但我還是心一狠就依照預設位置裝了
結果裝完就...
正常開機了

把所有的更新裝一裝,該裝的套件裝一裝,該調的調一調
依照我以前的理解,再裝上 nvidia 的驅動程式應該就大功告成了
興高采烈的重開機,將 BIOS 中的 Graphic Mode 改回 Switchable
結果...
失敗...畫面整個亂掉,無法開啟 X

只好改回用 Integrated 的顯示卡
還要用 safe mode 才進得了 X
先移除 nvidia 驅動程式,重回原點開始找資料

幸好有 Geeko 的加持和 Google 的幫助
最後還是成功了

Geeko 與你同在!

對於 nvidia optimus 的顯示卡,您需要 Bumblebee,
(當然,如果您要放棄使用 nvidia 顯示卡,只用 intel 的顯示卡,在 BIOS 中調就都可以用了)
相關頁面:
https://github.com/Bumblebee-Project/Bumblebee
http://www.martin-juhl.dk/2011/08/ironhide-reporting-for-duty/
http://www.martin-juhl.dk/2011/08/reassemble-of-the-bee/
https://github.com/MrMEEE/bumblebee
雖然還是一個發展中的計劃
至少給了 nvidia 顯示卡的 Linux 使用者一絲的希望

software.opensuse.org 搜尋 bumblebee
(請在搜尋選項中核取「包含使用者的 home project」)
我們要使用新版的 bumblebee
# zypper ar home:Bumblebee-Project:Bumblebee-develop/openSUSE_12.1 bumblebee

您需要 bumblebee VirtualGL
若使用 64 位元系統,可能還需要 VirtualGL-32bit
# zypper in bumblebee VirtualGL


您可能需要手動將您的使用者加入 bumblebee 群組
您可以輕易用 YaST 來完成這件事

預設使用 nouveau 驅動程式
但我沒辦法成功使用 nouveau 驅動程式
(猜測是新的顯示卡還沒辦法被 nouveau 所支援)
所以我還是需要安裝 nvidia 的專利驅動程式

根據參考資料
安裝了 nvidia 專利驅動程式 (nvidia-gfxG02-kmp-desktop nvidia-computeG02 x11-video-nvidiaG02) 之後
將 nvidia 所提供的部份驅動程式移到新的目錄
以避免和 Mesa 以及 xorg-x11-server 所提供的檔案衝突
注意:
所以當您發現 nvidia 顯示卡驅動程式有更新時
以下步驟必須重新再跑一次
我是使用 64 位元作業系統,就直接以電腦上的檔案位置來舉例
若您是使用 32 位元系統,請注意 lib64 要改成 lib,後面就不再說明了
# mkdir -p /usr/lib64/nvidia/xorg/modules/updates/extensions
# mv /usr/X11R6/lib64/libGL* /usr/lib64/nvidia/
# mv /usr/lib64/xorg/modules/updates/extensions/libglx* /usr/lib64/nvidia/xorg/modules/updates/extensions/
# mkdir -p /usr/lib/nvidia
# mv /usr/X11R6/lib/libGL* /usr/lib/nvidia


最後編輯 /etc/bumblebee/bumblebee.conf 修改
DRIVER=nvidia

您可能還需要修改 /etc/sysconfig/kernel
NO_KMS_IN_INITRD="no"

重新開機,看看是否大功告成

精彩放送:在嘗試失敗的過程中拍到的有趣照片

可能是 intel 顯示卡使用了 nvidia 驅動程式所提供的 libglx.so 來運行桌面特效所造成的結果
(按 Alt-Shift+F12 來終止這種特效)
我本來想說可以用就用看看(還蠻炫的)
可惜都不能用

您可以用 glxinfo 來看看是否運作成功
如果沒有錯誤訊息表示 Intel 顯示卡 OK
$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB,
GLX_MESA_copy_sub_buffer, GLX_MESA_multithread_makecurrent,
GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap,
GLX_INTEL_swap_event
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 2.1 Mesa 7.11
OpenGL extensions:
GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_copy_texture, GL_EXT_polygon_offset, GL_EXT_subtexture,
GL_EXT_texture_object, GL_EXT_vertex_array, GL_EXT_compiled_vertex_array,
GL_EXT_texture, GL_EXT_texture3D, GL_IBM_rasterpos_clip,
GL_ARB_point_parameters, GL_EXT_draw_range_elements, GL_EXT_packed_pixels,
GL_EXT_point_parameters, GL_EXT_rescale_normal,
GL_EXT_separate_specular_color, GL_EXT_texture_edge_clamp,
GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_ARB_framebuffer_sRGB,
GL_ARB_multitexture, GL_EXT_framebuffer_sRGB,
GL_IBM_multimode_draw_arrays, GL_IBM_texture_mirrored_repeat,
GL_3DFX_texture_compression_FXT1, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_transpose_matrix,
GL_EXT_blend_func_separate, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_secondary_color, GL_EXT_texture_env_add,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
GL_INGR_blend_func_separate, GL_NV_blend_square, GL_NV_light_max_exponent,
GL_NV_texgen_reflection, GL_NV_texture_env_combine4,
GL_SUN_multi_draw_arrays, GL_ARB_texture_border_clamp,
GL_ARB_texture_compression, GL_EXT_framebuffer_object,
GL_EXT_texture_env_dot3, GL_MESA_window_pos, GL_NV_packed_depth_stencil,
GL_NV_texture_rectangle, GL_NV_vertex_program, GL_ARB_depth_texture,
GL_ARB_occlusion_query, GL_ARB_shadow, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_window_pos, GL_ATI_envmap_bumpmap,
GL_EXT_stencil_two_side, GL_EXT_texture_cube_map, GL_NV_depth_clamp,
GL_NV_vertex_program1_1, GL_APPLE_client_storage, GL_APPLE_packed_pixels,
GL_APPLE_vertex_array_object, GL_ARB_draw_buffers,
GL_ARB_fragment_program, GL_ARB_fragment_shader, GL_ARB_shader_objects,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ATI_draw_buffers,
GL_ATI_texture_env_combine3, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_ARB_depth_clamp,
GL_ARB_fragment_program_shadow, GL_ARB_half_float_pixel,
GL_ARB_point_sprite, GL_ARB_shading_language_100, GL_ARB_sync,
GL_ARB_texture_non_power_of_two, GL_ARB_vertex_buffer_object,
GL_ATI_blend_equation_separate, GL_EXT_blend_equation_separate,
GL_OES_read_format, GL_ARB_color_buffer_float, GL_ARB_pixel_buffer_object,
GL_ARB_texture_compression_rgtc, GL_ARB_texture_rectangle,
GL_EXT_pixel_buffer_object, GL_EXT_texture_compression_rgtc,
GL_EXT_texture_rectangle, GL_EXT_texture_sRGB, GL_ARB_framebuffer_object,
GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
GL_EXT_packed_depth_stencil, GL_APPLE_object_purgeable,
GL_ARB_vertex_array_object, GL_ATI_separate_stencil, GL_EXT_draw_buffers2,
GL_EXT_gpu_program_parameters, GL_EXT_texture_env_combine,
GL_EXT_texture_sRGB_decode, GL_EXT_timer_query, GL_OES_EGL_image,
GL_ARB_copy_buffer, GL_ARB_half_float_vertex, GL_ARB_map_buffer_range,
GL_ARB_texture_rg, GL_ARB_texture_swizzle, GL_ARB_vertex_array_bgra,
GL_EXT_separate_shader_objects, GL_EXT_texture_swizzle,
GL_EXT_vertex_array_bgra, GL_NV_conditional_render,
GL_ARB_ES2_compatibility, GL_ARB_draw_elements_base_vertex

週六
2011年12月31日


Ray Chen: 2012 新年快樂

15:59 UTCmember

face


2012 新年快樂!
2012 Happy New Year !

願 Geeko 與你同在!
May the Geeko be with you!

週一
2011年12月26日


face

openSUSE 12.1 with owncloud


相關網頁

透過 one-click install 安裝

1.語系可以調整成中文語系但是是簡體中文
可以在左下角的設定(Settings) icon 點選Personal
Language 點選要設定的語系

2.接下來是調整檔案上傳的預設大小

預設是2MB 可以參考

修改 /etc/php5/apache2/php.ini

修改預設的 upload_max_filesize = 2M 到自己設定的大小
以下是原文

INCREASE ALLOWED MAXIMUM SIZE FOR UPLOADS
Open the PHP configuration file in /etc/php5/apache2/php.ini, look for:
upload_max_filesize = 2M
post_max_size= 2M
In place of 2M write the maximum size you want to be allowed.

3. 可以透過 Android 手機連接
軟體名稱 WebDAV Lite

設定 WebDAV Lite

名稱: 輸入名稱
服務器 URL: http://主機位置/owncloud/files/webdav.php
輸入帳號及密碼

可以新增資料夾以及上傳照片owncloud

4.有關於要掛載到 local 上面 (網路硬碟)可以參考

Windows XP and Vista should work perfectly fine.
In Windows 7, you can map ownCloud as a network folder.
in Services, enable the Webclient service (might be enabled already)
in the Registry, change

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\BasicAuthLevel 

from 1 to 2. Then restart Webclient service (Mouse right click --> Restart)

go to My Computer → Mount Network Drive

in the Folder field type http://ADDRESS/files/webdav.php
check Connect using different credentials



GNU/Linux operating systems

FIRST, AS AN ADMINISTRATOR

Install the WebDAV support: sudo apt-get install davfs2
Reconfigure davfs2 to allow access to normal users: sudo dpkg-reconfigure davfs2 (select Yes when prompted)
Add the users you want to be able to mount the share to the davfs2 group: sudo usermod -aG davfs2 <user>
Edit/etc/fstab, and add the following line for each user who wants to mount the folder (with your details where appropriate)
For version 1.x: http<yourdomain>/<owncloud>/webdav/owncloud.php /home/<username>/owncloud davfs user,rw,noauto 0 0
For version 2.x: http<yourdomain>/<owncloud>/files/webdav.php /home/<username>/owncloud davfs user,rw,noauto 0 0

THEN, AS EACH USER WHO WANTS TO MOUNT THE FOLDER

Create the folders owncloud ; .davfs2 in your home directory
Create the file secrets inside .davfs2, fill it with the following (with your credentials where appropriate)

For version 1.x: http<yourdomain>/<owncloud>/webdav/owncloud.php <username> <password>
For version 2.x: http<yourdomain>/<owncloud>/files/webdav.php <username> <password>

Ensure the file is only writable by you either through the file manager, or via chmod 600 ~/.davfs2/secrets

Run the command: mount ~/owncloud
To automatically mount the folder on login, add the command you used in step 4 to ~/.bashrc




5. openSUSE 的使用者可以使用 Mirall

for openSUSE 12.1 使用者
http://software.opensuse.org/ymp/openSUSE:12.1:Update/standard/mirall.ymp

Express Upload Directories 還有待 Lab

相關設定檔
~/.local/share/data/Mirall/ 目錄內
  • mirall.cfg 
    • 有相關URL 以及帳號/密碼 以明碼儲存 
  • folders 
    • Express Upload Directories 相關設定
先記下來

enjoy it ~



週四
2011年12月22日


face


現在正式的網址是 http://zh-tw.opensuse.org
用原本的 zh_tw.opensuse.org 會自動轉址


週一
2011年12月19日


face


如果您的 openSUSE 12.1 KDE 在登入時會停頓在啟動音效的地方
試著將 /etc/xdg/autostart/pulseaudio.desktop 移除
只留下 /etc/xdg/autostart/pulseaudio-kde.desktop 即可
參考:
https://bugs.kde.org/show_bug.cgi?id=267766
https://bugzilla.novell.com/show_bug.cgi?id=736097

週六
2011年12月17日


face


openSUSE 12.1 預設使用 systemd 來啟動系統
發現原本會自動啟動的 NumLock 不會自動啟動
自行重新啟動,發現
# rckbd restart
redirecting to systemctl
Failed to issue method call: Unit kbd.service is masked.

根據 http://web.archiveorange.com/archive/v/wmeLDfZ9MRi0lHz0mjTV
可以將
touch /var/run/numlock-on

加到 /etc/init.d/boot.local
那麼當 X 啟動時,會強迫開啟 NumLock
這是一個暫時解決方案(workaround)

週五
2011年12月16日


face

<一次擁有Linux雙認證:LPIC Level I+Novell CLA 11> 歷經一年多的波折終於出版了,雖然在出版前出了一些小插曲,但還是順利排除與各位朋友同好見面,此次共有 24 個章節外加 2 個附錄,包含 LPIC Level I 新版考綱 與 NCLA  11 的範圍,全書採用 SUSE Linux Enterprise Server 11 SP1 作為教學環境,當然,讀者也可以自行下載 OpenSUSE Linux 來作為操作環境。

此次十分感激資策會的Linux資深講師 彭學勤老師、資深RedHat Linux與系統架構師 吳宏彬 先生、東南科技大學電算中心網路組組長 謝瑞宏老師與SUSE Linux 資深專案經理 張漢基先生的指導與推薦,全書採大量實作來輔助教學,對於想投入Linux技術領域的朋友們歡迎採購與支持 ^^

較舊的部落格內容 ->