Skip to content

Instantly share code, notes, and snippets.

@ArnaudD
Last active October 13, 2015 07:07
Show Gist options
  • Save ArnaudD/4157827 to your computer and use it in GitHub Desktop.
Save ArnaudD/4157827 to your computer and use it in GitHub Desktop.
Raspi setup memo
sudo -s
echo "allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid XXXXXXXX
wpa-psk XXXXXXXX" >> /etc/network/interfaces
echo "#!/bin/bash
sudo ifdown wlan0
sudo ifup wlan0" >> /etc/init.d/wifi.sh
chmod +x /etc/init.d/wifi.sh
update-rc.d wifi.sh defaults 100
# fix wifi dongle
apt-get update
apt-get install wireless-tools
echo "iwconfig wlan0 power off" >> /etc/init.d/wifi.sh
# packages
apt-get install zsh git ruby vim vim-scripts
# home conf
git clone [email protected]:ArnaudD/MyDotFiles.git --recursive
cd MyDotFiles; ruby install.rb
# To make the logitech k400 work, add this to /etc/rc.local
rmmod hid-logitech-dj
modprobe hid-logitech-dj
# Printer on samba
sudo apt-get install cups
sudo usermod -a -G lpadmin pi
sudo vi /etc/cups/cupsd.conf
# Ajouter "Listen 192.168.1.42:631" au début
# et "Allow from 192.168.1.0/255.255.255.0" dans <Location...>
sudo service cups restart
# goto http://raspberry.didry.info:631
# Pour le scanner voir http://dev.shyd.de/2011/03/debian-printserver-scanserver-hplip-cups-sane/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment