pygame是python的第三方程式庫
1.相依性安裝
sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev checkinstall mercurial
2.下載pygame
hg clone https://bitbucket.org/pygame/pygame
3.變更至該目錄
cd pygame
4.編譯
python3 setup.py build
5.安裝
sudo checkinstall python3 setup.py install
資料摘取自網路
2014年4月16日 星期三
2014年3月27日 星期四
0
ubuntu 12.04 安裝xp網芳印表機epson 6200L
在“系統設定值”-》“列印”-》“加入”中安裝了epson6200L(需安裝samba),原以為這麼簡單就搞定了,ubuntu真是越來越方便了。那知資料送了n次郤沒任何反應。
只好googel一下有沒有解決方案
1. 下載 epsoneplijs-0.4.1.tgz
http://sourceforge.net/projects/epsonepl/files/epsonepl/0.4.1/epsoneplijs-0.4.1.tgz/download
2. 解壓縮(tar zxvf) epsoneplijs-0.4.1.tgz
3. sudo apt-get install build-essential
4. cd epsoneplijs-0.4.1.tgz
5. sudo ./configure
6. sudo make
7. sudo make install
8. sudo mkdir -p /usr/share/cups/model/foomatic-ppds/Epson/
9. sudo mkdir -p /usr/share/foomatic/db/source/driver/
10. sudo mkdir -p /usr/share/foomatic/db/source/opt
11. sudo mkdir -p /usr/share/foomatic/db/source/printer/
12. sudo cp -av foomatic_PPDs/Epson-EPL-*-cups.ppd.gz /usr/share/cups/model/foomatic-ppds/Epson/
13. sudo cp foomatic/driver/epl6200l.xml /usr/share/foomatic/db/source/driver/
14. sudo cp foomatic/opt/epsonepl-* /usr/share/foomatic/db/source/opt/
15. sudo cp foomatic/printer/Epson-EPL-6200L.xml /usr/share/foomatic/db/source/printer/
16. sudo /etc/init.d/cups restart
http://sourceforge.net/projects/epsonepl/files/epsonepl/0.4.1/epsoneplijs-0.4.1.tgz/download
2. 解壓縮(tar zxvf) epsoneplijs-0.4.1.tgz
3. sudo apt-get install build-essential
4. cd epsoneplijs-0.4.1.tgz
5. sudo ./configure
6. sudo make
7. sudo make install
8. sudo mkdir -p /usr/share/cups/model/foomatic-ppds/Epson/
9. sudo mkdir -p /usr/share/foomatic/db/source/driver/
10. sudo mkdir -p /usr/share/foomatic/db/source/opt
11. sudo mkdir -p /usr/share/foomatic/db/source/printer/
12. sudo cp -av foomatic_PPDs/Epson-EPL-*-cups.ppd.gz /usr/share/cups/model/foomatic-ppds/Epson/
13. sudo cp foomatic/driver/epl6200l.xml /usr/share/foomatic/db/source/driver/
14. sudo cp foomatic/opt/epsonepl-* /usr/share/foomatic/db/source/opt/
15. sudo cp foomatic/printer/Epson-EPL-6200L.xml /usr/share/foomatic/db/source/printer/
16. sudo /etc/init.d/cups restart
完成後重設印表機
若出現驅動程式找不到 ijs_server_epsonepl
則 sudo cp ijs_server_epsonepl /usr/bin/ (在重啟前複製即可)
2009年12月8日 星期二
0
.htaccess可執行其path
設定可以載入 .htaccess 的目錄:
在 /etc/apache2/apache2.conf 的最後面新增以下的內容...
←(這裡是設定讓 .htaccess 可以載入的目錄)
AllowOverride All ←(這個是關鍵的地方...)
Order allow,deny
allow from all
在 /etc/apache2/apache2.conf 的最後面新增以下的內容...
AllowOverride All ←(這個是關鍵的地方...)
Order allow,deny
allow from all
2009年11月29日 星期日
0
ubuntu server啟用使用者家目錄網頁
1./home/使用者名稱/public_html(建立一個使用者並於使用者下建一public_html目錄)
2.複製 /etc/apache2/mods-available下的userdir.load 及userdir.conf
到 /etc/apache2/mods-enabled 下
3.重新啟動apache2
service apache2 restart
2.複製 /etc/apache2/mods-available下的userdir.load 及userdir.conf
到 /etc/apache2/mods-enabled 下
3.重新啟動apache2
service apache2 restart
2009年11月22日 星期日
0
mysql建立資料庫
第一次設定mysql root 密碼
mysqladmin -u root password 'your.password'
mysql -u root -p
輸入密碼後進入mysql
mysql>
mysql>create database xoops2;
mysql>grant all privileges on xoops2.* to xoops2user@localhost identified by 'your.password' ;
mysql>exit
測試剛剛建立的資料庫與帳號是否可以使用:
mysql -u xoops2user -p
connect xoops2;
exit
mysqladmin -u root password 'your.password'
mysql -u root -p
輸入密碼後進入mysql
mysql>
mysql>create database xoops2;
mysql>grant all privileges on xoops2.* to xoops2user@localhost identified by 'your.password' ;
mysql>exit
測試剛剛建立的資料庫與帳號是否可以使用:
mysql -u xoops2user -p
connect xoops2;
exit
2009年11月12日 星期四
0
Error while getting interface flags : no such device
這種情形通常是發生在變更網路卡及MAC位址改變的時候,先確定Ubuntu能順利抓取網路卡驅動程式用dmesg | grep eth查看(不要用eth0,因為系統自動給定的數字不一定是0),如果有類似 ethx: registered as xxxxxxx,就表示驅動成功。 接著編輯/etc/udev/rules.d/70-persistent-net.rules這個檔案,如果你的設定不複雜,例如只有一張網路卡,就將所有內容刪除即可,如果你不確定,那就找到結尾為NAME="ethx" (ethx就是利用 dmesg | grep eth所查出的那個)的那行刪除即可。接著再執行
2009年4月21日 星期二
2009年3月26日 星期四
0
設定網路印表機
在ubuntu 8.10下欲安裝網路印表機(windows xp 分享),系統>>管理>>列印 新增印表機
選取 windows printer via samba smb://輸入 ’電腦名稱‘/‘共用名稱‘ 即可搞定。
不要用 瀏覧 的,找到的安裝完無法列印,會出現unable to connect to CIFS 的錯誤訊息,應該是路徑有問題吧!
選取 windows printer via samba smb://輸入 ’電腦名稱‘/‘共用名稱‘ 即可搞定。
不要用 瀏覧 的,找到的安裝完無法列印,會出現unable to connect to CIFS 的錯誤訊息,應該是路徑有問題吧!
2009年2月26日 星期四
0
64位元系統強制安裝32位元軟體
在ubuntu-desktop-amd64版本中,安裝32位元版本如skype會出現錯誤訊息。
解決方法,加上 --force-architecture 參數即可:
在終端機模式下
sudo dpkg -i --force-architecture skype-debian_2.0.0.72-1_i386.deb
(檔案置於家目錄下)
相依問題要先解決先用synaptic套件管理程式安裝 libqt4-core 及 libqt4-gui 套件。
解決方法,加上 --force-architecture 參數即可:
在終端機模式下
sudo dpkg -i --force-architecture skype-debian_2.0.0.72-1_i386.deb
(檔案置於家目錄下)
相依問題要先解決先用synaptic套件管理程式安裝 libqt4-core 及 libqt4-gui 套件。
2009年1月8日 星期四
0
ubuntu下安裝windows的程式
在linux的系統上如果想要安裝windows 的程式可不可行呢?答案就是wine
在ubuntu 8.10下執行synaptic套件管理程式,搜尋 " wine " 套件執行安裝同時把相依套件也都安裝就可了,接著是在windows 下有些安裝程式壓縮檔 .cab的需要 " cabextract " 套件一樣執行安裝,完成後就可去找windows的程式的setup.exe 按右鍵 以wine執行安裝就搞定了。
不過重點一樣是windows 下的軟體,多數都是有版權的,要取得合法版權以免觸法。
2009年1月7日 星期三
0
ubuntu8.10安裝google的picasa相簿管理程式
今天打算來安裝google的相簿管理程式,因此就先用下載picasa 3 for linux的版本,找到了該網址就下載囉(目前仍是beta版)。
因為我用的版本是中間的ubuntu i386的,其他人請依自己的版本選用。上面這行代表picasa這支程式是windows上的程式用wine來執行。
在下載完的檔案上按右鍵-以“GDebi套件安裝程式“開啟-安裝 即可,安裝完在 應用程式-美工繪圖-picasa 就可找到了。相當容易和在windows下安裝一樣方便。
- rpm, for Red Hat/Fedora/Suse/Mandriva i386 or x86_64:
http://dl.google.com/linux/rpm/testing/i386/picasa-3.0-current.i386.rpm - deb, for Debian/Ubuntu i386:
http://dl.google.com/linux/deb/pool/non-free/p/picasa/picasa_3.0-current_i386.deb - deb, for Debian/Ubuntu amd64:
http://dl.google.com/linux/deb/pool/non-free/p/picasa/picasa_3.0-current_amd64.deb
因為我用的版本是中間的ubuntu i386的,其他人請依自己的版本選用。上面這行代表picasa這支程式是windows上的程式用wine來執行。
在下載完的檔案上按右鍵-以“GDebi套件安裝程式“開啟-安裝 即可,安裝完在 應用程式-美工繪圖-picasa 就可找到了。相當容易和在windows下安裝一樣方便。
2008年12月29日 星期一
0
安裝布景主題
利用google搜尋了一下關於linux(ubuntu)的布景主題,好心的網友分享了三十個布景主題,就下載來安裝吧。
下載後的檔案保留其原*.tar.gz的格式即可,在 系統->偏好設定->外觀設定 中點選 安裝 後找到下載下來的主題檔就搞定了。
如要換桌布在網路上找到的圖上按右鍵,設為桌面背景即可,也可以存回電腦再設定。這個部分和微軟的windows系統沒啥差別。
下載後的檔案保留其原*.tar.gz的格式即可,在 系統->偏好設定->外觀設定 中點選 安裝 後找到下載下來的主題檔就搞定了。
如要換桌布在網路上找到的圖上按右鍵,設為桌面背景即可,也可以存回電腦再設定。這個部分和微軟的windows系統沒啥差別。
2008年12月25日 星期四
0
顯示桌面圖示
在安裝完ubuntu後桌面非常乾淨,想像windows一樣有桌面圖示修改一下吧!
按下alt和F2鍵出現開始執行程式的對話框,輸入 gconf-editor 執行後出現組態編輯器.
開啟「組態編輯器」視窗後,請從左邊的目錄區依序點選「apps」→「nautilus」→「desktop」
切換到「desktop」選單後,接著請勾選右邊的
「computer_icon_visible」電腦圖示、
「home_icon_visible」我的資料夾、
「network_icon_visible」網路伺服器
「trash_icon_visible」回收筒 等項目,有勾選的話,就會出現在桌面上。
按下alt和F2鍵出現開始執行程式的對話框,輸入 gconf-editor 執行後出現組態編輯器.
開啟「組態編輯器」視窗後,請從左邊的目錄區依序點選「apps」→「nautilus」→「desktop」
切換到「desktop」選單後,接著請勾選右邊的
「computer_icon_visible」電腦圖示、
「home_icon_visible」我的資料夾、
「network_icon_visible」網路伺服器
「trash_icon_visible」回收筒 等項目,有勾選的話,就會出現在桌面上。
2008年12月24日 星期三
0
安裝ubuntu 8.10 沒聲音
下載了ubuntu 8.10選擇安裝在window下(第二個選項),自動在D槽中建了一個ubuntu的資料夾,一開始安裝好沒有音效設定修改方式如下
進終端畫面輸入
sudo gedit /etc/modprobe.d/alsa-base
在該檔最後輸入
options snd-hda-intel model=3stack
存檔後重新開機,就有聲音了。 (我的機器是asus w7j)
進終端畫面輸入
sudo gedit /etc/modprobe.d/alsa-base
在該檔最後輸入
options snd-hda-intel model=3stack
存檔後重新開機,就有聲音了。 (我的機器是asus w7j)
訂閱:
文章 (Atom)

