Looking to get connection between 2 local networks?
by Michael D. Setzer II
Probable a simple solution, but its been a while since I done this type of stuff.
Have a cable modem that has 4 ports but using 2.
First port gets public IP xxx.xxx.233.11 with private network 192.168.16.x
Second port gets public IP xxx.xxx.234.251 with private network 192.168.24.x
ip route
default via 192.168.16.1 dev enp8s0 proto dhcp metric 100
default via 192.168.24.1 dev wlp7s0 proto dhcp metric 600
192.168.16.0/24 dev enp8s0 proto kernel scope link src 192.168.16.101 metric 100
192.168.24.0/24 dev wlp7s0 proto kernel scope link src 192.168.24.13 metric 600
Years ago, had setup a Redhat 9 machine that had 9 ethernet interfaces.
1 connected to college backbone, and 8 that connect to 8 separate classrooms with each having its
own private network. Used IPtables and had it all able to communicate with any machine in any
classroom, and all machines used a squid server running on same machine getting a 40% cache hit
ratio. So know it can be done.
In searching found pages that say shouldn't have two default routes, but that it what it shows on
systems connect to both networks by default. Many things work, but others don't.
Some things mentioned
echo 1 >> /proc/sys/net/ipv4/ip_forward
Which I recall needing before, but didn't seem to solve issue?
Ping works between networks, but traceroute doesn't.
Wondering if there is a simple solution.
Thanks.
+------------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor (Retired)
mailto:mikes@guam.net
mailto:msetzerii@gmail.com
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+
1 year, 5 months
How do I rebuild Grub/Boot/initramfs from a Live USB?
by Jake D
Hello all.
I need some help.
Firstly: Please forgive the formatting - I'm new to this medium and not sure what the accepted conventions are, the HyperKitty interface is ...very basic. Also please forgive the length, I just don't know how to make it shorter without losing potentially relevant detail. If I've asked this in the wrong place, by all means punt my backside in the direction of the right place.
I seem to have got myself in a bit of a mess and I’ve having trouble finding documentation that I can apply directly to my case . This is my first time on Linux so I’m not familiar with much of the terminology or background of these systems.
**Background**
I have an internal drive that used to successfully dual boot windows and a LUKS-encrypted F36 installation with BTRFS.
I also had some spare unpartitioned space, which I used to fully install some other linux distros (including another F36 installation) to troubleshoot other minor problems (a tri-boot, so to speak)
**What went wrong**
The new distros installed fine, but I discovered afterwards I could no longer find/boot into my original LUKS F36 installation. In my igornance, I tried deleting clearing the new installation partitions, and now, if I select the Fedora option thru my BIOS boot menu, I just get to a 'grub> ’ prompt.
I’ve tried a few commands there to boot manually but nothing worked and it wouldn’t even decrypt the root partition, worse still, somehow this process accidentally wiped the ORIGINAL LUKS F36 /boot partition too. I have no idea how.
**What I have now**
Partitioning follows:
nvme0n1p1: EFI partition (both win and DF36)
nvme0n1p2: MS Reserved
nvme0n1p3: Win10
nvme0n1p5: Original Fedora /boot (accidentally wiped)
nvme0n1p6: LUKS volume
nvme0n1p7: Former ‘third OS’ boot partition (wiped)
nvme0n1p8: Former ‘third OS’ root partition (also wiped)
nvme0n1p4: Win Recovery
**What I am trying to do**
Unbork everything, somehow?
I tried using these instructions in the official Fedora Docs, but they seem to be …wrong? Out of date? They didn’t work, I suspect due to LUKS/BTRFS. [ https://docs.fedoraproject.org/en-US/Fedora/23/html/Multiboot_Guide/commo...]
The I found these...other Fedora Docs? Which seemed more up to date and looked like they had relevant bits, bit still seem directly applicable and didn't work. [https://docs.fedoraproject.org/en-US/quick-docs/bootloading-with-grub2/#r...]
The only success I’ve had is with this guide: https://fedoramagazine.org/os-chroot-101-covering-btrfs-subvolumes/ .
I’ve managed to chroot (a very dumb word) thru a LiveUSB session, with the following commands:
>>cryptsetup luksOpen /dev/nvme0n1p6 fedora_crypt
>>mount /dev/mapper/fedora_crypt /mnt/ -t btrfs -o subvol=root
>>mount /dev/mapper/fedora_crypt /mnt/home -t btrfs -o subvol=home
>>mount /dev/nvme0n1p5 /mnt/boot
>>mkdir /mnt/boot/efi
>>mount /dev/nvme0n1p1 /mnt/boot/efi
>>mount --bind /dev /mnt/dev
>>mount -t proc /proc /mnt/proc
>>mount -t sysfs /sys /mnt/sys
>>mount -t tmpfs tmpfs /mnt/run
>>mkdir -p /mnt/run/systemd/resolve/
>>nano /mnt/run/systemd/resolve/stub-resolv.conf (enter 'nameserver 1.1.1.1', save)
>>chroot /mnt
I can ping google, and browse the original home folder with ls, so it looks like ‘im in’ the original installation via chroot (which is still a dumb word)
What the problems are
From there, I go back to the Fedora Docs and run
>>dnf reinstall grub2-efi grub2-efi-modules shim
That seems to work? Downloads and seems to install without any errors.
The next step though;
>>grub2-mkconfig -o /boot/grub2/grub.cfg
fails with the following:
>> /usr/sbin/grub2-probe: error: failed to get canonical path of ‘/dev/mapper/fedora_crypt’
I have no idea what that means.
On the side, I also sees that despite the grub reinstall, theres no vmlinuz or initramfs kernel files in the reconstructed /boot partition, so I tried running
>>dracut --regenerate-all
which results in
>>dracut: Can’t write to /boot/efi/[long-ass id code string]/[kernel version]: Directory /boot/efi/[long-ass id code string]/[kernel version] does not exist or is not accessible.
This is true - that folder isn’t in /boot/efi. But I dont remember ever seeing it there, and just to check I did a fresh test install on another drive and theres nothing like that there either.
So now I’m lost
What I’m looking for
I’m fairly sure the error messages I’m seeing are a result of oversights from my cobbled-together method and gneral lack of understanding. So if anyone knows what I missed and how/why, that’d help …but honestly I still really don’t know what’s going on and suspect I’m probably going to run into another problem just as quick
Really, I’m after some sort of clear, up to date walk-through with entry-level language/detail, on how exactly to rebuild from scratch the EFI/boot partitions for F36 with a LUKS encrypted root, using BTRFS. I know the installation itself is fine and should be recoverable, I just dont know how all these different bits fit togther, and none of the guides out there seem to explain/unify the different bits into a cohesive procedure for the unfamiliar.
Thanks very much.
1 year, 5 months
Fedora 36: suspend failed with "PM: Some devices failed to suspend,
or early wake event detected"
by Dario Lesca
When I try suspend with "systemctl suspend" my notebook Fedora 36
sometime do not suspend with "PM: Some devices failed to suspend, or
early wake event detected" error.
Someone can help me to resolve this issue?
Many thanks
Dario
#----------------------------
set 14 00:41:26 dodo.home.solinos.it kernel: PM: suspend entry (s2idle)
set 14 00:41:26 dodo.home.solinos.it kernel: Filesystems sync: 0.006 seconds
set 14 00:41:28 dodo.home.solinos.it kernel: Freezing user space processes ... (elapsed 0.005 seconds) done.
set 14 00:41:28 dodo.home.solinos.it kernel: OOM killer disabled.
set 14 00:41:28 dodo.home.solinos.it kernel: Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
set 14 00:41:28 dodo.home.solinos.it kernel: printk: Suspending console(s) (use no_console_suspend to debug)
set 14 00:41:28 dodo.home.solinos.it kernel: xhci_hcd 0000:00:14.0: PM: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
set 14 00:41:28 dodo.home.solinos.it kernel: xhci_hcd 0000:00:14.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -16
set 14 00:41:28 dodo.home.solinos.it kernel: xhci_hcd 0000:00:14.0: PM: failed to suspend async: error -16
set 14 00:41:28 dodo.home.solinos.it kernel: PM: Some devices failed to suspend, or early wake event detected
set 14 00:41:28 dodo.home.solinos.it kernel: nouveau 0000:01:00.0: Refused to change power state from D3hot to D0
set 14 00:41:28 dodo.home.solinos.it kernel: nouveau 0000:01:00.0: Refused to change power state from D3hot to D0
set 14 00:41:28 dodo.home.solinos.it kernel: nouveau 0000:01:00.0: Refused to change power state from D3hot to D0
set 14 00:41:28 dodo.home.solinos.it kernel: nouveau 0000:01:00.0: fb: VPR locked, but no scrubber binary!
set 14 00:41:28 dodo.home.solinos.it kernel: usb 1-3: reset high-speed USB device number 4 using xhci_hcd
set 14 00:41:28 dodo.home.solinos.it kernel: ata1: SATA link down (SStatus 4 SControl 300)
set 14 00:41:28 dodo.home.solinos.it kernel: usb 1-3.1: reset low-speed USB device number 6 using xhci_hcd
set 14 00:41:28 dodo.home.solinos.it kernel: usb 1-3.2: reset high-speed USB device number 8 using xhci_hcd
set 14 00:41:28 dodo.home.solinos.it kernel: PM: resume devices took 1.418 seconds
set 14 00:41:28 dodo.home.solinos.it kernel: OOM killer enabled.
set 14 00:41:28 dodo.home.solinos.it kernel: Restarting tasks ... done.
set 14 00:41:28 dodo.home.solinos.it gvfsd[219783]: PTP: reading event an error 0x05 occurred
set 14 00:41:28 dodo.home.solinos.it kernel: thermal thermal_zone9: failed to read out thermal zone (-61)
set 14 00:41:29 dodo.home.solinos.it bluetoothd[1739]: Controller resume with wake event 0x0
set 14 00:41:29 dodo.home.solinos.it kernel: PM: suspend exit
set 14 00:41:29 dodo.home.solinos.it kernel: PM: suspend entry (s2idle)
set 14 00:41:29 dodo.home.solinos.it kernel: Filesystems sync: 0.002 seconds
set 14 00:41:31 dodo.home.solinos.it kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
set 14 00:41:31 dodo.home.solinos.it kernel: OOM killer disabled.
set 14 00:41:31 dodo.home.solinos.it kernel: Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
set 14 00:41:31 dodo.home.solinos.it kernel: printk: Suspending console(s) (use no_console_suspend to debug)
set 14 00:41:31 dodo.home.solinos.it kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
set 14 00:41:31 dodo.home.solinos.it kernel: xhci_hcd 0000:00:14.0: PM: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
set 14 00:41:31 dodo.home.solinos.it kernel: xhci_hcd 0000:00:14.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -16
set 14 00:41:31 dodo.home.solinos.it kernel: xhci_hcd 0000:00:14.0: PM: failed to suspend async: error -16
set 14 00:41:31 dodo.home.solinos.it kernel: PM: Some devices failed to suspend, or early wake event detected
set 14 00:41:31 dodo.home.solinos.it kernel: nouveau 0000:01:00.0: Refused to change power state from D3hot to D0
set 14 00:41:31 dodo.home.solinos.it kernel: nouveau 0000:01:00.0: Refused to change power state from D3hot to D0
set 14 00:41:31 dodo.home.solinos.it kernel: nouveau 0000:01:00.0: Refused to change power state from D3hot to D0
set 14 00:41:31 dodo.home.solinos.it kernel: nouveau 0000:01:00.0: fb: VPR locked, but no scrubber binary!
set 14 00:41:31 dodo.home.solinos.it kernel: usb 1-3: reset high-speed USB device number 4 using xhci_hcd
set 14 00:41:31 dodo.home.solinos.it kernel: ata1: SATA link down (SStatus 4 SControl 300)
set 14 00:41:31 dodo.home.solinos.it kernel: usb 1-3.1: reset low-speed USB device number 6 using xhci_hcd
set 14 00:41:31 dodo.home.solinos.it kernel: usb 1-3.2: reset high-speed USB device number 8 using xhci_hcd
set 14 00:41:31 dodo.home.solinos.it kernel: PM: resume devices took 1.418 seconds
set 14 00:41:31 dodo.home.solinos.it kernel: OOM killer enabled.
set 14 00:41:31 dodo.home.solinos.it kernel: Restarting tasks ...
set 14 00:41:31 dodo.home.solinos.it kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
set 14 00:41:31 dodo.home.solinos.it kernel: done.
set 14 00:41:31 dodo.home.solinos.it gvfsd[219783]: PTP: reading event an error 0x05 occurred
set 14 00:41:31 dodo.home.solinos.it kernel: thermal thermal_zone9: failed to read out thermal zone (-61)
set 14 00:41:31 dodo.home.solinos.it systemd-sleep[225719]: Failed to put system to sleep. System resumed again: Device or resource busy
set 14 00:41:31 dodo.home.solinos.it kernel: PM: suspend exit
set 14 00:41:31 dodo.home.solinos.it bluetoothd[1739]: Controller resume with wake event 0x0
set 14 00:41:31 dodo.home.solinos.it systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE
set 14 00:41:31 dodo.home.solinos.it systemd[1]: systemd-suspend.service: Failed with result 'exit-code'.
set 14 00:41:31 dodo.home.solinos.it systemd[1]: Failed to start systemd-suspend.service - System Suspend.
set 14 00:41:31 dodo.home.solinos.it audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
set 14 00:41:31 dodo.home.solinos.it systemd[1]: Dependency failed for suspend.target - Suspend.
set 14 00:41:31 dodo.home.solinos.it systemd[1]: suspend.target: Job suspend.target/start failed with result 'dependency'.
set 14 00:41:31 dodo.home.solinos.it ModemManager[1836]: <info> [sleep-monitor] system is resuming
set 14 00:41:31 dodo.home.solinos.it systemd-logind[1762]: Operation 'sleep' finished.
--
Dario Lesca
(inviato dal mio Linux Fedora 36 Workstation)
1 year, 5 months
KDE Task Manager Colouring Settings
by Stephen Morris
Hi,
Where do I find the settings to control the colour of the Task
Manager bar for KDE under X11. I have gone into the Edit Mode settings
and set the bar to Opaque, but that is not working to my satisfaction.
At the moment all the icons on the bar are almost transparent and the
background colour of the bar changes depending on what application I
have displayed. For example, when I have a game I play being displayed
in Firefox the bar colour is a sort of yellow centre gradient (yellow
from the left and right edges to white in the middle) and it if have
Thunderbird showing my mails the colour displayed is a slightly
off-white. In system settings->appearance->colours I have turned off
highlighting from the current colour theme.
regards,
Steve
1 year, 5 months
gpt question
by ToddAndMargo
Hi All,
I am going to clone (Clonezilla) a Windows gpt
mechanical drive to a smaller SSD drive. I am
going into gparted (FEdora Xfce Live 36) and
resizing the large partition (sda3, C:) so it
will fit on the new ssd drive.
Question: there is a tiny sda4 hanging out there,
which is presume is the gpt partition tables. Do
I also need to move sda4 to the end of sda3 or
is it okay to just leave it at the end of the
disk?
Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you say, "I wrote a program that
crashed Windows," people just stare at
you blankly and say, "Hey, I got those
with the system, for free."
-- Linus Torvalds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 year, 5 months
Finding the stats on my video card
by Joe Zeff
There's a fairly old game that I've been playing on my laptop that I've
just installed on my desktop. It runs, but slowly. Checking, I need a
CPU that runs at at least 2 GH (Mine runs at 2.83) and has at least 2 GB
of RAM. (I have 8) The only other possibility is that my video card
might not be up to it, but I don't remember how to check that. Any
pointers in the right direction will be appreciated.
1 year, 5 months
Who should be owner of /run/systemd/users/1000?? root or 1000?
by Michael D. Setzer II
On one of my machines I noticed a bunch of little pop up
messages that don't say much but say opps and that it is
probable automatically being reported.
In looking at messages it shows a lot of things about
seline and seems linked to /run/systemd/users/1000
Looking at directory, see it showing the owner as root
and not 1000?
cd /run/systemd/users/
[root@setzconote users]# ls -l
-rw-r--r--. 1 root root 257 Oct 31 08:42 1000
looking at message log it says to run this command.
sealert -l c9b47966-9b7c-4eeb-a209-b8b4034caba9
SELinux is preventing dbus-daemon from read access on the file 1000.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that dbus-daemon should be allowed read access on the 1000 file
by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'dbus-daemon' --raw | audit2allow -M my-dbusdaemon
# semodule -X 300 -i my-dbusdaemon.pp
Additional Information:
Source Context system_u:system_r:gnome_atspi_t:s0-s0:c0.c1023
Target Context system_u:object_r:systemd_logind_var_run_t:s0
Target Objects 1000 [ file ]
Source dbus-daemon
Source Path dbus-daemon
Port <Unknown>
Host setzco.dyndns.org
Source RPM Packages
Target RPM Packages
SELinux Policy RPM selinux-policy-targeted-35.19-1.fc35.noarch
Local Policy RPM selinux-policy-targeted-35.19-1.fc35.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Permissive
Host Name setzco.dyndns.org
Platform Linux setzco.dyndns.org 6.0.5-100.fc35.x86_64 #1
SMP PREEMPT_DYNAMIC Wed Oct 26 16:27:59 UTC 2022
x86_64 x86_64
Alert Count 43
First Seen 2022-10-29 17:13:40 ChST
Last Seen 2022-11-02 22:59:29 ChST
Local ID c9b47966-9b7c-4eeb-a209-b8b4034caba9
Raw Audit Messages
type=AVC msg=audit(1667393969.159:396): avc: denied { read } for
pid=1494 comm="dbus-daemon" name="1000" dev="tmpfs" ino=1692
scontext=system_u:system_r:gnome_atspi_t:s0-s0:c0.c1023
tcontext=system_u:object_r:systemd_logind_var_run_t:s0 tclass=file
permissive=1
Hash: dbus-daemon,gnome_atspi_t,systemd_logind_var_run_t,file,read
Other machines don't seem to show these messages, but
haven't looked in logs. Seems it is only right after boot
and login, and the fill about 3 screens full of messages,
but then the just all close and normal desktop is left??
+------------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor (Retired)
mailto:mikes@guam.net
mailto:msetzerii@gmail.com
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+
1 year, 5 months
Can I see an iMac drive with a Live USB?
by ToddAndMargo
Hi All,
I have an upcoming appointment with a customer
who wants a number of his old computers
(mostly iMacs) removed from service.
With other computers, if I can remove the
drives, I just remove them and give them
to the customer to hit with a hammer.
But iMacs I will need a glass puller, etc..
So what I usually do when I can not get the
drive out is to boot into a Linux (Fedora)
Live USB and run
# dd if=/dev/zero of=/dev/sd[x]
Where sd[x] is the drive to be blanked.
This will write 0x00H across every section
of the drive.
Then give it to the computer local charity used
computer store (or the dumpster)
"dev" only has to see the drive. I do not
need or want to be able to mount or read
the drive, just see it. dd is a block
device and does not care what format is.
Do any of you guys know if I will be able
to see the drive on a iMac?
Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 year, 5 months
Can't unsubscribe from a list
by fs 3000
I keep getting mails from arm@ no matter what i do. I have tried sending mail to arm-leave@, it says i'm not a member. I went to the page and unsubscribed from there, nothing works. Any idea?
1 year, 5 months