- Thread Starter
- #51
I've already installed KDE and configured it.
/boot/loader.conf
… modules loaded in /boot/loader.conf[.local] should be limited to anything fundamental for base system to start. …
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
ifconfig wlan0 create wlandev iwn0
ifconfig wlan0
dmesg | tail -10
pciconf -lv
ifconfig wlan0 create wlandev iwn0
killall dhclient
wpa_supplicant -b -i wlan0 -c /etc/wpa_supplicant.conf
dhclient wlan0
killall dhclient
# wpa_supplicant -d -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant -d -K -i wlan0 -c /etc/wpa_supplicant.conf
dhclient wlan0
kldstat | grep iwn
OPEN privacy OFF, MaxRusse11, The above says is using authmode OPEN (not encrypted) wifi access point signal. You have to edit the line in the /etc/rc.conf file and remove the word " WPA "groups: wlan ssid "" channel 1 (2412 MHz 11b) regdomain FCC country US authmode OPEN privacy OFF txpower 30
ifconfig_wlan0="DHCP"
pciconf -lv
pciconf -lv | grep -B3 network
kldstat | grep iwn returns
11 1 0xffffffff82582000 551c0 iwn100fw.ko
which presumably means that kernel object for the iwn (driver) is loaded up from boot time?
loader.conf
). Thanks. kldstat | grep iwlwifi
if_iwlwifi.ko
automatically loaded.You are welcome to Direct Message me on Telegram channel https://t.me/GhostBSD Help and Support, Find my name Fred Finsterfor my mobile dongle, when I run:
ifconfig wlan0 up list scan
HUAWEI_E5577_A6FA -
the end of line options are HTCAP RSN WME WPS
https://forums.freebsd.org/threads/pkg-https-by-default.90866/this is with the src type as none
mirror_type: "srv"
Thanks, no hits for that module when I grepped it.That's what I expect to load, automatically (without usingloader.conf
). Thanks.
Next:
kldstat | grep iwlwifi
You might findif_iwlwifi.ko
automatically loaded.
It is loaded on my computer, not used, harmless in my case.
I vaguely recall some cases where it was useful to suppress, explicitly not load, this module.
so, my /usr/local/etc/pkg/repos.FreeBSD.conf is very much like that, apart from being for the default x86/AMD64 arch and not using srv as I was mentioning:Example of my Arm64 aarch64 FreeBSD.conf file
cat FreeBSD.conf.orig
# $FreeBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#
FreeBSD: {
# url: "pkg+http://pkg.freebsd.org/${ABI}/latest",
# url: "pkg+http://pkg.freebsd.org/FreeBSD:14:aarch64/latest",
url: "http://pkg.freebsd.org/FreeBSD:14:aarch64/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
Just remove thatshould I possibly reinstate the SRV type?
mirror_type
line. Your 'latest' pkg config only has to contain the URL:FreeBSD: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest"
}
mirror_type
to none
if you point to any of the mirrors directly (i.e. not using the automatic selection).thanks, but I'm still gettingJust remove thatmirror_type
line. Your 'latest' pkg config only has to contain the URL:
Everything else will get 'inherited' from /etc/pkg/FreeBSD.conf. You only want to setCode:FreeBSD: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest" }
mirror_type
tonone
if you point to any of the mirrors directly (i.e. not using the automatic selection).
Yes. The state is 'associated' which means the wireless network is correctly connected.Right, latest output from ifconfig seems (to me) to suggest that the interface is alive and is aware of the wifi (the Huawei).
Correct. If you look at the ifconfig(8) output you'll see there's no IP address assigned yet. So your wireless network is active (layer 2) but nothing above that (layer 3 and above). What you need, for test isHowever, I still can't get out to pkg install and I'm not confident I'm seeing out to the net
dhclient wlan0
. That should trigger a DHCP request on the network and, hopefully, it will respond with several things, an IP address for the interface, one or more DNS servers and a gateway address.# if needed, you can killall dhclient and reissue dhclient wlan0, check connectivity first, before killing dhclient program. No need to rebootHowever, I still can't get out to pkg install and I'm not confident I'm seeing out to the net:
ifconfig wlan0
killall dhclient
dhclient wlan0
ifconfig wlan0
ping -c 3 8.8.4.4
ping -c 3 freebsd.org
ping -c 3 8.8.4.4
ping -c 3 1.1.1.1
ping -c 3 he.net
ping -c 3 freebsd.org
Ping Google Domain Name Server DNS 8.8.4.4
1.1.1.1 is easy to remember
he.net is Hurricane Electric IPV6 network ISP in Freemont California USA
freebsd.org is where the software and packages comes from
I'm getting old, there is an IP address. I blame a lack of formatting.If you look at the ifconfig(8) output you'll see there's no IP address assigned yet.
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=0
ether 78:92:9c:05:f4:e4
inet 192.168.172.168 netmask 0xffffff00 broadcast 192.168.172.255
groups: wlan
ssid Loco5AC:E43883C44CE9 channel 6 (2437 MHz 11g ht/20) bssid e6:38:83:c4:4c:e9
regdomain ETSI country GB authmode OPEN privacy OFF txpower 30
bmiss 10 scanvalid 60 protmode CTS ampdulimit 64k -amsdutx amsdurx
shortgi -stbc -ldpc -uapsd wme
parent interface: iwn0
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
inet 192.168.172.168 netmask 0xffffff00 broadcast 192.168.172.255
netstat -rn4
. There's probably a default
pointing at 192.168.172.1 (it could also be some other address). Ping that address. If that works try to ping something outside your local 192.168.172.0/24 network, 8.8.8.8 is an easy address to remember (it's one of Google's DNS addresses). drill @192.168.172.1 pkg.freebsd.org
for example. That should get you some results.so this is very interesting because 8.8.4.4, and 1.1.1.1 were both unreachable but freebsd.org was immediately respondingping -c 3 8.8.4.4
ping -c 3 1.1.1.1
ping -c 3 he.net
ping -c 3 freebsd.org
Ping Google Domain Name Server DNS 8.8.4.4 1.1.1.1 is easy to remember he.net is Hurricane Electric IPV6 network ISP in Freemont California
freebsd.org is where the software and packages comes from