Created
January 6, 2017 17:31
-
-
Save grahamperrin/6f3bc8fc05f1adedccbde6c32a430a28 to your computer and use it in GitHub Desktop.
TrueOS Desktop recoveries from loss of networking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ifconfig | grep -v ether | |
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO> | |
inet 193.62.168.100 netmask 0xffffff00 broadcast 193.62.168.255 | |
inet6 fe80::5a20:b1ff:fed8:f966%em0 prefixlen 64 scopeid 0x1 | |
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> | |
media: Ethernet autoselect | |
status: no carrier | |
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 | |
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> | |
inet6 ::1 prefixlen 128 | |
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 | |
inet 127.0.0.1 netmask 0xff000000 | |
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> | |
groups: lo | |
$ sudo ifconfig wlan create wlandev iwm0 | |
wlan0 | |
$ ifconfig wlan0 | grep -v ether | |
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> | |
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) | |
status: no carrier | |
ssid "" channel 36 (5180 MHz 11a) | |
regdomain FCC country US authmode OPEN privacy OFF txpower 17 | |
bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60 wme bintval 0 | |
groups: wlan | |
$ date ; ifconfig wlan0 | grep status | |
Fri 6 Jan 2017 17:07:14 GMT | |
status: no carrier | |
$ rc-status | grep -v tarted | |
Runlevel: default | |
vboxnet [ starting ] | |
sshd [ starting ] | |
Dynamic Runlevel: hotplugged | |
Dynamic Runlevel: needed/wanted | |
Dynamic Runlevel: manual | |
dhcpcd.wlan0 [ crashed ] | |
$ date ; ifconfig wlan0 | grep status | |
Fri 6 Jan 2017 17:07:42 GMT | |
status: no carrier | |
$ date ; ifconfig wlan0 | grep status | |
Fri 6 Jan 2017 17:08:51 GMT | |
status: no carrier | |
$ sudo rc-service dhcpcd.wlan0 restart | |
* Caching service dependencies ... [ ok ] | |
* Executing: /libexec/rc/sh/openrc-run.sh /libexec/rc/sh/openrc-run.sh /usr/local/etc/init.d/dhcpcd.wlan0 stop | |
* Stopping DHCP Client Daemon (wlan0) ... | |
* Will stop /usr/local/sbin/dhcpcd | |
* Will stop PID in pidfile `/var/run/dhcpcd-wlan0-4.pid' | |
* Will stop processes of `/usr/local/sbin/dhcpcd' | |
* start-stop-daemon: fopen `/var/run/dhcpcd-wlan0-4.pid': No such file or directory [ ok ] | |
* Executing: /libexec/rc/sh/openrc-run.sh /libexec/rc/sh/openrc-run.sh /usr/local/etc/init.d/dhcpcd.wlan0 start | |
* Starting DHCP Client Daemon (wlan0) ... | |
* start-stop-daemon: fopen `/var/run/dhcpcd-wlan0-4.pid': No such file or directory | |
* Detaching to start `/usr/local/sbin/dhcpcd' ... [ ok ] | |
$ rc-status | grep -v tarted | |
Runlevel: default | |
vboxnet [ starting ] | |
sshd [ starting ] | |
Dynamic Runlevel: hotplugged | |
Dynamic Runlevel: needed/wanted | |
Dynamic Runlevel: manual | |
$ route show default | |
route to: default | |
destination: default | |
mask: default | |
gateway: 10.238.112.33 | |
fib: 0 | |
interface: wlan0 | |
flags: <UP,GATEWAY,DONE,STATIC> | |
recvpipe sendpipe ssthresh rtt,msec mtu weight expire | |
0 0 0 0 1500 1 0 | |
$ date ; pkg info trueos-desktop | grep -i version ; uname -v ; uname -n | |
Fri 6 Jan 2017 17:11:15 GMT | |
Version : 201701060022 | |
FreeBSD 12.0-CURRENT #13 42158f1(drm-next-4.7): Thu Jan 5 22:37:19 UTC 2017 root@gauntlet:/usr/obj/usr/src/sys/GENERIC | |
momh167-gjp4-hpelitebook850g2-trueos.university.brighton.ac.uk | |
$ ifconfig wlan0 | grep -v ether | |
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
inet6 fe80::9665:9cff:fe0f:c39b%wlan0 prefixlen 64 scopeid 0x3 | |
inet 10.238.112.36 netmask 0xfffffff0 broadcast 10.238.112.47 | |
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> | |
media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g | |
status: associated | |
ssid BTWi-fi channel 1 (2412 MHz 11g) bssid 52:64:d9:1e:a8:3a | |
regdomain FCC country US authmode OPEN privacy OFF txpower 30 | |
bmiss 10 scanvalid 60 protmode CTS wme | |
groups: wlan | |
$ date ; sudo rc-service dhcpcd.wlan0 restart | |
Fri 6 Jan 2017 17:17:08 GMT | |
Password: | |
* Caching service dependencies ... [ ok ] | |
* Executing: /libexec/rc/sh/openrc-run.sh /libexec/rc/sh/openrc-run.sh /usr/local/etc/init.d/dhcpcd.wlan0 stop | |
* Stopping DHCP Client Daemon (wlan0) ... | |
* Will stop /usr/local/sbin/dhcpcd | |
* Will stop PID in pidfile `/var/run/dhcpcd-wlan0-4.pid' | |
* Will stop processes of `/usr/local/sbin/dhcpcd' | |
* Sending signal 15 to PID 25278 ... [ ok ] | |
* Sending signal 0 to PID 25278 ... [ ok ] | |
* Executing: /libexec/rc/sh/openrc-run.sh /libexec/rc/sh/openrc-run.sh /usr/local/etc/init.d/dhcpcd.wlan0 start | |
* Starting DHCP Client Daemon (wlan0) ... | |
* start-stop-daemon: fopen `/var/run/dhcpcd-wlan0-4.pid': No such file or directory | |
* Detaching to start `/usr/local/sbin/dhcpcd' ... [ ok ] | |
$ ifconfig wlan0 | grep ssid | |
ssid BTWi-fi channel 1 (2412 MHz 11g) bssid 52:64:d9:1e:a8:3a | |
$ rc-status | grep supplicant | |
$ sudo rc-service wpa_supplicant start | |
* Executing: /libexec/rc/sh/openrc-run.sh /libexec/rc/sh/openrc-run.sh /usr/local/etc/init.d/wpa_supplicant start | |
* Caching service dependencies ... [ ok ] | |
* Executing: /libexec/rc/sh/openrc-run.sh /libexec/rc/sh/openrc-run.sh /usr/local/etc/init.d/wpa_supplicant.wlan0 start | |
* start-stop-daemon: fopen `/var/run/wpa_supplicant-wlan0.pid': No such file or directory | |
* Detaching to start `/usr/local/sbin/wpa_supplicant' ... | |
Successfully initialized wpa_supplicant | |
$ ifconfig wlan0 | grep ssid | |
ssid piano channel 36 (5180 MHz 11a) bssid 58:1f:28:74:07:a8 | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment