I-ArchLinux: Faka ku-Raspberry Pi

I-Archlinux-Pi

Esikhathini esithile esidlule ngiyithengile Ukusajingijolo Pi futhi emasontweni ambalwa edlule nginqume ukufaka I-Arch Linux, Ngizolandisa ukuthi ngikwenze kanjani.

Ukuze senze yonke inqubo sizodinga:

  • I-Raspberry Pi.
  • Ikhadi le-SD elincane elingu-2Gb.
  • I-PC enesifundi sekhadi.

Ukufakwa

Okokuqala kufanele silande isithombe se- I-Arch Linux. Singalanda isithombe kusuka ekulandeni okuqondile noma kusifufula.

Landa i-Arch Linux Image

Lapho sesinomfanekiso olandiwe, kufanele siwuvule uziphu.

Ukwenza lokhu kusuka kukhonsoli:

unzip archlinux-hf-*.img.zip

Ngemuva kokuvula uziphu wesithombe kufanele usifake ku-SD. Ukuze wenze lokhu, kuzofanela uxhume i-SD ne-PC, lapho ikhompuyutha isithole ikhadi kufanele wazi ukuthi yini igama ledivayisi. Singayibheka ngomyalo fdisk noma umyalo df.

Ukulayisha isithombe ku-SD:

dd bs=1M if=/path/to/archlinux-hf-*.img of=/dev/sdX

Okubalulekile lesi sinyathelo kuzosula yonke idivayisi.

Ngomyalo dd Asikho isampula senqubo esivelayo, kuya ngesigaba sekhadi lakho, kuzothatha okungaphezulu noma okuncane. Kimi ekhadini le-8Gb ekilasini 4 le-SD kwangithatha phakathi Imizuzu engu-8 - 10.

Lapho umyalo uphela sesivele sinayo yethu I-Arch Linux efakwe ku-SD kepha uma une-SD enkulu kufanele wenze esinye isinyathelo esisodwa. Ukufakwa akubusebenzisi bonke ubungako obutholakalayo be-SD ngakho-ke usebenzisa I-GParted ake sandise ukwahlukanisa kokugcina:

I-ArchLinux

Ngalokhu sine-SD elungele ukuqala ukumisa i- Ukusajingijolo Pi

Isethaphu

Sifaka ikhadi le-SD kufayela le- Ukusajingijolo Pi, siyixhuma entanjeni kagesi naku-router ngekhebula I-RJ-45.

Igama lomsebenzisi nephasiwedi ezenzakalelayo:

  • Usuario: izimpande
  • Iphasiwedi: izimpande

Isithombe esisifakile ku-SD siza nensizakalo ssh wamisa waphakamisa. Njengoba ingenayo i-IP emile, i-router izokwabela i-IP kuyo ngokusebenzisa i- DHCP. Ukubona ukuthi i-IP inikezwe ini singabheka i-router noma singathola umkhondo wenethiwekhi yethu kusuka kukhonsoli isebenzisa I-Nmap(Lapha yilowo nalowo obeka inethiwekhi yakhe):

nmap -sP 192.168.1.0/24

Lapho sesiyazi i-IP yethu Ukusajingijolo Pi (Endabeni yami 192.168.1.132), ukuze ngikwazi ukufinyelela nge ssh kulula njenge:

ssh root@192.168.1.132

Izosicela ukuthi samukele ukhiye womphakathi we ssh futhi sesivele singaphakathi kwe- Ukusajingijolo Pi. Into yokuqala esiyenzayo ukuvuselela lonke uhlelo ngomyalo:

pacman -Syu

Lapho uqeda ukubuyekeza lonke uhlelo, sizomisa i- Ukusajingijolo Pi.

1. Ukulungisa ulimi sihlela ifayili /etc/locale.gen futhi singavumeli ulimi lwethu lisuswe "#"kusukela ekuqaleni komugqa:

vi /etc/locale.gen
#es_EC ISO-8859-1
es_ES.UTF-8 UTF-8
es_ES ISO-8859-1
es_ES@euro ISO-8859-15
#es_GT.UTF-8 UTF-8

2. Silayisha ulimi olukhethiwe:

locale-gen

futhi uma usulayishiwe kufanele uyingeze (Lapha ukuthi ngamunye uyiguqula ngokuya ngolimi olukhethiwe):

localectl set-locale LANG="es_ES.UTF8", LC_TIME="es_ES.UTF8"

3. Manje silungiselela indawo yesikhathi, kimi:

ln -s /usr/share/zoneinfo/Europe/Madrid /etc/localtime

4. Sakha umsebenzisi omusha:

useradd -m -g users -s /bin/bash tu_usuario

5. Sishintsha iphasiwedi ibe ngumsebenzisi wezimpande kanye nomsebenzisi esisanda kumdala:

passwd

y

passwd tu_usuario

6. Sinikeza umphathi wethu igama:

echo "nombre_maquina" > /etc/hostname

7. Silungiselela i-IP emile ukuze kube lula kuwe. Ngenxa yalokhu sakha ifayili /etc/conf.d/interface futhi sengeza okulandelayo ngokushintsha ifayela le- idatha esimweni ngasinye:

address=192.168.1.200
netmask=24
broadcast=192.168.1.255
gateway=192.168.1.1

8. Manje sakha ifayela / njll / systemd / system / network futhi sengeza okulandelayo:

