Sida loo sahlo Wifi on Ubuntu

Sida loo sahlo Wifi on Ubuntu
Philip Lawrence
ma arki karo is-dhexgalkaaga wireless-ka, waxaad isticmaali kartaa amarkan soo socda:>>>> sudo ifconfig wlp4s0 up

Marka ku xigta, kumbuyuutarkaagu wuxuu u baahan yahay inuu iskaan u qaado dhammaan shabakadaha agagaarka si aad u raadiso shebekadda wirelesska gurigaaga. Kadib, waxa kaliya ee aad u baahan tahay inaad sameyso waa inaad ku bedesho "wlp4s0" magaca interface-ka wireless, kaas oo aad ku ogaatay adigoo isticmaalaya amarka kore.

Tallabada xigta waa inaad isticmaasho amarka soo socda si aad u barato magaca shabakada Aqoonsiga ESSID:

>
    >> sudo iwlist wlp4s0 iskaankaamar si aad u aragto liiska qaybaha la isticmaalay: >>>> sudo lsmod >
> Haddii aad rabto inaad dhaqaajiso qayb gaar ah, waa inaad fulisaa amarka adoo isticmaalaya magaca chipset sida Magaca moduleka:>>
  • sudo modprobe modulename
  • >Marka xigta, waxaad fulin kartaa amarka “lsmod” si aad u aragto in moduleka si sax ah loo rakibay iyo in kale.4> Tallaabada 4: Si otomaatig ah ugu soo shubaya Module at Boot-Time> Haddii ay dhacdo in moduleka uusan ku shubin boot-ka, waa inaad si joogto ah ugu shubtaa amarka:>>>>>> sudo nano /etc/modules

    Waxaad furi kartaa tifaftiraha qoraalka Nano adoo isticmaalaya amarka kore. Kadib, waxa kaliya ee aad u baahan tahay inaad sameyso waa ku qor magaca moduleka dhamaadka faylka oo keydso. Waxaa intaa dheer, waa in aad dib u kicisaa nidaamka si aad u aragto in kaadhka wirelessku uu ogaan karo shabakadaha wifi.

    Xallinta DNS Arrinka

    on server Linux ah. Marka hore, fuli amarkan si aad u aragto ciwaanka Lan ee router:
    • nmcli tus wlan1

      Ma waxaad tahay horumariye ama tijaabiye degel oo adeegsada Ubuntu si uu u kood u furto una xalliyo? Hadday haa tahay, waxaan kuu helnay war wanaagsan oo ku saabsan isku xirnaanta Wifi-ga Linux.

      Sida aan wada ognahay, Ubuntu waa nidaam Linux ku saleysan, oo ay jecel yihiin horumariyeyaasha adduunka oo dhan. Laakin, ka sokoow kuwa horumariya, isticmaaleyaal badan ayaa doorbida Ubuntu sababtoo ah waa il furan, saaxiibtinimo, iyo la habeyn karo 2> Sideen ugu suurtageliyaa Wireless-ka Linux Isticmaalka nmtui?

      Maareeyaha Shabakadda Qoraalka Isticmaalaha Interface nmtui asal ahaan waa khadka talisyada ee aad ugu isticmaasho nidaamka Linux qaabaynta shabakada. Waxaad u yeeri kartaa interface-ka qoraalka garaafiga ah si aad ugu suurtageliso Wi-fi-ga Ubuntu hab ku haboon interface. Halkan, waxaad ku arki doontaa saddex doorasho oo aad dooran karto "Activate a connection" oo guji OK.

      Enable Wireless Network

      Nidaamka ayaa baari doona shabakadaha wireless-ka ee jira oo soo bandhigi doona liiska shaashadda. Halkan waxaad ka dooran kartaa shabakada wi-fi-ga guriga oo taabo geli Marka xigta, oo la mid ah Windows, waa inaad gelisaa erayga sirta ah ee daaqada wada hadalka pop-up ka dooro OK si aad u xaqiijiso.

      Kadib xiriirinta wireless-ka ee guuleysta, waxaad dib ugu noqon kartaa oo doorataa "jooji" si aad u xirto interface nmtui . Sidoo kale waad awoodaatijaabi isku xirka internetka adoo fulinaya amarka ping-ka ee Google DNS:

      >>>>Ping 8.8.8.8 -c 4
    • >
    > Sideen awood ugu yeeshaa Wi-fi-ga Terminalka Linux?

    Akhbaarta wanaagsan ayaa ah inaad isticmaali karto terminalka taliska ee desktop-ka Ubuntu 20.04 iyo server-ka si aad ugu xirto shabakada Wifi, ixtiraamka wpa_supplicant ama WPA-Personal, fure hore loo wadaago halkii WPA-Enterprise.

    Codsadauhu asal ahaan waa software macmiil ah oo aad ku shuban karto kumbuyuutarkaaga ama laptop-kaaga. Marka xigta, waxaad u baahan tahay inaad xaqiijiso baryootanka si aad ugu xidho shabakada wirelesska. Ugu dambeyntii, waxaad hirgelin kartaa qayb ka mid ah codsiyada WPA adoo isticmaalaya wpa_supplicant

    > Tallaabada 1: Sida loo Helo Magaca Wireless Interface iyo Network> Fur terminalka amarka gudaha Ubuntu 20.04 oo socodsii kuwan soo socda amar si aad u ogaato magaca Wifi interface:>>>>iwconfig>> Waa inaad ogaataa in "wlan0" uu yahay magaca ugu badan ee loo isticmaalo isku xirka shabakadda wireless-ka inta badan Linux. Nidaamyada aan lahayn Systemd.>Si kastaba ha ahaatee, Ubuntu waxay isticmaashaa Systemd; Taasi waa sababta aad u arki doonto magaca isku xirka shabakadaada wireless sida "wlp4s0."

    Qodo kale oo macluumaad ah oo aad ku arki doonto terminalka waa barta gelitaanka. Mar labaad, haddii Wi-figu aanu shaqaynayn nidaamka Linux, ma jiri doonto meel marin ah oo la xidhiidha is-dhexgalka wireless-ka.

    Si kastaba ha ahaatee, haddii aadku qor wax soo saarka gudaha faylka /etc/wpa_supplicant.conf. Tallaabada xigta, waa inaad socodsiisaa amarkan si aad isugu xidho kaadhka wireless-ka iyo barta gelitaanka Wifi:

    >
  • sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlp4s0
  • Soosaarku waxa uu tilmaamayaa in xidhiidhka intarneetku si guul leh loo aasaasay iyo in kale.

    >

    Sida loo joojiyo maamulaha shabakadda

    > Haddii xidhiidhka wifigu guulaysto, waa in aad fulisaa amarka si aad u joojiso Maareeyaha Shabakada . Maareeyaha Shabakadda wuxuu ku abuuri karaa dhibaato isku xirka wifi daabacaadda desktop Ubuntu haddii aad isticmaalayso wpa_supplicant. Taasi waa sababta ay lama huraan u tahay in la joojiyo Maareeyaha Shabakada>>>>sudo systemctl stop NetworkManager>>> Waxaad si joogto ah u joojin kartaa maamulaha shabakada inuu si toos ah u bilaabo wakhtiga boot adoo isticmaalaya khadka amarka hoose:
    • sudo systemctl disable NetworkManager-wait-online NetworkManager-dispatcher NetworkManager

    Marka isku xirka internetka si guul leh loo sameeyo, waxaad fulin kartaa "iwconfig" si aad u aragto barta gelitaanka ee la xidhiidha isku xidhka shabakadaada

    Sida caadiga ah, wpa_supplicants-ku waxa uu ka socdaa xagga hore. Si kastaba ha noqotee, waxaad isticmaali kartaa CTRL+C si aad u joojiso hawsha oo aad gadaal uga socodsiiso. Dhammaan waxaad u baahan tahay inaad sameyso waa inaad ku darto calanka -B ee khadka taliska:

      >> sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp4s0 >
    > Halkaa marka ay marayso, desktop-kaaga Ubuntu 20.04 waa la xaqiijiyay oo ku xidhan kaagaguriga Wi-fi network. Si kastaba ha ahaatee, weli ma lihid ciwaanka IP gaarka ah. Waxaad ka heli kartaa ciwaanka IP-ga server-ka DHCP adiga oo fulinaya amarkan terminalka:
      >
    • sudo dhclient wlp4s0

    Sidoo kale, waxaad sidoo kale hubin kartaa ciwaanka IP-ga adiga oo qoraya Amarka hoose ee terminalka:

    >
  • ip addr show wlp4s0
  • >> Sida loogu xidho Shabakadda Wireless-ka Qarsoon

    ka warran haddii modem-kaaga wireless-ku aanu shaqayn baahin ESSID: Ha werwerin; Waxa kaliya oo aad u baahan tahay inaad sameyso waa ku dar "scan_ssid=1" ee faylka /etc/wpa_supplicant.conf.

    Talaabada 3: Sida otomaatiga ah ugu xidhidhiyaha Boot-Time

    Haddii aad rabto si aad ugu xidho shabakada Wifi wakhtiga bootinta si toos ah, waa inaad wax ka beddeshaa faylka adeegga wpa_supplicant. Kahor intaadan tafatirin faylka, waxaad ka koobi kartaa diiwaanka /lib/systemd/system/ ilaa /etc/systemd/system.

    Sidaan, nooca cusub ee wpa_supplicant ma baabi'iyo wax ka beddelkaaga.

    • sudo cp /lib/systemd/system/wpa_supplicant.service /etc/systemd/system/wpa_supplicant.service

    Waxaad isticmaali kartaa Nano, tafatiraha qoraalka ee khadka taliska wax ka beddel xogta faylka:

    >>
  • sudo nano /etc/systemd/system/wpa_supplicant.service
  • > Faylka dhexdiisa, waxaad u baahan tahay inaad raadiso laynkan:
    • ExecStart=/sbin/wpa_supplicant -u -s- -0 /run/wpa_supplicant

    Waa in aad kudartaa magaca isdhexgalka shabakada amarkan:

    >> 7>ExecStart=/sbin/wpa_supplicant -u -s -0 /etc/wpa_supplicant-conf-i wlp4s0

    Arrinta kale ee muhiimka ah in halkan laga fiirsado waa in dib loo bilaabo wpa_supplicant haddii la ogaado fashilka. Si arrintan wax looga qabto, ku dar xariiqan saxda ah ee hoos yimaada amarka ExecStart:

    • Dib u bilow=mar walba

    Intaa waxaa dheer, waa in aad ku amartaa xariiqda hoose adoo isticmaalaya # bilowga:

      >
    • Alias=dbus-fi.wl-wpa_supplicant1.service

    Dhammaadka, kaydi oo xidh faylkan. Intaa waxaa dheer, haddii aad isticmaasho tifaftiraha qoraalka Nano si aad wax uga beddesho faylka, taabo Ctrl+0 oo Geli si aad u xaqiijiso isbeddellada iyo Ctrl+X si aad u dhamaystirto faylka.

    Waxaad dib u soo rogi kartaa systemd addoo isticmaalaya amarkan:

    Sidoo kale eeg: Fidiyaha Wifi-ga ugu Fiican ee leh Ethernet
    • sudo systemctl daemon-reload

    Marka ku xigta, waa in aad awood u siiso wpa_supplicant adeegyada si ay u bilaabaan wakhti kasta oo boot si toos ah:

    >>>sudo systemctl awood wpa_supplicant.service>> Waa maxay sababta Linux Server-ku aanu ugu xidhnayn Wifi?

    Haddii aadan ku xidhi karin shabakada Wifi, waxa laga yaabaa inay sabab u tahay arrin hardware ama software ah. Laakiin, marka hore, way fiicantahay in meesha laga saaro arrimaha hardware-ka ee darawalada sababtoo ah cilad-sheegiddu waa mid toos ah.

    Marka hore, fuli amarkan soo socda:

    >
  • Ping localhost
  • 9>>

    Martidaada maxalliga ah ayaa gundhig ahaan u ah cinwaanka si loo xaqiijiyo wareegga wareegga nic. Haddii aadan awoodin inaad garaacdo, waxay la macno tahay dhibaatadu waxay ka taagan tahay darawalkaaga Wi-Fi. Si kastaba ha noqotee, haddii ping-ku soo laabto, waxay u badan tahay, dhibaatadu waxay ka jirtaa software-ka.

    Sidoo kale eeg: Waa maxay Wifi Hotspot App-ka ugu Fiican4> Tallaabada 1: Ku rakib darawallada Wireless-ka ee Ubuntu ISO

    Si aad wax uga qabato dhibaatada software-ka, waxaad isticmaali kartaa faylka Ubuntu ISO si aad dib ugu rakibto wadayaasha Wi-fi-ga. Marka hore, waxaad ku dhejin kartaa Ubuntu ISO tusaha guriga oo waxaad fulisaa amarka hoose si aad ugu dhejiso Ubuntu ISO darawalka farsamada:

      > sudo mkdir / media / cdrom > sudo mount - o loop ubuntu-*.iso /media/cdrom

    Waa inaad u gudubtaa "Software & Cusbooneysii,” hubi CDRom-ka oo geli erayga sirta ah marka laga codsado dashboard-ka.

    Ugu dambeyntii, taabo tabka "Drawaliinta Dheeraadka ah" si aad u dooratid ikhtiyaarka "Wireless Network Adapter" oo dooro "Codso Isbedelada." <1

    Tallaabada 2: Sida loo hubiyo haddii Aaladda Wireless-ka la ogaado

    Haddii Ubuntu 20.04 aanu awoodin inuu ogaado aaladda wireless-ka, waxaad furi kartaa terminalka amarka oo fulin kartaa amarka:

    > 6> 7>sudo lsusb

    Dhanka kale, waa inaad qortaa amarkan haddii aad isticmaasho USB dongle ama kaarka bilaa-waayirka gudaha:

    >
  • sudo lspci
  • 9>

    Haddii wax soo saarka uu ka kooban yahay "Network Controller" ama "Ethernet Cable Controller," Linux waxay ogaan kartaa qalabka wireless-ka.

    Intaa waxaa dheer, waxaad sidoo kale isticmaali kartaa amarrada soo socda si aad u aragto wireless. Qalabka:

    >
  • sudo lshw -C network
  • > Haddii wax soo saarku ka kooban yahay sharraxaadda shabakadda, Ubuntu ma aqoonsan karto aaladda wireless-ka. Haddii kale, waxaad u baahan tahay inaad rakibto moduleka darawalka maqan.> Tallaabada 3: Sida loo rakibo Module Driver maqan Isticmaalka UbuntuMarka hore, waa inaad fulisaaAdeegaha Google. Waxaad sidoo kale la xiriiri kartaa soo saaraha router si aad u sii hubiso arrinta DNS> Gabagabo> Gabagabada

    Ujeeddada ugu muhiimsan ee maqaalkan kore waa in laga wada hadlo labada qaab garaafyada iyo qoraalka isticmaale si aad awood ugu siiso Wifi kaaga. Linux system or server.

    Intaa waxaa dheer, waxa kale oo aad isticmaali kartaa hababka cilad-baadhista haddii Ubuntu aanu ku xidhmi karin shabakadda wireless-ka.




    Philip Lawrence
    Philip Lawrence
    Philip Lawrence waa xiisee tignoolajiyada iyo khabiir ku takhasusay isku xirka internetka iyo tignoolajiyada wifi. In ka badan toban sano oo waayo-aragnimo ah oo ku saabsan warshadaha, wuxuu ka caawiyay dad badan iyo ganacsiyo badan internetka iyo arrimaha la xiriira wifi. Isaga oo ah qoraa iyo blogger Internetka iyo Wifi Tips, waxa uu u wadaagaa aqoontiisa iyo khibradiisa si fudud oo sahlan oo loo fahmi karo oo qof kastaa ka faa'iidaysan karo. Philip waa u doode si xamaasad leh u wanaajiya isku xidhka iyo ka dhigista internetka qof walba heli karo. Marka aanu wax qorin ama cilad-ka-hortayn dhibaatooyinka farsamada la xidhiidha, waxa uu ku raaxaystaa socodka, kaamamaynta, iyo sahaminta bannaanka weyn.