ArchLinux: Isa pane Raspberry Pi

Archlinux-Pi

Imwe nguva yapfuura ndakatenga imwe Raspberry Pi uye mavhiki mashoma apfuura ndakafunga kuisa Arch Linux, Ini ndichataura kuti ndakazviita sei.

Kuti tiite zvese maitiro atinoda:

  • Raspberry Pi.
  • Kashoma 2Gb SD kadhi.
  • PC ine muverengi wekadhi.

Kuiswa

Kutanga isu tinofanirwa kurodha pasi mufananidzo we Arch Linux. Tinogona kudhawunirodha chifananidzo kubva kurodha yakananga kana kubva parwizi

Dhawunirodha Arch Linux Image

Kana tangove nemufananidzo wakadzingwa, tinofanira kuusunungura.

Kuti uite izvi kubva pakoni:

unzip archlinux-hf-*.img.zip

Mushure mekusunungura chifananidzo iwe unofanirwa kuchiisa pane iyo SD. Kuti uite izvi, unofanirwa kubatanidza SD nePC, kana komputa yaona kadhi iwe unofanirwa kuziva kuti zita remuchina uyu ndiani. Tinogona kuzvitarisa nemurairo fdisk kana rairo df.

Kuisa mufananidzo kune SD:

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

Zvakakosha iyi nhanho ichabvisa chishandiso chose.

Nemirairo dd Hapana maitiro emuenzaniso anoonekwa, zvinoenderana nekirasi kadhi rako, zvinotora zvakanyanya kana zvishoma. Kwangu pane 8Gb kirasi 4 SD kadhi zvakanditora pakati 8 - 10 maminetsi.

Kana iwo murairo wapera isu tatova neyedu Arch Linux yakaiswa mu SD asi kana uine SD hombe unofanirwa kuita imwe nhanho. Iyo yekumisikidza haitore mukana weese aripo saizi yeiyo SD saka kushandisa iyo GParted ngatitambanudzirei chikamu chekupedzisira:

ArchLinux

Nezvo isu tine SD yakagadzirira kutanga kugadzirisa iyo Raspberry Pi

Setup

Isu tinoisa iyo SD kadhi mu Raspberry Pi, tinoibatanidza kune chiteshi chemagetsi uye kune iyo router netambo RJ-45.

Zita rekushandisa uye password:

  • Usuario: mudzi
  • Pasiwedhi: mudzi

Mufananidzo watakaisa mu SD unouya nebasa SSH kumisa nekusimudza. Sezvo isina static IP yakagadzirirwa, iyo router ichapa IP kwariri kuburikidza ne DHCP. Kuti uone kuti ndeipi IP yakapihwa isu tinogona kuitarisa muiyo router kana isu tinogona kutsvaga yedu network kubva kune koni iko kushandisa Nmap(Heano mumwe nemumwe anoisa network yake):

nmap -sP 192.168.1.0/24

Kana tangoziva iyo IP yeedu Raspberry Pi (Mune yangu kesi 192.168.1.132), kuti ndikwanise kuwana na SSH zviri nyore se:

ssh root@192.168.1.132

Izvo zvichatikumbira isu kuti tigamuchire iyo yeruzhinji kiyi yeiyo SSH uye isu tatova mukati medu Raspberry Pi. Chinhu chekutanga chatinoita ndechekugadzirisa iyo yese system nemirairo:

pacman -Syu

Paunopedza kugadzirisa iyo yese system, isu tichagadzirisa iyo Raspberry Pi.

1. Kugadzirisa mutauro isu tinogadzirisa iyo faira /etc/locale.gen uye kusagadzikana mutauro wedu nekubvisa iyo "#"kubva pakutanga kwetambo:

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. Isu tinoremedza mutauro wakasarudzwa:

locale-gen

uye kana uchinge waremerwa unofanirwa kuwedzera (Pano kuti imwe neimwe inoichinja maererano nemutauro wakasarudzwa):

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

3. Iye zvino isu tinogadzirisa iyo nguva yenguva, mune yangu kesi:

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

4. Isu tinogadzira mushandisi mutsva:

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

5. Isu tinoshandura password kune mudzi mushandisi uye kune mushandisi watichangogadzira:

passwd

y

passwd tu_usuario

6. Tinopa mugamuchiri wedu zita:

echo "nombre_maquina" > /etc/hostname

7. Isu tinogadzira static IP kuti zvive nyore kwauri. Kune izvi tinogadzira iyo faira /etc/conf.d/interface uye isu tinowedzera zvinotevera nekuchinja iyo data panguva imwe neimwe:

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

8. Iye zvino tinogadzira iyo faira / etc / systemd / system / network uye tinowedzera zvinotevera:

[Chikamu] Tsananguro = Kubatana kwenetwork (% i) Anoda = network.target Pamberi = network.target BindsTo = sys-subsystem-net-zvishandiso-% i.device Mushure me = sys-subsystem-net-zvishandiso-% i.device [ Sevhisi] Type = oneshot GaraAfterExit = hongu EnvironmentFile=/etc/conf.d/network@%i ExecStart = / usr / bin / ip link set dev% i up ExecStart = / usr / bin / ip addr wedzera $ {address} / $ {netmask} nhepfenyuro $ {nhepfenyuro} dev% i ExecStart = / usr / bin / ip nzira wedzera default kuburikidza $ {gateway} ExecStop = / usr / bin / ip addr flush dev% i ExecStop = / usr / bin / ip link seta dev% i pasi [Isa] WantedBy = multi-user.target

9. Isu takamisa sevhisi DHCP uye isu tinotanga iyo yatichangobva kugadzira:

systemctl stop dhcpd
systemctl disable dhcpd

systemctl start network
systemctl enable network

10. Isu tinotangazve iyo Raspberry Pi uye tinobatana ne SSH nemushandisi wedu:

systemctl reboot (Uyu murairo unogona kusiya iyo Raspberry Pi 1 mineti yakavharwa)

ssh tu_usuario@192.168.1.200

Parizvino kumisikidzwa kweiyo Raspberry Pi game Arch Linux. Mukupedzisira yave yakareba kupfuura zvandaifunga asi haitore anopfuura maminitsi makumi matatu nemakumi mana maitiro ese.

Uyu ndiwo mupiro wangu wekutanga, ndinovimba unoufarira.

Source:
Archlinux Wiki
Archlinux ARM


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira iyo data: Miguel Ángel Gatón
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   francisco akadaro

    Kutenda nedzidziso, ini ndinoronga kutenga rasipiberi pi uye nekuisa Arch, ichandibatsira zvakanyanya, ndatenda !!!.

    Thanks.

  2.   Carlos Gude akadaro

    Ini ndinofunga Arch linux + Raspberry pi inogadzira duo rakakura. Kana iwe ukaisa XFCE unogona kuwana iyo shoma yekushandisa yakaderera

  3.   Cocolium akadaro

    Akanaka kwazvo mukomana, ini ndoda kuverenga aya marudzi ezvidzidzo, ini ndiri kuyedza kuisa Debian pane yangu Western Dhijitari NAS, Hardware yayo ndeiyi:

    Yakaiswa Micro APM82181 @ 800 MHz ine 256 MB ye RAM. uye eth Broadcom BCM54610 10/100/1000 Mbit / s.

    Kana iwe ukaona chimwe chinhu cheichi dhigi ini ndingafarire icho, ndipfuure ini iyo info, kwaziso.

  4.   Fernando akadaro

    Ndine Raspberry yangu Pi inomhanya neArch.Yakakwana seye torrent maneja uchishandisa kufambisa, hautombodi tarisa.
    Ini ndakamboisa LXDE pairi uye inoshanda kwazvo.

  5.   St0rmt4il akadaro

    Mupiro wako unoshamisa!

    Rakanaka Rakajeka uye Rakajeka! - Yakawedzerwa kune Favorites!

    Gracias!

  6.   davidlg akadaro

    Zvakanaka kwazvo, ndine imwe uye ndine mifananidzo miviri, ine Arch neaspbian, uye ini ndichagadzirira mumwe mufananidzo kuti uve nenzvimbo yekutepfenyura

    Mune maonero angu iyi gadget diki ndeyekuti ive nayo sevha, isina giraidhi yakajeka

    1.    Tesla akadaro

      Zvakanaka, cherekedza kuti ndiri kunyatsofunga kuitengesa ... handizive kana chichava ini kana chii, asi ndakaodzwa mwoyo muzuva rayo uye ndakaipaka ipapo ndisina kuishandisa. Ini ndinofunga vezvenhau vakazvipa zvakawandisa hype zvisati zvabuda uye ndine tarisiro yakakwira.

      Ehezve, seyenzvimbo yemultimedia inoshanda nemazvo. Chete nhasi chero terevhizheni ine yayo yega maneja USB kutamba zvirimo. Uye kwandiri kwandiri zvinonyanya kusununguka kubatanidza yekunze hard drive kuTV pane kuvhara muRaspberry Pi, hahaha.

  7.   Dehenya rebhuruu akadaro

    Ndinoda iwe kuti unyore chinyorwa chekuti ungaisa sei linux (ini handina basa nezve iyo vhezheni) pane rasipibheri-pi, PEEEEEEEEEEEERO, zvekuti hazvidi kuti uvhare system nemawoko.

    Iyo inyaya yezvinodiwa, haugone kudzima masystem ese, kana iwe ukaishandisa kune rakanangana nebasa kakawanda izvo zvavanoda kucheka simba uye kuti mangwana acho haisi yese yakashata.

    Ini ndinonzwisisa kuti zvinoitwa nekuisimudza sekuverenga-chete, asi ini handina zano zvakare. Ndati, chingave chinotonhorera chinyorwa nezvazvo kuzokwanisa kushandisa iyo Raspberry-pi kuzvimiririra.

  8.   tracket akadaro

    3. Zvino isu tinogadzira iyo nguva "zone", mune yangu nyaya:

    Ah, maziso angu!

    1.    ichit akadaro

      Uye haukwanisi here kupa mhinduro neimwe nzira? Ini handizive, chimwe chinhu chinovaka?

    2.    Fran akadaro

      Ngatione ... kune RAE akapedza kudzidza:
      https://es.wikipedia.org/wiki/Huso_horario

      Ini ndoziva icho chinyorwa chekare kwazvo, asi chakandibatsira kugadzira iyo yakagadzika ip pane yangu pi. Kutenda = D
      Thanks!

bool (chokwadi)