Chinaunix首页 | 论坛 | 博客
  • 博客访问: 45480
  • 博文数量: 8
  • 博客积分: 214
  • 博客等级: 入伍新兵
  • 技术积分: 60
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-05 22:21
文章分类
文章存档

2012年(8)

分类: LINUX

2012-11-06 11:35:58

ubuntu12.04源更新方法:
1、首先备份Ubuntu 12.04源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患嘛)
2、修改更新源
sudo gedit /etc/apt/sources.list (打开Ubuntu 12.04源列表文件)
3、将下面的代码粘贴进去(“#”开头的那一行为注释,可以直接复制进文件中)

4、通知ubuntu启用新的更新源   sudo apt-get update
#台湾源
deb precise main universe restricted multiverse
deb-src precise main universe restricted multiverse
deb precise-security universe main multiverse restricted
deb-src precise-security universe main multiverse restricted
deb precise-updates universe main multiverse restricted
deb-src precise-updates universe main multiverse restricted

#网易 Ubuntu 11.10 源(速度很快)
deb precise main universe restricted multiverse
deb-src precise main universe restricted multiverse
deb precise-security universe main multiverse restricted
deb-src precise-security universe main multiverse restricted
deb precise-updates universe main multiverse restricted
deb precise-proposed universe main multiverse restricted
deb-src precise-proposed universe main multiverse restricted
deb precise-backports universe main multiverse restricted
deb-src precise-backports universe main multiverse restricted
deb-src precise-updates universe main multiverse restricted

#骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin
deb precise main universe restricted multiverse
deb-src precise main universe restricted multiverse
deb precise-security universe main multiverse restricted
deb-src precise-security universe main multiverse restricted
deb precise-updates universe main multiverse restricted
deb precise-proposed universe main multiverse restricted
deb-src precise-proposed universe main multiverse restricted
deb precise-backports universe main multiverse restricted
deb-src precise-backports universe main multiverse restricted
deb-src precise-updates universe main multiverse restricted

#mirror.lupaworld.com的源,速度很快
deb precise main restricted universe multiverse
deb precise-security main restricted universe multiverse
deb precise-updates main restricted universe multiverse
deb precise-backports main restricted universe multiverse
deb precise main restricted universe multiverse

#ubuntu.cn99.com源(推荐):
deb precise main restricted universe multiverse
deb precise-updates main restricted universe multiverse
deb precise-security main restricted universe multiverse
deb precise-backports main restricted universe multiverse
deb precise main restricted universe multiverse

#电子科技大学
deb precise main restricted universe multiverse
deb precise-backports main restricted universe multiverse
deb precise-proposed main restricted universe multiverse
deb precise-security main restricted universe multiverse
deb precise-updates main restricted universe multiverse
deb-src precise main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse
deb-src precise-proposed main restricted universe multiverse
deb-src precise-security main restricted universe multiverse
deb-src precise-updates main restricted universe multiverse

#中国科技大学
deb precise main restricted universe multiverse
deb precise-backports restricted universe multiverse
deb precise-proposed main restricted universe multiverse
deb precise-security main restricted universe multiverse
deb precise-updates main restricted universe multiverse
deb-src precise main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse
deb-src precise-proposed main restricted universe multiverse
deb-src precise-security main restricted universe multiverse
deb-src precise-updates main restricted universe multiverse

#北京理工大学
deb precise main multiverse restricted universe
deb precise-backports main multiverse restricted universe
deb precise-proposed main multiverse restricted universe
deb precise-security main multiverse restricted universe
deb precise-updates main multiverse restricted universe
deb-src precise main multiverse restricted universe
deb-src precise-backports main multiverse restricted universe
deb-src precise-proposed main multiverse restricted universe
deb-src precise-security main multiverse restricted universe
deb-src precise-updates main multiverse restricted universe

#兰州大学
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ precise main multiverse restricted universe

#上海交通大学
deb precise main multiverse restricted universe
deb precise-backports main multiverse restricted universe
deb precise-proposed main multiverse restricted universe
deb precise-security main multiverse restricted universe
deb precise-updates main multiverse restricted universe
deb precise main multiverse restricted universe
deb-src precise main multiverse restricted universe
deb-src precise-backports main multiverse restricted universe
deb-src precise-proposed main multiverse restricted universe
deb-src precise-security main multiverse restricted universe
deb-src precise-updates main multiverse restricted universe
ubuntu12.04 汉字输入法:
安装输入法的第一步,是安装语言包。我们选择System Settings-->Language    Support-->Install/Remove Languages
第二步,安装IBus框架,在终端输入以下命令:sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4
启动IBus框架,在终端输入:im-switch -s ibus安装完IBus框架后注销系统,保证更改立即生效
第三步:安装拼音引擎
有下面几种常用选择:
IBus拼音:sudo apt-get install ibus-pinyin
IBUS五笔:sudo apt-get install ibus-table-wubi
谷歌拼音输入法:sudo apt-get install ibus-googlepinyin
Sun拼音输入法:sudo apt-get install ibus-sunpinyin
第四步:设置IBus框架
ibus-setup
第五步:通常情况下,IBus图标(一个小键盘)会出现在桌面右上角的任务栏中。有时候这个图标会自行消失,可使用以下命令,找回消失的IBus图标:
ibus-daemon -drx
ubuntu12.04 gedit中文乱码问题:
打开终端输入:
sudo gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']"
sudo gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']"
解决乱码问题.

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

上一篇:没有了

下一篇:大自然前你会有什感想呢

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