Chinaunix首页 | 论坛 | 博客
  • 博客访问: 645210
  • 博文数量: 175
  • 博客积分: 2457
  • 博客等级: 大尉
  • 技术积分: 1488
  • 用 户 组: 普通用户
  • 注册时间: 2011-07-13 20:31
文章分类

全部博文(175)

文章存档

2012年(22)

2011年(153)

分类: LINUX

2011-12-05 21:38:08

本人原创,转载请注明出处。

我使用vbox+arch 2011.08.19

按一般的步骤安装。

1.安装时设置更新源  外网 163的不错 我使用xidian源

请编辑/etc/pacman.d/mirrorlist,用下面的内容添加/替换: ## $arch=i686 / x86_64

Server = ftp://linux.xidian.edu.cn/archlinux/$repo/os/$arch

2.安装过程一般不会出现问题

更新系统 
pacman -Sy pacman 
pacman -Su
 
安装完毕,更新系统我出现下述问题:

error: failed to commit transaction (conflicting files)
initscripts: /etc/profile.d/locale.sh exists in filesystem
Errors occurred, no packages were upgraded.

只需要把这个文件重命名就好了

mv /etc/profile.dlocale.sh /etc/profile.d/locale.sh.old

3.需要安装vbox addition及vbox驱动 video

官方wiki (参考创建用户和sudo安装)

之后参考下面的wiki:安装virtualbox所需驱动

共享数据空间:

简单说明一下挂载:mount -t vboxsf <共享文件夹名称>  /mnt/<共享文件夹名称>

其余的安装 wiki


4.安装xorg

       安装基础包:

pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils
startx

5.安装字体:

在安装桌面环境/窗口管理器之前,也许你会先安装些美观的字体。Dejavu 是不错的字体集。 英文字体优先选择dejavu字体

# pacman -S ttf-dejavu

对于中文字体,开源的文泉驿正黑矢量字体是不错的选择,它还内嵌了9pt-12pt的点阵宋体:

# pacman -S wqy-zenhei

当然现在流行的是安装1个字体:

# yaourt -S wqy-microhei

可能有人需要安装微软视窗下的字体,如下安装之:

# yaourt -S ttf-win7-fonts ttf-office-2007-fonts
startxfce4

6.安装xfce 

7.安装启动管理器

8.安装Firefox浏览器
pacman -S firefox firefox-i18n flashplugin

至此,xfce可以完美启动。可以设置自动启动 上面wiki又提到:)

附参考网址:

http://blog.csdn.net/cola1129/article/details/2251451

http://asins.blogbus.com/logs/39895702.html

http://hi.baidu.com/suseguy/blog/item/db656bb4aeb9e7c836d3cade.html


9.安装archey3  

出现

ERROR: Fakeroot must be installed if using the 'fakeroot' option
in the BUILDENV array in /etc/makepkg.conf.
只要安装fakeroot就可以了
# pacman -S fakeroot
还得安装 python git python-distribute

$ wget
$ tar xfvz archey3.tar.gz 
$ cd archey3 
$ makepkg
 $ pacman -U archey3-*.pkg.tar.xz
$ archey
$ archey3

10安装截屏工具 scrot
    抓取桌面:scrot desktop.png,该命令将当前的整个桌面抓取下来,并保存为 desktop.png 文件。可以在当前的目录中找到此图像文件。
      抓取窗口:scrot -bs window.png,选项 b 使 scrot 在抓取窗口时一同将外边框抓取下来,而 s 选项则让用户选择所要抓取的是何窗口。
    抓取区域:scrot -s rectangle.png,在执行此命令后,使用鼠标拖曳的矩形区域将被 scrot 抓取下来。
chkconfig不鞥呢用
#/sbin/chkconfig

11.程序开发工具
# 基本开发环境
pacman -S base-devel # 调试器 pacman -S gdb # 版本控制 pacman -S cvs git subversion # 代码格式化 pacman -S indent # 文档工具 pacman -S doxygen # Gtk 界面设计器 pacman -S glade # wxWidgets 界面设计器 AUR wxformbuilder # IDE pacman -S qtcreator

如果更新时出现过错误,类似如下
error: could not prepare transaction error: failed to commit transaction (conflicting files) libname: /insert/file/name/here exists in filesystem Errors occurred, no packages were upgraded.
只要pacman -Sf * 修复包的安装,就可以了
 
12.安装输入法fcitx
首先使用sudo pacman -S fcitx安装输入法,然后修改~/.bashrc文件,加入如下内容:
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
export ”
保存后重新登录.
这时我们就可以使用fcitx &来启动输入法,希望以后每次登录自动启动输入法,可以将这句命令加入到会话中.
由于我们平常用的输入法都是使用,.来切换选词,所以我们可以修改~/.fcitx/conf/的文件来改变Fcitx切换选择的快捷键.
 
阅读(2392) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~