配置 arch linux
http://tech.ddvip.com 2007年02月23日 社区交流
本文详细介绍配置 arch linux
1.配置网络
如果采用DHCP上网的话,就仿照如下的代码在rc.conf里面写
lo='lo 127.0.0.1'
eth0='dhcp'
eth1='dhcp'
INTERFACES=(lo eth0 eth1)
如果不是的话,在rc.conf里面添上IP信息,仿照/etc/network-profiles/template里面的内容
eth0='192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255'
GATEWAY=192.168.1.1
# DNS Settings (optional)
DOMAIN=localdomain
DNS1=192.168.0.1
hostname也在rc.conf里面
HOSTNAME=myhost
一个基本可用的网络就算是配置好了。
2.更新软件包
软件包配置在/etc/pacman.conf文件中定义,而/etc/pacman.d/*定义了各个软件仓库的信息。我的配置文件如下
HOSTNAME=myhost [testing]
Server = ftp://ftp.archlinux.org/testing/os/i686
[current]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/current
[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/extra
[unstable]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/unstable
[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/community
我打开了所有的软件包分支。如果是用来做服务器,那还是用release好了,current也不要用。这种分包方式有点象FreeBSD的风格。
一些软件包管理的命令
责编:豆豆技术应用
- Linux/Unix 新闻
- Linux/Unix 入门
- Linux/Unix 命令
- Linux/Unix 安装
- Linux 嵌入式系统
- Linux/Unix 编程
- Linux/Unix 管理
- Linux/Unix 桌面
- Linux/Unix 内核
- Linux/Unix 软件
- SCO Unix
- NetBSD
- OpenBSD
- Redhat/Fedora Linux
- 手机
- Linux/Unix find 搜索命令
- Linux/Unix vi 命令
- Linux/Unix kde 桌面环境
- Linux/Unix GNOME 桌面环境
- Linux/Unix Make 命令
- Linux/Unix crontab 命令
- Linux/Unix ext3 文件系统
- Linux/Unix 文件系统详解
- Linux/Unix ADSL 拨号设置
- Linux/Unix GRUB 配置及应用
- Linux/Unix nfs配置
- Linux/Unix 硬件信息查看及管理
- Linux/Unix 优化
- Linux/Unix 交换分区Swap管理及应用
- Linux/Unix 用户管理
- Linux/Unix Ramdisk
- Linux/Unix 密码恢复管理
- Linux/Unix 文件删除恢复
- Linux/Unix fdisk分区
- Linux/Unix lvs负载均衡管理
- Linux/Unix root用户
- Linux/Unix 集群
- Linux/Unix 日志
- 更多Linux/Unix专题……