Strona 1 z 2

Konfiguracja sieci bezprzewodowej

: 19 marca 2013, 12:35
autor: Zeely
Dłuższy czas używałem Ubuntu i ostatnio postanowiłem przejść na Debiana. Ubuntu ma to do siebie, że sieci szuka automatycznie i pozwala na jej łatwą konfigurację w Debianie zaś wszystko musimy zrobić ręcznie z tego powodu najpierw uruchomiłem Ubuntu skąd spisałem sobie wszystkie dane dotyczące połączenia czyli:

Kod: Zaznacz cały

802.11 WiFi (wlan0)
Adres MAC: XX:XX:XX:XX:XX:XX
Sterownik: ath9k 150MB/s
WPA/WPA2
IPv4:
IP: 192.168.0.108
Adres rozgłoszeniowy: 192.168.0.255
Maska: 255.255.255.0
Domyślna droga: 192.168.0.1
DNS: 192.168.0.1

SSID: nazwa_sieci
MODE: Infrastruktura
BSSID: -
MTU: AUTO
IPv4: DHCP
IPv6: AUTO

Zabezpieczenia: WPA i WPA2 Personal
Hasło: XXXXXXX
Oczywiście wszystko co się dało przepisałem do Debiana do "Network Connections" i nadal nic.
Prosiłbym o jakieś szersze informacje dotyczące konfiguracji sieci WiFi na Debianie bo bez tego nie mogę ruszyć z miejsca ;/

: 19 marca 2013, 13:16
autor: Rafal_F

: 19 marca 2013, 14:41
autor: Zeely
Jeśli dobrze rozumiem nie mogę podczas instalacji konfigurować sieci a dopiero po instalacji?

: 19 marca 2013, 15:03
autor: Rafal_F
Zależy która wersja. Wcześniejsze wersje instalatora zdaje się że nie obsługiwały WPA. W wersji testowej:
http://wiki.debian.org/NewInWheezy pisze:Debian Installer
Support for UEFI installation on x86-64 (amd64) systems
WPA support
Software speech synthesis support!

: 24 marca 2013, 16:28
autor: Zeely
Odkąd napisałem ten temat próbuję skonfigurować sieć WLan i za nic nie wychodzi.
Wiem już, że posiadam kartę:

Kod: Zaznacz cały

Atheros Communications Inc. Device 0032 (rev 01)
(według lspci) i wiem, że sterownik to ath9k.
Posiadam jądro w wersji 2.6.32-5-686.

Kod: Zaznacz cały

ifconfig

eth0      Link encap:Ethernet  HWaddr 20:89:84:0f:64:21  
          inet addr:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2289:84ff:fe0f:6421/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:142746 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76742 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:203840096 (194.3 MiB)  TX bytes:5982923 (5.7 MiB)
          Interrupt:27 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:660 (660.0 B)  TX bytes:660 (660.0 B)

Kod: Zaznacz cały

iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.

pan0      no wireless extensions.
Próbuję więc na podstawie tej instrukcji: http://dug.net.pl/tekst/46/polaczenie_w ... e_atheros/ jednak nie są to słowa dla początkującego użytkownika gdyż już na samym początku nie mam pojęcia jak zainstalować pakiety "madwifi-source module-assistant build-essential wireless-tools wpasupplicant" o których autor tylko wspomina.

Chcę zrozumieć Linuxa by móc w pełni się na niego przerzucić jednak najpierw muszę mieć chociażby internet by gdzieś szukać informacji na inne tematy jak np. sterowniki do karty graficznej, jednak z tym najgorzej z tego co widzę.

: 24 marca 2013, 17:26
autor: Rafal_F
Masz jądro 2.6.32, a twoja karta wspierana jest od wersji 2.6.38.
Musisz zaktualizować jądro, najlepiej do tego z backportów:
Uzupełnij wpisy w pliku /etc/apt/sources.list jak w linku: threads/1408-Wpisy-w-pliku-etc-apt-sour ... #post10079
Następnie (zakładają, że masz architekturę 32 bit i wersje stabilną debiana):

Kod: Zaznacz cały

