启动livecd,
apt-get install squashfs-tools
add source(picture、video、music)
配置中文语言(
system-->appearance-->international-->language-->Chinese
(Simplified) )
sudo vi /etc/shadow
修改root密码,并用root登录
mount -t squashfs -o loop
/live/image/live/filesystem.squashfs /mnt/fs
cp -a /mnt/fs/* /tmp/xbmc
cp -a /home/xbmc/.xbmc
/tmp/xbmc/home/xbmc/
cp simsun.ttc
/tmp/xbmc/usr/share/xbmc/media/Fonts/simsun.ttf
cd /tmp/xbmc
chroot /tmp/xbmc
ln -s /usr/share/xbmc/media/Fonts/simsun.ttf
/usr/share/xbmc/skin/??/fonts/
编辑/usr/share/xbmc/skin/??/720p/Font.xml将default字体文件设置为simsun.ttf
xbmc的配置在/home/xbmc/.xbmc/userdata/guisettings.xml
源的配置在/home/xbmc/.xbmc/userdata/source.xml
增加以下两个文件自动绑定优盘,并支持中文:
增加/etc/udev/rule.d/99-usbstorage.rules文件,内容:
KERNEL=="sd[a-z][1-9]", SUBSYSTEM=="block",
RUN+="/sbin/mountusb.sh"
增加/sbin/mountusb.sh内容:
#!/bin/sh
dir=`basename $DEVNAME`
if [ $ACTION = "add" ]; then
[ -e /media/$dir ] || mkdir
/media/$dir
mount -t vfat -o
codepage=936,iocharset=utf8 $DEVNAME /media/$dir
if [ $? != 0 ]; then
mount -t ntfs-3g
-o locale=zh_CN.utf8 $DEVNAME /media/$dir
fi
if [ $? != 0 ]; then
mount $DEVNAME
/media/$dir
fi
if [ $? != 0 ]; then
rmdir
/media/$dir
fi
elif [ $ACTION = "remove" ]; then
umount $DEVNAME
rmdir /media/$dir
fi
localedef -f UTF-8 -i zh_CN -c -v /usr/lib/locale/zh_CN.utf8
修改/etc/environment
LANG=zh_CN.utf8
LC_ALL=zh_CN.utf8
exit退出chroot
mksquashfs /tmp/xbmc filesystem.squashfs
计算新filesystem.squashfs的md5值,修改iso文件(包括替换live/filesystem.squashfs文件和修改md5sum.txt文件)
阅读(1345) | 评论(0) | 转发(0) |