Chinaunix首页 | 论坛 | 博客
  • 博客访问: 576133
  • 博文数量: 836
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4995
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:55
文章分类

全部博文(836)

文章存档

2008年(836)

我的朋友

分类: LINUX

2008-08-22 17:45:39

 
PART1解决failedtowritecache的问题

最近发神经把linux给格了,重装,装完中文支持,问题就来了,系统干什么都变得奇慢,并且在APT-GET的时候出现了如下的显示

Updatingfontconfigcache...
/usr/share/fonts/X11:failedtowritecache
/usr/share/fonts/X11/100dpi:failedtowritecache
/usr/share/fonts/X11/75dpi:failedtowritecache
/usr/share/fonts/X11/Type1:failedtowritecache
/usr/share/fonts/X11/encodings:failedtowritecache
。。

如果你的系统在APT的过程中也出现了这种情况,请继续往下看。
我在网上搜到了个脚本,用来解决这个问题,把下面的做成脚本运行或者直接复制到终端中运行,然后就搞定了。

#!/bin/bash
#
#修正Ubuntu7.04fc-cachefailedtowritecache错误
#

sudotouch/usr/share/fonts
sudotouch/usr/share/fonts/X11
sudotouch/usr/share/fonts/X11/100dpi
sudotouch/usr/share/fonts/X11/75dpi
sudotouch/usr/share/fonts/X11/Type1
sudotouch/usr/share/fonts/X11/encodings
sudotouch/usr/share/fonts/X11/encodings/large
sudotouch/usr/share/fonts/X11/misc
sudotouch/usr/share/fonts/X11/util
sudotouch/usr/share/fonts/truetype
sudotouch/usr/share/fonts/truetype/arphic
sudotouch/usr/share/fonts/truetype/baekmuk
sudotouch/usr/share/fonts/truetype/freefont
sudotouch/usr/share/fonts/truetype/kochi
sudotouch/usr/share/fonts/truetype/openoffice
sudotouch/usr/share/fonts/truetype/thai
sudotouch/usr/share/fonts/truetype/ttf-arabeyes
sudotouch/usr/share/fonts/truetype/ttf-bengali-fonts
sudotouch/usr/share/fonts/truetype/ttf-bitstream-vera
sudotouch/usr/share/fonts/truetype/ttf-dejavu
sudotouch/usr/share/fonts/truetype/ttf-devanagari-fonts
sudotouch/usr/share/fonts/truetype/ttf-gentium
sudotouch/usr/share/fonts/truetype/ttf-gujarati-fonts
sudotouch/usr/share/fonts/truetype/ttf-kannada-fonts
sudotouch/usr/share/fonts/truetype/ttf-lao
sudotouch/usr/share/fonts/truetype/ttf-malayalam-fonts
sudotouch/usr/share/fonts/truetype/ttf-mgopen
sudotouch/usr/share/fonts/truetype/ttf-oriya-fonts
sudotouch/usr/share/fonts/truetype/ttf-punjabi-fonts
sudotouch/usr/share/fonts/truetype/ttf-tamil-fonts
sudotouch/usr/share/fonts/truetype/ttf-telugu-fonts
sudotouch/usr/share/fonts/type1
sudotouch/usr/share/fonts/type1/gsfonts
sudotouch/usr/share/X11/fonts
sudotouch/usr/share/X11/fonts/100dpi
sudotouch/usr/share/X11/fonts/75dpi
sudotouch/usr/share/X11/fonts/Type1
sudotouch/usr/share/X11/fonts/encodings
sudotouch/usr/share/X11/fonts/encodings/large
sudotouch/usr/share/X11/fonts/misc
sudotouch/usr/share/X11/fonts/util
sudotouch/usr/local/share/fonts
sudotouch/var/lib/defoma/fontconfig.d
sudotouch/var/lib/defoma/fontconfig.d/A
sudotouch/var/lib/defoma/fontconfig.d/B
sudotouch/var/lib/defoma/fontconfig.d/C
sudotouch/var/lib/defoma/fontconfig.d/D
sudotouch/var/lib/defoma/fontconfig.d/E
sudotouch/var/lib/defoma/fontconfig.d/F
sudotouch/var/lib/defoma/fontconfig.d/G
sudotouch/var/lib/defoma/fontconfig.d/H
sudotouch/var/lib/defoma/fontconfig.d/J
sudotouch/var/lib/defoma/fontconfig.d/K
sudotouch/var/lib/defoma/fontconfig.d/L
sudotouch/var/lib/defoma/fontconfig.d/M
sudotouch/var/lib/defoma/fontconfig.d/N
sudotouch/var/lib/defoma/fontconfig.d/O
sudotouch/var/lib/defoma/fontconfig.d/P
sudotouch/var/lib/defoma/fontconfig.d/R
sudotouch/var/lib/defoma/fontconfig.d/S
sudotouch/var/lib/defoma/fontconfig.d/T
sudotouch/var/lib/defoma/fontconfig.d/U
sudotouch/var/lib/defoma/fontconfig.d/V
sudotouch/var/lib/defoma/fontconfig.d/a
sudotouch/var/lib/defoma/fontconfig.d/j
sudotouch/var/lib/defoma/fontconfig.d/m
sudotouch/var/lib/defoma/fontconfig.d/u


PART2启动系统后无法自动进行pppoe拨号解决的问题
一般情况下,在使用sudopppoeconf中选择自动拨号就应该好用,但偶这回就不好用了。。。
解决方法如下
在终端执行

sudogedit/etc/network/interfaces

对配置文件进行编辑
然后把下面的文字添加到这个配置文件的结尾。

#addedbypppoeconf
autoeth0
ifaceeth0inetmanual
pre-up/sbin/ifconfigeth0up#linemaintainedbypppoeconf

autodsl-provider
ifacedsl-providerinetppp
providerdsl-provider

阅读(195) | 评论(0) | 转发(0) |
0

上一篇:Ubuntu的root用户

下一篇:ubuntu安装vmware tools

给主人留下些什么吧!~~