Chinaunix首页 | 论坛 | 博客
  • 博客访问: 325486
  • 博文数量: 53
  • 博客积分: 1037
  • 博客等级: 准尉
  • 技术积分: 1066
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-13 14:09
文章分类

全部博文(53)

文章存档

2016年(1)

2015年(10)

2013年(2)

2012年(40)

分类: LINUX

2012-05-25 17:22:17

桌面用户在安装完基本系统后, 第一件事肯定是安装图形界面了, 这里我们安装Gnome. (Archlinux基本系统的安装见博文: 现在改用 archlinux 了)

假设我们的显卡是Nvidia公司的(这个比较麻烦). 在Windows下查了一下是: Nvidia Geforce 405

要有图形界面, xorg 是必须的, 但不一定要先安装. 我们不妨先装 gnome 吧, 非自动化的后果是比较累, 被计算机折腾, 但还在安慰自己说可以学到东西, ^_^. 什么时候能写个自动安装的代码才叫学到东西. 现在将就吧.

pacman -S gnome  # 估计会出现很多问题的:)

若出现 libltdl 冲突

pacman -Syu

若出现 mtab, locale.sh 冲突

对于 mtab

pacman -S filesystem --force

对于 locale.sh ,不妨更名然后再
pacman -Syu

pacman -S gnome # 现在应该 OK 了

pacman -S gnome-extra

编辑 ~/.xinitrc 文件, 没有安装 vim 那就只好 vi 了.
vi ~/.xinitrc
将下面这一行添加到 .xinitrc 中
 exec ck-launch-session gnome-session

# 现在装 xorg 也没影响
pacman -S xorg
pacman -S xorg-xinit xorg-twm xterm

不过, 要注意的是, 在没有装显卡驱动之前千万不要 startx, 否则可能跟我看到的一样是花屏. 这个时候只能强行关机了再启动了 :(

由于显卡是 Nvidia Geforce 405, 因此不要执行下面的命令
pacman -S nvida
而是到Nvida 公司去下载.
wget

然后运行该程序.

根据提示

然后重启, 如果发现字体变大了, 说明禁用nouveau 成功
可以用下面的命令确认
$ lsmod | grep nouveau

再运行 ./NVIDIA-Linux-x86_64-295.49.run

发现错误
Error: The kernel header file
'/usr/src/linux-3.3.5-1-ARCH/include/linux/kernel.h' does not exist.
The most likely reason for this is that the kernel source path
'/usr/src/linux-3.3.5-1-ARCH' is incorrect. Please make sure you
have installed the kernel source files for your kernel and that they
are properly configured; on Red Hat Linux systems, for examples, be
sure you have the 'kernel-source' or 'kernel-devel' RPM installed.
If you know the correct kernel source files are installed, you may
specify the kernel source path with the '--kernel-source-path'
command line option.

arch弃用kernel-headers,改为linux-api-headers

位置为 /usr/include/linux/kernel.h

pacman -S linux-headers

这时再到 /usr/src/linux-3.3.5-1-ARCH/ 下就有了

然后 ./NVIDIA-Linux-x86_64-295.49.run
根据提示, 注意安装 NVIDIA's 32-bit compatibility OpenGL libraries


reboot

登陆

startx

OK

cp ~/.xinitrc /home/normal_user

使用普通用户登陆
阅读(2448) | 评论(0) | 转发(0) |
0

上一篇:安装p7zip

下一篇:家里办公室两地上网

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