aptitude update
aptitude -t squeeze-backports install linux-image-2.6-686
Po instalacji restart systemu, uruchomienie na nowym jądrze i karta powinna być wykryta automatycznie.
Więcej tu: http://wiki.debian.org/ath9k

Niestety w tej chwili strona wiki debiana nie działa, tutaj jest cache: http://webcache.googleusercontent.com/s ... pl&strip=1

Polecam też zapoznać się z działem dla początkujących, oraz przeczytać to: http://damlab.pl/poradnik-debiana/

: 24 marca 2013, 20:07
autor: Zeely
Myślałem, że będzie prosto ale jednak się myliłem...
Rafal_F pisze:Uzupełnij wpisy w pliku /etc/apt/sources.list jak w linku: threads/1408-Wpisy-w-pliku-etc-apt-sour ... #post10079
Niezbyt się doczytałem na tamtej stronie jak dodać te wpisy więc poradziłęm sobie w taki sposób:

Kod: Zaznacz cały

sudo gedit /etc/apt/sources.list
I w edytorze dopisałem na końcu:

Kod: Zaznacz cały

 #~~~~~~Squeeze~~~~~~#deb http://ftp.pl.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp.pl.debian.org/debian/ squeeze main non-free contrib
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb http://ftp.pl.debian.org/debian/ squeeze-updates main non-free contrib
deb-src http://ftp.pl.debian.org/debian/ squeeze-updates main non-free contrib

#~~~~~~Backports_Squeeze~~~~~~#
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

#~~~~~~Debian-multimedia~~~~~~#
deb http://www.deb-multimedia.org/ stable main non-free
deb-src  http://www.deb-multimedia.org/ stable main non-free
Po czym najzwyczajniej zapisałem i zamknąłem edytor.
Następnie w terminalu akcja wygląda następująco:

Kod: Zaznacz cały

 root@Marek-Laptop:/home/zeely# aptitude updateIgnorowane cdrom://[Debian GNU/Linux 6.0.7 _Squeeze_ - Official i386 CD Binary-1 20130223-13:15] squeeze Release.gpg
