[01:17] <foo> I'm moving an old digital ocean ubuntu 14.04 install to 18.04. I was going to see if I could retain old IP address... but after thinking about this a bit more, is there any disadvantage to simple updating A records (with a TTL of 10 minutes) to the new IP? Only downside is some IPs may cache for a 10 min window, correct?
[01:24] <tomreyn> you may need to update PTRs as well
[01:24] <tomreyn> + you will need to update the systems' network configuration
[01:26] <foo> tomreyn: reverse DNS and/or PTR, yes. Will put in a request for that. Network conf is defaulting to digital ocean. Thank you! Doing some tests now to ensure sites run well, fairly basic.
[01:27] <foo> tomreyn: Main purpose for PTR is for e-mail to not get flagged as spam, eh/ Or what else?
[01:27] <tomreyn> nay other systems with IP based access control configurations will need to be updated accordingly.
[01:29] <tomreyn> the main purpose of a PTR is to indicate who manages it, what its purpose is. FcRDNS is a common anti spam measure and the most common use of PTRs, yes.
[01:29] <foo> tomreyn: I see, thank you
[01:29] <tomreyn> (besides of just IPAM)
[03:39] <foo> I'm on ubuntu 18.04, previously 14.04. On 14.04 I had my init scripts in /etc/init/
[03:39] <foo> Is this still the place to put them on 18.04?
[06:01] <tomreyn> !releasenotes | foo: Yes, but only if you strictly still have to use sysv init scripts. You really should use systemd, though, as discussed in the release notes
[06:03] <foo> tomreyn: thank you, I set everything up on systemd now. Last step is to make sure it starts the service on reboot
[11:59] <lotuspsychje> ask your details here weq
[12:00] <weq> yeah just need to fix my driver again so I'm at the same point until I bug you guys with my issue.
[12:00] <weq> damn wierd netgear usb card.
[12:00] <weq> weird*
[12:01] <weq> anyone able to share some insight in why a ubuntu server aren't able to connect to a wifi network? I can see the wifi with iwlist and afaik the netplan configuration is correct. Networkctl just reports that it is degraded in connection status.
[12:05] <lotuspsychje> weq: interesting would be to paste your syslog errors about it, volunteers can take a look for you whats it about
[12:05] <lotuspsychje> weq: your server doesnt have an eth port?
[12:05] <weq> this is a home lab, so I have ethernet atm but I wish to utilize it on wifi for the convenince of it.
[12:06] <weq> having a ethernet cable across the entire living room ain't exactly a popular opinion in the household.
[12:06] <lotuspsychje> weq: could use those powerline eth adapters maybe in the future
[12:07] <lotuspsychje> server over wifi doenst sound very comfy right?
[12:07] <weq> it is just a lab, but it is so annoying to be so close but not having it pair with the AP. it can clearly detect it via iwlist scan
[12:09] <tomreyn> weq: if you can show the netplan and resulting systemd-networkd and wpa_supplicant configurations (without revealing passwords / sensitive info), that'd make it easier to help you
[12:09] <weq> trying to dump it all with pastebinit now
[12:10] <weq> I'm threading on water on my wifi skills in linux also fyi
[12:11] <weq> made a wpa_supplicant config with the iface name here http://paste.ubuntu.com/p/wjM8J3dBsT
[12:13] <weq>  the netplan cfg is http://paste.ubuntu.com/p/J5BHMQS7Vd/
[12:13] <weq> I'm sorta making throwing everything at this box to see what sticks
[12:14] <weq> https://paste.ubuntu.com/p/64Y4tbzsX6/ last 50 lines of the syslog
[12:15] <weq> dunno exactly what else would be of benefit to share, so please just ask for more intel.
[12:17] <lotuspsychje> weq: your server up to date?
[12:17] <weq> yes clean install of 18.04 update&upgrade completely.
[12:18] <weq> installed yesterday.
[12:19] <lotuspsychje> weq: chipset of your wifi card?
[12:19] <tomreyn> contents of /etc/systemd/network/ may be of interest
[12:19] <weq> afaik it is "Netgear-A6210", had to find a 3rd party driver and compile it myself.
[12:19] <tomreyn> line 13 of http://paste.ubuntu.com/p/J5BHMQS7Vd/ is indented by one extra speace. not an issue, though, i think.
[12:20] <lotuspsychje> weq: what was wrong with the driver module by default?
[12:20] <weq> unsupported afaik.
[12:21] <weq> tomreyn: the network folder is empty.
[12:21] <weq> removing the extra space and then running netplan generate & apply did nothing.
[12:22] <weq> nothing new of intrest in syslog either.
[12:22] <weq> http://paste.ubuntu.com/p/c6TYmxkY6X/
[12:22] <weq> https://paste.ubuntu.com/p/7qhqFXmntx/ the driver seems to work
[12:24] <lotuspsychje> weq: can you tail -f /var/log/syslog and plug out wifi/plug back in and pastebin the output
[12:24] <tomreyn> nothing in /run/systemd/network either?
[12:24] <weq> sure. but the comments on the driver is that it might be unstable when plugging out and in
[12:25] <tomreyn> ...nor in /lib/systemd/network ?
[12:25] <weq> there is contents in that folder tomreyn, it has two config files. the one with the wlan0 interface just states that is will use dhcp etc nothing about SSID or anything similiar
[12:25] <weq> in the /run folder
[12:26] <weq> dhcp, linklocal,mtu and metric is all that is that file.
[12:28] <weq> Ty for the intrest, I have to step out a while because of the inlaws etc. but if you have any points just highlight me and I'll probably keep working at this through the x-mas so :P
[12:29] <tomreyn> i'venever done this myself, just reading up on it and doing peer review
[12:29] <TJ-> weq: I'm confused; if you're using netplan to configure the WiFi why are you also configuring wpa_supplicant?
[12:38] <bipul> When i'm booting Ubuntu server on Virtualbox. It's taking too much time to get network configured?
[15:27] <weq> TJ-: been basically trying everything I've been able to google regarding how to configure it to see what stuck to the box.
[15:29] <weq> I'm not that familiar with all these networking manager options in ubuntu anymore. and defintely not familiar with wifi in linux as my primary configuration is ethernet on linux and purely as a server host environment while this is basically a "wireless-lab" at the inlaws place.
[15:30] <TJ-> weq: if this is a 18.04+ server install it'll be using systemd-networkd
[15:30] <TJ-> weq: at each boot, the netplan YAML is 'rendered' into the network-manager config in /run/systemd/network/
[15:31] <weq> and that is "all" right? netplan to populate the systemd-networkd ?
[15:31] <TJ-> weq: you shouldn't need to do anything else; in fact if you manually create a wpa_supplicant.conf and have the wpa_supplicant service enabled it'll likely fight with systemd-networkd
[15:33] <weq> I'll make sure to remove wpa_supplicant then, am I supposed to see the configuation regarding ssid etc in the /run/systemd/network configuration? cause I can't find any trace of it there.
[15:34] <weq> it is present in my YAML and as far as I can see that configuration is correct though.
[15:34] <weq> are there any options to configure wpa2-psk etc incase there are some negation errors? just to rule things out.
[15:35] <TJ-> weq: I'm not entirely sure, my memory is struggling on that right now, but as I recall when configuring a wireless link systemd-networkd will activate it's own private instance of wpa_supplicant. I need to check on that though, got to ssh into a remote system to check!
[15:36] <weq> I know for a fact that the provider is not supporting this particular nic on nix but there are community made drivers that do seem to work as I can clearly see the wifi network when scanning with iwlist. But I'm not sure if there is some feature missing in the driver to be able to connect. This is a bit out of my daily routine.
[15:37] <weq> There is nothing of value in this system as of now so if it help I can set up a user and screen if you'd been be willing to take a look at this configuration later perhaps? We have have some x-mas things to go through here as I recon everyone has. regardless of geeky we are.
[15:39] <TJ-> weq: remind of the pastebin link with your netplan config; I'll test it here
[15:40] <TJ-> weq: no matter; found it
[15:40] <weq> ty for trying.
[15:47] <weq> if it is of any information this is the driver that I've compiled and installed              the wifi network when scanning with iwlist. But I'm not sure if there is some feature missing in the driver to be able to connect. This is a bit out of my daily   caliculk
[15:47] <weq> whops
[15:47] <weq> https://github.com/kaduke/Netgear-A6210
[15:47] <weq> this touchpad, sry fot he mispaste.
[15:55] <TJ-> weq: OK, I've created a separate YAML for wifis, and using "netplan --debug generate" to see what it creates. You should do that too to understand what it does. It looks like it generates both systemd-networkd and wpa_supplicant service files
[15:59] <TJ-> weq: I daren't allow it to actually apply since that system is a very long way away :)
[16:02] <weq> ok I'll try that soon to see what happens, but can you confirm that there is anything related to the wifi ssid and/or passphrase for the network in the /run configuration?
[16:04] <weq> cause I'm not that familiar with netplan, so just curious if I'm supposed to see any of the ssid&passphrase information in my yaml in the networkd config. Cause what I've understood so far is that netplan is just a simplified method of making networkd config. YAML -> systemd-networkd.conf's
[16:05] <weq> I would sorta expect that netplan would tell me of any syntax errors in the yaml though if it is sane.
[16:06] <TJ-> weq: as the --debug shows, it writes a wpa_supplicant conf file to /run/netplan/ which you can inspect
[16:07] <weq> ah k I'll traverse that as soon as I can, thanks. But are there any logs that will show the "pairing" attempt other that what I can expect from syslog?
[16:14] <TJ-> weq: it is creating systemd services so you can look at those logs
[16:14] <TJ-> weq: e.g. "systemctl status xxxx" or "journalctl -u xxxx.service"
[16:46] <mojtaba> Hello, I am using Ubuntu 16.04 LTS and Torsocks as system wide proxy. Do you know how can I fix DNS leakage through Socks?
[16:58] <weq> TJ-: hmm ok, I found the files you mentioned in run and the debug options. It is still the same error message. Dependency failed for WPA supplicant for netplan wlan0.
[16:59] <weq> and I found this, though it is related to archlinux. https://bbs.archlinux.org/viewtopic.php?id=150087 It is similar but I'm not quite following the logic here. Not that familiar with systemctl at all.
[17:00] <weq> and it seems like that "wpa_supplicant" config I made with ssid etc aren't being used what so ever and it afaik it shouldn't conflict given that paths I see in netplan --debug
[17:01] <weq> and when I check the systemctl --all --type device I can see that the sys-subsystem-net-devices-wlan0.device is marked as loaded inactive dead
[17:02] <weq> instead of the others devices in the list that is active and plugged.
[17:03] <cryptodan_mobile> weq: does / did wifi work in a live session?
[17:04] <weq> you need to explain that further for me to give a response cryptodan_mobile. You mean just a live linux? Haven't tried it. There is no driver natively available so I had to compile and install it from a community source.
[17:07] <weq> http://paste.ubuntu.com/p/zXMKrhQ76B/
[17:07] <weq> this is the entire systemctl device list
[17:07] <cryptodan_mobile> Weq you sure that nic has a ralink chip
[17:08] <weq> it is able to scan see the avaiable wifis here.
[17:08] <lotuspsychje> wasnt it netgear?
[17:08] <weq> it is the netgear ac1200 usb dongle, which afaik is the Netgear A6210
[17:09] <weq> if I use iwlist to scan for wifi networks I can see the network I'm trying to connect to.
[17:09] <weq> and as far as I can see in the /run files that TJ- described earlier both the ssid and passphrase is correct.
[17:12] <cryptodan_mobile> weq: run "dmesg | nc termbin.com 9999" share link here
[17:13] <lotuspsychje> cryptodan_mobile: weq told us his wifi driver didnt work by default, hence why the own compile
[17:13] <weq> https://termbin.com/zpq1
[17:13] <lotuspsychje> im also curious why
[17:14] <weq> there is no wifi adapter available if I do ipconfig -a without compiling the driver then modprobing it.
[17:14] <foo> Is there a way to use "mail" command in linux ubuntu with mailgun? I just did apt-get install mailutils... and realized it installed postfix + mysql common ... plus a bunch of stuff I probably don't want... I some random stuff on my system uses mail command but everything is routed through mailgun.
[17:15] <weq> as far as you guys is this adapter natively supported?
[17:17] <weq> https://paste.ubuntu.com/p/zXMKrhQ76B/ in that paste I'm curious if I'm supposed to use a different device than the one marked as dead. If I compare strings towards what is dmesg I can see the "same" information regarding usb and 1-5 at line 98. If that is really the device.
[17:18] <weq> cause that seems to be the same scenario as this https://bbs.archlinux.org/viewtopic.php?id=150087
[17:18] <lotuspsychje> mt7662u_sta: version magic '4.15.0-29-generic SMP mod_unload ' should be '4.15.0-43-generic SMP mod_unload
[17:18] <cryptodan_mobile> weq: is secure boot enabled
[17:18] <weq> no.
[17:19] <weq> it is old hw so no secure boot
[17:20] <lotuspsychje> could it be wrongly compiled weq ?
[17:20] <weq> lotuspsychje: that might be due it had an older version prior, I had to make clean && make && make install this morning just to get the adapter back. probably due to an update.
[17:20] <weq> lotuspsychje: it could, but I'm out of my league here.
[17:21] <weq> I have not enough experience or knowledge on this topic to claim one or the other here.
[17:22] <lotuspsychje> weq: well the best way of debugging things on ubuntu, is to keep as much as vanilla possible, perhaps see why the netgear driver doesnt load by default first?
[17:24] <weq> any simple method of removing the driver I compiled to start from there? if that helps with the process of you getting a better grasp of the situation.
[17:24] <weq> or would you prefere that I just start from scratch?
[17:24] <lotuspsychje> yeah i would go from scratch
[17:25] <weq> ok reinstalling now
[17:25] <cryptodan_mobile> Weq [ 325.095355] ModemManager[772]: segfault at 0 ip 000055c5b3009659 sp 00007fffba8ebb20 error 4 in ModemManager[55c5b2fce000+123000]
[17:26] <weq> that is greek to me... :-/
[17:26] <cryptodan_mobile> So that maybe why it's not working that happened after the driver loaded
[17:28] <weq> so reinstall, apt update&&apt upgrade anything else I should do before we try a more structured method of doing this?
[17:29] <lotuspsychje> weq: always keep system up to date is always a good idea :p
[17:29] <weq> that is my intentions :P
[17:29] <cryptodan_mobile> Try using ubuntu 18.04
[17:29] <weq> cryptodan_mobile: desktop you mean?
[17:30] <cryptodan_mobile> Yeah
[17:31] <weq> soon done reinstalling so will give that ago if there is "logical" reasoning to this after this. Had a crapton of troubles trying to even make the boot usb for some reason. Rufus didn't want to make the usb correct so had to a use a different linux laptop I had lying around to even make the usb to get a stick with no defects.
[17:43] <weq> ok soon done updating. no wifi card visible in ifconfig -a
[17:43] <lotuspsychje> weq: check with sudo lshw -C network
[17:44] <weq> only the ethernet adapter there.
[17:44] <lotuspsychje> weq: allright, then we need your full syslog after install, boot
[17:44] <lotuspsychje> lets c what happens there
[17:44] <weq> after a clean boot?
[17:44] <lotuspsychje> weq: make sure system up to date to kernel -43 also ok
[17:45] <weq> yeah will finish apt until it is completly done, reboot then pastebin the entire syslog
[17:45] <lotuspsychje> great
[17:52] <weq> do pastebinit filter syslog by default or something?
[17:53] <weq> cat /var/log/syslog | nc termbin.com 9999 -> http://termbin.com/ju8w
[17:56] <lotuspsychje> weq: something badly wrong with ureadahead there
[17:56] <weq> what does that mean?
[17:56] <lotuspsychje> big error list
[17:56] <lotuspsychje> not sure why it does that
[17:59] <Checkmate> Hey its possible to get https to my vps ip ?
[18:00] <Checkmate> I've followed some steps on google but nothing happen !!
[18:00] <weq> lotuspsychje: but should that have any impact on the issue? As far as I can understand ureadahead is only there to put config in cache basically?
[18:01] <lotuspsychje> weq: well the errors list so far, i didnt find why your netgear didnt load, not related to our issue no
[18:01] <weq> hmmm it even cut of the paste since there were so many messages.
[18:02] <TJ-> weq: I'm back; just looked at the dmesg; the kernel you're using is v4.15. Instead of trying to build the kernel module out-of-tree why not try an Ubuntu Mainline build of either v4.19 or v4.20, which both have that module
[18:03] <lotuspsychje> ah good idea TJ-
[18:03] <weq> tail -f /var/log/syslog -n 500 | nc termbin.com 9999 -> https://termbin.com/7qie
[18:03] <TJ-> grep -n '0846.*9053' /lib/modules/*/module*
[18:03] <TJ-> /lib/modules/4.19.0-041900-lowlatency/modules.alias:9769:alias usb:v0846p9053d*dc*dsc*dp*ic*isc*ip*in* mt76x2u
[18:03] <TJ-> /lib/modules/4.20.0-042000rc4-lowlatency/modules.alias:9796:alias usb:v0846p9053d*dc*dsc*dp*ic*isc*ip*in* mt76x2u
[18:03] <TJ-> !mainline | weq
[18:03] <weq> do-release-upgrade and go to 18.10 ?
[18:03] <weq> is that what you want me to try?
[18:04] <TJ-> weq: I have a script to automate dowload/install of Ubuntu mainline kernels  http://iam.tj/projects/ubuntu/wget_kernel_mainline.sh
[18:04] <TJ-> weq: no, don't change the installed release, just install a recent mainline kernel :)
[18:04] <weq> TJ-: just to inform you, we reinstalled now are running a clean 18.04 fully patched with no 3rd party driver atm.
[18:04] <weq> so run your script and presto?
[18:05] <TJ-> weq: by default the script will fetch/install the latest build, which might be a release-candidate. You also need to add the Ubuntu kernel team's GPG public key to the system keyring
[18:06] <weq> I will be prompted for that won't I? after wget script && ./ script ?
[18:06] <TJ-> weq: download the script, make it executable ("chmod +x wget_kernel_mainline.sh") then do "wget_kernel_mainline.sh -l" to fetch and display the list of versions
[18:06] <TJ-> weq: I recommend doing this in $HOME/Downloads/ since it'll create a sub-dir ./kernels/ to download into
[18:07] <weq> root@zulu:~# ./wget_kernel_mainline.sh -l | pastebinit
[18:07] <weq> http://paste.ubuntu.com/p/pb5Mg3wKwx/
[18:07] <TJ-> weq: Linus is due to release v4.20 before xmas day so it's OK to fetch the latest v4.20-rc7
[18:08] <TJ-> weq: OK, now do "wget_kernel_mainline.sh" and it'll fetch v4.20-rc7
[18:08] <weq> fetching now
[18:09] <TJ-> weq: as I said you'll get a warning/error about not being able to verify the signature so you'll need to add that key to your sysytem keyring - the script tells you how :)
[18:09] <TJ-> (or should!)
[18:09] <weq> does the script also do some dpkg -i here?
[18:10] <TJ-> weq: yes, it does everything
[18:11] <weq> http://paste.ubuntu.com/p/7kHxKmwJbF/ so... apt install gpg or something? what package am I missing?
[18:11] <weq> gnupg2?
[18:12] <TJ-> weq: eerrrrr you've found a bug! it should have reported the failed key. is gnupg (gpg2) installed on that system?
[18:12] <weq> nope clean install
[18:12] <weq> so install gnupg2 the rerun the script ?
[18:13] <weq> just to not frack anything up I'd rather do this step by step.
[18:13] <TJ-> weq: yes, you can rerun the script, it won't upset it and it won't re-download anything it has already fetched
[18:14] <weq> yes to install gnupg2 right?
[18:14] <TJ-> weq: yes, although it should be installed to support apt-key
[18:15] <weq> and then apt-key and the RSA key right?
[18:15] <weq> since that also fails
[18:17] <TJ-> weq: this is the key you need: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x0856F197B892ACEA
[18:17] <weq> ok key installed and it is unpacking the deb files now.
[18:17] <TJ-> nice one :)
[18:17] <TJ-> so the script did tell you the key ID finally?
[18:17] <TJ-> I'd best add some functionality to ensure gpg is available and working!
[18:19] <weq> wth?... https://paste.ubuntu.com/p/5TyVN42HcJ/
[18:20] <weq> I think there might be some fs issues here. I see all of the suddenly it has remounted as RO.
[18:20] <TJ-> weq: looks like the storage device/file-system went read-only in the middle of operations
[18:21] <TJ-> weq: check "dmesg | tail -n 50"
[18:21] <weq> fsck /dev/sda2 -y now, rebooting
[18:21] <weq> it happened last time I rebooted also,
[18:21] <weq> err reinstalled.
[18:21] <TJ-> weq: better check the SMART log if the device has one, using smartmon-tools smartctl tool
[18:22] <TJ-> weq: I have to go to dinner now, hopefully you can sort that issue out
[18:22] <weq> would be wierd if there is any physical issues on the drive as it is brand spanking new but we'll see.
[18:24] <weq> ok TJ-, script also done now and rebooting to boot into the 4.20 kernel.
[18:29] <weq> ok we are now on 4.20.0-042000rc7-generic, syslog is as long as the chinese wall because of the unknown ureadahead error but I can upload it in it's entirety to a server if needed.
[18:30] <weq> lshw -C network still only reveals the ethernet card and no usb card. lsusb still shows that the realtek card is there.
[18:32] <lotuspsychje> weq: that dongle is kinda old?
[18:33] <weq> made 4 years ago or so.
[18:34] <weq> the father in-law do have a linksys wifi pci adapter here as well which is even older but I sorta want to avoid trying that it is 11mbps only.
[18:34] <lotuspsychje> weq: can we see your new syslog on the 4.20?
[18:36] <weq> ofc I'm crap at sed so able to help me filter away the crap from ureadahead so that you get only the valuable parts instead of half of the syslog ?
[18:38] <weq> hmmm I've lost internet on that machine now all of the sudden
[18:39] <weq> there restarted systemd.networkd.service
[18:43] <TJ-> weq: I'm beginning to suspect many of the issues on that system are due to a broken disk drive
[18:44] <TJ-> weq: the earlier segfault in ModemManager for example, and the other issues
[18:44] <weq> installing smartmontools now
[18:47] <weq> smartctl -a /dev/sda ?
[18:47] <weq> is that suffient?
[18:47] <TJ-> weq: yes
[18:48] <weq> http://paste.ubuntu.com/p/QYk8hzTfKz/
[18:48] <weq> overall passed
[18:50] <TJ-> weq: so the next suspect is the RAM modules, because there's something not right causing the I/O problems
[18:51] <TJ-> weq: but referring back to v4.20 and the WiFi module, we need to see the kernel boot log to get any sense of what went wrong
[18:51] <weq> how can I share that properly?
[18:52] <weq> given that we have thousands of ureadahead ignored relative path messages in syslog.
[18:54] <weq> cat /var/log/syslog | sed -i 'zulu ureadahead[378]' > full_syslog.log or something ?
[18:54] <weq> I'm really crappy at regex and sed
[18:55] <TJ-> weq: "sudo apt install pastebinit" then "journalctl -b | grep -v ureadahead | pastebinit"
[18:55] <weq> http://paste.ubuntu.com/p/3SSPNPWDqQ/
[18:57] <weq> I see it at line 751
[18:57] <TJ-> line 923 "mt76x2u: probe of 1-5:1.0 failed with error -2"
[18:59] <TJ-> weq: lets see if it needs firmware, although that wouldn't result in this error -2: "modinfo mt76x2u" and see which firmware files it lists, then check if they're in /lib/firmware/ - if not, we possibly need to grab/extract them from the mediatek source package
[18:59] <weq> http://paste.ubuntu.com/p/cXMTvw54g3/
[19:00] <weq> no mediatek in /lib/firmware
[19:00] <TJ-> -2 == -ENOENT which isn't very revealing
[19:01] <weq> root@zulu:~# ls /lib/firmware/ | grep mediatek
[19:01] <weq> no results
[19:01] <TJ-> weq: where did you get the original mediatek source package from? do you still have it so we can extract the firmware files from it?
[19:02] <weq> what source package? you mean the 3rd party driver I found prior to reinstalling?
[19:02] <weq> as of now this what we done, clean install, patch OS, upgrade to 4.20, install smart tools
[19:02] <TJ-> weq: yes
[19:03] <weq> https://github.com/kaduke/Netgear-A6210 this was the repo I downloaded in the previous install
[19:04] <weq> and then compiled & installed so I could see the wifi networks with iwlist
[19:04] <weq> git clone repo, make, make install, modprobe, iwlist wlan0 scan showed the wifi in the previous install. Haven't done anything like that in this install yet.
[19:05] <weq> only what you've suggested.
[19:05] <weq> thanks again for being so patient and willing to lend me your experience.
[19:05] <TJ-> weq: they're in the latest linux-firmware repo: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek
[19:06] <TJ-> weq: you can fetch the 2 you need; you'll need to create the directory for them, as in "sudo mkdir /lib/firmware/mediatek" first
[19:06] <weq> can I just wget them raw or clone the repo and copy them into /lib/firmware?
[19:06] <weq> ok
[19:06] <TJ-> weq: yes, you can fetch them with wget
[19:06] <weq> all of them ?
[19:07] <TJ-> weq: you only need the 2 that the modinfo command listed
[19:07] <weq> ah k
[19:07] <weq> 7662 then
[19:07] <TJ-> weq: those of them "mt7662u*"
[19:08] <weq> root@zulu:/lib/firmware/mediatek# ls
[19:08] <weq> mt7662u.bin  mt7662u_rom_patch.bin
[19:08] <TJ-> weq: then check if the module is still loaded with "lsmod | grep mt76" - if no result, then try "sudo modprobe mt76z2u" then recheck kernel log with "dmesg | tail"
[19:08] <TJ-> oops, typo
[19:08] <TJ-> weq:  "sudo modprobe mt76x2u" then recheck kernel log with "dmesg | tail"
[19:09] <weq> http://paste.ubuntu.com/p/F2CX5Nft8p/ no idea what I'm looking at there if it is correct or not. Does it automatially load files that just pop in?
[19:10] <TJ-> weq: it's loaded so we need to unload it first; "sudo modprobe -r mt76x2u"
[19:10] <weq> then modprobe mt76x2u to reload it right?
[19:10] <TJ-> yes
[19:11] <TJ-> and lets hope that -2 error was due to missing firmware, and now it gets further
[19:11] <weq> another command another error
[19:11] <weq> -5 now
[19:11] <weq> http://paste.ubuntu.com/p/8QGdtdnR2Z/
[19:11] <TJ-> That's -EIO
[19:12] <weq> hmm I was a bit quick -71 also dunno what makes more sense for you.
[19:12] <TJ-> weq: LoL "mt76x2u 1-5:1.0: ROM patch build: <!DOCTYPE html>" that's your fault !!! :D
[19:12] <TJ-> your wget command hasn't fetched a raw firmware file it has fetched an HTML document :D
[19:12] <weq> how? :P I just did wget after copying the file.
[19:13] <weq> lol I see it :P
[19:13] <TJ-> weq: presumably the link you gave wget doesn't fetch the raw file but an HTML overview
[19:13] <weq> yeah I'll fix that quick and modprobe -r and modprobe it once more
[19:13] <TJ-> You need the "plain" links
[19:14] <TJ-> Thank goodness it showed the file header in the log else we'd not have realised
[19:14] <weq> sorry, not used to git.kernel.org compared to github etc.
[19:15] <weq> http://paste.ubuntu.com/p/D8XgpYpkP2/ there
[19:15] <weq> modprobe -r && modprobe done
[19:16] <TJ-> Try removing and re-inserting the USB device itself
[19:16] <weq> ok
[19:16] <TJ-> it may be confused with everything we've done to it :D
[19:16] <weq> http://paste.ubuntu.com/p/yPbZn64QBP/ after unplug and insert
[19:17] <TJ-> wooo hooo, you have a device wlxc0ffd4b2f709
[19:17] <TJ-> try "iwconfig"
[19:18] <TJ-> you might want to "sudo apt install wireless-tools" for additional bits and pieces for diagnosis
[19:18] <TJ-> then you can do things like "sudo iwlist scan" to see if it can detect any APs
[19:20] <weq> gotta go afk here couple of mins so please stay with me when I return
[19:21] <TJ-> weq: I suspect all you need now is put that device name in the netplan config :)
[20:00] <weq> there done opening presentens today. lets give this ago.
[20:01] <TJ-> You're early!
[20:04] <weq> this familiy does it on the 23rd and the 24th cause they are such a big familiy at the 24th so it would take the entire night otherwise.
[20:04] <weq> so mostly today and some minors tomorrow.
[20:10] <weq> but no go it looks like TJ-...
[20:12] <weq> http://paste.ubuntu.com/p/w7kTkGsVgd/
[20:13] <weq> it can see the wifi still and heck of alot more info with iwlist scan now than before.
[20:14] <weq> but it won't pair it seems
[20:14] <TJ-> weq: OK, but you're making progress. So now we look at the wpa log
[20:14] <weq> networkctl says almost the same as before. setup = configuring
[20:14] <weq> indeed
[20:15] <weq> where is the wpa log?
[20:15] <TJ-> weq: something like " journalctl --u netplan-wpa@wlxc0ffd4b2f709.service "
[20:16] <weq> http://paste.ubuntu.com/p/qKQG8RDxWs/ such a great error
[20:17] <TJ-> weq: so maybe that starts the main wpa_supplicant.service? is there a log for that?
[20:18] <TJ-> weq: you could do "journalctl -n 50"
[20:18] <weq> yeah it is complaing about missing /sbin/wpa_supplicant
[20:18] <weq> so I guess I need that package also
[20:19] <TJ-> hahah yes well it would help :DD
[20:19] <weq> Dec 23 21:09:34 zulu systemd[4528]: netplan-wpa@wlxc0ffd4b2f709.service: Failed to execute command: No such file or directory
[20:19] <weq> Dec 23 21:09:34 zulu systemd[4528]: netplan-wpa@wlxc0ffd4b2f709.service: Failed at step EXEC spawning /sbin/wpa_supplicant: No such file or directory
[20:19] <TJ-> weq: at least its an easy fix
[20:19] <weq> crossing my fingers now.
[20:21] <weq> hmm that killed my ssh connection also, gotta check the host physically then. probably restarted networkd or something
[20:22] <weq> nah even worse. kernel panic..
[20:23] <TJ-> I've not seem many pain-free experiences with USB 802.1ac devices
[20:28] <weq> it is working.. it seems... going to unplug the ethernet and just try a reboot to confirm
[20:28] <weq> we are connected and have gotten an ip atleast.
[20:28] <TJ-> :)
[20:29] <weq> I'm at a loss for words how grateful I am for your patience to you all.
[20:29] <weq> No freakin way I'd be able to do this without for sure.
[20:30] <TJ-> weq: in these kind of hardware/driver cases I always recommend checking if the latest mainline kernel can help
[20:31] <weq> I have rather little experience with hardware and drivers in linux.
[20:32] <weq> hmm seems like we aren't there yet though :P
[20:33] <weq> we have IP but I'm unable to ping the gw.
[20:34] <TJ-> weq: can the gatweay ping the PC?
[20:34] <weq> in arp I can see the gw ip and mac.
[20:34] <TJ-> any firewall rules on either?
[20:35] <weq> not able to ping from the router, but my laptop can't ping the linux box
[20:35] <TJ-> If the PC has obtained an address using DHCP then you know they can talk
[20:35] <weq> yeah but not sure what is happening exactly here now.
[20:35] <weq> ifconfig doesn't report any rx or tx errors either.
[20:36] <TJ-> go back to the logs
[20:36] <TJ-> "journalctl -n 50" -- any recent clues?
[20:36] <weq> nope.
[20:37] <weq> resolved complains about using degraded feature set but I'm pinging ip's not any dns names.
[20:37] <TJ-> plug in the cable, install tcpdump, monitor the wifi link
[20:37] <TJ-> weq: that warning is pretty standard
[20:44] <weq> yeah figured as much
[20:52] <weq> hmmm any suggestion to parameter on tcpdump? tcpdump -i interface -vv -w tcpdump.pcap or something?
[20:53] <weq> with those params it does capture some data atleast
[20:53] <TJ-> weq: "sudo tcpdump -ni wlxc0ffd4b2f709" is enough
[20:54] <TJ-> weq: the purpose is to confirm there are packets received and sent
[20:55] <weq> there is content yeah, can see some traffic like the apple tv in the household etc.
[20:55] <weq> started a ping from the box to the gw as well
[20:55] <TJ-> weq: are those multicast packets then?
[20:56] <weq> 60 packages received by filter 0 dropped by kernel
[20:56] <weq> yeah apple devices are noisy that way
[20:56] <TJ-> weq: has the PC got a valid route? "ip route show"
[20:57] <weq> https://paste.ubuntu.com/p/ZbRG5M6Fwc/ the tcpdump
[20:58] <weq> yeah it has configure 192.168.1.1 as default for wifi device
[20:58] <weq> but a gw shouldn't be needed for lan?
[20:58] <TJ-> what is the IP address on the PC?
[20:58] <weq> 205
[20:59] <TJ-> OK, so I see successful ping echo/responses there
[20:59] <weq> wow yeah there are some
[20:59] <weq> there is huge package loss
[21:00] <weq> 98% package loss infact in the other tty I started a ping
[21:00] <weq> out of 261 transmitted only 5 were sucessfull.
[21:00] <weq> poor implementation of the driver then? cause the physical location and coverage should not be a issue
[21:01] <weq> I'm sitting with my win laptop at the same location without any issues nor loss.
[21:01] <TJ-> yeah; I read that there is an issue when the device scans but I thought that was effectvely solved by now
[21:02] <TJ-> I'm afraid you've managed to pick a device where the manufacturer doesn't care about Linux
[21:02] <weq> not a choice really :P
[21:03] <weq> father in-law's available choice of viable HW for a potentional wifi lab :P
[21:03] <weq> well then I'm going to call it for this particular nic tbh.
[21:04] <weq> so if he wants a wifi lab based solely on a ubuntu that nic is a no go.
[21:04] <TJ-> You've done everything you can with it. It's a problem for any Linux device
[21:04] <weq> for productivty I'd think I'd rather recommend him sticking to win10 on this machine and vbox for experimenting
[21:05] <weq> you've done everything :P I'm just a puppet with the idea in this.
[21:05] <TJ-> there are a few manufacturers known for no/terrible support for Linux
[21:05] <TJ-> I'd just use an 802.11n device, that works reliably
[21:05] <weq> the linksys device he has might have better success but 11mbps only :|
[21:05] <TJ-> 802.11an even
[21:05] <weq> might as well use sneakernet then.
[21:13] <weq> thanks again for all the help and assistance. I learned a ton atleast. Thanks TJ- cryptodan_mobile and lotuspsychje.
[23:37] <Checkmate> I've question do i can get https with green bar on a vps ip address ?
[23:38] <Checkmate> i always got message with Your connection is not private
[23:41] <mybalzitch> letsencrypt would probably be the simplest solution
[23:44] <cryptodan_mobile> Checkmate: you are using a self signed cert
[23:50] <Checkmate> mybalzitch yeah for domains not ips :v