What termios settings cause endpoint to get garbled serial?

I have two endpoints. One is Windows Subsystem for Linux (Ubuntu) and the other is a small AR9331 router (running OpenWRT and has 16550 chip). They are connected over a USB-to-Serial connection.

Sending from AR9331 to WSL works as expected.
enter image description here

Sending from WSL to AR9331 does not work as expected, it appears garbled or out of order.
enter image description here

AR9331 TTY settings:

enter image description here

WSL TTY settings:
enter image description here

I tried messing with canonical mode, but it did not appear to change anything.

Go to Source
Author: user_ABCD

Getting two different results when ‘cat’ing a file, and ‘cat’ing a file into a variable in zsh?

The file in question is /sys/class/power_supply/BAT0/status.

When I cat it, I receive Full. But when I do status="$(cat /sys/class/power_supply/BAT0/status)" and then echo status, I receive 1 when I want it to output Full. I’m sure I’m just being an idiot and missing something obvious. Any help is appreciated.

Go to Source
Author: LTWood

ls -h command in mac osx Catalina 10.15.2 not working

I’m a newbie and this is probably a very newbie question be forewarned. When using terminal in zsh mode, entering ls -h does not output the expected result. Instead I receive an output as if I just entered ls without the -h. What could be the cause of this? Does ls -h not function the same in zsh mode?

Go to Source
Author: zaddy

Package apache2 has no installation candidate (Kali Linux)

I’ve been trying for the past few days to install Apache2 on Kali Linux. No matter what I’ve tried, when I do sudo apt install apache2 it says that there’s no installation candidate for the package. I’m fairly new to Linux. Please help.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package apache2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'apache2' has no installation candidate

Go to Source
Author: bl4d3