Configurare Raspberry Pi

De la YO3ITI
Sari la navigare Sari la căutare

Utilizatori

Creare utilizator

pi@raspberrypi:~ $ sudo adduser tom
Adding user `tom' ...
Adding new group `tom' (1001) ...
Adding new user `tom' (1001) with group `tom' ...
Creating home directory `/home/tom' ...
Copying files from `/etc/skel' ...
New password: <parola>
Retype new password: <parola din nou>
passwd: password updated successfully
Changing the user information for tom
Enter the new value, or press ENTER for the default
	Full Name []: Miron Iancu
	Room Number []: home
	Work Phone []: +40758xxxxxx
	Home Phone []: +40758xxxxxx
	Other []: none
Is the information correct? [Y/n] Y

Adăugare utilizator în sudoers

pi@raspberrypi:~ $ sudo adduser tom sudo
Adding user `tom' to group `sudo' ...
Adding user tom to group sudo
Done.
pi@raspberrypi:~ $ sudo nano /etc/sudoers
# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

Configurare audio

Crează un fișier de configurare audio (dacă nu există deja) /etc/asound.conf și adaugă:

pcm.!default {
        type plug
        slave {
                pcm "plughw:1,0"
        }
}

ctl.!default {
        type hw
        card 1
}

E foarte important, fără asta dă erori:

Starting logic: SimplexLogic
Loading RX: RxLocal
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
*** ERROR: Open capture audio device failed: No such file or directory
*** ERROR: Could not open audio device for receiver "RxLocal"
*** ERROR: Could not initialize RX "RxLocal"
*** ERROR: Could not initialize Logic object "SimplexLogic". Skipping...