[Iyunithi] Incazelo = Ukuxhumeka kwenethiwekhi (% i) Kufuna = inethiwekhi.Ithagethi Ngaphambi = kwenethiwekhi.I-Target BindsTo = sys-subsystem-net-devices-% i.device After = sys-subsystem-net-devices-% i.device Isevisi] Uhlobo = i-onehot RemainAfterExit = yebo EnvironmentFile=/etc/conf.d/network@%i ExecStart = / usr / bin / ip link set set dev% i up ExecStart = / usr / bin / ip addr add $ {address} / $ {netmask} ukusakaza $ {ukusakaza} dev% i ExecStart = / usr / bin / ip umzila wengeza okuzenzakalelayo nge $ {gateway} ExecStop = / usr / bin / ip addr flush dev% i ExecStop = / usr / bin / ip link setha i-dev% i phansi [Faka] i-WantedBy = i-multi-user.target

9. Simise inkonzo ye- DHCP bese siqala leyo esisanda kuyilungisa:

systemctl stop dhcpd
systemctl disable dhcpd

systemctl start network
systemctl enable network

10. Siqala kabusha i- Ukusajingijolo Pi futhi sixhuma nge ssh nomsebenzisi wethu:

systemctl reboot (Lo myalo ungashiya ifayela le- Ukusajingijolo Pi Iminithi elingu-1 likhiyiwe)

ssh tu_usuario@192.168.1.200

Kuze kube manje ukumiswa kwe- Ukusajingijolo Pi con I-Arch Linux. Ekugcineni sekude kunalokho ebengikucabanga kepha akuthathi ngaphezu kwemizuzu engama-30 - 40 yonke inqubo.

Lokhu kungumnikelo wami wokuqala, ngiyethemba uyayithanda.

Fuentes:
I-Archlinux Wiki
I-Archlinux ARM


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-11, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   i-francisco kusho

    Ngiyabonga ngesifundo, ngihlela ukuthenga i-raspberry pi bese ngifaka i-Arch, izongisiza kakhulu, ngiyabonga !!!.

    Ukubingelela

  2.   UCarlos kusho

    Ngicabanga ukuthi i-Arch linux + Raspberry pi yenza i-duo enhle. Uma ufaka i-XFCE ungaba nokusetshenziswa okuncane okuphansi

  3.   I-Cocolio kusho

    Umfana omuhle kakhulu, ngiyathanda ukufunda lolu hlobo lokufundisa, ngoba manje ngizama ukufaka iDebian ku-Western Digital NAS yami, i-hardware yayo yile:

    Kusetshenziswe iMicrosoft APM82181 @ 800 MHz ene-256 MB ye-RAM. futhi eth Broadcom BCM54610 10/100/1000 Mbit / s.

    Uma ubona okuthile kwaleyo bug ngingakuthokozela, ngidlulisele imininingwane, imikhonzo.

  4.   Fernando kusho

    Ngine-Raspberry Pi yami esebenza ne-Arch. Iphelele njengomphathi wesifufula usebenzisa i-transmission, awudingi ngisho nokuqapha.
    Ngike ngafaka i-LXDE kuyo futhi isebenza kahle.

  5.   Ngobese kusho

    Umnikelo wakho mkhulu kakhulu!

    Kucace bha futhi kufinyeleleke! - Kungezwe kuzintandokazi!

    Gracias!

  6.   davidlg kusho

    Kuhle kakhulu, nginaso esisodwa futhi nginezithombe ezimbili, ngine-Arch ne-raspbian, futhi ngizolungisa esinye isithombe sokuba nesikhungo semidiya

    ngombono wami le gajethi encane ukuba nayo njengeseva, ngaphandle kwemvelo yokuqhafaza

    1.    Tesla kusho

      Yebo, qaphela ukuthi ngicabanga ukuwuthengisa ... angazi noma kuzoba yimina noma yini, kepha ngaphoxeka kakhulu osukwini lwayo futhi ngiyipake lapho ngaphandle kokuyisebenzisa. Ngicabanga ukuthi abezindaba bayinikeze kakhulu ngaphambi kokuba iphume futhi ngilindele okukhulu.

      Vele, njengesikhungo semultimedia sisebenza kahle. Kulezi zinsuku kuphela noma iyiphi ithelevishini inomphathi wayo we-USB wokudlala okuqukethwe. Futhi kimi kukhululeke kakhudlwana ukuxhuma i-hard drive yangaphandle ku-TV kunokuxhuma i-Raspberry Pi, hahaha.

  7.   Ukhakhayi oluhlaza okwesibhakabhaka kusho

    Ngingathanda ukuthi ubhale i-athikili yokuthi ungayifaka kanjani i-linux (angikhathali ngenguqulo) ku-raspberry-pi, i-PEEEEEEEEEEEERO, ukuze kungadingeki ukuvala uhlelo ngesandla.

    Kuyindaba yezidingo, awukwazi njalo ukucisha zonke izinhlelo, uma uzisebenzisela umsebenzi othize izikhathi eziningi okudingayo ukusika ugesi nokuthi ngosuku olulandelayo akuyona yonke inkohlakalo.

    Ngiyakuqonda ukuthi kwenziwa ngokukufaka njengokufundwa kuphela, kepha angisenamqondo. Ngithe, kungaba kuhle i-athikili mayelana nayo ukuze ikwazi ukusebenzisa i-Raspberry-pi ngokuzimela.

  8.   Ithrekhi kusho

    3. Manje silungiselela "indawo" yesikhathi, kimi:

    Ahh, amehlo ami!

    1.    izinga kusho

      Futhi awukwazanga ukubeka amazwana ngenye indlela? Angazi, kukhona okwakhayo ngokwengeziwe?

    2.    Fran kusho

      Ake sibheke ... ukuthola iziqu zeRAE:
      https://es.wikipedia.org/wiki/Huso_horario

      Ngiyazi ukuthi okuthunyelwe okudala kakhulu, kepha kungisizile ukudala i-ip engaguquki ku-pi yami. Ngiyabonga = D
      Un saludo