Chinaunix首页 | 论坛 | 博客
  • 博客访问: 536414
  • 博文数量: 174
  • 博客积分: 4177
  • 博客等级: 上校
  • 技术积分: 1827
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-15 14:12
文章分类

全部博文(174)

文章存档

2018年(1)

2017年(1)

2013年(3)

2012年(9)

2010年(12)

2009年(5)

2008年(106)

2007年(37)

我的朋友

分类: LINUX

2008-11-23 11:00:24

    前几天看ubuntu 8.10出了好多天了就想试一下效果怎么样,也想试一下整体升级到底怎么样。结果升级完毕之后,一大堆的问题,最主要的还是显卡的问题,屏幕的刷新率始终上不去,一天看得眼睛都睁不开。昨天晚上又把ubuntu 8.04安装了一下,现在记录如下。


1,下载ubuntu 8.04的安装镜像并存放到C盘根目录下
 
2,将ISO里面的casper目录里面的initrd.gz和vmlinuz两个文件解压,也存放到C盘根目录下面
 
3,下载GrubforDos,用来引导系统。
 
4,将下载的GrubforDos解压到C盘根目录
 
将menu.lst内容修改为
 
    title Ubuntu 8.04 LiveCD
    root(hd0,0)
    kernel /vmlinuz boot=casper find_iso=/ubuntu-8.04.1-desktop-amd64.iso
    initrd /initrd.gz
 
5.右键点击桌面上“我的电脑”,选择“属性->高级->启动和故障恢复->设置->系统启动->编辑”,在打开的Boot.ini文件末尾添加c:\grldr=“Ubuntu Linux”,保存退出。
 
6.重新启动机器,选择Ubuntu就好了,下面一路安装。



安装完成之后,首先配置网络,如果在安装过程中已经配置过的话,可以跳过这一步,如果没有配置过的话,按如下的方式进行配置。

在Debian和ubuntu下要使网络能够正常工作,需要配置/etc/network/interface与/etc/resolve.conf文件,配置完成之后,再/etc/init.d/networking restart,就可以正常工作了。

  下面首先进行/etc/network/interface的设置

IP地址设置: /etc/network/interface

// 动态DHCP获得

# 启动系统激活设备.
# Loop回环地址.
auto lo
iface lo inet loopback

# 启动系统激活设备.
# 网卡eth0设置为DHCP类型.
auto eth0
iface eth0 inet dhcp

// 静态Static获得

# 启动系统激活设备.
# Loop回环地址.
auto lo
iface lo inet loopback

# 启动系统激活设备.
# 网卡eth0设置为Static类型.
auto eth0
iface eth0 inet static

# 指定IP地址.子网掩码.广播.网关.
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

# 指定DNS服务器地址
dns-nameservers 202.117.112.3

DNS服务器设置: /etc/resolv.conf

// 必须设置.否则无法访问任何URL

nameserver 202.103.0.117


配置完成之后,可以通过如下命令来重新启动网络服务来使配置生效。

sudo /etc/init.d/networking restart

网络启动之后,下面配置ubuntu的源,在/etc/apt/source.lst里面添加如下内容:


ubuntu 8.04教育网源


#以下为ubuntu hardy 8.04 LTS Ubuntu教育网源 (3年长期支持,2008年4月24日发布正式版)

#传说中的中国科技大学 5M/s
deb hardy main restricted universe multiverse
deb hardy-backports restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
#传说中的北京交大 速度 2M/s
deb hardy main restricted universe multiverse
deb hardy-backports restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
#传说中的上海交通大学,最热门的源之一
deb hardy main multiverse restricted universe
deb hardy-backports main multiverse restricted universe
deb hardy-proposed main multiverse restricted universe
deb hardy-security main multiverse restricted universe
deb hardy-updates main multiverse restricted universe
deb hardy main multiverse restricted universe
deb-src hardy main multiverse restricted universe
deb-src hardy-backports main multiverse restricted universe
deb-src hardy-proposed main multiverse restricted universe
deb-src hardy-security main multiverse restricted universe
deb-src hardy-updates main multiverse restricted universe
#传说中的清华大学ubuntu源 300k/s
deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy main restricted universe multiverse
deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy-backports restricted universe multiverse
deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy-proposed main restricted universe multiverse
deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy-security main restricted universe multiverse
deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy-updates main restricted universe multiverse
deb-src ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy main restricted universe multiverse
deb-src ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy-backports main restricted universe multiverse
deb-src ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy-security main restricted universe multiverse
deb-src ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ hardy-updates main restricted universe multiverse

