您的位置:首页 > 运维架构 > Linux

树莓派安装ArchLinux后的一些配置

2017-05-05 00:00 357 查看
首先修改源

# vi /etc/pacman.d/mirrorlist
Server = http://mirrors.ustc.edu.cn/archlinuxarm/$arch/$repo[/code] 安装软件包组 base-devel,这样就不会在编译时缺少 gcc 或者 make 的问题

# pacman -S base-devel

网络工具包
ifconfig,route在net-tools中,nslookup,dig在dnsutils中,ftp,telnet等在inetutils中,ip命令在iproute2中。

# pacman -S net-tools dnsutils inetutils iproute2

时区及同步(TimeZone)

# vi /etc/rc.conf
TIMEZONE="Asia/Shanghai"

还要在/etc/localtime做个软链接给具体的zoneinfo

# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Raspberry 是没有硬件时钟的,每次关机重启时间又回到初始的1970年,所以我们要设置网络同步时间。

# vi /etc/ntp.conf
server 1.cn.ntp.org iburst
server 0.asia.pool.ntp.org iburst
server 3.asia.pool.ntp.org iburst

然后开机启动

# timedatectl set-ntp true

Raspberry Pi 超频, armfreq:ARM处理器的频率,单位是MHz。默认值是 700。 最简单的方法是将“armfreq”的值改成“900”并加上“sdram_freq=500”。 一步秒杀,十分轻松。

# vi  /boot/config.txt

语言支持
编辑/etc/locale.gen文件,将要使用语言项目前面的#去掉,保存文件,执行:

# locale-gen

系统就开始生成需要的语言。
最后通过下面的命令来设置系统全局的locale(假设这里设置系统的locale为zh_CN.UTF-8)

# localectl set-locale LANG="zh_CN.UTF-8"

安装中文字体

# pacman -S ttf-dejavu wqy-microhei    # 可选,Dejavu 与文泉驿 - 微米黑字体

重启后就是中文了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Raspberry Pi Archlinux