An interesting episode in ubuntu7.04

Source: Internet
Author: User
Tags touch command
Install Ubuntu7.04 to check whether a pile of directories failedtowritecache are always reported when software updates are performed after installation. I did not pay special attention to it. I continued to use it. As a result, I found that starting any program was very slow and the cpu usage was very serious, so I realized that it could be caused by the previous error, I found this bug on the Internet. I was so sad that I had to follow it. These commands simply changed the time of these directories to the latest, using the touch command. For future reference: # Install Ubuntu 7.04 and check whether a bunch of directories are failed to write cache. I did not pay special attention to it. I continued to use it. As a result, I found that starting any program was very slow and the cpu usage was very serious, so I realized that it could be caused by the previous error, I found this bug on the Internet. I was so sad that I had to follow it. These commands simply changed the time of these directories to the latest, using the touch command. Extracted for future reference:

#! /Bin/bash
#
# Ubuntu 7.04 fc-cache failed to write cache
#

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

Then run

Sudo fc-cache-f-v

Succeed appears.

Eiffelqiu also prompted that there was a desktop effect. After I tried it, my machine was still running, and some animation effects were similar to those of vista, which looked quite interesting.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.