顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

2010年4月9日 星期五

Stellarium無法顯示中文

安裝Ubuntu 9.10,再安裝 Lazy Script,並未修正Stellarium的中文顯示問題,上網去找就找到方法了:
修正中文的顯示問題,切換至data資料夾下。

cd /usr/share/stellarium/data

先將預設字型檔DejaVuSans.ttf換個名字。

mv DejaVuSans.ttf DejaVuSans.tt_

再連結系統的正體中文字型檔uming.ttc(細明體)。

sudo ln -sf /usr/share/fonts/truetype/arphic/uming.ttc DejaVuSans.ttf

如此就解決問題了!

感謝玩物尚誌

2009年3月24日 星期二

Scratch : Linux installers

http://info.scratch.mit.edu/Linux_installer

Download latest version of Scratch for Linux, scratch-1.3.1_0.9-4_i386.deb for Ubuntu 8.10.

From Command Line Interface

Install the package

sudo dpkg -i scratch-1.3.1_0.9-4_i386.deb

So, if you need to work with sound in Scratch, you should install those packages

sudo apt-get install alsa-oss libasound2-plugins

2009年2月25日 星期三

在終端機升級ubuntu版本

Network Upgrade for Ubuntu Servers (Recommended)

  1. Install update-manager-core if it is not already installed:

    sudo apt-get install update-manager-core
  2. Edit /etc/update-manager/release-upgrades and set:

    nano /etc/update-manager/release-upgrades

    Prompt=lts改為

    Prompt=normal

  3. Launch the upgrade tool:

    sudo do-release-upgrade
  4. Follow the on-screen instructions.
參考:http://www.ubuntu.com/getubuntu/upgrading

2009年2月4日 星期三

Lenovo 3000 V200 XP driver

Ubuntu在驅動Printer還有待努力:Epson 6200L,CX11F等

所以在VirtualBox裡的XP就需要Driver了:

Lenovo Support & downloads - Drivers and software - 3000 V200

http://www-307.ibm.com/pc/support/site.wss/MIGR-68014.html

2008年12月28日 星期日

在Ubuntu 8.10用EPSON CX11F