#传说中的电子科大
deb hardy main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb -cn hardy main restricted universe multiverse
deb studio hardy main
#传说中的电子科大,但不是uestc的官方域名
deb hardy main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
#传说中的厦门大学
deb ftp://ubuntu.realss.cn/ubuntu/ hardy main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ hardy-backports restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ hardy-proposed main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ hardy-security main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ hardy-updates main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-backports main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-security main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-updates main restricted universe multiverse
#传说中的西南财经大学
deb hardy main restricted universe multiverse
deb hardy-backports restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse


需要注意的是,上面这几个源中,只需要添加一个源就可以了,多添加几个源作用不是很大,相反还会减慢你更新的速度,我只添加了中国科技大学的源,完了之后执行

sudo apt-get update

安装编译器等相关程序

sudo apt-get install build-essential

安装解码器

源裡加上:
deb hardy free non-free

取key 終端輸入:
wget -q -O- | sudo apt-key add -

sudo apt-get update
sudo apt-get w32codecs 或 sudo apt-get w64codecs




再也不需要东找西找了,加入这个 Medibuntu 源就行了。主要是 win32codecs

然后

安装多媒体解码器,输入命令

* Xine多媒体引擎解码器

sudo apt-get install libxine1-ffmpeg libxine1-all-plugins libxine1-plugins w32codecs gcc-3.3-base libstdc++5

* Gstreamer多媒体引擎解码器

sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-esd

* DVD影碟功能支持

sudo apt-get install libdvdnav4 libdvdread3 libdvdcss2

配置电影播放器

sudo apt-get remove totem-mozilla -y
sudo apt-get install smplayer smplayer-themes mozilla-mplayer

配置音乐播放器,输入命令

sudo apt-get install gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gnonlin libflashsupport

下面是刚才所提到的网页的内容:


目录

Introduction

(Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc).

Some of these packages include the libdvdcss package from and the external binary codecs package (commonly known as w32codecs) used by and .

Disclaimer

Patent and copyright laws operate differently depending on which country you are in. Please obtain legal advice if you are unsure whether a particular patent or restriction applies to a media format you wish to use in your country.

See Ubuntu's and the page for a more comprehensive discussion of these issues.

Free and Non-free Components

Medibuntu has two components for its repository. They are labelled free and non-free. The free component has the packages for software whose sources are made freely and/or are distributed with an open source license such as the GNU General Public License. The non-free component contains software whose sources are not made freely available and/or are distributed with a license that restricts certain ways the software can be distributed.

Software in the free component are not distributed in the Ubuntu repositories because of legal issues with that software in certain countries. Some software such as Amarok and Kaffeine are distributed through the main Ubuntu repositories but with certain functionalities taken away, again because of legal issues. Medibuntu distributes these kind of packages with those functionalities in place.

Software in the non-free component are not distributed in the main Ubuntu repositories because of the licenses that these software are distributed with restricts how they can be distributed. The software in the non-free component are usually not needed for general use as there are alternatives or implementations in other open source licensed software. Some software, such as Google Earth and Adobe Acrobat Reader, are available directly from the company's website that owns the rights to them.

Since the packages in the non-free component are usually not needed, the instructions in the next section will include a step to exclude acquiring package information from the non-free component of the Medibuntu repository.

Adding the Repositories

Below are the instructions to add the Medibuntu repository to your system's list of APT repositories.

If you are new to Ubuntu, please see for an overview of repositories.

