From a4b0f49035fead96ea869d3b4af5504a0c3b0408 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Tue, 26 Feb 2013 20:58:57 +0100 Subject: [PATCH] Added packaing-folder --- BuildScripts/README | 1 + BuildScripts/RaspberryPi/README | 79 +++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 BuildScripts/README create mode 100644 BuildScripts/RaspberryPi/README diff --git a/BuildScripts/README b/BuildScripts/README new file mode 100644 index 0000000..51eb5a8 --- /dev/null +++ b/BuildScripts/README @@ -0,0 +1 @@ +This folder contains the stuff needed to Build *nix packages like i.e. Debian, Fedora ... diff --git a/BuildScripts/RaspberryPi/README b/BuildScripts/RaspberryPi/README new file mode 100644 index 0000000..437357c --- /dev/null +++ b/BuildScripts/RaspberryPi/README @@ -0,0 +1,79 @@ +http://blog.mx17.net/2012/07/13/raspberry-pi-tip-mount-raspbmc-images/ + +http://schloesser-edv.de/tips-und-tricks/linux/chroot-mount.html + +.. + +things done for image preparation + +Download: Raspbian “wheezy” +mount image (like first link) + + +mount -o bind /dev /mnt/dev +mount -t proc none /mnt/proc + +sudo chroot /mnt/ /bin/bash + +do: +--- + + apt-get -y install lighttpd + /etc/init.d/lighttpd stop + update-rc.d lighttpd remove + apt-get -y install dnsmasq + /etc/init.d/dnsmasq stop + update-rc.d dnsmasq remove + apt-get -y install hostapd + /etc/init.d/hostapd stop + update-rc.d hostapd remove + apt-get -y install iw + rm /bin/sh + ln /bin/bash /bin/sh + chmod a+rw /bin/sh + +Edit network config file /etc/network/interfaces + auto lo + + iface lo inet loopback + iface eth0 inet dhcp + + iface wlan0 inet manual + ### disalbed for PirateBox + #allow-hotplug wlan0 + #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf + #iface default inet dhcp + + +wget http://downloads.piratebox.de/piratebox-ws_current.tar.gz +tar xzf piratebox-ws_current.tar.gz +cd piratebox +mkdir -p /opt +cp -rv piratebox /opt +cd /opt/piratebox +sed 's:DROOPY_USE_USER="no":DROOPY_USE_USER="yes":' -i /opt/piratebox/conf/piratebox.conf +sed 's:PROBE_INTERFACE="no":PROBE_INTERFACE="yes":' -i /opt/piratebox/conf/piratebox.conf +ln /opt/piratebox/init.d/piratebox /etc/init.d/piratebox + + + + +----------------------- + +Install Raspberry as normal: http://elinux.org/RPi_Easy_SD_Card_Setup + + Use my Image instead of the rpi.org one + Boot as normal with a Monitor, Keyboard & connected LAN (DHCP with Internet access) + Do the following steps in Raspi-Config + Enable SSH Server via raspberry-config + change Password + Expand FS + Finish & reboot now + +Wait until reboot is finished- needs a while because the OS is resizing the filesystem during this reboot + +If you want to run it via default: + + sudo update-rc.d piratebox defaults + sudo /etc/init.d/piratebox start + sudo touch /opt/piratebox/conf/init_done