linux Grub 修复

 

kimi

2007-11-30 00:52:56 来自: kimi(waiting and give myself peace)

一,硬盘安装
http://mirror.lupaworld.com/archlinux/iso/latest/
下载iso镜像,提取其中vmlinuz 和initrd.img到你的一个分区的根目录

进入grub,按C进入命令行模式
grub>find /vmlinuz
(hd0,9)
grub>root (hd0,9)
grub>kernel (hd0,9)/vmlinuz
grub>initrd (hd0,9)/initrd.img
grub>boot

进入安装界面以后,首先要做的是挂载iso
在根目录新建一个文件夹
#mkdir -pv iso
#mout /dev/sda9 /iso
#cd /iso
#mount -o loop -t *.iso /src
#/arch/setup

进入安装目录进行安装
准备分区什么的,
这里注意下配置文件比如 rc.conf 什么的
中途遇到了grub 的问题
这里要设置下locale
在rc.conf里把locale设定为en_US.utf-8
然后在/etc/profile里添加
LC_CTYPE="zh_CN.utf8"

进入系统后用root登录
1,添加用户
#useradd -m -s /bin/bash yourname
#passwd yourname
2,修改源
#vim /etc/pacman.conf
把core,current,extra修改成你要的源
推荐,lupaworld的,我一直在用还没有出现过问题
[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/core
Server=http://mirror.lupaworld.com/archlinux/core/os/i686
[current]
Server=http://mirror.lupaworld.com/archlinux/current/os/i686
[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/extra
Server=http://mirror.lupaworld.com/archlinux/extra/os/i686
3,更新系统
pacman -Sy pacman
pacman -Su
4,安装xorg
1,pacman -S xorg
2,pacman -Ss xf86-video 寻找你适合你显卡的驱动
3, pacman -S hwd xterm
4,hwd -x 生成
5,mv /etc/X11/xorg.conf.hwd /etc/X11/xorg.conf
6,配置x
Xorg -configure
如果是nvidia的用户
可以用
#nvidia-xconfig

然后startx 会出现终端

5,安装桌面环境
pacman -S kde-base
调用kdm 进入图形登录界面

1,
#vim /etc/inittab
把id:3:initdeafault 这行的3改成5
2,修改rc.conf 调用kdm
#vim /etc/rc.conf

在daemons 段加入 kdm就可以了

现在重启系统

6,安装中文字体以及简单的美化

1,安装源里面的字体
pacman -S ttf-arphic-umaing ttf-arphic-ukai
2,安装文泉驿
http://wqy.sf.net/ 下载PCF字体






因为Arch默认是关闭点阵字体的,我们要打开它。
进入/etc/fonts/conf.d/目录
删除10-bitmaps.conf(它是个链接文件,原本指向no-bitmaps.conf)

运行:
#ln -s 10-bitmaps.conf yes-bitmaps.conf

解压文泉驿字体包,将里面的字体复制到/usr/share/fonts/Chinese/wqy-bitmapfont
sudo tar zxvf wqy-bitmapfont*.tar.gz -C /usr/share/fonts/
cd /usr/share/fonts/wqy-bitmapfont/

sudo rm fonts.dir fonts.scale fc-cache.*




#mkfontdir
#cp fonts.dir fonts.scale
#xset +fp /usr/share/fonts/Chinese/wqy-bitmapfont

编辑/etc/X11/xorg.conf

在Files段里的
FontPath "/usr/share/fonts/misc"

下面添加FontPath "/usr/share/fonts/Chinese/wqy-bitmapfont"

再运行:#fc-cache -f -v

到这里,字体就装完了。


xlsfonts | grep wenquanyi
输出一堆的东西
#fc-list | grep 'WenQuanYi'

我的输出:
WenQuanYi Bitmap Song:style=Bold
WenQuanYi Bitmap Song:style=Regular

至此,测试完毕,字体重新安装

3,简单的字体美化
可以参考这个
貌似我的字体在我的机子上没有什么不妥

http://wiki.archlinux.org/index.php/%E5%AD%97%E4%BD%93%E8%AE%BE%E7%BD%AE
4,安装中文输入法

pacman -S fcitx
让fcitx随系统启动
vim .bash_profile

添加以下内容
export XIM=fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
export XIM_PROGRAM=fcitx
fcitx &
5,安装声卡驱动
pacman -Sy alsa-lib alsa-utils alsa-oss
#设置声卡
alsaconf
设置音量并保存
alsamixer
alsactl store

添加到用户到audio 组
gpasswd -a USERNAME audio

设置alsa随系统启动
编辑/etc/rc.conf在daemons里添加alsa



安装mplayer firefox plash 和openoffice

pacman -S firefox firefox-i18n flashplugin

安装mplayer
pacman -S mplayer mplayer-plugin smplayer

安装openoffice

pacman -S jre
pacman -S openoffice-base openoffice-zh_cn openoffice-spell-en

1,启动 /opt/openoffice/program/soffice
2,
设定openoffice kde的界面
vim /usr/bin/soffice 加入



export OOO_FORCE_DESKTOP=kde




我的安装桌面是kde,第一遍初稿难免有不妥,但是会不断修订的
请兄弟们帮忙指点下
另发现了一篇不错的指南:

http://wiki.archlinux.org/index.php/Beginners_Guide

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值