Add Medibuntu to your sources.list, as well as its GPG key to your keyring. Make sure to use the correct sources.list that corresponds to your current distribution.

  • Ubuntu 8.10 "Intrepid Ibex":

    sudo wget  --output-document=/etc/apt/sources.list.d/medibuntu.list
  • Ubuntu 8.04 "Hardy Heron":

    sudo wget  --output-document=/etc/apt/sources.list.d/medibuntu.list
  • Ubuntu 7.10 "Gutsy Gibbon":

    sudo wget  --output-document=/etc/apt/sources.list.d/medibuntu.list
  • Ubuntu 7.04 "Feisty Fawn":

    sudo wget  --output-document=/etc/apt/sources.list.d/medibuntu.list
  • Ubuntu 6.10 "Edgy Eft":

    sudo wget  --output-document=/etc/apt/sources.list.d/medibuntu.list
  • Ubuntu 6.06 "Dapper Drake":

    sudo wget  --output-document=/etc/apt/sources.list.d/medibuntu.list

Then, add the GPG Key:

sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

You may be asked to accept this package even though it cannot be authenticated. This is normal; typing "Yes" means you trust Medibuntu.

Optional step : remove the non-free component

Some people don't want to install non-free software on their computer as explained in the "Free and Non-Free components" section. We will explain how to exclude getting packages from the non-free component of the Medibuntu repository.

You should understand that if you remove the non-free component, you will NOT have access to these packages:

  • acroread (Acrobat Reader -- not really needed because you can use free software, such as Evince, to read pdfs)
  • alsa-firmware -- needed for some audio cards
  • AMR and FAAC support in MPlayer and FFmpeg
  • googleearth
  • restricted video codecs (ppc-codecs, w32codecs, w64codecs)
  • Skype

the complete list of packages is .

To exclude getting packages from the non-free component of the Medibuntu repository, type the following command:

sudo sed -e 's/ non-free//' -i /etc/apt/sources.list.d/medibuntu.list

Installing Individual Packages

Most Ubuntu users will only require a few packages from the Medibuntu repository; nonetheless, it's easier simply to add the repository to your setup as detailed above. The most common packages are libdvdcss2 for playing DVDs and the non-native codecs packages (w32codecs, w64codecs, ppc-codecs) for playing non-native media formats. If you wish to install individual packages, then follow the steps below.

  • With your favourite web browser, go to .

  • Choose the Ubuntu version you're currently using.
  • Find the package for your architecture in the listing, and save it to your personal directory on your hard drive. You may need to also download any dependencies that are also in medibuntu.
  • Right click on the package you just downloaded.
  • Select Ubuntu Package Menu.
  • Choose Install Package.

Playing Encrypted DVDs

To play encrypted DVDs, the libdvdcss2 package is essential. libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. Some more information about this package can be found at http://www.videolan.org/developers/libdvdcss.html.

Below are the instructions for installing the packages using the command line. For other methods, please refer to .

With the entire Medibuntu repository

If you have added the entire Medibuntu repository, you just need to install the package using APT:

sudo apt-get install libdvdcss2

With individual packages

If your wish to install just libdvdcss2, you can first download the individual package and then install the package.

  • i386:

    wget -c 
    sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_i386.deb
  • amd64:

    wget -c 
    sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_amd64.deb
  • powerpc:

    wget -c 
    sudo dpkg -i libdvdcss2_1.2.9-2medibuntu2_powerpc.deb

Playing Non-Native Media Formats

There are a few formats such as certain Windows formats, Real, and Apple Quicktime which do not have native codecs under Linux. To work around this issue, external binary codecs are used instead to play these formats. and use such external codecs and these codecs are stored in the MPlayer website in their codecs directory located at .

Medibuntu distributes a package which contains these codecs. The codecs are under the non-free component of the repository. If you followed the directions above to exclude the non-free component, follow the steps again to add the Medibuntu repository to your system's list of APT repositories and skip the step to exclude the non-free component.

Below are the instructions for installing the packages using the command line. For other methods, please refer to .

With the entire Medibuntu repository