Ignorowane cdrom://[Debian GNU/Linux 6.0.7 _Squeeze_ - Official i386 CD Binary-1 20130223-13:15]/ squeeze/main Translation-en
Ignorowane cdrom://[Debian GNU/Linux 6.0.7 _Squeeze_ - Official i386 CD Binary-1 20130223-13:15]/ squeeze/main Translation-pl
Ignorowane cdrom://[Debian GNU/Linux 6.0.7 _Squeeze_ - Official i386 CD Binary-1 20130223-13:15] squeeze Release
Ignorowane cdrom://[Debian GNU/Linux 6.0.7 _Squeeze_ - Official i386 CD Binary-1 20130223-13:15] squeeze/main i386 Packages/DiffIndex
Stary http://ftp.pl.debian.org squeeze Release.gpg                              
Ignorowane http://ftp.pl.debian.org/debian/ squeeze/contrib Translation-en      
Ignorowane http://ftp.pl.debian.org/debian/ squeeze/contrib Translation-pl      
Ignorowane http://ftp.pl.debian.org/debian/ squeeze/main Translation-en         
Stary http://ftp.pl.debian.org/debian/ squeeze/main Translation-pl              
Ignorowane http://ftp.pl.debian.org/debian/ squeeze/non-free Translation-en     
Ignorowane http://ftp.pl.debian.org/debian/ squeeze/non-free Translation-pl     
Stary http://ftp.pl.debian.org squeeze-updates Release.gpg                      
Ignorowane http://ftp.pl.debian.org/debian/ squeeze-updates/contrib Translation-en
Ignorowane http://ftp.pl.debian.org/debian/ squeeze-updates/contrib Translation-pl
Ignorowane http://ftp.pl.debian.org/debian/ squeeze-updates/main Translation-en 
Ignorowane http://ftp.pl.debian.org/debian/ squeeze-updates/main Translation-pl 
Ignorowane http://ftp.pl.debian.org/debian/ squeeze-updates/non-free Translation-en
Ignorowane http://ftp.pl.debian.org/debian/ squeeze-updates/non-free Translation-pl
Stary http://ftp.pl.debian.org squeeze Release                                  
Stary http://ftp.pl.debian.org squeeze-updates Release                          
Stary http://ftp.pl.debian.org squeeze/main Sources                             
Stary http://ftp.pl.debian.org squeeze/non-free Sources                         
Stary http://ftp.pl.debian.org squeeze/contrib Sources                          
Stary http://security.debian.org squeeze/updates Release.gpg                    
Ignorowane http://security.debian.org/ squeeze/updates/contrib Translation-en   
Ignorowane http://security.debian.org/ squeeze/updates/contrib Translation-pl   
Stary http://ftp.pl.debian.org squeeze/main i386 Packages                       
Stary http://ftp.pl.debian.org squeeze/non-free i386 Packages                   
Stary http://ftp.pl.debian.org squeeze/contrib i386 Packages                    
Stary http://ftp.pl.debian.org squeeze-updates/main Sources/DiffIndex           
Stary http://ftp.pl.debian.org squeeze-updates/non-free Sources                 
Stary http://ftp.pl.debian.org squeeze-updates/contrib Sources                  
Stary http://ftp.pl.debian.org squeeze-updates/main i386 Packages/DiffIndex     
Stary http://ftp.pl.debian.org squeeze-updates/non-free i386 Packages           
Stary http://ftp.pl.debian.org squeeze-updates/contrib i386 Packages            
Stary http://ftp.pl.debian.org squeeze-updates/main i386 Packages               
Stary http://backports.debian.org squeeze-backports Release.gpg                 
Stary http://backports.debian.org/debian-backports/ squeeze-backports/contrib Translation-en
Ignorowane http://backports.debian.org/debian-backports/ squeeze-backports/contrib Translation-pl
Ignorowane http://security.debian.org/ squeeze/updates/main Translation-en      
Ignorowane http://security.debian.org/ squeeze/updates/main Translation-pl      
Ignorowane http://security.debian.org/ squeeze/updates/non-free Translation-en  
Ignorowane http://security.debian.org/ squeeze/updates/non-free Translation-pl  
Stary http://security.debian.org squeeze/updates Release                        
Stary http://security.debian.org squeeze/updates/main Sources                   
Stary http://backports.debian.org/debian-backports/ squeeze-backports/main Translation-en
Ignorowane http://backports.debian.org/debian-backports/ squeeze-backports/main Translation-pl
Stary http://backports.debian.org/debian-backports/ squeeze-backports/non-free Translation-en
Ignorowane http://backports.debian.org/debian-backports/ squeeze-backports/non-free Translation-pl
Stary http://backports.debian.org squeeze-backports Release          
Stary http://backports.debian.org squeeze-backports/main i386 Packages          
Stary http://backports.debian.org squeeze-backports/contrib i386 Packages
Stary http://backports.debian.org squeeze-backports/non-free i386 Packages
Stary http://security.debian.org squeeze/updates/contrib Sources     
Stary http://security.debian.org squeeze/updates/non-free Sources    
Stary http://security.debian.org squeeze/updates/main i386 Packages
Stary http://security.debian.org squeeze/updates/contrib i386 Packages
Stary http://security.debian.org squeeze/updates/non-free i386 Packages
Pobieranie:1 http://www.deb-multimedia.org stable Release.gpg [198 B]
Ignorowane http://www.deb-multimedia.org/ stable/main Translation-en
Ignorowane http://www.deb-multimedia.org/ stable/main Translation-pl
Ignorowane http://www.deb-multimedia.org/ stable/non-free Translation-en
Ignorowane http://www.deb-multimedia.org/ stable/non-free Translation-pl
Pobieranie:2 http://www.deb-multimedia.org stable Release [19,7 kB]
Ignorowane http://www.deb-multimedia.org stable Release
Pobieranie:3 http://www.deb-multimedia.org stable/main Sources/DiffIndex [919 B]
Pobieranie:4 http://www.deb-multimedia.org stable/non-free Sources/DiffIndex [1471 B]
Ignorowane http://www.deb-multimedia.org stable/main i386 Packages/DiffIndex
Ignorowane http://www.deb-multimedia.org stable/non-free i386 Packages/DiffIndex
Stary http://www.deb-multimedia.org stable/main Sources
Stary http://www.deb-multimedia.org stable/non-free Sources
Stary http://www.deb-multimedia.org stable/main i386 Packages
Stary http://www.deb-multimedia.org stable/non-free i386 Packages
Pobrano 2589 B w 10s (250 B/s) 
W: GPG error: http://www.deb-multimedia.org stable Release: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY 07DC563D1F41B907


