User Tools

Site Tools


raspberrypi:setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
raspberrypi:setup [2013/08/17 01:55] rlunaroraspberrypi:setup [2015/11/12 15:28] – [Create another user, not the well known pi] rlunaro
Line 15: Line 15:
 http://chameleon.enging.com/ http://chameleon.enging.com/
  
 +===== Saving the image =====
  
 +<code>
 +unzip FILE-OF-IMAGE.zip
 +dd bs=4M if=FILE-OF-IMAGE.img of=/dev...
 +</code>
 +
 +Usually, ''/dev...'' corresponds --in Linux-- with ''/dev/mmcblk0'' or ''/dev/sdd'', depending on the configuration of your computer.
  
 ===== Setting an static IP ===== ===== Setting an static IP =====
Line 55: Line 62:
 <code> <code>
 # addgroup USERNAME # addgroup USERNAME
-# adduser --ingroup USERNAME --home /home/USERNAME  USERNAME+# adduser --group --home /home/USERNAME  USERNAME 
 +# adduser --ingroup USERNAME --home /home/USERNAME USERNAME
 </code> </code>
  
Line 74: Line 82:
 delgroup pi delgroup pi
 </code> </code>
 +
 +
 +===== Delete the sudoers information of "pi" user =====
 +
 +It is not necessarily, because it's already deleted, but imagine that someone manages to create again the pi user: it will have automatic sudo permissions for everything!!!
 +
 +To prevent that, issue the ''sudo visudo'' command and remove this line of the sudoers file: 
 +
 +<code>
 +pi ALL=(ALL) NOPASSWD: ALL
 +</code>
 +
  
 ===== Think about backup ===== ===== Think about backup =====
Line 95: Line 115:
  
 <code> <code>
-apt-get remove --dry-run --auto-remove --purge libx11-.*+apt-get remove --auto-remove --purge libx11-.*
 </code> </code>
  
Line 124: Line 144:
 </code> </code>
  
-And I make the necessary configurations to send and receive email from the raspberry. +And I make the necessary configurations to send and receive email from the raspberry. I've selected to use SMTP relaying of the emails because of the dynamic IP: it appeared in the Spamhaus' list and it was nearly impossible to send emails from there.
  
 +For instructions to configure the relaying: 
  
 +http://www.kreci.net/linux/how-to-send-mail-in-postfix-through-external-smtp/
 +http://ubuntu-tutorials.com/2008/11/11/relaying-postfix-smtp-via-smtpgmailcom/
  
  
 +===== Set Timezone =====
 +
 +Don't forget to set the timezone. 
 +
 +If ''raspi-config'' doesn't work, try this:
 +
 +<code>
 +dpkg-reconfigure tzdata
 +</code>
  
 +Taken from: [[http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=10291]]
raspberrypi/setup.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1