星球

RSS | RDF | ATOM

找回 Ubuntu 11.10 的傳統介面 (Gnome Classic)

2011/10/14 17:30:00 | 凍仁的 Ubuntu 筆記
從 Ubuntu 11.04 的時代開始,Ubuntu 就以新興的 Unity 作為預設的 X window,相信不少伙伴還無法適應這樣的轉變,凍仁也是在適應 Windows 7 的操作模式後才漸漸能瞭解 Unity 的設計思維,這次除了預設的 X window 是 Unity 以外,也內建 Unity 2D !相信這對顯示卡不夠力以及不想跑 Compiz 伙伴是一大福音,那說好的 Classic Gnome (傳統 Gnome 模式) 呢? 這個就麻煩大家自己裝一下囉。

登入時預設沒有 Gnome Classic 可選。
安裝 Gnome Classic
jonny@oneiric:~$ sudo aptitude install gnome-session-fallback Enter
[sudo] password for jonny: PASSWORD
The following NEW packages will be installed:   alacarte{a} gir1.2-panelapplet-4.0{a}
  gnome-applets{a} gnome-applets-data{a}
  gnome-panel{a} gnome-panel-data{a}
  gnome-session-fallback libpanel-applet-4-0{a}
0 packages upgraded, 8 newly installed, 0 to remove and 11 not upgraded.
Need to get 9,459 kB of archives. After unpacking 40.0 MB will be used.
Do you want to continue? [Y/n/?] y

裝好就會多個「Gnome Classic」可以選。
「Gnome 傳統介面」回來了。
題外話,「fallback」這個單字有「應變計劃」、「退路」之意,這是否是在隱喻 Unity 就如同 Windows 7 是個全新的體驗,在大家尚未接受的同時繼續維護 Gnome Classic 好抓住舊有的客戶群,凍仁在此期待 Unity 成為主流的那一天到來

資料來源:
Installing / Using Classic GNOME Desktop In Ubuntu 11.10 Oneiric Ocelot ~ Web Upd8: Ubuntu / Linux blog

【Network】網路設定 - Wireless 篇

2010/12/10 1:30:00 | 凍仁的 Ubuntu 筆記
大約一年前,由於辦公室網路無線化的結果,凍仁得靠著 Wireless 上班,新鮮歸新鮮,可對於電腦被收走的凍仁而言是一件很棘手的事,切入正題前先簡述一下網路配置。
1. 右下角為 某 D 大廠的 Wireless Access Point。
2. 盾牌圖示為凍仁的 IBM Thinkpad A31。
3. PC 皆外接某 D 大廠的 USB 外接網卡。

在沒有電腦又得開發系統的情況下,跟友人借了台淘汰下來的 A31,幸運的是 A31 跑不動 XP。A31 除了被凍仁稱為「大黑」以外,若想透過 wireless 上網還必須外插張 PCMicia Card

嘗試灌過 Ubuntu 9.10、openSUSE 11.2 及 Debian lenny,可 Ubuntu 怎樣都無法驅動 PCMicia Card,或許是 A31 真的有點年紀,新版的 firmware 不支援,2002 年的產物是真的有點年代久遠,而在 Debian 以及 openSUSE 上的 GUI 套件也不是很靈活,還是直接打指令比較實在。

啟動 eth1 網卡(或 wlan0)。
jonny@linux:~$ sudo ifconfig eth1 up

搜尋無線基地台。
jonny@linux:~$ sudo iwlist eth1 scan

設定基地台 ssid 與密碼。
# ASCII
jonny@linux:~$ sudo iwconfig eth1 essid <ESSID> key s:<PASSWORD>

# hex WEP
jonny@linux:~$ sudo iwconfig eth1 essid <ESSID> key <PASSWORD>

與基地台取得動態 IP。
jonny@linux:~$ sudo dhclient eth1

測試連線是否正常。
jonny@linux:~$ ping www.google.com.tw -c 1

若以上還無法正常連接網路,可以先檢查:
1. Application → Administrator → Additional Drives # 看有無支援的驅動。
2. 手動開啟 Wireless 電源:一般可分為實體開關與 Fn + WiFi 的組合鍵開關。

資料來源:
Gentoo Linux 文件 -- 設定網路

相關連結:
wicd

找回消失的 gcin 通知區圖示 on Ubuntu 11.04

2011/4/29 18:42:00 | 凍仁的 Ubuntu 筆記
凍仁已經慢慢適應 Ubuntu 11.04 的新一代介面 Unity,凡事不會十全十美的,如果您像凍仁一樣是個 gcin 輸入法的愛好者,一定會發現右上角的通知區少了很多圖示,接下來您只要打開終端機敲幾行字它就會復活囉!

