前言p72Linux联盟 如果您看到 "$", 的符号, 意思是你必须在终端状态下运行此命令。(应用程序 -> 附件 -> 终端)p72Linux联盟 "sudo" 的意思是 [/RootSudo Superuser Do] (以超级用户执行)。"sudo" 需要提供密码 "Password:".请输入您指定的用户密码。 p72Linux联盟 p72Linux联盟 修改源并更新升级Ubuntup72Linux联盟 在终端执行以下命令(第一条是备份现有服务器列表,第二条是使用Gedit编辑,您也可以使用自己喜爱的编辑器编辑,如nano,kate,vim等。)p72Linux联盟 p72Linux联盟 $sudo cp /etc/apt/sources.list /etc/apt/sources.list_backupp72Linux联盟 $sudo gedit /etc/apt/sources.listp72Linux联盟 p72Linux联盟 从以下各服务器列表内容中选择一段替换文件中的所有内容(请根据自己网络环境设置更新服务器,以达到最快的速度。)p72Linux联盟 o Archive.ubuntu.com 更新服务器(欧洲,此为官方源,推荐使用。): p72Linux联盟 p72Linux联盟 deb http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb http://archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb http://archive.ubuntu.com/ubuntu/ edgy-proposed main restricted universe multiversep72Linux联盟 deb http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb-src http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb-src http://archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb-src http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb-src http://archive.ubuntu.com/ubuntu/ edgy-proposed main restricted universe multiversep72Linux联盟 deb-src http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb http://archive.ubuntu.org.cn/ubuntu-cn/ edgy main restricted universe multiversep72Linux联盟 p72Linux联盟 o Ubuntu.cn99.com 更新服务器(江苏省常州市电信,推荐电信用户使用。): p72Linux联盟 p72Linux联盟 deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiversep72Linux联盟 deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiversep72Linux联盟 p72Linux联盟 o Mirror.lupaworld.com 更新服务器(浙江省杭州市电信,亚洲地区官方更新服务器,推荐全国用户使用。): p72Linux联盟 p72Linux联盟 deb http://cn.archive.ubuntu.com/ubuntu edgy main restricted universe multiversep72Linux联盟 deb http://cn.archive.ubuntu.com/ubuntu edgy-security main restricted universe multiversep72Linux联盟 deb http://cn.archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiversep72Linux联盟 deb http://cn.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiversep72Linux联盟 deb http://cn.archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiversep72Linux联盟 deb-src http://cn.archive.ubuntu.com/ubuntu edgy main restricted universe multiversep72Linux联盟 deb-src http://cn.archive.ubuntu.com/ubuntu edgy-security main restricted universe multiversep72Linux联盟 deb-src http://cn.archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiversep72Linux联盟 deb-src http://cn.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiversep72Linux联盟 deb-src http://cn.archive.ubuntu.com/ubuntu edgy-proposed main restricted universe multiversep72Linux联盟 deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn edgy main restricted universe multiversep72Linux联盟 p72Linux联盟 o 上海市 上海交通大学 更新服务器(教育网,推荐校园网和网通用户使用。): p72Linux联盟 p72Linux联盟 deb http://ftp.sjtu.edu.cn/ubuntu/ edgy main multiverse restricted universep72Linux联盟 deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-backports main multiverse restricted universep72Linux联盟 deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-proposed main multiverse restricted universep72Linux联盟 deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-security main multiverse restricted universep72Linux联盟 deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-updates main multiverse restricted universep72Linux联盟 deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy main multiverse restricted universep72Linux联盟 deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy-backports main multiverse restricted universep72Linux联盟 deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy-proposed main multiverse restricted universep72Linux联盟 deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy-security main multiverse restricted universep72Linux联盟 deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy-updates main multiverse restricted universep72Linux联盟 deb http://ftp.sjtu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universep72Linux联盟 p72Linux联盟 o 北京市清华大学 更新服务器(教育网,推荐校园网和网通用户使用。): p72Linux联盟 p72Linux联盟 deb http://mirror9.net9.org/ubuntu/ edgy main multiverse restricted universep72Linux联盟 deb http://mirror9.net9.org/ubuntu/ edgy-backports main multiverse restricted universep72Linux联盟 deb http://mirror9.net9.org/ubuntu/ edgy-proposed main multiverse restricted universep72Linux联盟 deb http://mirror9.net9.org/ubuntu/ edgy-security main multiverse restricted universep72Linux联盟 deb http://mirror9.net9.org/ubuntu/ edgy-updates main multiverse restricted universep72Linux联盟 deb-src http://mirror9.net9.org/ubuntu/ edgy main multiverse restricted universep72Linux联盟 deb-src http://mirror9.net9.org/ubuntu/ edgy-backports main multiverse restricted universep72Linux联盟 deb-src http://mirror9.net9.org/ubuntu/ edgy-proposed main multiverse restricted universep72Linux联盟 deb-src http://mirror9.net9.org/ubuntu/ edgy-security main multiverse restricted universep72Linux联盟 deb-src http://mirror9.net9.org/ubuntu/ edgy-updates main multiverse restricted universep72Linux联盟 deb http://mirror9.net9.org/ubuntu-cn/ edgy main multiverse restricted universep72Linux联盟 p72Linux联盟 o 中国 台湾省台湾大学 更新服务器(推荐网通用户使用,电信PING平均响应速度41MS。) p72Linux联盟 p72Linux联盟 deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-proposed main multiverse restricted universep72Linux联盟 deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-proposed main restricted universe multiversep72Linux联盟 deb http://ftp.sjtu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universep72Linux联盟 p72Linux联盟 o Mirror.vmmatrix.net 更新服务器(上海市电信,推荐电信网通用户使用。): p72Linux联盟 p72Linux联盟 deb http://mirror.vmmatrix.net/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb-src http://mirror.vmmatrix.net/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb http://mirror.vmmatrix.net/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb-src http://mirror.vmmatrix.net/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb http://mirror.vmmatrix.net/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb-src http://mirror.vmmatrix.net/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb http://mirror.vmmatrix.net/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb-src http://mirror.vmmatrix.net/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb http://mirror.vmmatrix.net/ubuntu/ edgy-proposed main multiverse restricted universep72Linux联盟 deb-src http://mirror.vmmatrix.net/ubuntu/ edgy-proposed main restricted universe multiversep72Linux联盟 deb http://ftp.sjtu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universep72Linux联盟 p72Linux联盟 o ubuntu.cnsite.org 更新服务器 (福建省福州市 电信): p72Linux联盟 p72Linux联盟 deb http://ubuntu.cnsite.org/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cnsite.org/ubuntu/ edgy main restricted universe multiversep72Linux联盟 deb http://ubuntu.cnsite.org/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cnsite.org/ubuntu/ edgy-updates main restricted universe multiversep72Linux联盟 deb http://ubuntu.cnsite.org/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cnsite.org/ubuntu/ edgy-backports main restricted universe multiversep72Linux联盟 deb http://ubuntu.cnsite.org/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb-src http://ubuntu.cnsite.org/ubuntu/ edgy-security main restricted universe multiversep72Linux联盟 deb http://ubuntu.cnsite.org/ubuntu/ edgy-proposed main multiverse restricted universep72Linux联盟 deb-src http://ubuntu.cnsite.org/ubuntu/ edgy-proposed main restricted universe multiversep72Linux联盟 deb http://ubuntu.cnsite.org/ubuntu-cn/ edgy main multiverse restricted universep72Linux联盟 p72Linux联盟 保存编辑好的文件,执行以下命令更新。p72Linux联盟 p72Linux联盟 $sudo apt-get update(更新软件列表)p72Linux联盟 $sudo apt-get dist-upgrade(更新系统)p72Linux联盟 p72Linux联盟 设置中文支持环境p72Linux联盟 p72Linux联盟 从其他语言转换到简体中文p72Linux联盟 p72Linux联盟 p72Linux联盟 如果不想使用中文界面并且不使用CJK输入法,可略去此步。p72Linux联盟 p72Linux联盟 点击 最上面菜单 的 系统 -> 系统管理 -> 语言支持 [如果是英文菜单则是 System -> Administration -> Language Support] 在列表中的 Chinese 条目 打勾。 同时将默认语言修改为 Chinese(中国) ,按确定关闭设置程序。 p72Linux联盟 p72Linux联盟 如果你设置的是英文环境,需要执行以下步骤。(如果做了上一步的设置为中文环境则不需要执行这一步)p72Linux联盟 配置一下字体 p72Linux联盟 p72Linux联盟 $sudo fontconfig-voodoo -f -s zh_CNp72Linux联盟 p72Linux联盟 中文输入法的安装配置p72Linux联盟 a、scimp72Linux联盟 如果你在安装的时候就一直在线,那么中文输入法已经完全安装,按Ctrl+Space即可使用。若不是这样,那么系统安装的不是一个完整的中文输入法。p72Linux联盟 中文输入法比较有名的有两个,系统默认安装的是scim,我们就说这个。p72Linux联盟 执行p72Linux联盟 $sudo apt-get install scim-pinyin im-switch scim-tables-zh scim-qtimmp72Linux联盟 其中scim-pinyin和scim-tables-zh可选其一,也可都安装,前者是拼音输入方案,后者包括常用的二笔和五笔等方案。p72Linux联盟 安装成功之后按Ctrl+At+BackSpace重启X-window即可使用。p72Linux联盟 b、fcitxp72Linux联盟 fcitx是一款很好用的中文输入法,听到很多人说scim与系统中许多软件存在冲突,我在使用中没有发现什么问题,但是使用fcitx后确实爱不释手,因为这个工具功能上要比scim强得多,很像我以前在windows下面最喜欢使用的极点中文。p72Linux联盟 $sudo apt-get install im-switch fcitxp72Linux联盟 如果是使用上面的方法安装,直接执行下面第二步,如果是使用下载的安装包安装,执行下面:p72Linux联盟 1、如果是使用下载的安装包安装,还应该执行下面的命令:p72Linux联盟 $sudo chmod -R 755 /usr/share/fcitxp72Linux联盟 任意位置新建立一个文件叫 fcitx,内容如下:p72Linux联盟 XIM=fcitxp72Linux联盟 XIM_PROGRAM=/usr/bin/fcitxp72Linux联盟 XIM_ARGS=""p72Linux联盟 GTK_IM_MODULE=XIMp72Linux联盟 QT_IM_MODULE=XIMp72Linux联盟 DEPENDS="fcitx"p72Linux联盟 复制到 /etc/X11/xinit/xinput.d/ 下以保证im-switch 能找到它p72Linux联盟 2、执行 代码:p72Linux联盟 $sudo im-switch -s fcitxp72Linux联盟 和 代码:p72Linux联盟 $im-switch -s fcitxp72Linux联盟 将二个帐号的输入法都换成 fcitxp72Linux联盟 3,如果是在英文local 下而无法调出输入法(XIM)(如果是中文local 不必进行此操作)修正步骤如下:p72Linux联盟 编辑 /etc/gtk-2.0/gtk.immodules 文件(sudo gedit /etc/gtk-2.0/gtk.immodules),在xim 的 local 增加 en 也就是说: 代码:p72Linux联盟 "/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"p72Linux联盟 "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"p72Linux联盟 改成 代码:p72Linux联盟 "/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"p72Linux联盟 "xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"p72Linux联盟 保存退出,重启x-window就好了。p72Linux联盟 其它参考:p72Linux联盟 1,不希望使用一大堆用不着的输入法,可以关闭它:p72Linux联盟 $sudo gedit /usr/share/fcitx/data/tabels.confp72Linux联盟 把里面不要的输入法整段删除,至于双拼可以在下面说的config 里关闭p72Linux联盟 2,在打字时要输入,.号经常按不出来,可以这样:p72Linux联盟 ~/.fcitx 目录下有一个 config 文件(启动至少一次fcitx 才会自动建立)可以配置翻页键把里面的 ,. 二个删除,不然在出联想时打不出,. 号p72Linux联盟 3,不想让它一直显示在那,可以这样:p72Linux联盟 ~/.fcitx 目录下有一个 config 文件可以配置 代码:p72Linux联盟 主窗口隐藏模式=1p72Linux联盟 4,在英文local 下 fcitx 打出的字全方块,可以这样:p72Linux联盟 修改上面说的这个config 里的 代码:p72Linux联盟 显示字体(中)=字体名p72Linux联盟 5,使用ctrl+左shift键可以切换输入方案p72Linux联盟 6,其它应用技巧可以到fcitx的主页下载其最新版的使用说明书(pdf文档)。p72Linux联盟 p72Linux联盟 安装最新的文泉驿字体p72Linux联盟 p72Linux联盟 $sudo apt-get install xfonts-wqyp72Linux联盟 p72Linux联盟 安装JAVA环境p72Linux联盟 p72Linux联盟 $sudo apt-get install sun-java6-jrep72Linux联盟 # 如果空间富裕,建议安装一个JDK。呵呵p72Linux联盟 $sudo apt-get install sun-java6-jdkp72Linux联盟 p72Linux联盟 设置当前默认的java解释器p72Linux联盟 $sudo update-alternatives --config javap72Linux联盟 p72Linux联盟 执行后会出现类似如下的画面: p72Linux联盟 p72Linux联盟 There are 4 alternatives which provide `java'.p72Linux联盟 Selection Alternativep72Linux联盟 -----------------------------------------------p72Linux联盟 *+ 1 /usr/lib/jvm/java-gcj/jre/bin/javap72Linux联盟 2 /usr/bin/gij-wrapper-4.1p72Linux联盟 3 /usr/bin/gij-wrapper-4.0p72Linux联盟 4 /usr/lib/jvm/java-1.6.0-sun/jre/bin/javap72Linux联盟 Press enter to keep the default[*], or type selection number:p72Linux联盟 p72Linux联盟 输入 有包含 "sun" 的行的前面的数字。如上面显示,则输入 4,然后回车确定。 p72Linux联盟 p72Linux联盟 安装浏览器的JAVA Plugin(可选)p72Linux联盟 p72Linux联盟 $sudo apt-get install sun-java5-pluginp72Linux联盟 p72Linux联盟 安装Luma QQp72Linux联盟 p72Linux联盟 1.下载并安装p72Linux联盟 安装QQ需要先安装上一步的JAVA环境p72Linux联盟 p72Linux联盟 $wget -c http://download.ubuntu.org.cn/software/lumaqq_2005-linux_gtk2_x86_no_jre.tar.gzp72Linux联盟 $sudo tar zxvf lumaqq_2005-linux_gtk2_x86_no_jre.tar.gz -C /opt/p72Linux联盟 $wget -c http://download.ubuntu.org.cn/software/lumaqq_2005_patch_2006.02.02.15.00.zipp72Linux联盟 $sudo unzip -o lumaqq_2005_patch_2006.02.02.15.00.zip -d /opt/LumaQQ/libp72Linux联盟 $sudo chown -R root:root /opt/LumaQQ/p72Linux联盟 $sudo chmod -R 755 /opt/LumaQQ/p72Linux联盟 $sudo gedit /usr/share/applications/LumaQQ.desktopp72Linux联盟 p72Linux联盟 2.在新增的文件内加入下面这几行p72Linux联盟 p72Linux联盟 [Desktop Entry]p72Linux联盟 Name=LumaQQp72Linux联盟 Comment=QQ Clientp72Linux联盟 Exec=/opt/LumaQQ/lumaqqp72Linux联盟 Icon=/opt/LumaQQ/QQ.pngp72Linux联盟 Terminal=falsep72Linux联盟 Type=Applicationp72Linux联盟 Categories=Application;Network;p72Linux联盟 p72Linux联盟 3.保存编辑过的文件 安装完成后的快捷方式在(应用程序 -> Internat -> LumaQQ)。 |