Test serial port application
by Robert Moskowitz
I want to test a program that is supposedly talking serial to
/dev/tty[]. e.g. ttyUSB0
I was thinking that I could run some program in some terminal window
that would set up a serial /dev/tty and the program could attach to that
port and this magic program will capture the flow.
The particular program is MAVproxy, and I am working on how different
commands get routed through serial to the ArduPilot or ArduRemoteID.
I was looking into if screen could act as a server for a port, but I am
not finding that.
What would work for this?
thanks
4 months, 2 weeks
Function Key becomes permanently pressed after a couple of minutes
after boot (temporary fix: reboot)
by Lamy Geier
# System
```
========================== Kernel ===============================
Installed kernel: 6.6.7-200.fc39.x86_64
========================== Operating System =====================
OS: Fedora Linux 39 (Workstation Edition) x86_64
Host: Laptop (12th Gen Intel Core) A4
Kernel: 6.6.7-200.fc39.x86_64
Uptime: 2 hours, 27 mins
Packages: 7193 (rpm), 202 (brew), 45 (flatpak)
Shell: bash 5.2.21
Resolution: 2256x1504
DE: GNOME 45.2
WM: Mutter
WM Theme: Adwaita
Theme: NumixSolarizedDarkOrange [GTK2/3]
Icons: Solarized-FLAT-Orange [GTK2/3]
Terminal: vscode
CPU: 12th Gen Intel i5-1240P (16) @ 4.400GHz
GPU: Intel Alder Lake-P GT2 [Iris Xe Graphics]
Memory: 8191MiB / 31802MiB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Display Server: wayland
Systemd Version: systemd 254 (254.7-1.fc39)
~~~~~~~~~~~~~~~~~~~~~~~~~~~Machine~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Machine:
Type: Laptop System: Framework product: Laptop (12th Gen Intel Core)
v: A4
serial: FRANDACPA42382002Q
Mobo: Framework model: FRANMACP04 v: A4 serial: FRANMACPA423620037
UEFI: INSYDE v: 03.06 date: 11/10/2022
~~~~~~~~~~~~~~~~~~~~~~~~~~~CPU~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CPU:
Info: 12-core (4-mt/8-st) model: 12th Gen Intel Core i5-1240P bits: 64
type: MST AMCP cache: L2: 9 MiB
Speed (MHz): avg: 697 min/max: 400/4400:3300 cores: 1: 808 2: 848 3: 860
4: 900 5: 698 6: 1042 7: 942 8: 400 9: 400 10: 400 11: 896 12: 400
13: 747
14: 400 15: 1020 16: 400
~~~~~~~~~~~~~~~~~~~~~~~~~~~RAM~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Memory:
System RAM: total: 32 GiB available: 31.06 GiB used: 8.48 GiB (27.3%)
igpu: 60 MiB
Array-1: capacity: 64 GiB slots: 2 modules: 2 EC: None
Device-1: Controller0-ChannelA-DIMM0 type: DDR4 size: 16 GiB
speed: 3200 MT/s
Device-2: Controller1-ChannelA-DIMM0 type: DDR4 size: 16 GiB
speed: 3200 MT/s
~~~~~~~~~~~~~~~~~~~~~~~~~~~Storage~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drives:
Local Storage: total: 1.82 TiB used: 677.67 GiB (36.4%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 990 PRO 2TB size: 1.82 TiB
Message: No optical or floppy data found.
~~~~~~~~~~~~~~~~~~~~~~~~~~~LVM~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Logical:
Device-1: VG: vgubuntu type: LVM2 size: 1.82 TiB free: 0 KiB
LV-1: Backup type: linear size: 100 GiB Components: p-1: nvme0n1p5
LV-2: Data type: linear size: 100 GiB Components: p-1: nvme0n1p5
LV-3: Documents type: linear size: 250 GiB Components: p-1: nvme0n1p5
LV-4: FedoraHome type: linear size: 18 GiB Components: p-1: nvme0n1p5
LV-5: FedoraRoot type: linear size: 100 GiB Components: p-1: nvme0n1p5
LV-6: FedoraSwap type: linear size: 32 GiB Components: p-1: nvme0n1p5
LV-7: Harddisk type: linear size: 660.64 GiB Components: p-1: nvme0n1p5
LV-8: Media type: linear size: 500 GiB Components: p-1: nvme0n1p5
LV-9: UbuntuHome type: linear size: 18 GiB Components: p-1: nvme0n1p5
LV-10: UbuntuRoot type: linear size: 50 GiB Components: p-1: nvme0n1p5
LV-11: UbuntuSwap type: linear size: 32 GiB Components: p-1: nvme0n1p5
~~~~~~~~~~~~~~~~~~~~~~~~~~~Graphics~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Graphics:
Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] driver: i915 v:
kernel
Device-2: Realtek [] driver: uvcvideo type: USB
Display: server: X.Org v: 23.2.3 with: Xwayland v: 23.2.3 driver: X:
loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915
resolution: 2256x1504~60Hz
API: OpenGL v: 4.6 vendor: intel mesa v: 23.3.1 renderer: Mesa Intel
Graphics (ADL GT2)
API: EGL Message: EGL data requires eglinfo. Check --recommends.
~~~~~~~~~~~~~~~~~~~~~~~~~~~Audio~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Audio:
Device-1: Intel Alder Lake PCH-P High Definition Audio driver:
snd_hda_intel
API: ALSA v: k6.6.7-200.fc39.x86_64 status: kernel-api
~~~~~~~~~~~~~~~~~~~~~~~~~~~Battery~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Battery:
ID-1: BAT1 charge: 31.0 Wh (60.2%) condition: 51.5/55.0 Wh (93.5%)
volts: 15.8 min: 15.4
~~~~~~~~~~~~~~~~~~~~~~~~~~~Bluetooth~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bluetooth:
Device-1: Intel AX210 Bluetooth driver: btusb type: USB
Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: 8C:F8:C5:ED:74:4C
bt-v: 5.3
~~~~~~~~~~~~~~~~~~~~~~~~~~~Network~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Network:
Device-1: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi
IF: wlp166s0 state: up mac: 1a:35:8a:7f:96:29
```
![This is how my Keyboard looks
like](upload://mnjU2Wzk9miBSM2arM6RMIENbqU.jpeg)
- The top bar of my inbuilt laptop keyboard has media keys and some
other functions. The media keys work as F1, F2, F3...,F12, when I press
them along with the `fn` key.
---
- I was on `Fedora Linux (6.5.10-300.fc39.x86_64) 39 (Workstation
Edition)` from past few months. From last week the function key on my
laptop `fn` becomes permanently pressed randomly after a couple of
minutes of reboot . That means I am unable to play media keys as when I
press those without pressing `fn` F1,...,F12 keys get activated. This
fixes temporarily for few minutes after reboot. But again its the same
issue.
- Today I updated to kernel: `6.6.7-200.fc39.x86_64` and every software
on my Fedora 39, but I am still facing the issue.
### What should I do?
--
Thanks and Regards
Lamy
4 months, 2 weeks
Re: Location for python plugin to allow letsencrypt(certbot)
automated access to GoDaddy DNS
by Barry Scott
> On 21 Dec 2023, at 19:03, John W. Himpel <john(a)jlhimpel.net> wrote:
>
>
>
> There is a Let's Encrypt plugin for digitalocean, but non for GoDaddy.
> Thus the need for a custom plugin.
I think this is so that you can use the DNS method of proving you control the domain.
You can also place a special file that letencrypt makes for you on the web site and
use that to prove control of the domain.
With that method you do not need to a GoDaddy specific module.
>
> I also need certificates for use by things other than web servers.
> Since I use NGINX, I can use that plugin for web servers, but that
> doesn't help for email, ssl certificates for Wildfly, email, etc. So I
> need a generalized way to obtain certificates and update GoDaddy dns
> servers.
Once the certs have been created you can write your own script to install them
into the right places and get services to pick up the new certs. Restart service or
use a control command etc as appropriate.
Barry
4 months, 2 weeks
rsync fails when transferring multiple files
by Alex
Hi, I've been using rsync on fedora over ssh to sync directories for
decades, but suddenly having a problem with transferring multiple files at
a time to one specific host using --files-from. Both sides are fedora38
with all updates applied. I can't think of what might have changed to have
caused this. Using rsync to transfer a single file to this problematic host
works successfully. It appears to be related to the number of files in the
--files-from filelist. More than nine and it stalls; less than nine and it
finishes successfully. I'm using the same version of rsync on both sides.
Size of the file doesn't matter.
(Server) Protocol versions: remote=31, negotiated=31
(Client) Protocol versions: remote=31, negotiated=31
When running the following command, it appears to collect the list of files
to be transferred, successfully makes the connection with the remote
server, but then just stalls. Using strace on the remote side shows rsync
appears to be waiting for data.
rsync -avvvv --files-from=/etc/mail/filelist.txt -e 'ssh -i
/root/keys/sync-key-v4' /etc/mail/tmp/ polaris:/var/tmp/one/
sync-key-v4 is a passwordless ed25519 key, but I've tried a handful of
other ed25519 keys.
Could it be related to packet size or some kind of network disparity? It's
not related to the size of the files, as I've tried large and small and it
doesn't matter - if the number of files exceeds 9, it fails.
There is no error - it just hangs indefinitely until some timeout period.
This is what it looks like on the remote side:
$ ps ax|grep rsync
324075 ? Ss 0:00 rsync --server -vvvvlogDtpRe.LsfxCIvu .
/var/tmp/one/
324094 ? S 0:00 rsync --server -vvvvlogDtpRe.LsfxCIvu .
/var/tmp/one/
On the local side, with a few -vvvv added to rsync, I see this:
recv_file_list done
get_local_name count=9 /var/tmp/one/
generator starting pid=324075
delta-transmission enabled
recv_generator(config1.cf,0)
config1.cf is uptodate
send_files(0, config1.cf)
then it just stalls until it eventually times out. However, if I remove any
one of the nine files from the filelist, it completes normally.
It actually also exhibits the same problem without a filelist at all - as
long as I'm transferring multiple files, it fails. I suppose if I were
syncing a directory with less than nine files, it might succeed, but local
directory to any remote directory on this one server fails.
This also isn't a disk space or inode problem or corrupt filesystem problem
- the same command works from a different host to this one problematic host
without a problem. Destination directory also doesn't matter.
Thanks,
Alex
4 months, 2 weeks
How can you get remote access to laptops behind a NAT/firewall?
by Thomas Cameron
In my company, we're rolling out Linux laptops to my team. We're 100%
remote workers, no one even lives in the same state as the headquarters.
If my teammates are logged into the VPN, it's pretty easy to administer
a team member's laptop - I just ask the user for the IP address and ssh
in as the service account (with keys, not passwords), or run an Ansible
playbook against the machine.
For the Windows users (not on my team), our helpdesk uses Quick Assist,
and IT can remote desktop into anyone who's logged in to the Azure
Active Directory domain. Even if the person is behind a cable modem
doing NAT.
So my question is, is there any sort of software which is similar to
Quick Assist we can install on our Linux laptops so that the Linux team
sysadmins can get access to laptops? I've seen folks on this list talk
about TeamViewer and AnyDesk, but both of those seem to be paid
solutions. Is there any sort of F/OSS solution? I am totally OK with
hosting a cloud instance as an authentication server or something like
that. I also heard something about Chrome Remote Desktop. Apparently
Google does session brokering, so that may be interesting, although
we're not a Google shop, we're a Microsoft shop and I'm bringing Linux
in. I'd much prefer a F/OSS solution, if anyone has any advice.
Thanks for any advice!
Thomas
4 months, 2 weeks
Location for python plugin to allow letsencrypt(certbot) automated
access to GoDaddy DNS
by John W. Himpel
All,
I am a complete stranger to python.
I am attempting to automate the certificate renewal process for several
certificates obtained from Letsencrypt via certbot. My DNS is hosted
at GoDaddy.com.
I found several projects on github that provide authenticators for
GoDaddy that reportedly work with the "certbot renew --manual ..."
command.
What I don't know is where in the filesystem I should put the .py files
so that certbot will find them and I don't have to reinstall everytime
there's a python version upgrade.
The instructions in the documentation for the add-on use a venv and
pip. Are those instructions compatible with fedora packages?
Thanks.
4 months, 2 weeks
Machine locks on reboot from suspend
by Matthew Saltzman
I have a Dell Precision 5820 Xeon with nVidia GeForce GT 1030 graphics
for video and a Quadro 4000 that I was playing with for GPU algorithms.
I have a fresh (fully updated) install of Fedora 39 with the nouveau
driver.
When I resume from suspend, no video shows. I can still ssh to the
machine, though. If I issue 'sudo shutdown -r now' from an ssh session,
the machine freezes. I can still ping, but I can't ssh (connection
refused errors). The only way I can regain control of the machine is to
power down by holding down the button on the front of the machine and
start from cold.
The proprietary nVidia driver doesn't exhibit the same problem.
In addition to the above, this machine has a problem where on boot, it
doesn't show the menu with kernels to select from. It displays "booting
in insecure mode", then goes directly to booting with the latest
kernel. I haven't changed any grub options since the install and I
don't have this problem on any other machine I use. I can get the menu
with ESC, but I can't figure out why it doesn't display by default. By
now, I do have two kernels installed.
Any thoughts on a solution? For the first problem, I'm not sure what
component to report on in Bugzilla.
Thanks for any help.
--
Matthew Saltzman
School of Mathematical and Statistical Sciences
Clemson University
mjs AT clemson DOT edu
4 months, 2 weeks
Gnome's terminal/console fonts ?
by lejeczek
Hi guys.
My Gnome's default terminal does only select from _mono_
type of fonts & I remember it could choose any font.
Alternative solutions, such a _terminator_ do allow to
select any font.
In Gnome's terminal 'font scaling' also seems "broken" -
certainly on my Fedora - I select "Liberation Mono" and I
start size at 6 and keep increasing by small fraction and
the font does not seem changing until suddenly, at some
given size it "jumps" the size & ... shape too.
I do not suppose it's my environment - I've been upgrading
my Fedora since... forever, as opposed to "clean" install -
and I think it's rather "broken" terminal, but..
I wanted to consult other Fedorians to be sure.
many thanks, L.
4 months, 2 weeks
Is this possible?: Convert /dev/sdd[1-5] Ext4 => /dev/sdd [btrfs -
whole disk] - without losing data in sdd5 (old /home)
by Philip Rhoades
People,
I have been using Fedora since Core 1 and still have the old HDs and I
have kept using ext[234] FSs just for simplicity / consistency up to the
current time (F39) - but now I want to experiment with btrfs and I was
thinking I could go through the exercise of converting an old SATA boot
drive where I am still using /dev/sdd5 (the old /home partition) as one
of a few backup partitions / drives for current live data from my
workstation and some small servers.
At first I was thinking I could delete ext4 parts 1-4, replace them with
a new btrfs partition and then maybe somehow use btrfs-convert to
integrate the remaining ext4 part 5 into the new part 1? . . but what I
really want to do is create a new btrfs using the _whole_ of the disk -
but somehow avoid having to spend a LONG time copying back about 4TB (to
the 8TB drive) - the only way I could see that possibility working is to
somehow do a recovery on the rest of the disk after the newly-created
btrfs only takes up part of the beginning of the disk but leaves the old
ext4 dirs and files recoverable somehow from near the beginning of the
disk to just past halfway on the disk . .
This is just an interesting idea for experimenting with - it is not the
end of the world if it is not possible or if it might be possible but
difficult and I crash the drive in the experiment . .
Any feedback / comments from HD gurus appreciated!
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
4 months, 2 weeks
Mouse not working on one USB port that still supports stick
attachment
by Robert Moskowitz
Been having a problem here for a couple days now that I am not figuring
out...
A couple days ago, my mouse stopped working on the only right side USB
port. It is a traveler Verbatim optical mouse; nothing special.
It works in either of the left ports, but it is a pain to wrap the
retracting cord around the notebook.
The port is not "dead". I can attach a USB drive stick or my Samsung
phone just fine. But no mouse.
I am not interested in rebooting to see if that fixes things. At least
until I get back home in a couple days.
How might I trouble shoot this and maybe fix it without a reboot (if
that will even fix the problem)?
thanks
4 months, 3 weeks