I'm pretty sure there's a way to tell it to only do things if it's an ssh connection, but I don't remember the syntax for that. But if you think you'll never want .xkm files to exist, you could also add && rm ./*.xkm to the end of the command, which would remove all .xkm files in whatever directory you're in.
Huh, well I may have misread that wiki page, you may need to change the .xkb filename to something different, but if not, you say this happens in every directory you enter, or any one you ssh directory into? Because if it's reloading that bit every time you do a cd, that's pretty weird behavior and points to it being more related to something else about your zshenv file.
This is done because even if you hash the password like wpa_supplicant, if someone gets ahold of that hash they can still access your network the same way your computer does, so unless it's a common password used for other things it doesn't add any security.
If systemd-analyze is showing the longer boot time as well then it's probably being caused by loading extra drivers for the keyboard, though no idea why that would take 4 seconds. And while I know you're likely just doing this for the challenge/for fun, you're likely gonna be chasing your tail trying to find a solution. If it's actually a bug then I doubt anyone would bother tackling it, since most people aren't booting their computer so often they'd care about or even notice an extra 4 seconds.
Unplug everything from the motherboard except the hard drive you're trying to install windows on, if you're still having problems then you'll likely need to figure out what driver is missing or wait for windows 10 to support your b550 out of the box.
I really have to agree with this post, you're getting "blob data" as a substitute for lines with unprintable characters, so you pretty much have to change the script if you want to use it with systemd.
The cable from router one is connected to the WAN port of router two.
Just so you know, the very first step of the instructions you originally followed:
Don't connect the WAN on Router 2 to anything. Connect a LAN port on Router 1, and Computers C and D, as peers, to a LAN port on Router 2.
That said, those instructions are incredibly generic, and the new ones you found are specific to tomato firmware. I suspect router 2 isn't forwarding the hostnames of the computers connected to it, or at least not the SMB broadcasts, which is likely something specific to router 2's firmware.
It sounds like somehow it screwed with ubuntu's secureboot signature. You could try entering set check_signatures=no before the other commands you've tried, or turn off secureboot in your bios/uefi settings.
Edit: I just saw you already mentioned you can't get back into the uefi settings, so it's definitely secureboot. Hopefully it let's you disable checking signatures, but that would also make secureboot useless, so this may be a PITA to fix.
If ALL of your dns requests are going to 1.1.1.1, then yeah, it won't resolve your local hostnames, as you're never hitting your router's DNS server. Can you resolve local hostnames when you turn off forwarding to 1.1.1.1? If so, try IP forwarding at the router level so your requests go through it first.
So I've definitely seen windows format a drive in such a way that it wasn't visible in fdisk - I couldn't install to the drive until I formatted it in windows. See if you can't find a windows machine to plug it into just to check, though that sudden failure while already navigating around it mounted does sound like the drive crapping out.
To be honest, you're pretty close to there already in terms of scripting. You could always use Python, if you want something a bit more human readable.
Probably your pc speaker:
https://wiki.archlinux.org/index.php/PC_speaker
I'm pretty sure there's a way to tell it to only do things if it's an ssh connection, but I don't remember the syntax for that. But if you think you'll never want .xkm files to exist, you could also add
&& rm ./*.xkmto the end of the command, which would remove all .xkm files in whatever directory you're in.Huh, well I may have misread that wiki page, you may need to change the .xkb filename to something different, but if not, you say this happens in every directory you enter, or any one you ssh directory into? Because if it's reloading that bit every time you do a
cd, that's pretty weird behavior and points to it being more related to something else about your zshenv file.Rename one of those .xkm files to .Xkeymap and load that instead.
https://wiki.archlinux.org/index.php/X_keyboard_extension#Using_keymap
This is done because even if you hash the password like wpa_supplicant, if someone gets ahold of that hash they can still access your network the same way your computer does, so unless it's a common password used for other things it doesn't add any security.
The sudo vulnerability was fixed the same day it was announced by the sudo group.
Btw, had to look up the date, so thanks for giving me an excuse to behold the absolutely amazing sudo mascot again:
https://www.sudo.ws/alerts/unescape_overflow.html
If systemd-analyze is showing the longer boot time as well then it's probably being caused by loading extra drivers for the keyboard, though no idea why that would take 4 seconds. And while I know you're likely just doing this for the challenge/for fun, you're likely gonna be chasing your tail trying to find a solution. If it's actually a bug then I doubt anyone would bother tackling it, since most people aren't booting their computer so often they'd care about or even notice an extra 4 seconds.
Unplug everything from the motherboard except the hard drive you're trying to install windows on, if you're still having problems then you'll likely need to figure out what driver is missing or wait for windows 10 to support your b550 out of the box.
If your root partition is already unmounted by that point, the errors won't be saved. Phone video is probably the best option.
I really have to agree with this post, you're getting "blob data" as a substitute for lines with unprintable characters, so you pretty much have to change the script if you want to use it with systemd.
Just so you know, the very first step of the instructions you originally followed:
That said, those instructions are incredibly generic, and the new ones you found are specific to tomato firmware. I suspect router 2 isn't forwarding the hostnames of the computers connected to it, or at least not the SMB broadcasts, which is likely something specific to router 2's firmware.
Pretty sure you need to edit some options in smb.conf
It sounds like somehow it screwed with ubuntu's secureboot signature. You could try entering
set check_signatures=nobefore the other commands you've tried, or turn off secureboot in your bios/uefi settings.Edit: I just saw you already mentioned you can't get back into the uefi settings, so it's definitely secureboot. Hopefully it let's you disable checking signatures, but that would also make secureboot useless, so this may be a PITA to fix.
Those expansions don't work in vi, just type actual spaces and tabs
Have you tried xinput?
https://wiki.archlinux.org/index.php/Mouse_acceleration#Using_xinput
If ALL of your dns requests are going to
1.1.1.1, then yeah, it won't resolve your local hostnames, as you're never hitting your router's DNS server. Can you resolve local hostnames when you turn off forwarding to 1.1.1.1? If so, try IP forwarding at the router level so your requests go through it first.So that -f doesn't modify the behavior of -l, which was previously necessary to get the behavior you're describing.
BTW, this change happened over 4 years ago: https://gitlab.com/procps-ng/procps/commit/f12277c74d591245767d77badb6bb6af91335656
So I've definitely seen windows format a drive in such a way that it wasn't visible in fdisk - I couldn't install to the drive until I formatted it in windows. See if you can't find a windows machine to plug it into just to check, though that sudden failure while already navigating around it mounted does sound like the drive crapping out.
To be honest, you're pretty close to there already in terms of scripting. You could always use Python, if you want something a bit more human readable.
System -> Preferences -> Hardware -> Power Management
You either need an unencrypted /boot partition, or need to follow this page.
Do you have full disk encryption? If so, looks like it isn't decrypting your drive.
http://suckless.org/hacking/
It looks like Ubuntu uses the ~/.fonts/ directory, or maybe even just ~/.fonts.conf. You may also need to run
sudo fc-cache -f -v.Never realized that, only ever messed with .bash_profile for starting X, and I've not done much server stuff. Good to know, thanks.