[修改前] 預設的 natty 看不見 gcin 的蹤跡。

[修改後] Hello,好久不見的 gcin 狀態圖示。

查詢當前的通知區顯示白名單。
jonny@natty:~$ gsettings get com.canonical.Unity.Panel systray-whitelis
['JavaEmbeddedFrame', 'Mumble', 'Wine', 'hp-systray']
# 此為 natty 的初始值。

手動補上 gcin 以及相關消失的圖示。
jonny@natty:~$ gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'skype', 'gcin', 'shutter', 'dropbox', 'hp-systray']"

記得要重新登入後才會生效!凍仁可以很明顯的感覺的出,手動加入的通知圖示得點滑鼠右鍵來開啟選單;而不像預設的通知圖示得點滑鼠左鍵。

資料來源: How to re-enable notification area applets in Ubuntu 11.04

Ubuntu登入時發生:「您的登入鑰匙圈並未在登入時自動解鎖」何解?

2010/9/3 23:50:00 | 魔法設計的藝術
在這一篇有解法:兩步驟killall -9 gnome-keyring-daemonrm -fr ~/.gnome2/keyrings關掉gnome-keyring然後殺掉已存的keyrings,等於重設了keyring,但是也得自己手動把以前輸入過的keyring輸入回來,另外,你會發現無線網路以後變成每次登入都要重新輸入金鑰,解法是在面板上的無線網路icon按右鍵-選單選編輯連線,分頁選無線網路,然後點選你要改的基地台,進去以後要勾:「所有使用者皆可用」,問題就可以解決了。ps.不用sudo喔,這只是針對自己的個人帳戶使用

【Themes】AwOken - Awesome Token icon

2010/12/30 1:43:00 | 凍仁的 Ubuntu 筆記
凍仁已經忘記是從什麼時候開始喜歡用黑黑的佈景主題,是因為紅配黑?還是白色太刺眼?不過這樣一來就得花更多的時間尋找合適的 Gtk, Icons themes,懷念以前 gdm 很好改的時代
這個 awoken-icon-themes 原先是給支援 PPA 的 Ubuntu 不過凍仁已經成功在 Debian squeeze sid 跑起來了。

Installation

於 Ubuntu 下安裝
jonny@maverick:~$ sudo add-apt-repository ppa:alecive/antigone && sudo apt-get update

jonny@maverick:~$ sudo apt-get install awoken-icon-theme

於 Debian 下安裝
jonny@squeeze:~$ sudo vi /etc/apt/sources.list
....
deb http://ppa.launchpad.net/alecive/antigone/ubuntu maverick main
deb-src http://ppa.launchpad.net/alecive/antigone/ubuntu maverick main
至 System → Preferences → Appearance → Theme → Customize → Icons 視窗選取 AwOken。

Take a look at the readme pdf

[!IFRAME FILTERED!]

Configure the set

於 terminal 底下出輸入
jonny@debian-base:~$ bash ~/.icons/AwOken/awoken-icon-theme-customization

***********************************

Customization script for AwOken icon set. Current Release: 1.5

Please consider a small donation (1$ goes a long way) via PayPal to 'alecive87@gmail.com'

***********************************

Installation directory: /usr/share/icons/AwOken -> installation type: PPA. Good choice.

***********************************

Select an option from below, typing the number of your choice:
1) Something went wrong? Choose this option!
2) TAKE A LOOK AT THE README PDF
3) Configure the set
4) Recover configuration options from previous installations
5) Quit this script
Wich option do you prefer? 3
You choose: Configure the set
Now I'll run configuration script

***********************************

CONFIGURATION SCRIPT
This part is still under testing, so it's more than welcome any detection of any bug you'd find.
My mail is 'alecive87@gmail.com'

***********************************

I'm using this path for iconset in configuration process: /usr/share/icons/AwOken

***********************************

Now I'll start the configuration process. If there is a file called /home/jonny/.AwOkenrc, I'll use it to configure the set in the way you want. If not, I'll ask you some simple questions to create one.
Configuration file already exists.
Now I'll modify the configuration file located in /home/jonny/.AwOkenrc.

***********************************

What kind of folder type do you prefer? (Type the number of your choice)
1) dark 4) tlagdark 7) violet 10) s11-original
2) gray 5) tlaglight 8) white 11) classy
3) metal 6) token 9) s11 12) sonetto
folder_type? 5 # 可參考下方 PDF 的資料夾圖示。

