本帖最后由 99010 于 2010-12-13 13:29 編輯 硬件環(huán)境:翔升ATOM 330離子平臺、2G內(nèi)存、500G筆記本硬盤 、4G微硬盤
下載 XBMC LIVE的ISO鏡像,刻光盤把XBMC系統(tǒng)安裝到4G微硬盤上(不想刻盤的,就用unetbootin把ISO鏡像寫到U盤 上來安裝)
,這個(gè)很簡單就不復(fù)述了。
請參考
http://bbs.htpc1.com/viewthread. ... 26amp%3Btypeid%3D67 XBMC LIVE的ISO鏡像
http://mirrors.xbmc.org/releases/live/ 用到的軟件有unetbootin、PUTTY、WINSCP,GOOGLE一下就可以找到。
XBMC LIVE安裝完進(jìn)入完成在系統(tǒng)界面設(shè)置 好中文(新版本的XBMC已經(jīng)內(nèi)置中文),
方法如下:
system---appearance--skin--fonts--arial based
system---appearance--international--language--chinese(simple)
并設(shè)置10分鐘不操作就關(guān)閉屏幕。
接下來安裝網(wǎng)絡(luò)共享和BT下載:
在另一臺WIN的電腦上用PUTTY登陸XBMC,(如未注明均使用PUTTY來操作,本人在安裝時(shí)填的用戶名是xbmc,以下操作都是以xbmc為當(dāng)前用戶)。
1.安裝完成升級系統(tǒng)文件
查詢硬盤
掛載500G硬盤到VIDEOS(注:500G硬盤事先在WIN的電腦上用WINPM分區(qū) 并格式化為XFS或者EXT3)
- sudo mount /dev/sda1 /home/xbmc/Videos
復(fù)制代碼讓xbmc用戶可以讀寫掛載的新硬盤
- sudo chown xbmc /home/xbmc/Videos
復(fù)制代碼設(shè)置開機(jī)自動(dòng)掛載硬盤
查詢磁盤uuid
編輯/etc/fstab
在最后一行添加(UUID請換成你的硬盤UUID)
- UUID=2e235570-2e62-4c6a-8e74-fad6482624fe /home/xbmc/Videos xfs defaults
復(fù)制代碼(EXT格式要這樣:
- UUID=2e235570-2e62-4c6a-8e74-fad6482624fe /home/xbmc/Videos ext defaults
復(fù)制代碼)
2.安裝SAMBA網(wǎng)絡(luò)共享
- sudo apt-get install samba
復(fù)制代碼設(shè)置SAMBA
- sudo nano /etc/samba/smb.conf
復(fù)制代碼在后面添加:
-
- [xbmc]
- comment = XBMC Share
- path = /home/xbmc/Videos
- force user = xbmc
- inherit permissions = yes
- read only = No
- guest ok = Yes
復(fù)制代碼重啟SAMBA服務(wù)
- sudo /etc/init.d/samba restart
復(fù)制代碼3.安裝rtorrent下載軟件
- sudo apt-get install php5 php5-xmlrpc libapache2-mod-scgi rtorrent screen
復(fù)制代碼修改Apache的默認(rèn)服務(wù)器配置
- sudo nano /etc/apache2/sites-enabled/000-default
復(fù)制代碼在最后一個(gè)“</VirtualHost>”的前面添加
- LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
- SCGIMount /RPC2 127.0.0.1:5000
復(fù)制代碼重新啟動(dòng)Apache。
把我提供的.rtorrent.rc上傳保存到/home/xbmc目錄,
(這里也有
http://rtgui.googlecode.com/files/.rtorrent.rc 下載,不過要修改很多東西)
在500G硬盤上創(chuàng)建rtorrent目錄,并設(shè)置XBMC能讀寫rtorrent
創(chuàng)建目錄
- sudo mkdir /home/xbmc/Videos/rtorrent /home/xbmc/Videos/rtorrent/session
復(fù)制代碼添加權(quán)限
- sudo chown xbmc /home/xbmc/Videos/rtorrent /home/xbmc/Videos/rtorrent/session
復(fù)制代碼在這個(gè)階段,看看你可以運(yùn)行的rtorrent
安裝沒有完成先退出rtorrent界面,按Ctrl+a+d讓rtorrent在后臺運(yùn)行。
從
http://code.google.com/p/rtgui/downloads/list 下載rtgui
(可能沒有wget這個(gè)軟件,要先sudo apt-get wget安裝?;蛘呦螺d后用WINSCP上傳到/home/xbmc目錄)
- sudo wget http://rtgui.googlecode.com/files/rtgui-0.2.7.tgz
復(fù)制代碼解壓縮文件到網(wǎng)絡(luò)服務(wù)器的目錄
- sudo tar xvzf /home/xbmc/rtgui-0.2.7.tgz -C /var/www
復(fù)制代碼把我提供的config.php上傳保存/var/www目錄
現(xiàn)在打開你的瀏覽器,并轉(zhuǎn)到http://xbmc的IP/rtgui/,OK了。
設(shè)置 rtorrent開機(jī)自動(dòng)運(yùn)行,
把下面一行添加到在'exit 0'之前;
- su - xbmc -c 'screen -d -m -S rtorrent rtorrent' &>null
復(fù)制代碼補(bǔ)充:
a:
rtorrent快捷鍵
Ctrl+A+D是讓rtorrent在后臺運(yùn)行
輸入
screen -r
這樣就重新又回到了rtorrent界面
Ctrl+q是關(guān)閉rtorrent
b:
如果rtorrent沒有開機(jī)自動(dòng)運(yùn)行,需要PUTTY登陸后輸入screen rtorrent
4.配置Apache+PHP+MySQ
- sudo apt-get install libapache2-mod-php5
復(fù)制代碼重啟APACHE
- sudo /etc/init.d/apache2 restart
復(fù)制代碼安裝MYSQL
- sudo apt-get install mysql-server
復(fù)制代碼安裝完成按提示設(shè)置mysql的root密碼
讓apache、php支持 mysql
- sudo apt-get install libapache2-mod-auth-mysql
復(fù)制代碼- sudo apt-get install php5-mysql
復(fù)制代碼再次重啟APACHE
- sudo /etc/init.d/apache2 restart
復(fù)制代碼至此apache2+php 5.2.4.2+mysql5.0.51的環(huán)境就完成了。
接下來安裝phpMyAdmin這個(gè)數(shù)據(jù)庫管理軟件
- sudo apt-get install phpmyadmin
復(fù)制代碼安裝完成按提示設(shè)置mysql的root密碼
phpmyadmin默認(rèn)安裝在 /usr/share/phpmyadmin,作個(gè)鏈接到 /var/www/ 目錄下,命令為:
- sudo ln -s /usr/share/phpmyadmin/ /var/www/
復(fù)制代碼在/home/xbmc/Videos/添加目錄
- sudo mkdir home/xbmc/Videos/web/site1/blog/
復(fù)制代碼作個(gè)鏈接到 /var/www/ 目錄下,命令為:
- sudo ln -s /home/xbmc/Videos/web/site1/blog/ /var/www/
復(fù)制代碼把博客程序用WINSCP上傳到/home/xbmc/Videos/web/site1/blog/,就可以通過瀏覽器輸入
http://xbmc的ip/blog來訪問。
xbmc.rar (51.26 KB)
下載次數(shù): 41
2010-10-27 11:29