If you have added the entire Medibuntu repository, install the package using APT.

  • For i386, the package is called w32codecs:

    sudo apt-get install w32codecs
  • For amd64, the package is called w64codecs:

    sudo apt-get install w64codecs
  • For ppc, the package is called ppc-codecs:

    sudo apt-get install ppc-codecs
  • NOTE: This ppc-codecs package is currently only available for edgy and feisty. These codecs are also available from and can be downloaded directly from .

  • NOTE 2: the w64codecs is only made for feisty and later, so not for dapper or edgy

  • NOTE 3: the w32codecs can be used on amd64 ubuntu (hardy, intrepid) with the i386 mplayer, but it requires manual installation and forcing the install. The i386 mplayer executable can be extracted (and moved or renamed to mplayer32 to keep it separate from the 64 bit version), and will use the ia32 /usr/lib32 entries and w32 codecs - but updated libraries (e.g. libx264.so.59 v.s .57) may also be required.

With individual packages

If you wish to install just the individual external codecs package, you can first download the individual package and then install the package.

  • For i386, the package is called w32codecs:

    wget -c 
    sudo dpkg -i w32codecs_20071007-0medibuntu2_i386.deb
  • For amd64, the package is called w64codecs:

    wget -c 
    sudo dpkg -i w64codecs_20071007-0medibuntu1_amd64.deb
  • For ppc, the package is called ppc-codecs:

    wget -c 
    sudo dpkg -i ppc-codecs_20071007-0medibuntu1_powerpc.deb

Reporting Bugs

Medibuntu has its own Launchpad page to report bugs and request features and other enhancements. To report a bug found in any package distributed with Medibuntu, file a bug report at .

Donate

You can help Medibuntu with some donation. To donate, click on the Paypal donate button on Medibuntu homepage.

Links

  • - Medibuntu's Home Page

  • - Medibuntu's Launchpad Page


Posted 9 months, 3 weeks ago at 11:31 am.

ad 468x60

1. Enabling/Adding Extra Repositories
打开/添加额外的源

2. Installing ntfs-3g
安装 ntfs-3g,用于读NTFS分区

sudo apt-get install ntfs-config
gksu ntfs-config

3. Making Windows see your Linux partition
windows下使用 来读写 linux 分区。其实这个 fs-driver 界面、易用性比较好,直接在我的电脑中映射一个盘符,但我个人感觉不如

4. Installing flash-plugin
安装 flash 插件

sudo apt-get install -y flashplugin-nonfree

5. Installing Microsoft True Type Fonts
安装 windows 字体

sudo apt-get install -y msttcorefonts

6. Installing unrar
安装 unrar

sudo apt-get -y install unrar

7. Installing mpg123
安装 mpg123,轻量级的命令行 mp3 播放器。

sudo apt-get install -y mpg123

8. Installing Adobe Reader
(这个有必要吗?替代软件很多啊)

9. Installing DVD playback support
添加DVD解码器。已经添加源了的话就

sudo aptitude install libdvdcss2

否则

sudo /usr/share/doc/libdvdread3/./install-css.sh

10 . Installing the extra multimedia codecs,players
其它解码器

sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse libxine-extracodecs w32codecs
vlc mplayer

11. Updating the system
sudo apt-get update 升级

12 . Installing beagle
linux 下的桌面搜索工具。类似于Google Desktop Search 或者苹果下的 Mac OS Spotlight。

sudo apt-get install -y beagle

13. Installing gdesklets
gdesklets 桌面小应用程序,包括 dock、日历、时钟等 Widgets。

如果你嫌以上这些太麻烦,也可以直接使用 或者 脚本。

Easy Ubuntu is easy, graphical and safe.

* All the modified files are backed up.
* Unless you ask for it, your sources.list is not modified.
* EasyUbuntu can be translated into your language
* Runs on Ubuntu, Kubuntu and Xubuntu without installing additional software.

Automatix2 is a graphical interface (written in python and bash) for automating the installation of the most commonly requested applications in some Debian based distributions.


输入法的话,可以用scim,当然还需要安装相应的中文包等,这些可以在新立德包管理器进行选择安装


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

上一篇:debian 4.0 安装

下一篇:inode

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