Your choice was: tlaglight

***********************************

What kind of start here icon do you prefer? I'll not show all 61 options, but if you want I'll open a nautilus window to see them. Do you want this (y/[n])?
y
Now type the name of the icon of choice.
WARNING: type only the last part of the icon before file extension!! For example, type 'gaia2' or 'centos' or 'arch4'
start_here? debian
# 請參考 /usr/share/icons/AwOken/clear/128x128/start-here 內的主選單圖示。
Your choice was debian

***********************************

What kind of trash icon do you prefer? (Type the number of your choice)
1) trash1 4) trash4
2) trash2 5) See icons before choosing them
3) trash3
trash_type? 2 # 選 5 可先看圖示種類
Your choice was: trash2

***********************************

Do you want colored applications or greyish apps? (Type the number of your choice)
1) color
2) no-color
color_type? 1
Your choice was: color

***********************************

Last three questions (I incorporate them in one question): change gedit icon, home icon and computer icon.
For each option, type the number of your choice, as above. Name that ends with 1 is the colored version, name that ends with 2 is the grayish version.
1) gedit1 3) See icons before choosing them
2) gedit2
gedit_type? 2
Your choice was: gedit2

1) computer1 4) computer4
2) computer2 5) computer5
3) computer3 6) See icons before choosing them
computer_type? 1
Your choice was: computer1

1) home1 4) home4
2) home2 5) home5
3) home3 6) See icons before choosing them
home_type? 1
Your choice was: home1

***********************************

Configuration process is finished. Notice that until now script has changed only main options. Do you want to run other options of the customize.sh file? (y/[n]) n

***********************************

Now I'll start the recovery script. Type any key to continue. <Enter>
......
Reading user config....
Changing option in the configuration file...
DONE
Fresh_install option is set to no. So I'll stop here the recovery process. If you want that other options run, just answer properly in the configuration step. But it's at your own risk! :S

AwOken 是凍仁目前除了 Macbuntu 以外最具客製化的 Icon themes,種類很多種,有空再慢慢玩了。

資料來源:
AwOken - Awesome Token icon set GNOME-Look.org
antigone by alecive on Ubuntu PPA

ThinkPad T410 on Debian squeeze

2011/2/18 6:49:00 | 凍仁的 Ubuntu 筆記
近來因為工作上的關係凍仁敗了人生中的第一台 ThinkPad - T410 (詳情請看此),也因工作得跑 Windows 的關係多花了 NT$ 2,000  買 Windows7 的 license,不過好在有 Ultrabay 系統可以把光碟機換成硬碟槽,這樣在工作之於玩 Linux 也不會影響到上班的環境。

下表為凍仁家小黑的作業系統配置,值得一提的是 sda 用的磁碟分割表(Partition Table) 為 GPT,sdb 則為 MBR為了向下相容 WindowsXP 總得用些舊規

devOperating System
sda1 Windows Seven 64bit
sdb1 Windows XP 32bit
sdb3 Debian squeeze 64bit
 sdb6 Ubuntu 64bit (未裝)


Graphics

Type: nVIDIA NVS 3100m
# 檢查核心版本。
jonny@squeeze:~$ uname -r

# 搜尋 NVIDIA 相關套件。
jonny@squeeze:~$ sudo aptitude search nvidia-kernel

# 安裝對應的 NVIDIA 版本以及相關套件 (紅字部份會因人而異)。
jonny@squeeze:~$ sudo aptitude install nvidia-kernel-2.6.32-5-amd64 nvidia-glx nvidia-settings nvidia-xconfig

# 手動掛載 NVIDIA 模組,最後都得重開,手不手動似乎都無所謂
# jonny@squeeze:~$ sudo modprobe nvidia


# 建立 NVIDIA 專屬的 xorg.conf。
jonny@squeeze:~$ sudo nvidia-xconfig

# 重新開機 (須 Kernel 支援故得重新開機跟換 Kernel)。
jonny@squeeze:~$ sudo shutdown -r now

Wireless LAN

Type: Intel® WiFi Link 1000
# 加入 non-free 套件來源參數。
¡jonny@squeeze:~$ sudo vi /etc/apt/sources.list
......
deb ftp://opensource.nchc.org.tw/debian/ squeeze main non-free contrib
deb http://security.debian.org/ squeeze/updates main non-free contrib

# 安裝非自由的 firmware。
jonny@squeeze:~$ sudo aptitude update; sudo aptitude install firmware-iwlwifi wireless-tools

