Steps for setting up a remote scanner on Raspberry Pi device ### Step 1: Flash the OS image on your SD card ### 1) Download the OS: https://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro/occidentalis-v0-dot-2 2) Flash the image: http://www.raspberrypi.org/documentation/installation/installing-images/README.md ### Step 2: Connect to your RPi via USB ### 1) Connect the ttl cable as such: http://www.google.fr/imgres?imgurl=http%3A%2F%2Fwww.alpha-crucis.com%2F4033-7353-thickbox%2Fusb-to-ttl-serial-cable-debug-console-cable-for-raspberry-pi.jpg&imgrefurl=http%3A%2F%2Fwww.alpha-crucis.com%2Ffr%2Fprototypage-composants%2F4033-usb-to-ttl-serial-cable-debug-console-cable-for-raspberry-pi-3700386509544.html&h=600&w=600&tbnid=w0M34JjabSsAUM%3A&zoom=1&docid=oCrHBIXe81wQrM&ei=-uc8VOPwGdP1aoiKgqgL&tbm=isch&client=safari&iact=rc&uact=3&dur=1311&page=1&start=0&ndsp=27&ved=0CCMQrQMwAQ 2) Download cable driver on your computer: http://www.adafruit.com/product/954 3) Access RPi: screen /dev/cu.PL2303-00001014 115200 ### Step 3: Set up WiFi connection on your RPi ### 1) https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis 2) Connect via wifi: ssh pi@raspberrypi.local 3) if key host issue: http://www.raspberrypi.org/forums/viewtopic.php?f=27&t=40037 ### Step 4: Configure getmail ### https://www.linode.com/docs/email/clients/retrieving-email-using-getmail mkdir -p ~/scanMail mkdir cur tmp new sent mkdir sent/cur sent/new sent/tmp mkdir ~/.getmail nano ~/.getmail/getmailrc [retriever] type = SimpleIMAPSSLRetriever server = imap.gmail.com mailboxes = ("Inbox",) username = yourgmailuser password = yourpassword [destination] type = Mboxrd path = ~/mail.mbox [options] verbose = 2 message_log = ~/.getmail/log # do not alter messages delivered_to = false received = false # retrieve only new messages # if set to true it will re-download ALL messages every time! read_all = false ### Step 6: Mutt ### 1) get mutt: sudo apt-get install mutt 2) configure mutt nano .muttrc " # Basic .muttrc for use with gmail # IMAP settings are not use since the mail retrieving operation is performed by getmail #set imap_user = "YOUR.EMAIL@gmail.com" #set imap_pass = "PASSWORD" set smtp_url = "smtp://bxnode.scan@smtp.gmail.com:587/" set smtp_pass = "iSendScans" set from = "bxnode.scan@gmail.com" set realname = "BxNode Scan" set record = "~/scanMail/sent" " ### Step 5: Get nodescan scripts from Github ### git clone https://github.com/anthill/nodescan.git ### Step X: Some configuration tips ### 1) Expand partition: sudo raspi-config -> expand_rootfs 2) Change pi user password: sudo raspi-config -> change_pass 3) Change RPi name