Last active
August 29, 2015 14:01
-
-
Save NoUsername/d0ed59925138e93c52c5 to your computer and use it in GitHub Desktop.
Raspberry-Pi cheat sheet
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
# disabling raspbmc firewall the dirty way: | |
# from http://raspberrypi.stackexchange.com/questions/5334/how-can-i-disable-raspbmcs-firewall-via-ssh | |
# in /etc/network/if-up.d/secure-rmc replace: | |
iptables -A INPUT -s $NETMASK -i $IFACE -j ACCEPT | |
iptables -A INPUT -i $IFACE -j DROP | |
# with | |
iptables -A INPUT -i $IFACE -j ACCEPT | |
# fixing a broken sd card | |
# from http://www.raspberrypi.org/forums/viewtopic.php?p=138153#p138153 | |
sudo dosfsck -r /dev/sdb1 | |
# (or whatever device your sd card is) 2 or 3 times until all errors are cleared. (run this on the boot partition which is fat32, not any linux data partitions, they are probably ext4 so this won't work anyway) | |
# on my notebook it's: | |
# sudo dosfsck -r /dev/mmcblk0p1 | |
# installing saltstack salt | |
# depedencies (from raspbian repo) | |
sudo apt-get install msgpack-python python-crypto python-jinja2 python-yaml python-zmq | |
# saltstack packages | |
SALTVERSION="0.15.1-1~bpo70+1~dst.1_all" | |
wget -O salt-common.deb http://debian.saltstack.com/debian/pool/main/s/salt/salt-common_${SALTVERSION}.deb | |
wget -O salt-minion.deb http://debian.saltstack.com/debian/pool/main/s/salt/salt-minion_${SALTVERSION}.deb | |
sudo dpkg -i salt-common.deb salt-minion.deb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment