分页: 1 / 1

[求助]怎样将MS的字体文件复制到ubuntu?[已解决]

发表于 : 2006-07-03 2:21
yesilike
我安装的是6.06,原Windows下C盘名为WindowsXP,自动挂载到ubuntu桌面,应该是hda1,我应该怎样复制其下面的字体文件?
其在windows下面的路径为:C:/WINDOWS/Fonts/simsun.ttc

我试过以下几种方法,都说“没有那个文件或目录“
sudo cp /WINDOWS/Fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/
cp: 无法 stat “/WINDOWS/Fonts/simsun.ttc”: 没有那个文件或目录

sudo cp /hda1/WINDOWS/Fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/
cp: 无法 stat “/hda1/WINDOWS/Fonts/simsun.ttc”: 没有那个文件或目录

sudo cp /WindowsXP/hda1/WINDOWS/Fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/
cp: 无法 stat “/WindowsXP/hda1/WINDOWS/Fonts/simsun.ttc”: 没有那个文件或目录

Re: [求助]怎样将MS的字体文件复制到ubuntu?

发表于 : 2006-07-03 3:00
catinsnow
yesilike 写了:我安装的是6.06,原Windows下C盘名为WindowsXP,自动挂载到ubuntu桌面,应该是hda1,我应该怎样复制其下面的字体文件?
其在windows下面的路径为:C:/WINDOWS/Fonts/simsun.ttc

我试过以下几种方法,都说“没有那个文件或目录“
sudo cp /WINDOWS/Fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/
cp: 无法 stat “/WINDOWS/Fonts/simsun.ttc”: 没有那个文件或目录

sudo cp /hda1/WINDOWS/Fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/
cp: 无法 stat “/hda1/WINDOWS/Fonts/simsun.ttc”: 没有那个文件或目录

sudo cp /WindowsXP/hda1/WINDOWS/Fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/
cp: 无法 stat “/WindowsXP/hda1/WINDOWS/Fonts/simsun.ttc”: 没有那个文件或目录
默认没有这个目录,你可以建一个,或拷到/usr/share/fonts下的任一目录也可以.

发表于 : 2006-07-03 9:45
yesilike
Linux下的目录是已经建好了的。
关键是怎样从挂载的windows下拷贝.路径不知道是该怎样?

发表于 : 2006-07-03 10:27
karron
默认情况下windows的分区都挂载在/media目录,你先看看.

应该是 /media/hda1/.........

在输入命令的时候用TAB键补齐,可以方便不少,注意大小写的问题.你可以先用ls看看路径是什么

发表于 : 2006-07-03 11:08
yesilike
4楼说的对,我已经搞好了,谢谢!
lihui@lihui-BuyerOrgCn:~$ sudo cp /media/hda1/WINDOWS/Fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/
Password:
lihui@lihui-BuyerOrgCn:~$ sudo cp /media/hda1/WINDOWS/Fonts/SURSONG.TTF /usr/share/fonts/zh_CN/TrueType/
lihui@lihui-BuyerOrgCn:~$ sudo cp /media/hda1/WINDOWS/Fonts/tahoma.ttf /usr/share/fonts/zh_CN/TrueType/
lihui@lihui-BuyerOrgCn:~$ sudo chmod 644 /usr/share/fonts/zh_CN/TrueType/*
lihui@lihui-BuyerOrgCn:~$ cd /usr/share/fonts/zh_CN/TrueType/
lihui@lihui-BuyerOrgCn:/usr/share/fonts/zh_CN/TrueType$ sudo mkfontscale
lihui@lihui-BuyerOrgCn:/usr/share/fonts/zh_CN/TrueType$ sudo mkfontdir
lihui@lihui-BuyerOrgCn:/usr/share/fonts/zh_CN/TrueType$ sudo fc-cache /usr/share/fonts/zh_CN/TrueType/
lihui@lihui-BuyerOrgCn:/usr/share/fonts/zh_CN/TrueType$ sudo gedit /etc/fonts/fonts.conf
lihui@lihui-BuyerOrgCn:/usr/share/fonts/zh_CN/TrueType$