參考 http://ubuntuforums.org/showthread.php?t=894493
To summarize:
  1. Download Epson-ALCX11-filter-1.1.tar.gz by selecting 'Other' and 'Other' for the distribution and version drop down boxes. It's at the bottom of the section title 'Download for AcuLaser CX11 for CUPS'.
  2. Once downloaded, do the following to compile and install the driver (commands in square brackets are optional, if you're not sure if something is installed, perform the command):
    Code:

    sudo apt-get install libcupsys2-dev build-essential
    tar -zxvf Epson-ALCX11-filter-1.1.tar.gz
    cd Epson-ALCX11-filter-1.1/
    ./configure
    sudo make install
    [ sudo apt-get install bc ] # this should already be installed on Heron
    sudo apt-get install libstdc++5
  3. Now go to System -> Administration -> Printing
  4. Go to Edit -> New Printer (your Epson CX11NF should be in the list on the left)
  5. Click Forward and follow the install Wizard prompts, you should see the driver you just installed listed. Select that and print a test page - voila!
  6. If you see the job enter the queue briefly and then disappear, with no output from your Epson, try this command to help offer pointers to missing dependencies:
    Code:
    /usr/local/bin/pstoalcx11.sh PageSize=lt XY600=5100×6600 MediaType=normal TonerSave=false InputSlot=cassette1 Collate=on Copies=1 Color=color Resolution=600dpi XY600=5100×6600
補充
https://answers.launchpad.net/ubuntu/+source/cups/+question/48722

To summarize the steps to make CX11 run into my Hardy Heron installation are:
- downloading CX11 filter from http://www.avasys.jp/english/linux_e/dl_mfp.html
- apt-get install libcupsys2-dev
- tar -zxvf Epson-ALCX11-filter-1.1.tar.gz
- cd Epson-ALCX11-filter-1.1
- ./configure
- make install
- sudo aa-complain cupsd
- sudo apt-get install libstdc++5

Shortly I added "sudo aa-complain cupsd" to the istructions in http://ubuntuforums.org/showthread.php?t=894493

若無法設定,
sudo cp /usr/local/bin/pstoalcx11.sh /usr/bin/
或是ln亦可。

2008年6月7日 星期六

Ubuntu 8.04 問題

Ubuntu 8.04 的 Flash 中文字變方框

這是因為Ubuntu 8.04 將字型的設定改變了。

只要刪除/etc/fonts/conf.d/49-sansserif.conf,或重新命名,重開瀏覽器就會正常了。

ex.數學萬用揭示板(吉安國小陳俊瑜老師提供)
http://163.21.193.5/asp/edit/use.asp
使用前是方框字,改名或刪除後就正常了!


Ubuntu 8.04「數字拼圖」的問題

sudo gedit /etc/fonts/conf.d/69-language-selector-zh-tw.conf

將底下這段中的 WenQuanYi Zen Hei 調到第一順位
--
--
--sans-serif
--

--
               (省略)
--

--

資料來源:
http://www.ubuntu.org.tw/modules/newbb/viewtopic.php?post_id=45432


2008年4月30日 星期三

Ubuntu 8.04 安裝手札

在安裝完Ubuntu 8.04 後,以下是我的調教順序:
***下列所下載的deb檔,都可以利用滑鼠點兩下的方式進行安裝。

更新套件

sudo apt-get update
sudo apt-get upgrade
語系瘦身
sudo apt-get install -y localepurge
sudo localepurge

視窗裝飾器
sudo apt-get install emerald
啟動 Compiz
compiz --replace
如 果您確定 Compiz Fusion 運作正常,您可以設動每次登入自動啟動 Compiz Fusion 。方法是先選取『系統』(System) -> 『偏好設定』(Preference) -> 『作業階段』(Session) 啟動作業階段配置視窗。在『初始啟動程式』分頁按『新增』(Add)。有 Fusion 小圖示,請填入以下項目:
* 名稱 (Name): Compiz Fusion Icon
* 指令 (Command): fusion-icon

無 Fusion 小圖示的朋友則填入以下項目:
* 名稱 (Name): Compiz Fusion
* 指令 (Command): compiz --replace

完成後按『確定』(Ok) 和『離開』(Close) 離開。下次再登入時就會自動啟動Compiz Fusion。
ps.詳細的設定程序還是以之前的文章為主。


Emesene是一個用 Python 和 GTK 寫的 MSN 客戶端
sudo apt-get install -y pidgin emesene

#Skype
sudo nano /etc/apt/sources.list
加入
deb http://download.skype.com/linux/repos/debian/ stable non-free
sudo apt-get update
sudo apt-get install -y skype

sudo apt-get install -y filezilla filezilla-locales

Medibuntu 套件庫
sudo nano /etc/apt/sources.list
加入
deb http://packages.medibuntu.org/ hardy free non-free
* 下載金鑰
wget http://packages.medibuntu.org/medibuntu-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y w32codecs libdvdcss2
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly

#Hinedo網路廣播電台(要先裝mplayer)
wget http://rt.openfoundry.org/Foundry/Project/Download/Attachment/95832/65485/hinedo_0.4-1ubuntu1_i386.deb
sudo dpkg -i ./hinedo_0.4-1ubuntu1_i386.deb

影音
sudo apt-get install -y gimp inkscape blender tuxpaint gthumb kolourpaint mtpaint smplayer elisa cheese

影片剪輯
sudo apt-get install -y kino kdenlive xvidcap

光碟工具
sudo apt-get ‌install -y k3b k9copy dvd95 gmountiso isomaster acidrip devede ffmpeg

AdobeReader
連結到 官方下載頁面
http://www.adobe.com/tw/products/acrobat/readstep2_allversions.html
wget http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/cht/AdobeReader_cht-8.1.2-1.i386.deb
sudo dpkg -i ./AdobeReader_cht-8.1.2-1.i386.deb
連結到 下載亞洲和中歐字型套件
http://www.adobe.com/tw/products/acrobat/acrrasianfontpack.html


網頁編輯
sudo apt-get install kompozer prism widget
prism:網頁變成像在電腦裡面的軟體,放在桌面上當連結打開使用
widget 轉換網頁,目前支援四個網站Google Gadgets,Yourminis,SpringWidgets,Widgetbox

心智圖 Freemind
sudo nano /etc/apt/sources.list
加入一行:
deb http://eric.lavar.de/comp/linux/debian/ experimental/
sudo apt-get install freemind freemind-browser freemind-plugins-script

http://sourceforge.net/project/showfiles.php?group_id=190742
將下載的檔案解開後放在plugins資料夾下,就可以匯出成openoffice.org 2.x的 odt檔案了!
wget http://jaist.dl.sourceforge.net/sourceforge/mm2odtfreemind/Plugin_ODT_FM0.9.0beta9.zip
sudo mv Plugin_ODT_FM0.9.0beta9.zip /usr/share/freemind/plugins/
cd /usr/share/freemind/plugins/
sudo unzip Plugin_ODT_FM0.9.0beta9.zip

影片外掛
sudo apt-get install gstreamer0.10-ffmpeg totem-xine libxine1 libxine1-ffmpeg libxine1-plugins libxine1-gnome

翻譯軟體 Stardict
sudo apt-get install stardict
字典安裝: 到下列網址:
http://stardict.sourceforge.net/Dictionaries_zh_TW.php
以下為部份字典檔的執行命令:
wget http://jaist.dl.sourceforge.net/sourceforge/stardict/stardict-cdict-big5-2.4.2.tar.bz2
wget http://jaist.dl.sourceforge.net/sourceforge/stardict/stardict-oxford-big5-2.4.2.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/stardict/stardict-xdict-ec-big5-2.4.2.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/stardict/stardict-langdao-ec-big5-2.4.2.tar.bz2
wget http://jaist.dl.sourceforge.net/sourceforge/stardict/stardict-langdao-ce-big5-2.4.2.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/stardict/stardict-lazyworm-ec-big5-2.4.2.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/stardict/stardict-lazyworm-ce-big5-2.4.2.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/stardict/stardict-21shijishuangxiangcidian-big5-2.4.2.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/stardict/stardict-21shijishuangyukejicidian-big5-2.4.2.tar.bz2

sudo tar -xjvf *.tar.bz2
sudo mv * /usr/share/stardict/dic/

真人發音
wget http://jaist.dl.sourceforge.net/sourceforge/stardict/WyabdcRealPeopleTTS.tar.bz2
sudo tar -xjvf WyabdcRealPeopleTTS.tar.bz2
sudo mv WyabdcRealPeopleTTS /usr/share/
啟動後,將英文單字反白,按win鍵就會發音了。

PDF編輯軟體(3選1)
sudo apt-get install pdfedit
sudo apt-get install scribus
sudo apt-get install flpsed

教育類
sudo apt-get install kdeedu tuxmath tuxtype stellarium tuxguitar gcompris

Stellarium星象軟體中文化
http://www.stellarium.org/wiki/index.php/如何在Stellarium中正確顯示中文
將中文字型下載到 :/usr/share/stellarium/data/,記得要sudo 才能。
修改 :/usr/share/stellarium/data/fontmap.dat
sudo nano /usr/share/stellarium/data/fontmap.dat
將 default DejaVuSansMono.ttf 1 DejaVuSansMono.ttf 1
自行改成你下載的字型,如:
default ukai.ttf 1 ukai.ttf 1
要開stellarium前,務必把3D的awn關閉,不然會離不開stellarium。

系統
sudo apt-get install gparted gcin im-switch ntpdate firestarter dolphin gshutdown alltray konqueror rar unrar startupmanager

gshutdown 定時關機
alltray 把任何視窗縮到系統工具列

swfdec-gnome 讓 Flash 可以直接在 GNOME 中使用。
swfdec-mozilla

為了方便,我將上述的套件整理如下
#加入套件來源
sudo nano /etc/apt/sources.list
加入

#skype
deb http://download.skype.com/linux/repos/debian/ stable non-free
#media
deb http://packages.medibuntu.org/ hardy free non-free
#freemind
deb http://eric.lavar.de/comp/linux/debian/ experimental/


#安裝套件
sudo apt-get install localepurge emerald pidgin emesene skype filezilla filezilla-locales smplayer elisa w32codecs libdvdcss2 gimp inkscape blender tuxpaint gthumb kolourpaint mtpaint kino kdenlive k3b k9copy dvd95 gmountiso isomaster kompozer prism freemind stardict pdfedit kdeedu tuxmath tuxtype stellarium tuxguitar gparted gcin im-switch ntpdate firestarter dolphin gshutdown alltray language-pack-zh language-pack-gnome-zh language-support-zh swfdec-gnome swfdec-mozilla gcompris konqueror scribus devede rar unrar ffmpeg cheese startupmanager

#檔案總管nautilus
sudo apt-get install nautilus-image-converter nautilus-cd-burner nautilus-gksu nautilus-open-terminal nautilus-script-audio-convert nautilus-script-collection-svn nautilus-script-manager nautilus-sendto nautilus-share nautilus-wallpaper
要發揮nautilus強大的功能,需另外下載script存到~/.gnome2/nautilus-scripts/

#3D的awn
sudo apt-get install avant-window-navigator-bzr awn-core-applets-bzr awn-manager-bzr

#DV剪輯軟體:Cinelerra,lives
deb http://repository.akirad.net/ akirad-hardy main
wget -q http://repository.akirad.net/dists/akirad.key -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install cinelerra lives


安裝字型
sudo mkdir /usr/share/fonts/truetype/wang
cd /usr/share/fonts/truetype/wang/
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-01.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-02.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-03.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-04.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-05.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-06.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-07.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-08.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-09.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/WCL-10.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wp010-05.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wp010-08.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wp110-05.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wp110-08.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wp210-05.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wp210-08.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wp310-05.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wp310-08.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt001.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt002.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt003.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt004.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt005.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt006.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt009.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt011.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt014.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt021.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt024.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt028.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt034.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt040.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt064.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wt071.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wtcc02.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wtcc15.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wtg-06cut1x.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wthc06.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wts11.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wts43.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wts47.ttf
sudo wget http://ftp.sies.tpc.edu.tw/download/字型/王漢宗自由字型/wts55.ttf

sudo mkdir /usr/share/fonts/truetype/cwtex
cd /usr/share/fonts/truetype/cwtex/
sudo wget http://cle.linux.org.tw/fonts/cwttf/center/cwfs.ttf
sudo wget http://cle.linux.org.tw/fonts/cwttf/center/cwheib.ttf
sudo wget http://cle.linux.org.tw/fonts/cwttf/center/cwkai.ttf
sudo wget http://cle.linux.org.tw/fonts/cwttf/center/cwming.ttf
sudo wget http://cle.linux.org.tw/fonts/cwttf/center/cwyen.ttf

sudo fc-cache -f -v

#使用官方的wine
#wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
deb http://wine.budgetdedicated.com/apt hardy main

## The Opera browser (packages)
# wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
######## i386-Architecture only!!!
deb http://deb.opera.com/opera/ sid non-free