User Tools

Site Tools


arch_rpi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
arch_rpi [2015/12/09 22:46]
matthias removed
— (current)
Line 1: Line 1:
-https://​learn.adafruit.com/​adafruit-raspberry-pi-educational-linux-distro/​occidentalis-v0-dot-2  ​ 
  
-This distribution is not compatible with Raspberry Pi's that have '​HYNIX'​ RAM Chips! We are working on a new distro that will be better than ever and also support HYNIX, no ETA at this time.   :( 
-    ​ 
-    ​ 
-====== Start-Stop-daemon for arch ====== 
- 
-  * https://​github.com/​jreese/​arch/​blob/​master/​start-stop-daemon/​PKGBUILD 
-  * makepkg --asroot ​  ;; package available under http://​sensenmann.homeip.net/​~matze/​start-stop-daemon-1.16.14-1-armv6h.pkg.tar.xz 
-  
-  # wget http://​downloads.raspberrypi.org/​arch_latest 
-  ##  -> ArchLinuxARM-2014.05-rpi.img 
-  # mkdir mnt 
-  # sfdisk -uS -l ArchLinuxARM-2014.05-rpi.img 
-  ##     ​(extend partition, check values) 
-  # sudo mount -o loop,​offset=$(( 512 * 188416 )) ArchLinuxARM-2014.05-rpi.img mnt/  
-  # sudo cp /​etc/​resolv.conf mnt/​etc/​resolv.conf 
-  # sudo mount -o bind /dev  mnt/dev 
-  # sudo mount -o bind /proc mnt/proc 
-  ## to note, that are the ARCH default passwords ​ pwd: root/root 
-  # sudo chroot mnt /bin/bash 
-  # pacman -Sy 
-  # pacman -S openssh ​ 
-  # systemctl enable sshd 
-  #  linux-firmware is preinstalled 
-  # pacman -Sq wget iw lighttpd python2 wireless_tools dnsmasq hostapd netctl bridge-utils iptables perl zip unzip community/​minidlna ​ 
-  ## Optional ​ 
-  # pacman -Sq dkms-8188eu 
-  # pacman -U http://​sensenmann.homeip.net/​~matze/​start-stop-daemon-1.16.14-1-armv6h.pkg.tar.xz 
-  # ln /​usr/​bin/​python2 /​usr/​bin/​python 
-  # cd root 
-  # wget http://​downloads.piratebox.de/​piratebox-ws_current.tar.gz 
-  # tar xzf piratebox-ws_current.tar.gz 
-  # cp -rv piratebox/​piratebox /opt 
-  # groupadd nogroup && usermod -a -G nogroup nobody 
-  ## temporary Fixes  only PirateBox 1.0.0 
- 
-<pre> 
-  pacman -S patch 
-  echo ' 
-@@ -31,6 +31,7 @@ python psogen.py generate 
- #Set correct permissions 
- chown $LIGHTTPD_USER:​$LIGHTTPD_GROUP $SHOUTBOX_CHATFILE 
- chown $LIGHTTPD_USER:​$LIGHTTPD_GROUP $SHOUTBOX_GEN_HTMLFILE 
--chmod ug+rw  $SHOUTBOX_CHATFILchmod ug+rw  $SHOUTBOX_CHATFILEE 
-+chmod ug+rw  $SHOUTBOX_CHATFILE 
-+chmod ug+rw  $SHOUTBOX_CHATFILE 
-' > /​tmp/​shoutbox_stuff_fix.patch 
-patch /​opt/​piratebox/​bin/​shoutbox_stuff.sh < /​tmp/​shoutbox_stuff_fix.patch 
-echo ' 
-@@ -65,7 +65,7 @@ if [ "​$2"​ = "​save"​ ] ; then 
- fi 
- if [ "​$2"​ = "​recover"​ ] ; then 
--    if [ `get_datetime` -lt  `cat $TIMESAVE` ] ; 
-+    if [ `get_datetime` -lt  `cat $TIMESAVE` ] ; then 
-            date  `cat $TIMESAVE ` 
-            [ "​$?"​ != "​0"​ ] && ​ echo "error in recovering time" && exit 255 
-            echo "Time recovered"​ 
-' >  /​tmp/​timesave.patch 
-patch /​opt/​piratebox/​bin/​timesave.sh <  /​tmp/​timesave.patch 
- sed 's|ln -s $PIRATEBOX_FOLDER/​share/​board $PIRATEBOX_FOLDER/​www/​board|[[ ! -L $PIRATEBOX_FOLDER/​www/​board ​ ]] \&​\& ​  ln -s $PIRATEBOX_FOLDER/​share/​board $PIRATEBOX_FOLDER/​www/​board|'​ -i /​opt/​piratebox/​bin/​install_piratebox.sh 
- sed -i 's|ln -s $UPLOADFOLDER ​ $PIRATEBOX_FOLDER/​www/​Shared|[[ ! -L $PIRATEBOX_FOLDER/​www/​Shared ]] \&​\& ​  ln -s $UPLOADFOLDER ​ $PIRATEBOX_FOLDER/​www/​Shared|'​ /​opt/​piratebox/​bin/​install_piratebox.sh 
-/​opt/​piratebox/​bin/​install_piratebox.sh ​ /​opt/​piratebox/​conf/​piratebox.conf ​ part2 
-/​opt/​piratebox/​bin/​install_piratebox.sh ​ /​opt/​piratebox/​conf/​piratebox.conf imageboard 
-##service file 
-cd /​etc/​systemd/​system 
-wget https://​raw.githubusercontent.com/​PirateBox-Dev/​PirateBoxScripts_Webserver/​7dbd32a21a70c08224dc045c9249f72baaf1a278/​piratebox/​piratebox/​init.d/​piratebox.service 
-sed -i -e '​s|/​opt/​piratebox/​bin/​piratebox.sh|/​opt/​piratebox/​init.d/​piratebox_alt|g' ​ -e '​s|Restart|#​Restart|'​ -e  '​s|PIDFile|#​PIDFile|'​ /​etc/​systemd/​system/​piratebox.service 
-### Preare MOTD 
-echo " 
-PirateBox RPi-Image 1.0.0 
-PirateBox Version 1.0.0 plus patches 
-      Website: http://​piratebox.cc 
-        Forum: http://​forum.piratebox.cc 
-          IRC: #​piratebox ​  on irc.Freenode.net 
-Want to start a not enabled piratebox, run 
-      # systemctl start piratebox 
-Next Steps after first flashing: 
-0. Change password: 
-       # passwd 
-1. If you want to have PirateBox enabled on startup: 
-       # systemctl enable piratebox 
-       # systemctl start piratebox 
-2. Activate the Kareha Image and Discussion Board by using editor 
-   ​change the admin username and password (ADMIN_PASS and SECRET) 
-       # nano /​opt/​piratebox/​www/​board/​config.pl 
-       # wget http://​127.0.0.1/​board/​kareha.pl 
-3. If you want, enable UPnP Media Server 
-       # cp /​etc/​minidlna.conf /​etc/​minidlna.conf.bkp 
-       # cp  /​opt/​piratebox/​src/​linux.example.minidlna.conf /​etc/​minidlna.conf 
-       # systemctl start minidlna 
-       # systemctl enable minidlna 
-" >> /etc/motd 
- 
- 
-exit 
-sudo umount mnt/dev 
-sudo umount mnt/proc 
-sudo umount mnt 
-###  sudo dd bs=1M if=ArchLinuxARM-2014.05-rpi.img of=/dev/sda 
-_-------- 
-### to enable PirateBox via startup 
-systemctl enable piratebox 
-## to start 
-systemctl start piratebox 
- 
-</​pre>​ 
- 
-====== cubietruck ====== 
- 
-  mkdir -p /​lib/​firmware/​ap6210/​ 
- 
---> firmwarefiles http://​dl.cubieboard.org/​public/​Cubieboard/​benn/​firmware/​bcm40181/​ 
---> ​               http://​dl.cubieboard.org/​public/​Cubieboard/​benn/​firmware/​ap6210/​