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/05 08:50] rlunaroraspberrypi:setup [2018/02/18 22:37] rlunaro
Line 61: 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 81: 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 102: Line 114:
  
 <code> <code>
-apt-get remove --dry-run --auto-remove --purge libx11-.*+apt-get remove --auto-remove --purge libx11-.*
 </code> </code>
  
Line 131: 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