root@Marek-Laptop:/home/zeely# aptitude -t squeeze-backports install linux-image-2.6-686
Następujące NOWE pakiety zostaną zainstalowane:
  linux-image-3.2.0-0.bpo.4-686-pae{a} linux-image-686-pae{a} 
Następujące pakiety zostaną zaktualizowane:
  initramfs-tools linux-base linux-image-2.6-686 
3 pakietów aktualizowanych, 2 instalowanych, 0 do usunięcia i 112 nie aktualizowanych.
Do pobrania 23,1 MB archiwów. Zajęte po rozpakowaniu: 90,1 MB.
Kontynuować? [T/n/?] T
Nieprawidłowe polecenie. Proszę podać polecenie, lub "?" dla uzyskania pomocy.
Kontynuować? [T/n/?] T
I ten błąd tak w koło.

Poza tym mam zainstalowaną wersję 32-bit a komputer pracuje na 64-bitach (ponoć tak właśnie powinno się instalować ten system bo wersja 32-bit jest kompatybilna z 64-bit z tego co czytałem na stronie Debiana).

: 24 marca 2013, 20:21
autor: Rafal_F
Jak masz 64 bitowy procesor to mogłeś instalować wersje amd64.
Powyższy błąd występuje już od dawna i nie wiem dlaczego nie został naprawiony. Wpisz y albo po prostu enter.

: 24 marca 2013, 20:41
autor: Zeely
Coś nadal jest nie tak jak być powinno z tym jądrem?

Po naciśnięciu ENTER rzeczywiście się aktualizowało jednak po dojechaniu do 100% otrzymałem taki komunikat:

Kod: Zaznacz cały

 linux-base (3) unstable; urgency=low

  * Some HP Smart Array controllers are now handled by the new 'hpsa'
    driver, rather than the 'cciss' driver.


    While the cciss driver presented disk device names beginning with
    'cciss/', hpsa makes disk arrays appear as ordinary SCSI disks and
    presents device names beginning with 'sd'.  In a system that already
    has other SCSI or SCSI-like devices, names may change unpredictably.


    During the upgrade from earlier versions, you will be prompted to
    update configuration files which refer to device names that may
    change.  You can choose to do this yourself or to follow an automatic
    upgrade process.  All changed configuration files are backed up with
    a suffix of '.old' (or '^old' in one case).


 -- Ben Hutchings <ben@decadent.org.uk>  Wed, 16 Mar 2011 13:19:34 +0000


~
~
~
~
~
(END) 
I po tym zrestartowałem komputer i w terminalu sprawdziłem wersję jądra, która jest taka jak była przed całą procedurą.

Edycja:
Teraz jak próbuję aktualizować otrzymuję taki komunikat:

Kod: Zaznacz cały

 root@Marek-Laptop:/home/zeely# aptitude -t squezze-backports install linux-image-2.6-686Nie zostaną zainstalowane, zaktualizowane ani usunięte żadne pakiety.
0 pakietów aktualizowanych, 0 instalowanych, 0 do usunięcia i 4 nie aktualizowanych.
Do pobrania 0 B archiwów. Zajęte po rozpakowaniu: 0 B.
Czyli wszystko poszło jednak tak jak trzeba?
Jednakże iwconfig nadal nic nie wykrywa.

: 24 marca 2013, 21:21
autor: Rafal_F
To jest komunikat do pakietu. Powinieneś nacisnąć klawisz 'q' i instalacja powinna iść dalej.
W menu grub powinieneś mieć do wyboru nowe jądro przy starcie systemu.
Sprawdź co pokazuje:

Kod: Zaznacz cały

uname -a
Powinna tam być napisana wersja jądra na której teraz pracujesz.
Możesz też uruchomić jako root:

Kod: Zaznacz cały

update-grub