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
Last revisionBoth sides next revision
raspberrypi:setup [2013/09/04 23:11] rlunaroraspberrypi:setup [2018/02/18 22:37] rlunaro
Line 18: Line 18:
  
 <code> <code>
-unzip.... +unzip FILE-OF-IMAGE.zip 
-dd bs=4M if=image-file of=/dev...+dd bs=4M if=FILE-OF-IMAGE.img of=/dev...
 </code> </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 59: Line 61:
  
 <code> <code>
-addgroup USERNAME +adduser --group --home /home/USERNAME  USERNAME 
-# adduser --ingroup USERNAME --home /home/USERNAME  USERNAME+# adduser --ingroup USERNAME --home /home/USERNAME USERNAME
 </code> </code>
  
Line 79: Line 81:
 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 100: Line 114:
  
 <code> <code>
-apt-get remove --dry-run --auto-remove --purge libx11-.*+apt-get remove --auto-remove --purge libx11-.*
 </code> </code>
  
Line 129: Line 143:
 </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