raspberrypi:setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
raspberrypi:setup [2014/05/09 22:24] – [Delete the pi user] rlunaro | raspberrypi: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:// | ||
- | |||
- | How to send a whatsapp from a raspberry pi: | ||
- | |||
- | http:// | ||
- | |||
- | Emuladores de consolas: | ||
- | |||
- | http:// | ||
- | |||
- | ===== Saving the image ===== | ||
- | |||
- | < | ||
- | unzip FILE-OF-IMAGE.zip | ||
- | dd bs=4M if=FILE-OF-IMAGE.img of=/dev... | ||
- | </ | ||
- | |||
- | Usually, ''/ | ||
- | |||
- | ===== 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 ''/ | ||
- | |||
- | < | ||
- | 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 | ||
- | </ | ||
- | |||
- | It's a good idea to comment out the previous data, just in case. | ||
- | |||
- | ===== Setting up ssh ===== | ||
- | |||
- | Use the tool '' | ||
- | |||
- | ===== Use the full space of the sd card ===== | ||
- | |||
- | Use the tool '' | ||
- | |||
- | ===== Remap the keyboard ===== | ||
- | |||
- | Use the tool raspi-config | ||
- | |||
- | ===== Create another user, not the well known " | ||
- | |||
- | I prefer to create a regular user instead of the regular " | ||
- | |||
- | < | ||
- | # addgroup USERNAME | ||
- | # adduser --ingroup USERNAME --home / | ||
- | </ | ||
- | |||
- | ===== Add this user to the " | ||
- | |||
- | < | ||
- | # adduser USERNAME sudo | ||
- | </ | ||
- | |||
- | Test that you can log on as this user and run things as superuser. Then, you can delete the '' | ||
- | |||
- | ===== Delete the " | ||
- | |||
- | Delete the pi user after testing the other username is working and can run things as superuser. | ||
- | |||
- | < | ||
- | deluser --remove-home pi | ||
- | delgroup pi | ||
- | </ | ||
- | |||
- | |||
- | ===== Delete the sudoers information of " | ||
- | |||
- | It is not necessarily, | ||
- | |||
- | To prevent that, issue the '' | ||
- | |||
- | < | ||
- | pi ALL=(ALL) NOPASSWD: ALL | ||
- | </ | ||
- | |||
- | |||
- | ===== 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. | ||
- | |||
- | < | ||
- | # sudo apt-get update | ||
- | # sudo apt-get dist-upgrade | ||
- | </ | ||
- | |||
- | ===== 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. | ||
- | |||
- | < | ||
- | apt-get remove --auto-remove --purge libx11-.* | ||
- | </ | ||
- | |||
- | According to: | ||
- | |||
- | http:// | ||
- | |||
- | Or, in case you want to use the graphical desktop, you can access remotely with this guide: | ||
- | |||
- | http:// | ||
- | |||
- | ===== Change the umask ===== | ||
- | |||
- | Edit the file ''/ | ||
- | |||
- | ===== Install a mail program ===== | ||
- | |||
- | < | ||
- | # apt-get install bsd-mailx | ||
- | </ | ||
- | |||
- | ===== Configure mail server ===== | ||
- | |||
- | I've removed exim and installed postfix because I know it better. | ||
- | |||
- | < | ||
- | apt-get install postfix | ||
- | </ | ||
- | |||
- | 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' | ||
- | |||
- | For instructions to configure the relaying: | ||
- | |||
- | http:// | ||
- | http:// | ||
- | |||
- | |||
- | ===== Set Timezone ===== | ||
- | |||
- | Don't forget to set the timezone. | ||
- | |||
- | If '' | ||
- | |||
- | < | ||
- | dpkg-reconfigure tzdata | ||
- | </ | ||
- | |||
- | Taken from: [[http:// |
raspberrypi/setup.1399674247.txt.gz · Last modified: 2022/12/02 21:02 (external edit)