# 手動掛載 iwlagn 模組,依無線網卡型號而定 (詳情請看)。
jonny@squeeze:~$ sudo modprobe iwlagn

Battery

# 安裝 Sysfs 虛擬檔案系統
jonny@squeeze:~$ sudo aptitude install sysfsutils

# 設定電池充電的零界點。
jonny@squeeze:~$ sudo vi /etc/sysfs.conf
...
# 低於 50% 才充電。
devices/platform/smapi/BAT0/start_charge_thresh = 50
# 充到 100% 時停止充電。
devices/platform/smapi/BAT0/stop_charge_thresh = 100

HDAPS

# 安裝硬碟監控程式。
jonny@squeeze:~$ sudo aptitude install hdaps

# 手動掛載新模組。
jonny@squeeze:~$ sudo modprobe thinkpad-ec hdaps

# 啟動服務。
jonny@squeeze:~$ sudo /etc/init.d/hdapsd start

相關連結:
ThinkPad Ultrabay slim SATA 第二顆硬碟轉接盒 / USB 轉接盒 - 桌機與筆記型電腦 - PALMisLIFE 掌上生活討論區

資料來源:
鳥哥的 Linux 私房菜-新手討論區 • 檢視主題 - 請問 nvidia driver on debian testing版本~請教.thanks!
Intel Wireless WiFi Link 4965, 5100, 5300, 5350, 5150, 1000, 6000, 6250 devices (iwlagn) - Debian Wiki
HDAPS for Debian 5.0 (Lenny) on IBM R52

___

利用UNetbootin製作ubuntu開機隨身碟—節省光碟做環保

2011/5/15 13:37:42 | 老森常譚

  ubuntu固定每半年會推出新的版本,一般可直接以更新的方式進行升級,但有時基於穩定性的考量,會以光碟重新安裝的方式進行,這時就會需要下載iso檔並燒入光碟來安裝。幾次下來,開始意識到這樣每半年就得耗費一張光碟,雖然現在光碟成本不高,但如果能避免不必要的資源浪費當然更好,後來就改以複寫片來燒寫。


 



  前兩天在ubuntu論壇閒逛時,看到網友介紹的一個好用的工具—UNetbootin,透過UNetbootin可以輕易的將各Linux發行版做進隨身碟,甚至連下載的動作都可透過它一併完成。



 


  到官網下載UNetbootin後,請先將程式權限裡的「允許檔案作為程式執行」打勾。



 


  如果要透過UNetbootin下載,請先選好Linux發行版。



 


 




  接下來便會自動幫你下載並連同開機設定(Bootloader)做進隨機碟。



 


  如果你已經抓好映像檔,請選擇「映像檔」。



 


  接下來就會進行寫入隨身碟的動作。



 


  製作的時間不用太久,等程式跑完即完成一支ubuntu安裝碟。



 


  之後用此隨身碟開機即可看到Bootloader開機選單




 


【相關連結】



 



FireFox 4 初體驗 (一)

2011/1/28 20:54:00 | 手把手玩Ubuntu
人家說:「吃苦當吃補」,所以我都自己找苦?趁著更新 FireFox 3 出現了我無法預期的錯誤其實是我懶的弄,終於下定決心又當了一回小白鼠。順道寫一下安裝紀錄,以免少年痴呆又犯了。

新版給我的感覺,執行速度真的蠻快的,開啟 Plurk 油猴的 RePlurk...



請按標題讀更多:)


ubuntu 11.04開機出現「解開鑰匙圈」

2011/6/10 22:02:37 | 老森常譚

  雖然是寫11.04,不過印象中幾年前好像也遇過一次,開機時會跳出一個視窗,要你輸入密碼解鎖,看起來好像沒什麼,但每次開機都出現,就很煩人了,且就算選了登入時自動解鎖也沒用。





上網找了一下,兩道指令刪掉keyring即可解決:




killall -9 gnome-keyring-daemon

rm -fr ~/.gnome2/keyrings


 


【相關連結】


改善 Ubuntu 登入桌面時間過長另一解法

2010/12/15 19:51:00 | 手把手玩Ubuntu
前篇:Ubuntu從GDM登入後,進入桌面時間愈來愈長?是講用 Shell Script 控制有點麻煩,今天發現其實直接修改程式所屬的 desktop 檔也能辦的到,而且蠻方便就可以達成目的。

1、輸入指令會發現有很多 desktop 檔,這是開機登入桌面時會執行的檔案。

cd ~/.config/autostart/
ls

2、只要在想延後執行程式的 desktop...



請按標題讀更多:)