sudo dd if=~/Downloads/my_pi.img of=/dev/disk4 bs=1m
change disk4 to whatever number your sd device in bound to
sudo dd of=~/Downloads/my_pi.img if=/dev/disk4 bs=1m
sudo dd of=~/Downloads/matpi_2015-01-13.img if=/dev/disk5 bs=1m count=7948
sudo dd bs=4M if=raspbian.img of=/dev/sdb
sudo dd bs=4M if=/dev/sdb of=raspbian.img
sudo dd if=/dev/sda of=/dev/sdb bs=4M conv=sync,noerror
sudo fdisk -l
sudo fdisk -l -u image.img
sudo vim /etc/hostname
sudo /etc/init.d/hostname.sh
sudo vim /etc/hosts
- Step # 1: Delete old ssh host keys
Login as the root and type the following command to delete files on your SSHD server:
# /bin/rm -v /etc/ssh/ssh_host_*
- Step # 2: Reconfigure OpenSSH Server
Now create a new set of keys on your SSHD server, enter:
# dpkg-reconfigure openssh-server
setup the repl timout to a very large value inside the project.clj:
:repl-options {:init-ns user
:timeout 300000}
start repl headless with the ip address of the pi:
lein repl :headless :host 192.168.***.*** :port 4567
on mac connect onto:
nfs://matpi.local/home/mathieu/clojure
lein repl :connect nrepl://192.168.*.*:4567
- sudo apt-get install hplib hplib-gui
- sudo groupadd printadmin
- sudo usermod -aG printadmin pi
- add
SystemGroup printadminat the end of /etc/cups/cupsd.conf - reboot machine
- http://localhost:631 or go to
Menu -> Preferences -> HPLIB Toolbox - Follow install process to add printer
see this for more info