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 17:25] – created rlunaroraspberrypi:setup [2024/10/05 17:03] (current) – removed rlunaro
Line 1: Line 1:
-====== Setting it up ====== 
- 
- 
- 
-A good page about setup of the raspberry, despite it talks about setting a raspberry for running java, it worths reading: 
- 
-  * http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html 
- 
-How to send a whatsapp from a raspberry pi: 
- 
-http://rsppi.blogspot.com.es/2012/10/uso-de-whatsapp-para-el-envio-de.html 
- 
-Emuladores de consolas:  
- 
-http://chameleon.enging.com/ 
- 
- 
- 
-===== Setting an static IP ===== 
- 
-My plan is to use this Raspberry as a backup server (yes, I know that there is no much space in it, but the place I want to backup hasn't many space either).  
- 
-To configure an static IP, edit the file ''/etc/networking/interfaces'' and set the following values: 
- 
-<code> 
-auto lo 
- 
-iface lo inet loopback 
- 
-iface eth0 inet static 
- address 192.168.1.4 
- network 192.168.1.0 
- netmask 255.255.255.0 
- gateway 192.168.1.1 
-</code> 
- 
-It's a good idea to comment out the previous data, just in case.  
- 
-===== Setting up ssh ===== 
- 
-Use the tool ''raspi-config''. 
- 
-===== Use the full space of the sd card ===== 
- 
-Use the tool ''raspi-config'' 
- 
-===== Remap the keyboard ===== 
- 
-Use the tool raspi-config 
- 
-===== Create another user, not the well known "pi" ===== 
- 
-I prefer to create a regular user instead of the regular "pi" user. To do so: 
- 
-<code> 
-# addgroup USERNAME 
-# adduser --ingroup USERNAME --home /home/USERNAME  USERNAME 
-</code> 
- 
-===== Add this user to the "sudo" group ===== 
- 
-<code> 
-# adduser USERNAME sudo  
-</code> 
- 
-Test that you can log on as this user and run things as superuser. Then, you can delete the ''pi'' user. 
- 
-===== Delete the "pi" user ===== 
- 
-Delete the pi user after testing the other username is working and can run things as superuser. 
- 
-<code> 
-deluser --remove-home pi 
-delgroup pi 
-</code> 
- 
-===== Think about backup ===== 
- 
-Yes: Backup. 
- 
-This is the second time I run through this guide, because I've lost my card. Yes, memory cards broke. I suppose that too many writings can exhaust the capacity, and mine after some months running, broke. So it isn't a bad idea to think if you really need to back up some files.  
- 
-===== Make an upgrade of your distribution ===== 
- 
-Do an update of the packages of your distribution. 
- 
-<code> 
-# sudo apt-get update 
-# sudo apt-get dist-upgrade 
-</code> 
- 
-===== Remove the graphical desktop ===== 
- 
-In my case, I rather prefer to remove the graphical desktop, because I am not going to use it, and this will make more room in the card.  
- 
-<code> 
-apt-get remove --dry-run --auto-remove --purge libx11-.* 
-</code> 
- 
-According to:  
- 
-http://raspberrypi.stackexchange.com/questions/4745/how-to-uninstall-x-server-and-desktop-manager-when-running-as-headless-server 
- 
-Or, in case you want to use the graphical desktop, you can access remotely with this guide:  
- 
-http://www.jeremymorgan.com/tutorials/raspberry-pi/how-to-remote-desktop-raspberry-pi/ 
- 
-===== Change the umask ===== 
- 
-Edit the file ''/etc/login.defs'' in order to change the default umask.  
- 
-===== Install a mail program =====  
- 
-<code> 
-# apt-get install bsd-mailx 
-</code> 
- 
-===== Configure mail server ===== 
- 
-I've removed exim and installed postfix because I know it better.  
- 
-<code> 
-apt-get install postfix 
-</code> 
- 
-And I make the necessary configurations to send and receive email from the raspberry.  
- 
- 
- 
-===== Setup a dnsdynamic.org dynamic domain =====  
- 
-The only thing you have to do to access your raspberry from internet is the following:  
- 
-  - register in www.dnsdynamic.org your account and get a domain 
-  - install in your raspberry the ddclient package  
-  - configure it with the data of your account  
- 
-Some details of my configuration (file '/etc/ddclient.conf'): 
- 
-<code> 
- 
-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> 
- 
- 
-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 21:02 (external edit)