User Tools

Site Tools


raspberrypi:setup

Differences

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

Link to this comparison view

Next revision
Previous revision
raspberrypi:setup [2013/05/29 19:25] – created rlunaroraspberrypi:setup [2022/12/02 22:02] (current) – external edit 127.0.0.1
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 54: 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 74: 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 95: Line 114:
  
 <code> <code>
-apt-get remove --dry-run --auto-remove --purge libx11-.*+apt-get remove --auto-remove --purge libx11-.*
 </code> </code>
  
Line 124: 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/
  
-===== Setup a dnsdynamic.org dynamic domain =====  
  
-The only thing you have to do to access your raspberry from internet is the following: +===== Set Timezone =====
  
-  - register in www.dnsdynamic.org your account and get a domain +Don't forget to set the timezone
-  - install in your raspberry the ddclient package  +
-  - configure it with the data of your account +
  
-Some details of my configuration (file '/etc/ddclient.conf'):+If ''raspi-config'' doesn't work, try this:
  
 <code> <code>
- +dpkg-reconfigure tzdata
-daemon=60 +
-syslog=yes +
-mail-failure=PUT-HERE-AN-EMAIL-ADDRESS-WHERE-ALL-FAILURES-WILL-BE-SENT +
-ssl=yes +
-protocol=dyndns2 +
-use=web, web=myip.dnsdynamic.com +
-server=www.dnsdynamic.org +
-login=PUT-HERE-YOUR-USERNAME-OF-DNSDYNAMIC.ORG +
-password='PUT-HERE-YOUR-PASSWORD' +
-PUT-HERE-YOUR-DYNAMIC-WEB-ADDRESS.com +
- +
 </code> </code>
  
- +Taken from[[http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=10291]]
-And finally +
- +
-<code> +
-# update-rc.d enable ddclient +
-</code> +
- +
-To add it in the default runlevel +
- +
- +
- +
- +
raspberrypi/setup.1369848334.txt.gz · Last modified: 2022/12/02 22:02 (external edit)