Last active
August 29, 2015 14:18
-
-
Save BenTech2/b1f699217d0c06b6514c to your computer and use it in GitHub Desktop.
PiHome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set up auto login and run script | |
sed -i 's/1\:2345\:respawn\:\/sbin\/getty 115200 tty1/1:2345:respawn:\/bin\/login -f pi tty1 <\/dev\/tty1 >\/dev\/tty1 2>\&1/g' /etc/inittab | |
sed -i 1:2345:respawn:\/sbin\/getty --noclear 38400 tty1/1:2345:respawn:\/bin\/login -f pi tty1 <\/dev\/tty1 >\/dev\/tty1 2>\&1/g' /etc/inittab | |
echo ". /home/pi/your_script_name.sh" >> /etc/profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cp /etc/dhcp/dhcpd/conf /etc/dhcp/dhcpd/conf_backup | |
sudo apt-get install -y dhcp3-server | |
cat <<EOF > /etc/dhcp/dhcpd/conf | |
ddns-update-style interim; | |
default-lease-time 600; | |
max-lease-time 7200; | |
authoritative; | |
log-facility local7; | |
subnet 192.168.1.0 netmask 255.255.255.0 { | |
range 192.168.1.5 192.168.1.150; | |
} | |
EOF | |
sudo cp /etc/network/interfaces /etc/network/interfaces_backup | |
cat <<EOF > /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
auto wlan0 | |
iface wlan0 inet static | |
address 192.168.1.1 | |
netmask 255.255.255.0 | |
wireless-channel 1 | |
wireless-essid Printrbot | |
wireless-mode ad-hoc | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev alsa-utils mono-runtime libmono-corlib2.0-cil libmono-system-web4.0-cil libmono-system-numerics4.0-cil libmono-system-serviceprocess4.0-cil libmono-system-data4.0-cil libmono-system-core4.0-cil libmono-windowsbase4.0-cil libmono-system-runtime-serialization-formatters-soap4.0-cil libmono-system-runtime-serialization4.0-cil libmono-system-xml-linq4.0-cil mono-dmcs lame lirc libv4l-0 arduino-mk empty-expect | |
wget http://softlayer-dal.dl.sourceforge.net/project/homegenie/homegenie-beta_1.00.r484_all.deb | |
dpkg -i homegenie-beta_1.00.r484_all.deb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment