Raspberry Pi2 and Pi3 -Installing Arch Linux and Raspbian

Posted by:

An inexpensive credit-card-size computer

From official site: “The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video.”

Pi2ModB1GB.jpg

IMG_4655.JPG

Arch Linux installation on Raspberry Pi

UPDATE: Step 1-12 can be reduced to a script, and I disabled the network in conf file.

  1. Start with fdisk to partition the SD card:

  2. At the fdisk prompt, delete old partitions and create a new one:
    1. Command (m for help): o Created a new DOS disklabel with disk identifier 0xb6a9de4c.
    2. Command (m for help): p Disk /dev/sdc: 14.9 GiB, 15931539456 bytes, 31116288 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xb6a9de4c
    3. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-31116287, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-31116287, default 31116287): +100M

      Created a new partition 1 of type ‘Linux’ and of size 100 MiB.

    4. Command (m for help): t Selected partition 1 Hex code (type L to list all codes): c If you have created or modified any DOS 6.x partitions, please see the fdisk documentation for additional information. Changed type of partition ‘Linux’ to ‘W95 FAT32 (LBA)’.
    5. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (206848-31116287, default 206848): Last sector, +sectors or +size{K,M,G,T,P} (206848-31116287, default 31116287):

      Created a new partition 2 of type ‘Linux’ and of size 14.8 GiB.

    6. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy
  3. Restart for fstable to take effects
  4. Perform following steps as root, not sudo.
  5. Create and mount the FAT filesystem:

  6. Create and mount the ext4 filesystem:

  7. Download and extract the root filesystem (as root, not via sudo):

  8. Move boot files to the first partition:

  9. Unmount the two partitions:

  10. Insert the SD card into the Raspberry Pi, connect ethernet, and apply 5V power.
  11. Start up Raspberry PI and you should be greeted with Arch Console, log in with root /root.
  12. Just update your mirror list and type:

    You have a Arch Linux system without GUI.

    Screenfetch-raspperrypie.png

  13. Install Graphic Display

  14. The X.org driver for Raspberry Pi can be installed with the xf86-video-fbdev package:

  15. Now it’s time to install your Desktop Environment. I’m going with XFCE4, you may go ahead and try something different if you want to.

    Press ENTER for all it asks. After the installation check if you have a .xinitrc file in the directory:

    Uncomment the line to start xfce4: exec startxfce4. Make it executable:

  16. Slim login control

    slim.png

  17. Install the goodies of xfce4 and whatever package you need or want.

  18. Install the guest-additions :

  19. install sudo

  20. Add root access to new user

    Save and exit.

  21. Ccreate a new user.

  22. add user to sudoer

    add: username ALL=(ALL) ALL save as .tmp file, then overwrite.

  23. Reboot and you should be there!

    arch-pi.png

  24. Audio /Video

  25. install pacaur with following script

    Issue command “export EDITOR=nano” if editor variable unset error. https://github.com/rmarquis/pacaur/issues/637

Install wifi Tools

Configuration wifi

Raspberry Pi setup with Debian [Raspbian] via NOOBS

  1. Format microSD card in fat32 format (Windows quickformat via right-click works fine for me).
  2. Download NOOBS link
  3. Plugin monitor via HDMI, USB keyboard and mouse
  4. Plugin 5V USB power
  5. Following on-screen instructions for installation (use keyboard shortcut to make selection if your mouse does not work at this point).

    raspi-install1.JPG

    raspi-install2.JPG

    raspi-install3.JPG

    raspi-install4.JPG

  6. rasp-config to change setting (you can change later).
  7. Update the system

  8. Flash and firefox [codename:iceweasel]

    Note: both should work with Chromium and Firefox.

  9. change root name from console

Always another path

phortx/Raspberry-Pi-Setup-Guidephortx/Raspberry-Pi-Setup-Guide A really opionionated guide how to setup a RPi with Arch Linux including WiringPi, ntp, wi-fi, ssh, ruby, zsh etc.

Sandbox for Kid… and Adults

  1. Minecraft coding
  2. Python programming
  3. Mathmatica
  4. Scratch from MIT
  5. GPIO control and monitoring, following is to make a blinking LED

    IMG_4686.JPG

    https://www.youtube.com/watch?v=Zks9mBtGtIY&feature=em-upload_owner

Notes

  1. A few useful sites for ArchPi: http://archpi.dabase.com/ http://archlinuxarm.org/platforms/armv6/raspberry-pi https://wiki.archlinux.org/index.php/Raspberry_Pi http://elinux.org/ArchLinux_Install_Guide
  2. RUN breakout 2 holes next LEDs onboard can be used for reset (link).
  3. LED lights project with flashing (link)
  4. An old IDE works fine with GPIO pin.
  5. rpi-firmware update https://github.com/Hexxeh/rpi-update
  6. Turn Raspberry Pi into a survillance system with motioneyeOS
  7. Kodi as an entertainment server with all possible media, instruction here, and arch wiki.

0

Add a Comment