Difference between revisions of "Kodi setup"
Line 41: | Line 41: | ||
* Arial unicode font: http://www.font5.com.cn/zitixiazai/1/693.html | * Arial unicode font: http://www.font5.com.cn/zitixiazai/1/693.html | ||
* Deja Vu unicode: http://trac.xbmc.org/attachment/ticket/6397/DejaVuSans%2BDriodSansFallback.ttf | * Deja Vu unicode: http://trac.xbmc.org/attachment/ticket/6397/DejaVuSans%2BDriodSansFallback.ttf | ||
+ | |||
+ | |||
+ | 0. Stop your XBMC application | ||
Line 56: | Line 59: | ||
# Copy fonts to system | # Copy fonts to system | ||
+ | sudo mkdir -p /usr/share/fonts/truetype/chinese | ||
+ | sudo cp arialuni.ttf /usr/share/fonts/truetype/chinese/ | ||
+ | sudo cp DejaVuSans+DriodSansFallback.ttf /usr/share/fonts/truetype/chinese/DejaVuSans_unicode.ttf | ||
+ | |||
+ | # Copy fonts to XBMC | ||
cp arialuni.ttf /usr/share/xbmc/media/Fonts/ | cp arialuni.ttf /usr/share/xbmc/media/Fonts/ | ||
− | cp DejaVuSans+DriodSansFallback.ttf /usr/share/xbmc/media/Fonts/ | + | cp DejaVuSans+DriodSansFallback.ttf /usr/share/xbmc/media/Fonts/DejaVuSans_unicode.ttf |
# Copy fonts to your current skin (default skin = confluence) | # Copy fonts to your current skin (default skin = confluence) | ||
cp arialuni.ttf /usr/share/xbmc/addons/skin.confluence/fonts/ | cp arialuni.ttf /usr/share/xbmc/addons/skin.confluence/fonts/ | ||
− | cp DejaVuSans+DriodSansFallback.ttf /usr/share/xbmc/addons/skin.confluence/fonts/ | + | cp DejaVuSans+DriodSansFallback.ttf /usr/share/xbmc/addons/skin.confluence/fonts/DejaVuSans_unicode.ttf |
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | 4. Replace old Arial and Deja-Vu by Unicode versions | ||
+ | |||
+ | <syntaxhighlight lang="bash"> | ||
+ | cd /usr/share/xbmc/addons/skin.confluence/fonts/ | ||
+ | |||
+ | # Adjust old references | ||
+ | mv DejaVuSans.ttf DejaVuSans-original.ttf | ||
+ | mv arial.ttf arial-original.ttf | ||
+ | |||
+ | |||
+ | # New references | ||
+ | ln -s /usr/share/fonts/truetype/chinese/DejaVuSans_unicode.ttf DejaVuSans.ttf | ||
+ | ln -s /usr/share/fonts/truetype/chinese/arialuni.ttf arial.ttf | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | 5. Restart XBMC | ||
+ | Go to XBMC >> Home >> System >> Settings >> Appearance | ||
+ | * Under Skin >> Fonts : click the up/down arrow to change the setting to “Arial based”; | ||
+ | * Under International >> Language | ||
+ | ** >> Language : click the up/down arrow to select Chinese (Simple); | ||
+ | ** >> Character Set : click the up/down arrow to select Chinese Simplified (GBK); | ||
+ | Your XBMC should now be displaying Chinese characters properly; | ||
Revision as of 20:56, 16 October 2014
- Official web-site: http://xbmc.org
- Official tutorial: http://kodi.wiki/view/HOW-TO:Install_XBMC_for_Linux
Installation
Requirements
apt-get install python-software-properties pkg-config
apt-get install software-properties-common
apt-get install unrar
Add new repository
add-apt-repository ppa:team-xbmc/ppa
apt-get update
Installation
apt-get install xbmc
Chinese support
Chinese fonts
Download the following fonts:
- Arial unicode font: http://www.font5.com.cn/zitixiazai/1/693.html
- Deja Vu unicode: http://trac.xbmc.org/attachment/ticket/6397/DejaVuSans%2BDriodSansFallback.ttf
0. Stop your XBMC application
1. Download Arial unicode ; you should have a '20090701.rar' archive
2. Copy the archive on your media center
3. Run the following commands
unrar e 20090701.rar
wget http://trac.xbmc.org/attachment/ticket/6397/DejaVuSans%2BDriodSansFallback.ttf
# Copy fonts to system
sudo mkdir -p /usr/share/fonts/truetype/chinese
sudo cp arialuni.ttf /usr/share/fonts/truetype/chinese/
sudo cp DejaVuSans+DriodSansFallback.ttf /usr/share/fonts/truetype/chinese/DejaVuSans_unicode.ttf
# Copy fonts to XBMC
cp arialuni.ttf /usr/share/xbmc/media/Fonts/
cp DejaVuSans+DriodSansFallback.ttf /usr/share/xbmc/media/Fonts/DejaVuSans_unicode.ttf
# Copy fonts to your current skin (default skin = confluence)
cp arialuni.ttf /usr/share/xbmc/addons/skin.confluence/fonts/
cp DejaVuSans+DriodSansFallback.ttf /usr/share/xbmc/addons/skin.confluence/fonts/DejaVuSans_unicode.ttf
4. Replace old Arial and Deja-Vu by Unicode versions
cd /usr/share/xbmc/addons/skin.confluence/fonts/
# Adjust old references
mv DejaVuSans.ttf DejaVuSans-original.ttf
mv arial.ttf arial-original.ttf
# New references
ln -s /usr/share/fonts/truetype/chinese/DejaVuSans_unicode.ttf DejaVuSans.ttf
ln -s /usr/share/fonts/truetype/chinese/arialuni.ttf arial.ttf
5. Restart XBMC
Go to XBMC >> Home >> System >> Settings >> Appearance
- Under Skin >> Fonts : click the up/down arrow to change the setting to “Arial based”;
- Under International >> Language
- >> Language : click the up/down arrow to select Chinese (Simple);
- >> Character Set : click the up/down arrow to select Chinese Simplified (GBK);
Your XBMC should now be displaying Chinese characters properly;
Display chinese http://jhleoh.blogspot.se/ http://immigrationroad.com/blog/how-to-watch-chinese-tv-online-using-xbmc/
Media center
ToBeDone: Remote control WinMCE6 on Ubuntu 14.04 + intel NUC