About虛擬&實際

@分享虛擬與實際的世界中所遊玩的心得紀錄,從物理化學到生命科學、從人文藝術到現代科技、從虛擬介面到實際生命體。享受的只是一種學習與體驗。若文章內容有誤,歡迎提出以供修改,對文章的回饋,歡迎寄信給我!一起分享,互相學習成長的環境。
@個人簡介在『關於韃靼』
@我是韃靼~我的信箱:chenyuquan at gmail dot com

2013年1月21日 星期一

Raspberry Pi 安裝系統與開機

前言:
週末去購買了相關器材外,也順便研究了Raspberry Pi(RPi)的歷史與網路上相關的文件,對於RPi有較稍微深入了解後,開始將系統安裝置SD卡上面。

配備:

Raspberry Pi B (512MB)
電源供應器,5V2A
SDHC 16G, Class 10(SanDisk)

圖片:


系統安裝:

我參考了台灣有在研究RPi的玩家提供的一些系統安裝方式。因為我有Window & MAC OS兩種,原本是想簡單用Window安裝就好,用了Win32DiskImager來進行“燒入”2012-12-16-wheezy-raspbian。(官方建議初心者使用^^)。結果在Win32DiskImager裡面卻看不到我的SD卡,從RPi的WiKi建議要使用“Flashnul software”,真是多了幾個步驟。

因此就改用MPB來做燒入的動作。燒入的動作是使用終端機用指令,也是熟悉一下文字指令的感覺。而且還好有再把建議都給讀完,發現unmount跟平常在HD裡面按的是不一樣的(一開始還真不知道在哪裡找,是之前有看過一些評語是針對Apple的繁體化翻譯沒這麼順暢)。經過指令的下達,我也終於將Raspbian燒入記憶卡了。接著就是開機與設定一些開機的資訊。


一開始登入後,就發現解析度與螢幕超出畫面,趕緊查詢相關資訊後。大概跟幾個解析度設定可能有關。

一開始找到這篇(這裡這裡),設定後都還是超出畫面,後來在“sudo nano /boot/config.txt”裡面的“overscan"部分看了才發現我在RPi第一次開機的時候設定成Disable,所以才沒有自動地調整畫面邊界。最後順利地將其設定完成,也順便瞭解如何調整HDMI輸出的解析度^^~


~合體~折騰了昨夜搞SD card setup!!
手邊沒有HDMI的螢幕,還好家裡有電視先借用來測試!哈哈~


前置作業
明顯超出拉~一開始還以為是特色~不過連下面的字都超出那就GG啦
進入圖像系統後就成功調整好了


超~級~Q~的Logo啦


我也將RPi與一起購買的外殼合體了~棒

後記:

後來覺得以這種指令式的系統,也許不用進入圖形使用者界面應該也可以直接在command line也可以進行才對,下次再多試試幾組解析度,多多增加程式的感覺。

感覺進入圖形使用者界面(X-window!?)很熟悉,不過就又回到圖形化思考了,接著就是學習Linux以及裡面建議的Phython了,不過應該會先上網多多收集些資料。


真是太有趣了啦!Arduino project都被擱置了好幾天了...哈哈。另外因為若要開啟RPi就要到客廳使用,實在是不方便,所以有參考到可以使用SSH的網路連線登入就可以不使用螢幕鍵盤等等,這就是我所需要的!這樣放在工作桌上插條網路線與電源一樣可以做很多事情了~酷斃了~


參考:

Raspberry Pi B 學習資料
Raspberry Pi B 的到來
葉難
Raspberry Pi的奇幻飄流
e絡盟互動社區
Raspberry Pi 官網
RPi Easy SD Card Setup
2012-12-16-wheezy-raspbian

備份:HDMI設定
Setting up HDMI output
Raspberry HDMI Problem
Read my posts on: http://www.element14.com/community/thread/18205?tstart=0 This fixed my problem and might fix yours.

All fixed (audio + resolution)
Instuctions for others who may be experiencing the same issue with a TV and the Raspberry Pi:
1. Install a fresh image (optional)
2. start-up the Raspberry Pi and let it set itself up (normal set-up) - only on first boot
3. After you have gone through normal set-up:
a. Log-in as a normal user (debian image: pi)
b. Type the command: "sudo nano /boot/config.txt "
c. Press enter
d. Type in: "hdmi_drive=2 " [exactly as it is here]
e. Then press crtl + o
f. Press Enter
g. then press crtl + x
4. Restart using the command: " sudo shutdown -r now "

That gets the Raspberry Pi to register the TV as a HDMI device. You now have sound! For different resolution:
5. After you have gone through normal set-up:
a. Log-in as a normal user (debian image: pi)
b. Type the command: "sudo nano /boot/config.txt "
c. Press enter
d. Type in: "hdmi_group=1 " [exactly as it is here]
Press Enter
Type : "hdmi_mode=x " where x = corresponding number of resolution mode. See: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=5851
e. Then press crtl + o
f. Press Enter
g. then press crtl + x
6. Restart using the command: " sudo shutdown -r now "

Now you have desired resolution and Sound!!!