אני מנסה להתקין WIFI למחשב נייד ישן עם דביאן LXDE ויש כמה דברים שלא ברורים לי. המטרה שתהיה עדיפות לרשת קווית וברגע שהיא מתנתקת הרשת תעבור אוטומטית לאלחוטית. ראשית, למרות שהתקנתי את החבילות wicd, wpa_supplicant + wpagui הן לא מציגות את החיבור האלחוטי - איך מציגים אותו באופן gui? אני מעט מכיר את ארץ' ולאחר שמתקינים חבילות כאלו יש להפעיל את השרות שלהם במערכת systemd - בדביאן זה קורה אוטמטית? פקודת systemctl מציגה ששתי החבילות הנל running. בכלל: האם דביאן עובדת עם systemd או עם עוד service mangers ואיך יודעים איזו מערכת מותקנת בדיוק?
בהתחלה התקנתי את החיבור האלחוטי וכפי שתראו בפלטים הבאים הוא היה במצב connected אבל עדיין לא יכלתי לגלוש למרות שמוגדר nameserver 192.168.1.1 ב /etc/resolv.conf. רק לאחר שהוספתי ידנית עוד שורה nameserver 8.8.8.8 אז יכולתי לגלוש, אבל השורה הזו נמחקה לאחר שחזרתי לחיבור הקווי - מה חסר כאן? להלן פלטים עם מרבית הנתונים - אם חסר משהו אשמח להוסיף:
קוד: |
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 1024 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
קוד: |
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:02:3f:92:7c:c0
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::202:3fff:fe92:7cc0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24476 errors:0 dropped:0 overruns:0 frame:0
TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24975480 (23.8 MiB) TX bytes:14184 (13.8 KiB)
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:65536 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3701 (3.6 KiB) TX bytes:3701 (3.6 KiB)
wlan0 Link encap:Ethernet HWaddr e8:4e:06:23:a9:c3
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ea4e:6ff:fe23:a9c3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35862 errors:0 dropped:0 overruns:0 frame:0
TX packets:34694 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37869696 (36.1 MiB) TX bytes:4551699 (4.3 MiB)
|
קוד: |
/sbin/iw wlan0 link
Connected to 00:12:2a:1f:eb:00 (on wlan0)
SSID: moshon_012
freq: 2412
RX: 55013745 bytes (144233 packets)
TX: 4561244 bytes (34976 packets)
signal: -46 dBm
tx bitrate: 65.0 MBit/s MCS 7
bss flags: short-preamble short-slot-time
dtim period: 0
beacon int: 100 |
קוד: |
ip link show wlan0
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether e8:4e:06:23:a9:c3 brd ff:ff:ff:ff:ff:ff |
תוכן /etc/network/interfaces:
קוד: |
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet dhcp
wpa-ssid moshon_012
wpa-psk 7050cf038b5c8205b6e5eaf7c6d6a7a1500d7767257e10f59ea036e7ddfb1e97 |