Prepare the SD Card:
➜ Downloads time sudo dd bs=1m if=ArchLinuxARM-2014.06-rpi.img of=/dev/rdisk1
1870+0 records in
1870+0 records out
1960837120 bytes transferred in 132.563127 secs (14791723 bytes/sec)
sudo dd bs=1m if=ArchLinuxARM-2014.06-rpi.img of=/dev/rdisk1 0.01s user 0.90s system 0% cpu 2:12.58 total
Update and Install Additional Packages
[root@alarmpi ~]# pacman -Syu sudo vim iw wpa_supplicant zsh git
Configure WiFi:
[root@alarmpi ~]# cp /etc/netctl/examples/wireless-wpa /etc/netctl/Znaf_Laboratory
[root@alarmpi ~]# vim /etc/netctl/Znaf_Laboratory
[root@alarmpi ~]# netctl start Znaf_Laboratory
[root@alarmpi ~]# netctl enable Znaf_Laboratory
ln -s '/etc/systemd/system/netctl@Znaf_Laboratory.service' '/etc/systemd/system/multi-user.target.wants/netctl@Znaf_Laboratory.service'
Add a new user and append to group wheel
:
[root@alarmpi ~]# useradd -m -G wheel -s /bin/bash archie
[root@alarmpi ~]# passwd archie
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Enable sudo
for the new user by enabled:
[root@alarmpi ~]# visudo
## Uncomment to allow members of group wheel to execute any command without a password
%wheel ALL=(ALL) NOPASSWD: ALL
Switch to the new user:
[root@alarmpi ~]# su archie
[archie@alarmpi root]$ pwd
/root
[archie@alarmpi root]$ cd
[archie@alarmpi ~]$ pwd
/home/archie
As the new user, install oh-my-zsh:
[archie@alarmpi ~]$ curl -L http://install.ohmyz.sh | sh
Changing shell for archie.
Password: chsh: Authentication failure
[archie@alarmpi ~]$ chsh -s $(which zsh)
Changing shell for archie.
Password:
Shell changed.
Reboot, and enable ntpd if needed:
➜ ~ ssh [email protected]
➜ ~ date
Wed Dec 31 17:00:43 MST 1969
➜ ~ sudo systemctl enable ntpd
ln -s '/usr/lib/systemd/system/ntpd.service' '/etc/systemd/system/multi-user.target.wants/ntpd.service'
➜ ~ date
Wed Dec 31 17:02:20 MST 1969
➜ ~ sudo systemctl start ntpd
➜ ~ date
Mon Jun 16 00:58:33 MDT 2014
Resize partitions to use the full space available on the SD card the right way (http://gleenders.blogspot.com/2014/03/raspberry-pi-resizing-sd-card-root.html):
➜ ~ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.7G 590M 950M 39% /
devtmpfs 214M 0 214M 0% /dev
tmpfs 218M 0 218M 0% /dev/shm
tmpfs 218M 308K 218M 1% /run
tmpfs 218M 0 218M 0% /sys/fs/cgroup
tmpfs 218M 0 218M 0% /tmp
/dev/mmcblk0p1 90M 26M 65M 28% /boot
tmpfs 44M 0 44M 0% /run/user/1000
➜ ~ time sudo resize2fs /dev/mmcblk0p5
resize2fs 1.42.10 (18-May-2014)
Filesystem at /dev/mmcblk0p5 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/mmcblk0p5 is now 1916928 blocks long.
sudo resize2fs /dev/mmcblk0p5 0.09s user 0.04s system 5% cpu 2.390 total
➜ ~ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.2G 592M 6.3G 9% /
devtmpfs 214M 0 214M 0% /dev
tmpfs 218M 0 218M 0% /dev/shm
tmpfs 218M 308K 218M 1% /run
tmpfs 218M 0 218M 0% /sys/fs/cgroup
tmpfs 218M 0 218M 0% /tmp
/dev/mmcblk0p1 90M 26M 65M 28% /boot
tmpfs 44M 0 44M 0% /run/user/1000