灯火互联
管理员
管理员
  • 注册日期2011-07-27
  • 发帖数41778
  • QQ
  • 火币41290枚
  • 粉丝1086
  • 关注100
  • 终身成就奖
  • 最爱沙发
  • 忠实会员
  • 灌水天才奖
  • 贴图大师奖
  • 原创先锋奖
  • 特殊贡献奖
  • 宣传大使奖
  • 优秀斑竹奖
  • 社区明星
阅读:4140回复:0

[系统教程]Ubuntu 12.04重装手记

楼主#
更多 发布于:2013-01-08 15:14

Ubuntu 12.04重装手记
 
 
 
硬盘分配: C盘后面200M挂在/boot,F盘后面1.2G的swap,再后面33G挂在/
  
 
一. 制作U盘启动盘
 
    安装UltraISO,打开要装的iso,点启动-写入硬盘镜像-选择U盘(有个下拉菜单选USB-HDD+)-格式化-写入。
 
    有的U盘启动不了,换一个试试就OK
 
二安装
 
    不要选“卸载已存在的ubuntu并重新安装”,否则可能引起启动异常
 
     不要选择“安装过程中下载更新”,慢死……
 
三 安装后的配置  
 
1.配置软件源    
 
先在Ubuntu软件中心-编辑-软件源中搜索最快的服务器做为校外服务器
 
再在/etc/apt/sources.list    开头加入:
 
 
 
#----------------------- xidian -------------------------
 
deb http://ftp.xdlinux.info/ubuntu/ precise main multiverse restricted universe
 
deb http://ftp.xdlinux.info/ubuntu/ precise-backports main multiverse restricted universe
 
deb http://ftp.xdlinux.info/ubuntu/ precise-proposed main multiverse restricted universe
 
deb http://ftp.xdlinux.info/ubuntu/ precise-security main multiverse restricted universe
 
deb http://ftp.xdlinux.info/ubuntu/ precise-updates main multiverse restricted universe
 
deb-src http://ftp.xdlinux.info/ubuntu/ precise main multiverse restricted universe
 
deb-src http://ftp.xdlinux.info/ubuntu/ precise-backports main multiverse restricted universe
 
deb-src http://ftp.xdlinux.info/ubuntu/ precise-proposed main multiverse restricted universe
 
deb-src http://ftp.xdlinux.info/ubuntu/ precise-security main multiverse restricted universe
 
deb-src http://ftp.xdlinux.info/ubuntu/ precise-updates main multiverse restricted universe
 
 
 
注意:precise是12.04的代号,更具版本不同做相应修改:
 
quantal (12.10)   precise (12.04)   oneiric (11.10)   natty (11.04)   maverick (10.10)   lucid (10.04)
 
 
 
使用 sudo apt-get update 同步本地包数据库。
 
使用 sudo apt-get upgrade 升级所有已安装的软件包。
 
 
 
2.其他安装配置
 
设置root密码 sudo passwd root
 
修改别名设定:在  ~/.bashrc 加入alias ag='sudo apt-get ' 之类
 
系统设定值:  /etc/profile、/etc/bashrc
 
个人设定值:  ~/.bash_profile、~/.bashrc
 
 
 
导入原来的vimrc
 
装mplayer2, w32codecs, smplayer2
 
w32codecs 不能直接装  (http://www.deb-multimedia.org/
 
需要在/etc/apt/sources.list 添加
 
           deb http://www.deb-multimedia.org squeeze main non-free
 
或者   deb ftp://ftp.deb-multimedia.org squeeze main non-free
 
或者   deb http://www.deb-multimedia.org stable main non-free
 
或者  deb ftp://ftp.deb-multimedia.org stable main non-free
 
然后 apt-get install w32codecs
 
 
 
MPlayer2 PPA源安装,打开终端,输入命令:
 
sudo add-apt-repository ppa:motumedia/mplayer-daily
 
sudo apt-get update
 
sudo apt-get install mplayer2
 
如果你不想使用这个新版本,而是想返回以前旧版本,可输入下面的命令:
 
sudo apt-get install mplayer
 
新版本就会被移除,安装旧版本。
 
SMPlayer2 PPA源安装,打开终端,输入命令:
 
sudo add-apt-repository ppa:smplayer2/daily
 
sudo apt-get update
 
sudo apt-get install smplayer2
 
 
 
安装git  : apt-get instal git git-core

喜欢0 评分0
游客

返回顶部