跳至主要内容

Fedora 9,糟糕的体验(1)-安装

Fedora 9 经过短暂的延期时,终于发布了。
这次Fedora 9 带来了很很多的特性,吸引Fedora 粉丝眼球。 具体情况,你可以从Fedora 9的发行说明 中进行了解。

喜欢尝鲜的朋友可以会迫不及待的安装试用,而我的安装经历不是那么愉快。

Fedora 常见的两种安装方法,光盘直接安装和Live CD 进行安装。

1.光盘安装

要体验的ext4等,安装时内核启动时加上参数linux ext4,具体细节请查阅官方网站上的安装手册。
我一般都用reiserfs。
我添加了 linux reiserfs selinux=0。

selinux=0,表示禁用selinux的使用。

如果在现有系统上进行安装,可以选择升级和全新安装。
一般最好选择全新安装,以前的Fedora 升级经验告诉我,它并不能做Redhat 企业版本那样无缝升级。 导致升级后问题会很多。

我一般都是选择全新安装,这样才能真正体验到新版本带来的特性。
安装之前,首先要进行现有硬盘数据进行保护,以免安装过程重要数据丢失。
主要是
/etc
/opt
/home
几个目录。
如果/opt,/home是单独分区,安装时可以选择将它们挂到新系相应的目录上,但要注意的是,千万不要对其进行格式化。
也可以先不挂载任何分区,安装完之后,再修改/etc/fstab,将它挂上去。

2.Live CD 安装
我首先使用过的Live CD是Knoppix ,后来这种方式在Ubuntu 中发扬光大。Fedora 提供Live CD 是最近两版本的事。
Live CD可以提供在先不安装的情况下,试用linux。 我现在还没有试用Fedora Linux 提供的Live CD ,不知道与Ubuntu 的方式有什么差别。但是Ubuntu的Live CD 安装方式在我机器上体验不是很好。

3.使用Preupgrade进行升级
除用光盘安装与升级外,Fedora 9 声称提供另外一种新的特性进行升级,称为PreUpgrade
Preupgrade声称提供系统的无缝升级,目前支持F7,F8-》F9的升级。
在Fedora 8 下必须使用0.9.3-3版本才能看到看到Fedora 9,现在已包含Fedora 8官方安装源中,直接用yum安装即可。
从命令行中启动preupgrade,如图所示。
接下来会进行几个步骤。
  1. 下载新版本发行信息
  2. 对比现有的操作系统,计算哪些包需要更新
  3. 下载要更新的包
  4. 下载安装文件image
完成后,会提示重新启动系统。 这期间可能会遇到两个问题: 第一个是一些mirror的上没有.treeinfo这个文件,导致第四步下载终止(新版本可能已经修正)。 把官方Fedora 官方源添加到/var/cache/yum/anaconda-upgrade/mirrorlist.txt的第一个位置。 第二个问题,所有下载完成即第四步完成时,会写grub.conf。打开grub.conf文件,定位到最上面的Upgrade to ...部分。 如果你的/boot没有单独分区的话,在stage2=hd:sda1:boot....的boot 加上/。即 stage2=hd:sda1:/boot.... 如果/boot是一个单独分区,去掉"/boot"。 按照官方文档,重启就行了,会启动anaconda安装程序对系统进行升级,它会自动安装好我们刚刚下载的软件包。 而我重启之后,出现读取image文件错误,然后提示选择安装所需要的image文件,看起来和硬盘安装一样。 非常奇怪,google 一下,发现也有人有这个问题,不知道是什么原因。 经过多次重试,结果还是一样。我不得不放弃这种方式升级,选择传统的光盘安装。

评论

此博客中的热门博文

AngularJS CakePHP Sample codes

Introduction This sample is a Blog application which has the same features with the official CakePHP Blog tutorial, the difference is AngularJS was used as frontend solution, and CakePHP was only use for building backend RESR API. Technologies AngularJS   is a popular JS framework in these days, brought by Google. In this example application, AngularJS and Bootstrap are used to implement the frontend pages. CakePHP   is one of the most popular PHP frameworks in the world. CakePHP is used as the backend REST API producer. MySQL   is used as the database in this sample application. A PHP runtime environment is also required, I was using   WAMP   under Windows system. Post links I assume you have some experience of PHP and CakePHP before, and know well about Apache server. Else you could read the official PHP introduction( php.net ) and browse the official CakePHP Blog tutorial to have basic knowledge about CakePHP. In these posts, I tried to follow the steps describ

JPA 2.1: Attribute Converter

JPA 2.1: Attribute Converter If you are using Hibernate, and want a customized type is supported in your Entity class, you could have to write a custom Hibernate Type. JPA 2.1 brings a new feature named attribute converter, which can help you convert your custom class type to JPA supported type. Create an Entity Reuse the   Post   entity class as example. @Entity @Table(name="POSTS") public class Post implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name="ID") private Long id; @Column(name="TITLE") private String title; @Column(name="BODY") private String body; @Temporal(javax.persistence.TemporalType.DATE) @Column(name="CREATED") private Date created; @Column(name="TAGS") private List<String> tags=new ArrayList<>(); } Create an attribute convert

Auditing with Hibernate Envers

Auditing with Hibernate Envers The approaches provided in JPA lifecyle hook and Spring Data auditing only track the creation and last modification info of an Entity, but all the modification history are not tracked. Hibernate Envers fills the blank table. Since Hibernate 3.5, Envers is part of Hibernate core project. Configuration Configure Hibernate Envers in your project is very simple, just need to add   hibernate-envers   as project dependency. <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-envers</artifactId> </dependency> Done. No need extra Event listeners configuration as the early version. Basic Usage Hibernate Envers provides a simple   @Audited   annotation, you can place it on an Entity class or property of an Entity. @Audited private String description; If   @Audited   annotation is placed on a property, this property can be tracked. @Entity @Audited public class Signup implements Serializa