Installation de base d’un serveur sous Raspberry Zero

Installation de base d’un serveur sous Raspberry Zero.

Nom du serveur : cray1r0-1.local

1/ Téléchargement de Raspbian Lite.

2/ Gravage de l’image sur une carte micro-sd.

➜  Téléchargements sudo dd bs=4M if=2018-11-13-raspbian-stretch-lite.img of=/dev/mmcblk0
[sudo] Mot de passe de util01 :
445+0 enregistrements lus
445+0 enregistrements écrits
1866465280 bytes (1,9 GB, 1,7 GiB) copied, 92,9027 s, 20,1 MB/s
➜  Téléchargements

Didacticiel :

3/ Connexion sur le Raspberry Zero.

➜  ~ ssh pi@cray1r0-1.local
The authenticity of host 'cray1r0-1.local (' can't be established.
ECDSA key fingerprint is SHA256:GZ3/B8idDjD1WSi85MJ6B9dH56bD96uFG8q1p9oOtvA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'cray1r0-1.local,' (ECDSA) to the list of known hosts.
pi@cray1r0-1.local's password:
Linux cray1r0-1.local 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
pi@cray1r0-1:~ $

4/ Vérification de la taille de la carte micro-sd.

pi@cray1r0-1:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        30G  1.1G   27G   4% /
devtmpfs        213M     0  213M   0% /dev
tmpfs           217M     0  217M   0% /dev/shm
tmpfs           217M   12M  206M   6% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           217M     0  217M   0% /sys/fs/cgroup
/dev/mmcblk0p1   44M   23M   22M  51% /boot
tmpfs            44M     0   44M   0% /run/user/1000
pi@cray1r0-1:~ $

5/ Passage en ‘root‘.

pi@cray1r0-1:~ $ sudo su

6/ Mise-à-jour du système d’exploitation.

root@cray1r0-1:/home/pi# apt-get update
root@cray1r0-1:/home/pi# apt-get upgrade

7/ Installation des logiciels de base.

root@cray1r0-1:/home/pi# apt-get install mc screen htop vim git tmux

8/ Changement de mot de passe.

pi@cray1r0-1:~ $ passwd
Changing password for pi.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
pi@cray1r0-1:~ $

9/ Installation de Zsh.
Police du terminal :
Droid Sans Mono Dotted for Powerline Regular

Comments are closed, but trackbacks and pingbacks are open.