Install ArchlinuxARM and Setup
来源:互联网 发布:linux redhat中文乱码 编辑:程序博客网 时间:2024/06/06 09:39
Note: The current installation uses the 32-bit Raspberry Pi 2 armv7h root filesystem. This will be changing eventually to use our AArch64 repository to take full advantage of the ARMv8 Cortex-A53 cores. If you want an AArch64 system, consider the ODROID-C2.
Also note: The Raspberry Pi 3 has higher power requirements than the Raspberry Pi 2. A power supply rated at 2.5A is the official recommendation. Using an insufficient power supply will result in random, inexplicable errors and filesystem corruption.
Replace sdX in the following instructions with the device name for the SD card as it appears on your computer.
Install System
- Start fdisk to partition the SD card:
fdisk /dev/sdX
- At the fdisk prompt, delete old partitions and create a new one:
Type o. This will clear out any partitions on the drive.
Type p to list partitions. There should be no partitions left.
Type n, then p for primary, 1 for the first partition on the drive, press ENTER to accept the default first sector, then type +100M for the last sector.
Type t, then c to set the first partition to type W95 FAT32 (LBA).
Type n, then p for primary, 2 for the second partition on the drive, and then press ENTER twice to accept the default first and last sector.
Write the partition table and exit by typing w. - Create and mount the FAT filesystem:
mkfs.vfat /dev/sdX1
mkdir boot
mount /dev/sdX1 boot
- Create and mount the ext4 filesystem:
mkfs.ext4 /dev/sdX2
mkdir root
mount /dev/sdX2 root
- Download and extract the root filesystem (as root, not via sudo):
wget http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz
bsdtar -xpf ArchLinuxARM-rpi-2-latest.tar.gz -C root
sync - Move boot files to the first partition:
mv root/boot/* boot - Unmount the two partitions:
umount boot root - Insert the SD card into the Raspberry Pi, connect ethernet, and apply 5V power.
- Use the serial console or SSH to the IP address given to the board by your router.
Login as the default user alarm with the password alarm.
The default root password is root.
Power on and setup
- Login:
user: root password: root
- delete the alarm user
userdel alarm
- add user
useradd -m -g users -G wheel.power,audio,video,uucp,lp,adm -s /bin/bash username
- change the user password
passwd username
- Update system
pacman -Syy
pacman -Syu
- Install vim text editor
pacman -S vim
- Change the mirrorlist
# vim /etc/pacman.d/mirrorlist
中科大的源
Server=http://mirrors.ustc.edu.cn/archlinuxarm/$arch/$repo
清华大学的源
Server=http://mirrors.tuna.tsinghua.edu.cn/archlinuxarm/$arch/$repo - Update
pacman -Syy
- Install xdg-user-dirs在home目录下生成文件夹
pacman -S xdg-user-dirs
Install sudo and change the
/etc/sudoers
filepacman -S sudo
vim /etc/sudoers
uncomment the following line:#%wheel ALL=(ALL) ALL
- reboot
- Install Qt library
pacman -S qt5 qt5-base
enter the default - Install mysql
pacman -S mysql
enter the default - Change the localtime
sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- Change the locale-gen, uncomment the following line
en_US.UTF-8
en_US ISO-8859-1
zh_CN.UTF-8
zh_CN GB2312
then excutesudo locale-gen
- Create new file in
/etc/locale.conf
and add the following lineLANG=en_US.UTF-8
then soure the new filesource /etc/locale.conf
Install Wireless
sudo pacman -S wpa_supplicant wpa_actiond dialog ppp ifplugd dhcpcd
sudo wifi-menu
to search wireless to connect
enable the wireless automatically connect:sudo systemctl enable netctl-auto@wlan0.service
excute the application ./appname
OK, It’s Done.
- Install ArchlinuxARM and Setup
- Install and setup MediaWiki
- on Ubuntu 12.04 to install and setup the tomcat 7
- Centos 7.x Install and Setup Asterisk 13 (PBX)
- Ubuntu 14.04 install Vsftpd-3.0.2 and setup chroot users
- JMeter daily notes --- env setup and install JMeter
- HWOTO install and setup Apache+Jakarta-Tomcat4.01+tomcat-connectors for Linux
- HOWTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
- HOWTO install and setup Android NDK for Linux(Android NDK安装遇到的问题和解决方法)
- HOWTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
- How to Install Eclipse ADT, Android SDK, and setup AVD Emulator
- What is the difference between “setup” and “install” based on computer programs?
- python setup.py install 卸载
- How to install and setup Tor on Kali Linux 2.0(如何在Kali Linux 2.0 下安装 Tor)
- Mediawiki setup and extension
- SD Configuration and Setup
- Owncloud, installation and setup
- setup network and route
- 第8章:线性时间排序
- iOS 多线程篇10—NSOperation基本操作
- use prebuild static lib on another android project
- 修改eclipse中的svn用户名和密码
- 深入理解JVM—JVM内存模型
- Install ArchlinuxARM and Setup
- vSphere 查看FC HBA的WWNN和WWPN
- QT学习笔记
- 第9章:中位数和顺序统计量
- Quartz2教程(一)——quatz的介绍与基本概念
- JavaScript学习笔记07 BOM
- Light oj 1294 Positive Negative Sign
- RSpec Trial
- typedef block