UBUNTU 7.04安装后的配置

来源:互联网 发布:双飞姐妹俩体验知乎 编辑:程序博客网 时间:2024/04/29 19:40

这些内容大部分来自于网络上各位linux sir的心血,我按照自己安装ubuntu后的设置过程把他整理出来,奉献给像我这样的初学者。--compard

 

下面的设置是在ubuntu 7.04上面的,方便期间,用Si表示每一个Item。

S0.无线网络中的key设置 

# wireless-key XXXXXXXXXXXXXXXXXXXXXXXXXX # This line for hexidecimal keys

# wireless-key s:XXXXXXXXXXXXX # This line for ASCII (string) keys

S1. Firefox
加速版本:swiftfox
语言包:ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.5/linux-i686/xpi
在 about:config 中找locale然后把general.useragent.locale从en-US改成zh-CN或者安装插件Locale Switcher来选择

-------SwiftFox 終極加速(转)-------
1. 先確認您電腦與網路的等級
2. 打開『應用程式』>>『附屬應用程式』>>『終端機』, 輸入下面語法以更改 Firefox/SwiftFox 設定:
代碼:
cd ~/.mozilla/firefox/*.default/
gedit prefs.js

3. 程式開啟 prefs.js 之後, 在最後面新增下面語法, 以初步加速:
代碼:
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);

4. 按照電腦等級、網路速度自行選擇下面語法, 並新增在 prefs.js 最後面:
- a. 電腦配備高、網路速度快
代碼:
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);

-b. 電腦配備高、網路速度稍慢
代碼:
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);

- c. 電腦配備高、網路速度慢
代碼:
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.maxtextrun" 8191);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);

- d. 電腦配備低、網路速度快
代碼:
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 1000000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 1000000);
user_pref("content.maxtextrun", 4095);
user_pref("nglayout.initialpaint.delay", 1000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("dom.disable_window_status_change", true);

- e. 電腦配備低、網路速度慢
代碼:
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 750);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("dom.disable_window_status_change", true);

5. 完成後, 儲存並離開編輯器, 重新啟動 SwiftFox 享受飆網路的快感
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);

-b. 電腦配備高、網路速度稍慢
代碼:
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);

- c. 電腦配備高、網路速度慢
代碼:
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.maxtextrun" 8191);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);

- d. 電腦配備低、網路速度快
代碼:
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 1000000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 1000000);
user_pref("content.maxtextrun", 4095);
user_pref("nglayout.initialpaint.delay", 1000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("dom.disable_window_status_change", true);

- e. 電腦配備低、網路速度慢
代碼:
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 750);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("dom.disable_window_status_change", true);

5. 完成後, 儲存並離開編輯器, 重新啟動 SwiftFox 享受飆網路的快感
 
S2.
                        ubuntu下控制触摸板(touchpad)

    许多笔记本touchpad设计不合理,触摸板很容易被碰到,影响正常的编辑。那能不能在在需要的时候打开触摸板,不需要的时候关闭它呢?答案是可以的.
  
    首先修改xorg.conf文件,找到synaptic这一段,添加两个东西,首先是共享内存控制,一个是初始化触摸板的状态。
 
Section "InputDevice"                                                         
  Identifier  "Synaptics Touchpad"                                            
  Driver      "synaptics"                                                     
  Option      "SendCoreEvents" "true"                                         
  Option      "Device" "/dev/psaux"                                           
  Option      "Protocol" "auto-dev"                                           
  Option      "HorizScrollDelta" "0"                                          
 
  # 打开共享内存控制
  Option      "SHMConfig" "on"                                                
  # 触摸板初始化为关闭
  Option      "TouchpadOff" "1"                                               
EndSection       

    保存xorg.conf重新启动X
    $sudo /etc/init.d/gdm restart

  现在触摸板禁用了

  有个实用工具synclient通过共享内存来控制触摸板

  # 关闭触摸板
  $synclient touchpadoff=1 
  # 打开触摸板
  $synclient touchpadoff=0

  命令太长了在$HOME/.bashrc建立两个alias
  alias synoff='synclient touchpadoff=1'
  alias synon='synclient touchpadoff=0'

  重新更新alias
  . ~/.bashrc
  现在我们可以通过简单的synon和synoff打开和关闭触摸板了.

S3.amoarOK不能播放MP3
sudo apt-get install gstreamer0.8-mad

S4.Install Mplayer

intuition:/home/leeh# uname -a
Linux intuition 2.6.18-3-amd64 #1 SMP Mon Dec 4 17:04:37 CET 2006 x86_64 GNU/Linux

source.list
deb http://debian.cnsite.org/debian etch main non-free contrib
deb-src http://debian.cnsite.org/debian etch main non-free contrib

apt-get update
apt-get dist-upgrade
apt-get upgrade

apt-get install mplayer


下载http://www.mplayerhq.hu/MPlayer/rele...061022.tar.bz2
下载http://www.mplayerhq.hu/MPlayer/rele...061203.tar.bz2
下载http://www.mplayerhq.hu/MPlayer/rele...l-20061022.zip

tar jxvf all-20061022.tar.bz2
tar jxvf essential-amd64-20061203.tar.bz2
unzip windows-all-20061022.zip
切换为root
mkdir /usr/lib/codecs
mkdir /usr/lib/win32

cp all-20061022/* /usr/lib/codecs/
cp windows-all-20061022/* /usr/lib/win32/
cp essential-amd64-20061203/* /usr/lib/codecs/
cp essential-amd64-20061203/* /usr/lib/win32/

启动mplayer就可以播放rmvb的文件了

能够浏览一下网站、写写文章、看看电影、听听歌、搞搞图片、打打小游戏,还差一个最重要的步骤,就是安装媒体播放软件和相应的解码器。

在 Linux 上用得最多也最受好评的播放器应该是 Mplayer ,但是在 gnome 2.18 中随之升级的 Totem 播放器已经很不错了,除了自定义不是很强外,可操作性很好,修复了很多 Bug ,还增加了一些功能,好像以前不能双击画面进入全屏。Totem 从 2.17.5 开始默认使用 Gstreamer 作为后端解码方案,但我还是推荐使用 xine。所以我的解决方案是,一般普通的播放任务使用 Totem 电影播放机,如果遇到不能播放的情况或者看大碟时就选用 Mplayer ,播放音乐使用 Rhythmbox。

1、安装软件和相应解码器

sudo apt-get install mplayer mozilla-mplayer totem-xine libxine-extracodecs ffmpeg lame faad sox mjpegtools

sudo apt-get install libxine-main1

sudo apt-tet install w32codecs
如果w32codecs没源的话,那么自己下面地址下载后手动安装
http://www.debian-multimedia.org/pool/main/w/w32codecs/


2、Mplayer 的中文字幕设置方法

1) 在 Preferences-Font 里面点击 ”Browse” 选择一个中文字体,Encodeing 选择 Unicode。
2) 在 Preferences-Subtitle&OSD 里面的 Encoding 选择:
Simplified Chinese Charset(cp936)
3) 在 Preferences-Font “Text scale” 这里调整字幕大小(我调整为 3.8 )。

如果播放时提示错误,设置一下:

Preferences-Video 选择 “xv X11/Xv”
Preferences-Codecs&demuxer 选择 “FFmpeg/libavcodec audio decoders”

    * 配置中文字幕显示(可选)

      cd ; mkdir .mplayer
      ln -sf /usr/share/fonts/truetype/arphic/uming.ttf .mplayer/subfont.ttf
      gedit .mplayer/gui.conf

      sub_cp = "GBK"
      font_text_scale = "4.000000"
      font_osd_scale = "4.000000"
      sub_fuzziness=2

3、Totem 播放 rmvb 没有声音,这里给出了解决方法:
编辑 ~/.xine/catalog.cache 文件:
sudo gedit ~/.xine/catalog.cache
找到
[/usr/lib/xine/plugins/1.1.4/xineplug_decode_real_audio.so]
把 decoder_priority 后面的数字修改为 10

4、使用 Firefox 在线播放解决办法

1) 内嵌播放,可以安装 MediaWrap 这个扩展。下载地址:http://addons.mozine.cn/firefox/116/
2) 如果喜欢调用外部播放器播放,安装 MediaPlayerConnectivity 。下载地址:http://addons.mozine.cn/firefox/23/

5、检查软件依赖的方法:(以mplayer为例)
sudo apt-cache depends mplayer

S5. install StarDict

 ubuntu
sudo gedit /etc/apt/sources.list

添加源

deb http://ftp.sjtu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universe #也就是edgy的ubuntu-cn的源,你可以添加其他中文镜像的ubuntu-cn的源

保存退出

sudo apt-get install stardict stardict-common
sudo apt-get install stardict-cdict-gb stardict-cedict-gb stardict-hanzim stardict-langdao-ce-gb stardict-langdao-ec-gb stardict-oxford-gb stardict-xdict-ce-gb stardict-xdict-ec-gb

kubuntu:
sudo apt-get install stardict-gtk stardict-common stardict-cdict-gb stardict-cedict-gb stardict-hanzim stardict-langdao-ce-gb stardict-langdao-ec-gb stardict-oxford-gb stardict-xdict-ce-gb stardict-xdict-ec-gb

S6:设置网卡的半/全双工
ethtool 工具关于网络协商功能介绍;

ethtool - Display or change ethernet card settings(ethtool 是用来显示和更改网卡设置的工具);这个工具比较复杂,功能也特别多。由于洋文比较难懂。所以我们还是把网络设备协商方式的设置方法说一说。


2.1 ethtool 显示网络端口设置功能;

这个功能比较好办。就是ethtool 后面直接接网絽接口就行;比如下面的例子;

[root@localhost ~]# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes: 10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes: 10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised auto-negotiation: No 注:自动协商关闭
        Speed: 100Mb/s 注:速度 100Mb
        Duplex: Full 注:全双工
        Port: MII
        PHYAD: 32
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: pumbg
        Wake-on: d
        Current message level: 0x00000007 (7)
        Link detected: yes 注:eth0已经激活;


2.2 ethtool 设置网卡的协商模式;

在ethtool的-h帮助中我们查看到有这样的帮助信息;

ethtool -s DEVNAME /
                [ speed 10|100|1000 ] /
                [ duplex half|full ] /
                [ port tp|aui|bnc|mii|fibre ] /
                [ autoneg on|off ] /

* 实例一: 把网卡eth0 速度改为10Mb/s,采用半双工;

[root@cuc03 beinan]# ethtool -s eth1 speed 10 duplex half
[root@cuc03 beinan]# ethtool eth1
Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised auto-negotiation: No
        Speed: 10Mb/s 注:速度 10M/s
        Duplex: Half  注:半双工
        Port: MII
        PHYAD: 32
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: pumbg
        Wake-on: d
        Current message level: 0x00000007 (7)
        Link detected: no 注:eth1没有激活;

* 实例二: 把网卡eth0 速度改为100Mb/s,采用全双工;

[root@cuc03 beinan]# ethtool -s eth1 speed 100 duplex full
[root@cuc03 beinan]# ethtool eth1
Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised auto-negotiation: No
        Speed: 100Mb/s  注:速度 100M/s
        Duplex: Full 注:全双工
        Port: MII
        PHYAD: 32
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: pumbg
        Wake-on: d
        Current message level: 0x00000007 (7)
        Link detected: no 注:eth1网卡没有激活;

S7.安装QQ
把TIMPlatform.exe和npkcrypt.sys删除
有时候要在system下面拷贝几个文件
S8.wine
tahoma字体文体:

编辑 .wine/system.reg 文件,加入下面2行:

[Software//Microsoft//Windows NT//CurrentVersion//FontLink//SystemLink] 1150441842
"Tahoma"=str(7):"simsun.ttc,/x5b8b/x4f53/0msgothic.ttc,MS UI Gothic/0mingliu.ttc,PMingLiU/0"


先运行winecfg让它自己去创建~/.wine,Windows Version选择windows xp,Audio选择ALSA取消默认的OSS。

执行 modprobe

$ sudo modprobe snd-pcm-oss
$ sudo modprobe snd-seq

 

创建相应目录

$ mkdir -p ~/.kde/socket-hostname

 

  其中 hostname 为你机器的名字。

安装相应包

$ sudo apt-get install libjack0.100.0-0


  然后:

$ sudo ln -sf /usr/lib/libjack-0.100.0.so.0 /usr/lib/libjack.so

 

解决启动 wine 程序速度慢的问题

$ sudo gedit /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE ,去掉GBK和GB2312这些信息

killall wine
killall wineserver

如果要玩英雄无敌--神之苏醒h3wog.exe 使用:OSS才可以有声音

S8.amarok不能播放MP3
安装了媒体播放的就可以了
乱码的话,在媒体所在的目录下执行:
find . -iname "*.mp3" -execdir mid3iconv -e GBK {} /;
S9:KPDF乱码/ubuntu看pdf乱码
sudo apt-get install xpdf-chinese-simplified  xpdf-chinese-traditional

sudo apt-get install xpdf-chinese-simplified  xpdf-chinese-traditional

提示:上面安装了简体/繁体中文支持,如果你还需要其他语言的支持,请查找对应软件包装上即可

Adobe acrobat英文版:到下面的地址下载简体/繁体语言包(中文版的就不需要了)

http://ftp.ubuntu.org.cn/fideas/FontPack708_chs_i386-linux.tar.gz

http://ftp.ubuntu.org.cn/fideas/FontPack708_cht_i386-linux.tar.gz

S10
安装真人发声语音包

sudo apt-get install wyabdcrealpeopletts

如果源中没有该包,可以到以下地址下载手动安装

http://ftp.ubuntu.org.cn/stardict.sourceforge.net/WyabdcRealPeopleTTS.tar.bz2

S11.
多媒体解码工具
sudo apt-get install libdvdcss2 libdvdnav4 libdvdplay0 libdvdread3 w32codecs libxine-extracodecs gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly  gstreamer0.10-plugins-ugly-multiverse

Kubuntu下发音设置

Kubuntu下stardict的发音:启动stardict后,点击主界面右下角按钮进入设置页面->词典->声音->在启用声音前打钩,并将play改为aplay
[编辑]
S12.Install DB Tools
1.安装wine
2.设置变量
设置到注册表中。你可以运行wine regedit然后设置:

HKEY_CURRENT_USER/Environment

键。现在你可以创建修改你需要的变量了。

"System" = "c://windows//system"

这个设置到你windows系统目录。windows 系统目录应该位于使用windows设置的目录下。这样当使用 /usr/local/wine_c_windows 作为Windows路径,系统目录就应该是 /usr/local/wine_c/windows/system. 路径后面应该被设成不带斜扛的,并且你必须确定你有改目录的写入权限。

"Temp" = "c://temp"

这应该是你要存储你的temp文件的目录 , /usr/local/wine_c/temp 在我们前面的一个例子中。同样,后面不应该有斜扛,并且要有写入权限!!

"Path" = "c://windows;c://windows//system;c://Oracle//Ora816//bin"

3.把oracle的注册表放进去

S13,Install ica
安装完成后:
1.设置ICAROOT
2.sudo ln -s /usr/lib/libXaw.so.7 /usr/lib/libXaw.so.6
3.不能输入的问题打开wfcmgr-->option就可以

S14.Wine软件列表
IE,QQ,SQLProgress,OracleClient,hero,
MSVCP60.dll,mfc42.dll
QQ如果是输入汉字后变成???要注册一下riched20和riched32

S15.Q&A
Q:X: user not authorized to run the X server, aborting.

A:/etc/X11/Xwrapper.config

S16.服务管理
sudo apt-get install sysv-rc-conf

S17.XGL+Beryl

Sources.list:deb http://ubuntu.beryl-project.org/ feisty main

$ wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
$ wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -
$ wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -

$ sudo apt-get update

3)执行以下命令(For Kubuntu/KDE:):

$ sudo apt-get install xserver-xgl beryl-kubuntu emerald-themes

由于最新Ubuntu版的beryl-core无法与XGL兼容,因此我们必须安装一个可兼容的版本, 运行:

$ kdesu kate /etc/apt/preferences 加入以下三行内容(以下三行不要隔离),保存后退出:

Package: *
Pin: release o=lupine
Pin-Priority: 1000


S18.java1.4中文的问题
解压font.tar.bz2到/home/mysfw/insfile/j2sdk1.4.2_04/jre/lib即可
原文出处:
http://www.linuxsir.org/bbs/showthread.php?t=124319
下载地址:
http://www.linuxsir.org/bbs/attachment.php?attachmentid=13976&d=1089117728

S19.fcitx
实在无法忍受 XP 在我的老机器上的运行速度,所以今天下午把 ubuntu5 给安装上了,失望的是速度还是一如既往的慢。
 但装上了只能继续用下去了,换上了字体显示效果好了很多,但是突然想起自己上次把 ubuntu 放弃的原因是输入法没有配置好,这次可不能栽在这里了,新版本的 fcitx 安装起来真实方便,执行一个脚本就搞定用了,启动的很顺利,我想让它自动启动于是:
 cd /etc/X11/Xsession.d
 nano 95xinput
 输入:
 export LC_CTYPE=zh_CN.UTF-8
 export XMODIFIERS=@im=fcitx
 export XIM=fcitx
 export XIM_PROGRAM=fcitx
 fcitx
 然后重新启动就可以用了。
 但是输入的时候,中文字全是方框,我把config里面的字体改成Sans还是无法正常显示,最后只能安装一个windows的宋体:simsun.ttc,然后就可以用了。
 安装字体:
 把simsun放到/usr/share/fonts/zh_CN下
 在这个目录中执行:
 sudo mkfontscale
 sudo mkfontdir
 sudo fc-cache
 
 S20.删除日文字体

sudo apt-get remove ttf-kochi-gothic
sudo apt-get remove ttf-kochi-mincho

   安装最新的文泉驿字体
 
   1. 打开终端,执行以下命令,或使用《新立得软件管理器》,在其中搜索“xfonts-wqy“并标记安装。
   sudo apt-get install xfonts-wqy
 
   2. 让系统支持点阵字体执行以下命令。
   sudo gedit /etc/fonts/conf.d/50-xfonts-wqy.conf
 
   在文件中加入如下配置后,保存退出。(你也可以使用其他你喜爱的编辑器进行编辑。)
  <selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>WenQuanYi Bitmap Song</string></patelt>
</pattern>
</acceptfont>
</selectfont>
   
   
   

   
安装中文语言支持(KUbuntu)
 
sudo apt-get install language-pack-kde-zh language-pack-kde-zh-base language-pack-zh language-pack-zh-base language-support-zh

安装中文字体
 
如果出现需要输入[Y/n] 或 [y/N] 一律输入 y 并 回车
sudo apt-get install ttf-arphic-ukai ttf-arphic-uming

 
如果希望有更好的中文显示,推荐 使用圆体美化 。

一般只建议安装msttcorefonts,如果把windows目录下fonts文件夹的字体都安装到ubuntu下的话会出现意想不到的字体错误。如果是用kubuntu的话,开始菜单里的“系统设定”-“外观”-“字体安装程序”就可以安装字体了,一般用户模式的话字体安装在~/.fonts目录下。管理员模式下安装在/usr/locale/fonts/目录下。如果是ubuntu/xubuntu话手动把字体文件放到上面提到的目录。随后打开终端
代码:
  sudo dpkg-reconfigure fontconfig
  
代码:
  sudo dpkg-reconfigure fontconfig-conf

S19.读写ntfs
sudo apt-get install ntfs-3g ntfs-config

去掉桌面的图标
应用程序->系统工具->配置编辑器(gconf-editor)
2. 找到 /apps/nautilus/desktop/volumes_visible 设置为 FALSE (单击即可)

S20.安装telnet服务

 sudo apt-get install xinetd telnetd就OK了。
然后再改一下/etc/xinetd.conf如下:
defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d

然后再vi /etc/xinetd.d/telnet
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

最后sudo /etc/init.d/xinetd restart重启一下xinetd就大功告成了!
S20。所有下载的东西都在/var/cache/apt/archives/ 里面,可以把它备份起来离线安装,如果发现root的空间越来越小,也可以把它里面的东西干掉。

原创粉丝点击