how to add setid or nohup or similar to initramfs? https://askubuntu.com/questions/1562518/how-to-add-setid-or-nohup-or-similar-to-initramfs

I try to follow this tutorial but I want to be able to close the ssh session. so I'd need a way to have the setup work in the background and I'll just check hours later if it went through.

if I had setid or nohup or similar in initramfs I could do it.

Getting error when updating Docker Desktop through apt, no i386 architecture supported? [duplicate] https://askubuntu.com/questions/1562517/getting-error-when-updating-docker-desktop-through-apt-no-i386-architecture-sup

When doing sudo apt update && sudo apt upgrade, I get the following error:

N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'https://download.docker.com/linux/ubuntu noble InRelease' doesn't support architecture 'i386'

I'm not sure why I'm getting this error. I followed the instructions for the Docker Desktop installation. The app runs well and I've used it for some tasks, so everything seems to be working well, but seeing this message every time I update is annoying.

How do I remove it?

Problem with broadcom Wifi driver https://askubuntu.com/questions/1562513/problem-with-broadcom-wifi-driver

I am aware of this post. I installed Ubuntu 24.04.3 LTS on my computer which has Broadcom Inc. and subsidiaries BCM4360 802.11ac Dual Band Wireless Network Adapter [14e4:43a0] (rev 03). I do not have Wifi. I tried the post I mentioned earlier, used

sudo apt install broadcom-sta-dkms

and it worked! I had Wifi until I rebooted my machine. Then, again can't see Wifi. Followed the instructions to purge broadcom-sta-dkms, and try to reinstall it but I get this error:

he following packages have unmet dependencies:
 dkms : Breaks: broadcom-sta-dkms (< 6.30.223.271-25.1~) but 6.30.223.271-23ubuntu1.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Does anybody know what to do at this stage?

Is Display Scaling feature on Ubuntu also effective for videos? https://askubuntu.com/questions/1562512/is-display-scaling-feature-on-ubuntu-also-effective-for-videos

I have a 14" laptop screen with 1920x1080 resolution, thus I'm using %125 scaling (I didn't know about scaling before because I didn't have this resolution for the same screen size on my previous laptop). I wonder if this is only effective for scaling desktop graphics or it is also effective for videos. I'm curious because videos wouldn't need scaling but maybe the technology cannot separate videos from other desktop elements. Why would I sacrifice performance whilst watching a video on youtube or from a non-streaming media file?

Ubuntu boot manager does not open Windows https://askubuntu.com/questions/1562507/ubuntu-boot-manager-does-not-open-windows

Having finally managed to get Ubuntu 24.04 installed, it boots fine and I am gradually getting some software added. It is a dual boot with Windows 11, and the problem I have now is that the Ubuntu boot manager shows the option to boot to Windows, but always fails with this screen.

error messages on screen

This shows nearly 30 messages saying "prohibited by secure boot policy" followed by "no such device" and then "file /efi/Microsoft/Boot/bootmgfw.efi not found". From what I have found out, this should work with Secure Boot active. Is this simply telling me that's wrong, or could there be a different reason why it is failing?

Software Updater not responding on Ubuntu 25.10 https://askubuntu.com/questions/1562505/software-updater-not-responding-on-ubuntu-25-10

I installed Ubuntu 25.10 yesterday and before doing anything else I noticed the notification for Software Updater on top right of the screen. I click to show updates option, software updater opens up but when I wanted to remove some apps that I don't need to update I get this not responding message. It doesn't go away even if I select to wait many times. I bought this laptop (Thinkpad T495) second hand but it doesn't seem to have any problem other than this. Is this a bug of 25.10?

enter image description here

Cannot boot from USB after installing Ubuntu 25.10 https://askubuntu.com/questions/1562503/cannot-boot-from-usb-after-installing-ubuntu-25-10

I have a Thinkpad T495. I installed Ubuntu 25.10 on it with a USB drive. I want to do a memtest now, but it doesn't boot from the same USB drive. Nothing happens when I select USB drive in the boot menu and press Enter. I also moved it up to the top in BIOS boot options, but it's still loading Ubuntu at startup. What should I do?

Disable fingerprint login on Ubuntu 25.10 https://askubuntu.com/questions/1562499/disable-fingerprint-login-on-ubuntu-25-10

The goal is to enable fingerprint authentication for sudo, but disable it for initial login. This question has been asked a few times, but the answers available here no longer work for Ubuntu 25.10.

Some other answers mentioned that the following setting is available to configure this, however attempting to set it fails:

$ sudo -u gdm dbus-launch gsettings set org.gnome.login-screen enable-fingerprint-authentication false                                      
Authorization required, but no authorization protocol specified

(process:10706): dconf-CRITICAL **: 09:53:38.434: unable to create file '/var/lib/gdm3/.cache/dconf/user': Permission denied.  dconf will not work properly.

(process:10706): dconf-CRITICAL **: 09:53:38.434: unable to create file '/var/lib/gdm3/.cache/dconf/user': Permission denied.  dconf will not work properly.

(process:10706): dconf-CRITICAL **: 09:53:38.434: unable to create file '/var/lib/gdm3/.cache/dconf/user': Permission denied.  dconf will not work properly.

(process:10706): dconf-CRITICAL **: 09:53:38.435: unable to create file '/var/lib/gdm3/.cache/dconf/user': Permission denied.  dconf will not work properly.

(process:10706): dconf-WARNING **: 09:53:38.439: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code4: Failed to create file “/var/lib/gdm3/.config/dconf/user.HENPI3”: No such file or directory

You can avoid the latter errors (process:) by changing the permission bits on the relevant files it changes (idea is to switch it back afterwards - not sure if there will be other issues down the line with that). However, you still end up with the following error when running dbus-launch:


Authorization required, but no authorization protocol specified

What is the correct way to set this up? How do I provide a mechanism to authenticate the gdm user's request?

I followed a guide for updating the PAM configuration as well, but it didn't work and I'm somewhat nervous about making changes there. Will give it another go and keep some notes if absolutely necessary, but I would rather use the functionality above if it is possible to get it working.

Keyboard input not workingin recovery boot menue https://askubuntu.com/questions/1562491/keyboard-input-not-workingin-recovery-boot-menue

I'm installing Ubuntu for the first time and i had an issue with the password and needed to change it, i got into the recovery boot menue (the magenta one) and i cant drop to the desired option... Neither my keyboard or my mouse work and I'm at loss atm (I dound a similar question in the mint forum but they have server problems atm and the magenta is really horrible) Anyways, pls lmk your thoughts! I wouldve added a picture but I'm too new for that:/

Ubuntu is not detecting my integrated webcam https://askubuntu.com/questions/1562466/ubuntu-is-not-detecting-my-integrated-webcam

I installed the latest version of Ubuntu on a Dell Latitude 7340. Everything works fine except for the webcam and its microphone. Ubuntu doesn't detect anything. I managed to get the camera working after a first attempt, but I replaced the SSD and then reinstalled everything from the same ISO, but this time I can't get it to work. Do you have any suggestions?

App won't start after sudo snap install tradingview https://askubuntu.com/questions/1562377/app-wont-start-after-sudo-snap-install-tradingview

I have a new install of Ubuntu 24.04. I installed TradingView from the terminal with sudo snap install tradingview. It installs, but when I click on the icon it doesn't start. What am I missing?


Additional information posted as an answer:

from command line...

tom@tom-Aspire-E1-572:~/Desktop$ snap run tradingview
Initializing LoggerService
dbus-send: /snap/tradingview/68/lib/x86_64-linux-gnu/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.12.16' not found (required by dbus-send)
[6873:0104/104130.925228:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:197] Failed to connect to Wayland display: No such file or directory (2)
[6873:0104/104130.925295:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:282] Failed to initialize Wayland platform
[6873:0104/104130.925331:ERROR:ui/aura/env.cc:257] The platform failed to initialize.  Exiting.
[0104/104130.935157:ERROR:third_party/crashpad/crashpad/util/linux/scoped_ptrace_attach.cc:27] ptrace: Operation not permitted (1)
Segmentation fault (core dumped)
pcieport 0000:00:1c.0: AER logs showing repeated errors https://askubuntu.com/questions/1562128/pcieport-0000001c-0-aer-logs-showing-repeated-errors

I just got a new PC and installed dual boot Windows and Ubuntu 24.04. Everything seemed to be going well until I got some disk space issues. I tracked this down to /var/log syslog . and kern.log which are showing the following issues:

syslog:

2025-12-22T16:29:52.401367+00:00 blank kernel: pcieport 0000:00:1c.0: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)

2025-12-22T16:29:52.401367+00:00 blank kernel: pcieport 0000:00:1c.0: device [8086:a33c] error status/mask=00000001/00002000

2025-12-22T16:29:52.401368+00:00 blank kernel: pcieport 0000:00:1c.0: [ 0] RxErr (First)

2025-12-22T16:29:52.401368+00:00 blank kernel: pcieport 0000:00:1c.0: AER: Correctable error message received from 0000:00:1c.0

2025-12-22T16:29:52.401368+00:00 blank kernel: pcieport 0000:00:1c.0: AER: found no error details for 0000:00:1c.0

kern.log:

2025-12-22T16:29:52.508305+00:00 blank kernel: pcieport 0000:00:1c.0: device [8086:a33c] error status/mask=00000001/00002000

2025-12-22T16:29:52.508305+00:00 blank kernel: pcieport 0000:00:1c.0: [ 0] RxErr (First)

2025-12-22T16:29:52.508306+00:00 blank kernel: pcieport 0000:00:1c.0: AER: Correctable error message received from 0000:00:1c.0

2025-12-22T16:29:52.508306+00:00 blank kernel: pcieport 0000:00:1c.0: AER: found no error details for 0000:00:1c.0

2025-12-22T16:29:52.508306+00:00 blank kernel: pcieport 0000:00:1c.0: AER: Correctable error message received from 0000:00:1c.0

2025-12-22T16:29:52.508307+00:00 blank kernel: pcieport 0000:00:1c.0: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)

Initially both logs were up to 45gb each, resulting in Ubuntu not being able to boot up. Journal logs are also fairly sizable at 4GB, but less of an immediate issue. Syslog and kern.log are still both creeping up in size, but I've cleared them with:

sudo sh -c 'echo > /var/log/syslog'

sudo sh -c 'echo > /var/log/kern.log'

I'm aware this is only temporarily keeping things going. I've looked into logrotate and may set that up, but it seems that there's a broader issue with "pcieport 0000:00:1c.0: AER". I don't know what this is though or have any idea of how to fix it.

Is anyone able to help me with this? My command line skills aren't great and I don't really have and understanding of what's going on with these processes other than something with pcieport is throwing up unresolved errors and they're building up and taking over memory that I want to use for other things.

I'd really appreciate any clear advice, explanations or solutions.

EDIT - taking suggestion from the post steeldriver linked here is additional data:

lspci

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630]
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake PCH SATA AHCI Controller (rev 10)
00:1c.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #5 (rev f0)
00:1c.7 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #8 (rev f0)
00:1f.0 ISA bridge: Intel Corporation H310 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8192EE PCIe Wireless Network Adapter
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)

lspci -tv
-[0000:00]-+-00.0  Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers
          +-02.0  Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630]
          +-14.0  Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller
          +-14.2  Intel Corporation Cannon Lake PCH Shared SRAM
          +-16.0  Intel Corporation Cannon Lake PCH HECI Controller
          +-17.0  Intel Corporation Cannon Lake PCH SATA AHCI Controller
          +-1c.0-[01]----00.0  Realtek Semiconductor Co., Ltd. RTL8192EE PCIe Wireless Network Adapter
          +-1c.7-[02]----00.0  Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
          +-1f.0  Intel Corporation H310 Chipset LPC/eSPI Controller
          +-1f.3  Intel Corporation Cannon Lake PCH cAVS
          +-1f.4  Intel Corporation Cannon Lake PCH SMBus Controller
          \-1f.5  Intel Corporation Cannon Lake PCH SPI Controller

Bios version:

0223

Make/Model is ASUSTeK COMPUTER INC. PRIME H310M-K with Intel Core i7-8700 × 12

I haven't run memtest that's linked, but I did run the one in BIOS settings and that showed no issues.

EDIT Memory card shows DX16GDDR4AA3200 16GB DDR4 PC-4-2PC4-25600AA-3200MHz

Memory card brand is 'XUM' which isn't on the Asus memory/device support list. It seems to be a UK based manufacturer with production in China, also trading as 'Dr Memory', upcycling chips from electronic waste sources [https://www.scaleupinstitute.org.uk/stories/xum/][1]

I installed dkms and ran it, but it returned nothing, so I take it that means I don't have it.

EDIT 26 DEC

So I ran sudo lshw -class network and got the following:

 *-network                 
      description: Wireless interface
      product: RTL8192EE PCIe Wireless Network Adapter
      vendor: Realtek Semiconductor Co., Ltd.
      physical id: 0
      bus info: pci@0000:01:00.0
      logical name: wlp1s0
      version: 00
      serial: 98:25:4a:51:95:13
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
      configuration: broadcast=yes driver=rtl8192ee driverversion=6.14.0-37-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
      resources: irq:127 ioport:4000(size=256) memory:a1200000-a1203fff

 *-network
      description: Ethernet interface
      product: RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet  Controller
      vendor: Realtek Semiconductor Co., Ltd.
      physical id: 0
      bus info: pci@0000:02:00.0
      logical name: enp2s0
      version: 15
      serial: 2c:fd:a1:bb:71:44
      size: 1Gbit/s
      capacity: 1Gbit/s
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.14.0-37-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.164 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
      resources: irq:19 ioport:3000(size=256) memory:a1104000-a1104fff memory:a1100000-a1103fff

EDIT 28/12/2025 Results of

sudo fwupdmgr get-devices

│
├─Core™ i7-8700 CPU @ 3.20GHz:
│     Device ID:          4bde70ba4e39b28f9eab1628f9dd6e6244c03027
│     Current version:    0x000000fa
│     Vendor:             Intel
│     GUIDs:              809a0b93-8a12-5338-a571-ad5583acf896 ← CPUID\PRO_0&FAM_06&MOD_9E
│                         72ec2ff3-49ff-5ec2-bdbb-525badd47543 ← CPUID\PRO_0&FAM_06&MOD_9E&STP_A
│     Device Flags:       • Internal device
│   
├─System Firmware:
│ │   Device ID:          53102fb297aeeb0e31122af52ec36682035b3ad1
│ │   Summary:            UEFI System Resource Table device (updated via NVRAM)
│ │   Current version:    12804
│ │   Minimum Version:    12804
│ │   Vendor:             System manufacturer (DMI:American Megatrends Inc.)
│ │   Update State:       Success
│ │   GUID:               490eb939-0b18-5479-85e9-8496347b7dea
│ │   Device Flags:       • Internal device
│ │                       • Updatable
│ │                       • System requires external power source
│ │                       • Needs a reboot after installation
│ │                       • Cryptographic hash verification is available
│ │                       • Device is usable for the duration of the update
│ │   Device Requests:    • Message
│ │ 
│ └─UEFI dbx:
│       Device ID:        362301da643102b9f38477387e2193e57abaa590
│       Summary:          UEFI revocation database
│       Current version:  20230501
│       Minimum Version:  20230501
│       Vendor:           UEFI:Microsoft
│       Install Duration: 1 second
│       GUIDs:            f8ff0d50-c757-5dc3-951a-39d86e16f419 ← UEFI\CRT_D7F66BE77CEF858C174BF4338A99263C8795B74E02026411F5F532F716AE3263&ARCH_X64
│                         f8ba2887-9411-5c36-9cee-88995bb39731 ← UEFI\CRT_A1117F516A32CEFCBA3F2D1ACE10A87972FD6BBE8FE0D0B996E09E65D802A503&ARCH_X64
│                         0c7691e1-b6f2-5d71-bc9c-aabee364c916 ← UEFI\CRT_ED1FE72CB9CA31C9AF5B757AFCD733323D675825032E6CED7FE1AE9EB767998C&ARCH_X64
│       Device Flags:     • Internal device
│                         • Updatable
│                         • Needs a reboot after installation
│                         • Device is usable for the duration of the update
│                         • Only version upgrades are allowed
│                         • Signed Payload
│     
├─TPM:
│     Device ID:          c6a80ac3a22083423992a3cb15018989f37834d6
│     Summary:            TPM 2.0 Device
│     Current version:    401.1.0.0
│     Vendor:             Intel (TPM:INTC)
│     GUIDs:              34801700-3a50-5b05-820c-fe14580e4c2d ← TPM\VEN_INTC&DEV_0000
│                         8e1cbc5d-5a11-5149-bfea-b6065d5296ba ← TPM\VEN_INTC&MOD_Intel
│                         03f304f4-223e-54f4-b2c1-c3cf3b5817c6 ← TPM\VEN_INTC&DEV_0000&VER_2.0
│                         52d7b679-db28-5bf7-bd87-41d77aeec600 ← TPM\VEN_INTC&MOD_Intel&VER_2.0
│     Device Flags:       • Internal device
│                         • System requires external power source
│                         • Needs a reboot after installation
│                         • Device can recover flash failures
│                         • Full disk encryption secrets may be invalidated when updating
│                         • Signed Payload
│   
└─VTP1TSSD1:
      Device ID:          e421b2fc248391f6fe3e55ddbb3c9043be068bd0
      Summary:            ATA drive
      Current version:    H250815a
      Serial Number:      VTP1024S1017171VC08
      Update Error:       No vendor ID set
      GUIDs:              3a3515e4-57fc-5413-9c07-166cd68c1ad5 ← IDE\VTP1TSSD1_______________________________H250815a
                          193829ed-b5f0-5039-890f-bd7956932ada ← IDE\0VTP1TSSD1_______________________________
                          52b9ad75-16d4-509a-ab43-8e873acc3cfc ← VTP1TSSD1
      Device Flags:       • Internal device
                          • System requires external power source
                          • Needs a reboot after installation
                          • Device is usable for the duration of the update
                          • Updatable

EDIT 30 Dec 2025 fwupdmgr isn't showingany different from above - no RTL info showing. So I've tried ethtool This is the results CORRECTION There are 3 things showing up on ip link show These are they

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 2c:fd:a1:bb:71:44 brd ff:ff:ff:ff:ff:ff
3: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
    link/ether 98:25:4a:51:95:13 brd ff:ff:ff:ff:ff:ff

2 & 3 seem to relate to RTL when I run ethtool

driver: r8169
version: 6.14.0-37-generic
firmware-version: rtl8168h-2_0.0.2 02/26/15
expansion-rom-version: 
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
ethtool -i wlp1s0
driver: rtl8192ee
version: 6.14.0-37-generic
firmware-version: N/A
expansion-rom-version: 
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

UPDATE 04 Jan 2025 I've followed the instructions in linuxmint forum make all works (at least there's a lot of text on terminal) but throws up a few errors at the end

make[4]: *** [/usr/src/linux-headers-6.14.0-37-generic/scripts/Makefile.build:207: os_dep/linux/ioctl_cfg80211.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.14.0-37-generic/Makefile:1997: .] Error 2
make[2]: *** [/usr/src/linux-headers-6.14.0-37-generic/Makefile:251: __sub-make] Error 2
make[2]: Leaving directory '/home/allan/rtle8192ee'
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.14.0-37-generic'
make: *** [Makefile:1827: modules] Error 2

steps 4 & 5 seem to work, but on step 6 sudo dkms add ./rtl8192ee I get

Usage: add <module>/<module-version> or
       add -m <module>/<module-version> or
       add -m <module> -v <module-version>

I've tried searching for a solution to that but can't find anything.

EDIT 04/01/2025

sudo dkms build 8192ee/1.1

Sign command: /usr/bin/kmodsign
Certificate or key are missing, generating them using update-secureboot-policy...
Secure Boot not enabled on this system.
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/8192ee/1.1/source/dkms.conf)

Building module:
Cleaning build area...
'make' KVER=6.14.0-37-generic all -j12......(bad exit status: 2)
ERROR (dkms apport): binary package for 8192ee: 1.1 not found
Error! Bad return status for module build on kernel: 6.14.0-37-generic (x86_64)
Consult /var/lib/dkms/8192ee/1.1/build/make.log for more information.

Full output of make all on rtl8192ee

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.14.0-37-generic/build M=/home/allan/rtl8192ee  modules
make[1]: Entering directory '/usr/src/linux-headers-6.14.0-37-generic'
make[2]: Entering directory '/home/allan/rtl8192ee'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  CC [M]  core/rtw_cmd.o
core/rtw_cmd.c:2162:4: warning: no previous prototype for ‘_rtw_set_chplan_cmd’ [-Wmissing-prototypes]
 2162 | u8 _rtw_set_chplan_cmd(_adapter *adapter, int flags, u8 chplan, const struct country_chplan *country_ent, u8 swconfig)
      |    ^~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:2707:6: warning: no previous prototype for ‘rtw_dynamic_chk_wk_hdl’ [-Wmissing-prototypes]
 2707 | void rtw_dynamic_chk_wk_hdl(_adapter *padapter)
      |      ^~~~~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:2867:6: warning: no previous prototype for ‘rtw_dm_in_lps_hdl’ [-Wmissing-prototypes]
 2867 | void rtw_dm_in_lps_hdl(_adapter *padapter)
      |      ^~~~~~~~~~~~~~~~~
core/rtw_cmd.c:2908:6: warning: no previous prototype for ‘rtw_lps_change_dtim_hdl’ [-Wmissing-prototypes]
 2908 | void rtw_lps_change_dtim_hdl(_adapter *padapter, u8 dtim)
      |      ^~~~~~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:3087:6: warning: no previous prototype for ‘rtw_dm_ra_mask_hdl’ [-Wmissing-prototypes]
 3087 | void rtw_dm_ra_mask_hdl(_adapter *padapter, struct sta_info *psta)
      |      ^~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:3129:6: warning: no previous prototype for ‘power_saving_wk_hdl’ [-Wmissing-prototypes]
 3129 | void power_saving_wk_hdl(_adapter *padapter)
      |      ^~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:3135:6: warning: no previous prototype for ‘reset_securitypriv_hdl’ [-Wmissing-prototypes]
 3135 | void reset_securitypriv_hdl(_adapter *padapter)
      |      ^~~~~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:3140:6: warning: no previous prototype for ‘free_assoc_resources_hdl’ [-Wmissing-prototypes]
 3140 | void free_assoc_resources_hdl(_adapter *padapter)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:4216:4: warning: no previous prototype for ‘rtw_c2h_wk_cmd’ [-Wmissing-prototypes]
 4216 | u8 rtw_c2h_wk_cmd(PADAPTER padapter, u8 *pbuf, u16 length, u8 type)
      |    ^~~~~~~~~~~~~~
core/rtw_cmd.c:4334:4: warning: no previous prototype for ‘session_tracker_cmd’ [-Wmissing-prototypes]
 4334 | u8 session_tracker_cmd(_adapter *adapter, u8 cmd, struct sta_info *sta, u8 *local_naddr, u8 *local_port, u8 *remote_naddr, u8 *remote_port)
      |    ^~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:4400:6: warning: no previous prototype for ‘session_tracker_chk_for_sta’ [-Wmissing-prototypes]
 4400 | void session_tracker_chk_for_sta(_adapter *adapter, struct sta_info *sta)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:4482:6: warning: no previous prototype for ‘session_tracker_chk_for_adapter’ [-Wmissing-prototypes]
 4482 | void session_tracker_chk_for_adapter(_adapter *adapter)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_cmd.c:4514:6: warning: no previous prototype for ‘session_tracker_cmd_hdl’ [-Wmissing-prototypes]
 4514 | void session_tracker_cmd_hdl(_adapter *adapter, struct st_cmd_parm *parm)
      |      ^~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  core/rtw_security.o
core/rtw_security.c:2844:5: warning: no previous prototype for ‘omac1_aes_128’ [-Wmissing-prototypes]
 2844 | int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac)
      |     ^~~~~~~~~~~~~
  CC [M]  core/rtw_debug.o
  CC [M]  core/rtw_io.o
  CC [M]  core/rtw_ioctl_query.o
  CC [M]  core/rtw_ioctl_set.o
  CC [M]  core/rtw_ieee80211.o
core/rtw_ieee80211.c:1454:6: warning: no previous prototype for ‘dump_ht_cap_ie’ [-Wmissing-prototypes]
 1454 | void dump_ht_cap_ie(void *sel, u8 *ie, u32 ie_len)
      |      ^~~~~~~~~~~~~~
core/rtw_ieee80211.c:2494:5: warning: no previous prototype for ‘rtw_get_cipher_info’ [-Wmissing-prototypes]
 2494 | int rtw_get_cipher_info(struct wlan_network *pnetwork)
      |     ^~~~~~~~~~~~~~~~~~~
  CC [M]  core/rtw_mlme.o
core/rtw_mlme.c:23:6: warning: no previous prototype for ‘rtw_init_mlme_timer’ [-Wmissing-prototypes]
   23 | void rtw_init_mlme_timer(_adapter *padapter)
      |      ^~~~~~~~~~~~~~~~~~~
core/rtw_mlme.c:57:9: warning: no previous prototype for ‘_rtw_init_mlme_priv’ [-Wmissing-prototypes]
   57 | sint    _rtw_init_mlme_priv(_adapter *padapter)
      |         ^~~~~~~~~~~~~~~~~~~
core/rtw_mlme.c:306:6: warning: no previous prototype for ‘_rtw_free_mlme_priv’ [-Wmissing-prototypes]
  306 | void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv)
      |      ^~~~~~~~~~~~~~~~~~~
core/rtw_mlme.c:324:9: warning: no previous prototype for ‘_rtw_enqueue_network’ [-Wmissing-prototypes]
  324 | sint    _rtw_enqueue_network(_queue *queue, struct wlan_network *pnetwork)
      |         ^~~~~~~~~~~~~~~~~~~~
core/rtw_mlme.c:1452:6: warning: no previous prototype for ‘rtw_reset_rx_info’ [-Wmissing-prototypes]
 1452 | void rtw_reset_rx_info(_adapter *adapter)
      |      ^~~~~~~~~~~~~~~~~
  CC [M]  core/rtw_mlme_ext.o
core/rtw_mlme_ext.c:1460:6: warning: no previous prototype for ‘init_mlme_ext_timer’ [-Wmissing-prototypes]
 1460 | void init_mlme_ext_timer(_adapter *padapter)
      |      ^~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:1695:5: warning: no previous prototype for ‘p2p_listen_state_process’ [-Wmissing-prototypes]
 1695 | u32 p2p_listen_state_process(_adapter *padapter, unsigned char *da)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c: In function ‘OnAuth’:
core/rtw_mlme_ext.c:2453:41: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
 2453 |                                         ;/* TODO: STA re_auth within expire_to */
      |                                         ^
core/rtw_mlme_ext.c:2458:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
 2458 |                                 ; /* TODO: STA re_auth and auth timeout */
      |                                 ^
core/rtw_mlme_ext.c: At top level:
core/rtw_mlme_ext.c:3311:14: warning: no previous prototype for ‘on_action_spct_ch_switch’ [-Wmissing-prototypes]
 3311 | unsigned int on_action_spct_ch_switch(_adapter *padapter, struct sta_info *psta, u8 *ies, uint ies_len)
      |              ^~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:4745:6: warning: no previous prototype for ‘issue_p2p_GO_confirm’ [-Wmissing-prototypes]
 4745 | void issue_p2p_GO_confirm(_adapter *padapter, u8 *raddr, u8 result)
      |      ^~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:5629:4: warning: no previous prototype for ‘is_matched_in_profilelist’ [-Wmissing-prototypes]
 5629 | u8 is_matched_in_profilelist(u8 *peermacaddr, struct profile_info *profileinfo)
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:5977:5: warning: no previous prototype for ‘_issue_probereq_p2p’ [-Wmissing-prototypes]
 5977 | int _issue_probereq_p2p(_adapter *padapter, u8 *da, int wait_ack)
      |     ^~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:6352:5: warning: no previous prototype for ‘rtw_action_public_decache’ [-Wmissing-prototypes]
 6352 | s32 rtw_action_public_decache(union recv_frame *rframe, u8 token_offset)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:6377:14: warning: no previous prototype for ‘on_action_public_p2p’ [-Wmissing-prototypes]
 6377 | unsigned int on_action_public_p2p(union recv_frame *precv_frame)
      |              ^~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:6754:14: warning: no previous prototype for ‘on_action_public_vendor’ [-Wmissing-prototypes]
 6754 | unsigned int on_action_public_vendor(union recv_frame *precv_frame)
      |              ^~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:6775:14: warning: no previous prototype for ‘on_action_public_default’ [-Wmissing-prototypes]
 6775 | unsigned int on_action_public_default(union recv_frame *precv_frame, u8 action)
      |              ^~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:7163:20: warning: no previous prototype for ‘_alloc_mgtxmitframe’ [-Wmissing-prototypes]
 7163 | struct xmit_frame *_alloc_mgtxmitframe(struct xmit_priv *pxmitpriv, bool once)
      |                    ^~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:7448:5: warning: no previous prototype for ‘update_hidden_ssid’ [-Wmissing-prototypes]
 7448 | int update_hidden_ssid(u8 *ies, u32 ies_len, u8 hidden_ssid_mode)
      |     ^~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:8081:5: warning: no previous prototype for ‘_issue_probereq’ [-Wmissing-prototypes]
 8081 | int _issue_probereq(_adapter *padapter, NDIS_802_11_SSID *pssid, u8 *da, u8 ch, bool append_wps, int wait_ack)
      |     ^~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:10230:5: warning: no previous prototype for ‘_issue_action_SM_PS’ [-Wmissing-prototypes]
10230 | int _issue_action_SM_PS(_adapter *padapter ,  unsigned char *raddr , u8 NewMimoPsMode ,  u8 wait_ack)
      |     ^~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:12147:6: warning: no previous prototype for ‘rtw_delba_check’ [-Wmissing-prototypes]
12147 | void rtw_delba_check(_adapter *padapter, struct sta_info *psta, u8 from_timer)
      |      ^~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:12185:4: warning: no previous prototype for ‘chk_ap_is_alive’ [-Wmissing-prototypes]
12185 | u8 chk_ap_is_alive(_adapter *padapter, struct sta_info *psta)
      |    ^~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:12232:4: warning: no previous prototype for ‘chk_adhoc_peer_is_alive’ [-Wmissing-prototypes]
12232 | u8 chk_adhoc_peer_is_alive(struct sta_info *psta)
      |    ^~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:13579:4: warning: no previous prototype for ‘rtw_scan_sparse’ [-Wmissing-prototypes]
13579 | u8 rtw_scan_sparse(_adapter *adapter, struct rtw_ieee80211_channel *ch, u8 ch_num)
      |    ^~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:14014:6: warning: no previous prototype for ‘survey_done_set_ch_bw’ [-Wmissing-prototypes]
14014 | void survey_done_set_ch_bw(_adapter *padapter)
      |      ^~~~~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:14084:4: warning: no previous prototype for ‘sitesurvey_ps_annc’ [-Wmissing-prototypes]
14084 | u8 sitesurvey_ps_annc(_adapter *padapter, bool ps)
      |    ^~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:14134:6: warning: no previous prototype for ‘sitesurvey_set_igi’ [-Wmissing-prototypes]
14134 | void sitesurvey_set_igi(_adapter *adapter)
      |      ^~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c:14185:6: warning: no previous prototype for ‘sitesurvey_set_msr’ [-Wmissing-prototypes]
14185 | void sitesurvey_set_msr(_adapter *adapter, bool enter)
      |      ^~~~~~~~~~~~~~~~~~
core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’:
core/rtw_mlme_ext.c:616:21: warning: ‘strcmp’ reading 1 or more bytes from a region of size 0 [-Wstringop-overread]
  616 |                 if (strcmp(exc->regd_name, regd_str(TXPWR_LMT_NONE)) == 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ././include/drv_types.h:62,
                 from core/rtw_mlme_ext.c:17:
././include/rtw_rf.h:210:14: note: source object ‘regd_name’ of size 0
  210 |         char regd_name[0];
      |              ^~~~~~~~~
core/rtw_mlme_ext.c:618:26: warning: ‘strcmp’ reading 1 or more bytes from a region of size 0 [-Wstringop-overread]
  618 |                 else if (strcmp(exc->regd_name, regd_str(TXPWR_LMT_WW)) == 0)
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
././include/rtw_rf.h:210:14: note: source object ‘regd_name’ of size 0
  210 |         char regd_name[0];
      |              ^~~~~~~~~
  CC [M]  core/rtw_mi.o
core/rtw_mi.c:107:5: warning: no previous prototype for ‘_rtw_mi_get_ch_setting_union’ [-Wmissing-prototypes]
  107 | int _rtw_mi_get_ch_setting_union(_adapter *adapter, u8 *ch, u8 *bw, u8 *offset, bool include_self)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mi.c:189:6: warning: no previous prototype for ‘_rtw_mi_status’ [-Wmissing-prototypes]
  189 | void _rtw_mi_status(_adapter *adapter, struct mi_state *mstate, u8 target_sel)
      |      ^~~~~~~~~~~~~~
core/rtw_mi.c:828:4: warning: no previous prototype for ‘_rtw_mi_busy_traffic_check’ [-Wmissing-prototypes]
  828 | u8 _rtw_mi_busy_traffic_check(_adapter *padapter, void *data)
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_mi.c:1279:6: warning: no previous prototype for ‘rtw_dbg_skb_process’ [-Wmissing-prototypes]
 1279 | void rtw_dbg_skb_process(_adapter *padapter, union recv_frame *precvframe, union recv_frame *pcloneframe)
      |      ^~~~~~~~~~~~~~~~~~~
  CC [M]  core/rtw_wlan_util.o
core/rtw_wlan_util.c:1045:6: warning: no previous prototype for ‘_rtw_sec_camid_is_used’ [-Wmissing-prototypes]
 1045 | bool _rtw_sec_camid_is_used(struct cam_ctl_t *cam_ctl, u8 id)
      |      ^~~~~~~~~~~~~~~~~~~~~~
core/rtw_wlan_util.c:1133:6: warning: no previous prototype for ‘cam_cache_chk’ [-Wmissing-prototypes]
 1133 | bool cam_cache_chk(_adapter *adapter, u8 id, u8 *addr, s16 kid, s8 gk)
      |      ^~~~~~~~~~~~~
core/rtw_wlan_util.c:1151:5: warning: no previous prototype for ‘_rtw_camid_search’ [-Wmissing-prototypes]
 1151 | s16 _rtw_camid_search(_adapter *adapter, u8 *addr, s16 kid, s8 gk)
      |     ^~~~~~~~~~~~~~~~~
core/rtw_wlan_util.c:1191:5: warning: no previous prototype for ‘rtw_get_camid’ [-Wmissing-prototypes]
 1191 | s16 rtw_get_camid(_adapter *adapter, struct sta_info *sta, u8 *addr, s16 kid)
      |     ^~~~~~~~~~~~~
core/rtw_wlan_util.c:1305:6: warning: no previous prototype for ‘rtw_camid_set’ [-Wmissing-prototypes]
 1305 | void rtw_camid_set(_adapter *adapter, u8 cam_id)
      |      ^~~~~~~~~~~~~
core/rtw_wlan_util.c:1388:5: warning: no previous prototype for ‘rtw_get_empty_cam_entry’ [-Wmissing-prototypes]
 1388 | s16 rtw_get_empty_cam_entry(_adapter *adapter, u8 start_camid)
      |     ^~~~~~~~~~~~~~~~~~~~~~~
core/rtw_wlan_util.c:2169:5: warning: no previous prototype for ‘check_ielen’ [-Wmissing-prototypes]
 2169 | int check_ielen(u8 *start, uint len)
      |     ^~~~~~~~~~~
core/rtw_wlan_util.c: In function ‘rtw_get_bcn_keys’:
core/rtw_wlan_util.c:2281:17: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
 2281 |                 ; /* means hidden ssid */
      |                 ^
  CC [M]  core/rtw_vht.o
  CC [M]  core/rtw_pwrctrl.o
core/rtw_pwrctrl.c:177:6: warning: no previous prototype for ‘rtw_pwr_unassociated_idle’ [-Wmissing-prototypes]
  177 | bool rtw_pwr_unassociated_idle(_adapter *adapter)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
core/rtw_pwrctrl.c:395:6: warning: no previous prototype for ‘pwr_state_check_handler’ [-Wmissing-prototypes]
  395 | void pwr_state_check_handler(struct timer_list *t)
      |      ^~~~~~~~~~~~~~~~~~~~~~~
core/rtw_pwrctrl.c:612:4: warning: no previous prototype for ‘PS_RDY_CHECK’ [-Wmissing-prototypes]
  612 | u8 PS_RDY_CHECK(_adapter *padapter)


  [1]: https://www.scaleupinstitute.org.uk/stories/xum/
LANs can't communicate when WAN is shared https://askubuntu.com/questions/1560767/lans-cant-communicate-when-wan-is-shared

I'm using ubuntu 22.04 and I have the following configuration acting as a router

  1. WAN - DHCP (enp2s0)

  2. LAN1 - 10.42.1.1/24 (enp1s0)

  3. LAN2 - 10.42.2.1/24 (enp1s0.2)

I am using Network Manager to share WAN with LAN1 and LAN2 using the ipv4.method shared.

Everything works great except LAN1 can't access LAN2.

For example, from a client in LAN1 I get

$ ping 10.42.2.175
PING 10.42.2.175 (10.42.2.175) 56(84) bytes of data.
From 10.42.1.1 icmp_seq=1 Destination Port Unreachable
From 10.42.1.1 icmp_seq=2 Destination Port Unreachable
From 10.42.1.1 icmp_seq=3 Destination Port Unreachable
^C
--- 10.42.2.175 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2003ms

and

$ nc -v 10.42.2.175 22
nc: connect to 10.42.2.175 port 22 (tcp) failed: Connection refused

I know the packet is reaching the router at 10.42.1.1 because inside it I get

# tcpdump -n -i enp1s0 icmp
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on enp1s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
23:20:38.012039 IP 10.42.1.154 > 10.42.2.175: ICMP echo request, id 181, seq 76, length 64
23:20:38.012169 IP 10.42.1.1 > 10.42.1.154: ICMP 10.42.2.175 protocol 1 port 16422 unreachable, length 92
23:20:39.013334 IP 10.42.1.154 > 10.42.2.175: ICMP echo request, id 181, seq 77, length 64
23:20:39.013467 IP 10.42.1.1 > 10.42.1.154: ICMP 10.42.2.175 protocol 1 port 19232 unreachable, length 92
23:20:40.007654 IP 10.42.1.154 > 10.42.2.175: ICMP echo request, id 181, seq 78, length 64
23:20:40.007763 IP 10.42.1.1 > 10.42.1.154: ICMP 10.42.2.175 protocol 1 port 63769 unreachable, length 92
23:20:41.002888 IP 10.42.1.154 > 10.42.2.175: ICMP echo request, id 181, seq 79, length 64
23:20:41.003051 IP 10.42.1.1 > 10.42.1.154: ICMP 10.42.2.175 protocol 1 port 4887 unreachable, length 92
^C
8 packets captured
8 packets received by filter
0 packets dropped by kernel
10 packets dropped by interface

Also, inside the router I get

# ping 10.42.2.175
PING 10.42.2.175 (10.42.2.175) 56(84) bytes of data.
64 bytes from 10.42.2.175: icmp_seq=1 ttl=64 time=0.188 ms
64 bytes from 10.42.2.175: icmp_seq=2 ttl=64 time=0.219 ms
64 bytes from 10.42.2.175: icmp_seq=3 ttl=64 time=0.274 ms
^C
--- 10.42.2.175 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2077ms
rtt min/avg/max/mdev = 0.188/0.227/0.274/0.035 ms

So I know the router can access LAN2.

Also I have

# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         

and

# nft list ruleset

~snip~

table ip nm-shared-enp1s0 {
    chain nat_postrouting {
        type nat hook postrouting priority srcnat; policy accept;
        ip saddr 10.42.1.0/24 ip daddr != 10.42.1.0/24 masquerade
    }

    chain filter_forward {
        type filter hook forward priority filter; policy accept;
        ip daddr 10.42.1.0/24 oifname "enp1s0" ct state { established, related } accept
        ip saddr 10.42.1.0/24 iifname "enp1s0" accept
        iifname "enp1s0" oifname "enp1s0" accept
        iifname "enp1s0" reject
        oifname "enp1s0" reject
    }
}
table ip nm-shared-enp1s0.2 {
    chain nat_postrouting {
        type nat hook postrouting priority srcnat; policy accept;
        ip saddr 10.42.2.0/24 ip daddr != 10.42.2.0/24 masquerade
    }

    chain filter_forward {
        type filter hook forward priority filter; policy accept;
        ip daddr 10.42.2.0/24 oifname "enp1s0.2" ct state { established, related } accept
        ip saddr 10.42.2.0/24 iifname "enp1s0.2" accept
        iifname "enp1s0.2" oifname "enp1s0.2" accept
        iifname "enp1s0.2" reject
        oifname "enp1s0.2" reject
    }
}

which leads me to believe that nftables is doing NAT instead of iptables, but I don't understand nftables yet to know if the above is where the problem lies.

Note: I do have

# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

I believe it is set automatically as a requirement by Network Manager when creating a connection with type ipv4.method shared.

I'm also using UFW and have

To                         Action      From
--                         ------      ----

Anywhere                   ALLOW FWD   10.42.1.0/24 on enp1s0    
Anywhere on enp2s0         ALLOW FWD   10.42.2.0/24 on enp1s0.2  

which results in

Chain ufw-user-forward (1 references)
    pkts      bytes target     prot opt in     out     source               destination         
   19230  1466056 ACCEPT     all  --  enp1s0 *       10.42.1.0/24         0.0.0.0/0           
    2353   213722 ACCEPT     all  --  enp1s0.2 enp2s0  10.42.2.0/24         0.0.0.0/0           

which leads me to think that a client in 10.42.1.0/24 should be able to reach 10.42.2.0/24 (but not the other way around, which is my goal).

Note: My goal is to use the high level tools Network Manager and UFW ONLY and not mess with iptables or nftables at all. Right now, I'm not sure if I've misconfigured something with Network Manager or UFW, OR if Network Manager and/or UFW have some bug in their design. So, any references to iptables or nftables I've made is purely observing the result of Network Manager and UFW and not some custom iptables or nftables changes I've made.

Note 2: If you look at my network interface names, you my deduce that LAN1 is an untagged VLAN and LAN2 is a tagged VLAN on the same physical ethernet interface. I don't think this has anything to do with my problem as the VLAN stuff is all working totally fine if the router tries to access LAN1 or LAN2. Also, LAN1 and LAN2 can both access the router and the internet no problem. Also, if the VLAN is the cause of the problem, I feel like the Linux VLAN implementation is severely broken because I don't see why it should be able to affect things at the IP level.

How can I further determine if this is a NAT issue or a firewall issue?

UPDATE:

I've done some more testing. I created a new test router and test networks and did not use VLANS and UFW was disabled. I got the same result.

Upon further hacking, I discovered that if I temporarily manually delete oifname "enp1s0" reject and oifname "enp1s0.2" reject shown above, the problem is fixed.

So, it seems like Network Manager is doing some firewalling. Not sure that I like this because Network Manager is not doing any other firewalling, so why do just a little bit?

Also, understanding the rules a bit more (and testing with tcpdump), it looks like it is doing NAT to my local networks, which isn't necessary and maybe isn't preferred (but this seems to be another issue).

So, my question now comes to two options:

  1. How can I get UFW to override the Network Manager reject rules, or
  2. how can I get Network Manager to not create these reject rules in the first place, on my custom local setup and/or through a bug report somewhere for everyone (I don't know where to report it)?
Installing Creality print software https://askubuntu.com/questions/1550427/installing-creality-print-software

So I installed wine64 and wine32 sudo apt install --install-recommends wine64 wine32 and I’m not sure where it go from there I did some googling and got to this wine ~/Downloads/Creality_Slicer-X.X.X.exe but changed it to the name of the download file after I downloaded it from Firefox it was the windows version. Crealityprint_6.1.2.2458_Release.exe is it case sensitive or am I missing some setup for wine. Please excuse the code not being copy able I left for work and later used my iPhone to ask this.

Difficulty in connecting TP Link Wifi Extender with Ubuntu 24.04 https://askubuntu.com/questions/1517871/difficulty-in-connecting-tp-link-wifi-extender-with-ubuntu-24-04

I have 3 TP Link Wifi extenders (2 different models) and can not connect to any of them in Automatic mode in Ubuntu 24.04. Connecting directly to my hub works OK. Manual configuration of IP addresses to extender connections works OK, so it looks like a DHCP problem. I have tried all the variations to NetworkManager.conf recommended elsewhere.

if I try:

nmcli device wifi connect <SSID> password <PASSWORD>

I get:

Error: Connection activation failed: IP configuration could not be reserved (no available address, timeout, etc.).

I notice that there are other similar questions related to DLink extenders, so it looks like Ubuntu has a problem getting an IP address from DHCP via an extender.

Windows 10 connects with no such problems.

This is a problem with an upgrade to 24.04, and two fresh installs on different machines.

Mirror / cast / live stream desktop screen to TV over LAN https://askubuntu.com/questions/1484672/mirror-cast-live-stream-desktop-screen-to-tv-over-lan

I'm on Ubuntu 22.04 and looking for a way to live cast / stream / mirror my desktop (only Firefox tabs actually) to my LG TV (WebOS v5.30) over LAN.

Note (in case it's useful to give you more ideas to help me): besides the smart TV itself, I also own a Fire Stick 4K and it's connected to it! I also have Kodi on it.

This is what I've already tried with no success:

  • NetworkDisplays via Flatpak - no Video Sinks available
  • Deskreen - via the TV browser app, I could connect to the desktop but the screen was so small that it was unusable
  • VLC on Ubuntu + VLC on my Fire Stick. I tried to follow these instructions, but when I entered udp://[my_PC_IP]:[port] in the VLC Fire Stick app nothing happened
  • Installed AirScreen on my Fire Stick and the Cast method in Chromium worked fine (I could mirror a Chromium tab to the TV) but that's not enough for me, since I need to do that in Firefox actually :)

Could you please help me in finding other working methods to try (or provide some tested and working instructions for any of the methods above that I've already tried)?

Thanks

USB Boot Drive is not being recognized https://askubuntu.com/questions/1467015/usb-boot-drive-is-not-being-recognized

I am attempting to install Ubuntu v23.04 over Windows 7 on an old Sony VAIO. I have an 8GB USB flash drive that I am using to do this. The VAIO is not showing the USB in Boot Manager. I have installed the ISO file onto the USB twice with BalenaEtcher and once with Rufus, have enabled booting from external devices in the BIOS, and have set external devices as the highest priority in the boot sequence. There is no option to enable the legacy boot mode. The VAIO's model number is VGN-SR510G

How to change the default directory that WSL Ubuntu terminal (on Windows 10) opens with https://askubuntu.com/questions/1372064/how-to-change-the-default-directory-that-wsl-ubuntu-terminal-on-windows-10-ope

I installed the WSL Bash on Windows 10 so it can act as my terminal in VScode, but the default directory is ~/home/USERNAME

I would like it to be /mnt/c/Users/USERNAME (so on my windows domain side)

I've looked at so many different angles on how to change the default from adding a command to .bashrc that manually changes the directory on startup, to going to the registry editor and trying to change the default directory for CMD, (turns out even that's a challenge as the file I needed to alter doesn't even exist but that's a problem for another day)

Any ideas on how I can change the WSL ubuntu18.04 terminal so that the default directory on startup is different?

LVM2 Partitions are not mounted after reboot https://askubuntu.com/questions/1295010/lvm2-partitions-are-not-mounted-after-reboot

i have a ubuntu server system on a dell hardware with two logical LVM2 volumes. One is the boot system an the other is the data storage exist out of two physicall drives which are organized as a RAID1. After boot the data storage is not automatically mounted.

root@pluto:/# pvs
  PV         VG        Fmt  Attr PSize   PFree  
  /dev/sda3  ubuntu-vg lvm2 a--  445.62g 178.78g
  /dev/sdb1  data-vg   lvm2 a--   <7.28t  <2.19t

lvscan delivers all the volume groups

root@pluto:/# lvscan 
  ACTIVE   Original '/dev/data-vg/data-lv' [4.00 TiB] inherit
  ACTIVE   Snapshot '/dev/data-vg/data-snapshot' [1.09 TiB] inherit
  ACTIVE   Original '/dev/ubuntu-vg/ubuntu-lv' [200.00 GiB] inherit
  ACTIVE   Snapshot '/dev/ubuntu-vg/ubuntu-snapshot' [<66.84 GiB] inherit

lvdisplay shows also all the volume groups.

root@pluto:/# lvdisplay 
  --- Logical volume ---
  LV Path                /dev/data-vg/data-lv
  LV Name                data-lv
  VG Name                data-vg
  LV UUID                AC5nN1-aGdj-lgfo-PqBP-lIkZ-D5vx-tcO6IP
  LV Write Access        read/write
  LV Creation host, time pluto, 2020-11-10 14:19:31 +0100
  LV snapshot status     source of
                         data-snapshot [active]
  LV Status              available
  # open                 0
  LV Size                4.00 TiB
  Current LE             1048576
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5
   
  --- Logical volume ---
  LV Path                /dev/data-vg/data-snapshot
  LV Name                data-snapshot
  VG Name                data-vg
  LV UUID                oHsjAj-79tp-UMN3-MUb6-Efwc-Zl43-XHEGx1
  LV Write Access        read/write
  LV Creation host, time pluto, 2020-11-10 14:19:45 +0100
  LV snapshot status     active destination for data-lv
  LV Status              available
  # open                 0
  LV Size                4.00 TiB
  Current LE             1048576
  COW-table size         1.09 TiB
  COW-table LE           286137
  Allocated to snapshot  100.00%
  Snapshot chunk size    4.00 KiB
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:7
   
  --- Logical volume ---
  LV Path                /dev/ubuntu-vg/ubuntu-lv
  LV Name                ubuntu-lv
  VG Name                ubuntu-vg
  LV UUID                eiVtC7-Uz40-BQdS-Dsrj-vgUw-gL6v-BwLfqt
  LV Write Access        read/write
  LV Creation host, time ubuntu-server, 2020-11-10 16:07:23 +0100
  LV snapshot status     source of
                         ubuntu-snapshot [active]
  LV Status              available
  # open                 1
  LV Size                200.00 GiB
  Current LE             51200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Path                /dev/ubuntu-vg/ubuntu-snapshot
  LV Name                ubuntu-snapshot
  VG Name                ubuntu-vg
  LV UUID                CL35iM-uBSY-QC5A-FvLD-UHiF-M7Cw-rH831B
  LV Write Access        read/write
  LV Creation host, time pluto, 2020-11-10 16:26:42 +0100
  LV snapshot status     active destination for ubuntu-lv
  LV Status              available
  # open                 0
  LV Size                200.00 GiB
  Current LE             51200
  COW-table size         <66.84 GiB
  COW-table LE           17111
  Allocated to snapshot  10.33%
  Snapshot chunk size    4.00 KiB
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
root@pluto:/# lsblk
NAME                                MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0                                 7:0    0  97.8M  1 loop /snap/core/10185
loop1                                 7:1    0    55M  1 loop /snap/core18/1880
loop2                                 7:2    0  29.9M  1 loop /snap/snapd/8542
loop3                                 7:3    0  55.4M  1 loop /snap/core18/1932
loop4                                 7:4    0  67.8M  1 loop /snap/lxd/18150
loop5                                 7:5    0  71.3M  1 loop /snap/lxd/16099
loop6                                 7:6    0    31M  1 loop /snap/snapd/9721
sda                                   8:0    0 446.6G  0 disk 
├─sda1                                8:1    0     1M  0 part 
├─sda2                                8:2    0     1G  0 part /boot
└─sda3                                8:3    0 445.6G  0 part 
  ├─ubuntu--vg-ubuntu--lv-real      253:0    0   200G  0 lvm  
  │ ├─ubuntu--vg-ubuntu--lv         253:1    0   200G  0 lvm  /
  │ └─ubuntu--vg-ubuntu--snapshot   253:3    0   200G  0 lvm  
  └─ubuntu--vg-ubuntu--snapshot-cow 253:2    0  66.9G  0 lvm  
    └─ubuntu--vg-ubuntu--snapshot   253:3    0   200G  0 lvm  
sdb                                   8:16   0   7.3T  0 disk 
└─sdb1                                8:17   0   7.3T  0 part 
  └─data--vg-data--snapshot-cow     253:6    0   1.1T  0 lvm  
sr0                                  11:0    1  1024M  0 rom

When I call vgscan --mknodes the device in /dev/data-vg are generated. And the message is raised.

root@pluto:/# vgscan --mknodes
  Found volume group "data-vg" using metadata type lvm2
  Found volume group "ubuntu-vg" using metadata type lvm2
  The link /dev/data-vg/data-lv should have been created by udev but it was not found. Falling back to direct link creation.
  The link /dev/data-vg/data-snapshot should have been created by udev but it was not found. Falling back to direct link creation.

When I call vgchange -a y you can see in the journal pluto lvm[972]: Target (null) is not snapshot.

After a long time the command end and the lvm are available.

  device-mapper: reload ioctl on  (253:7) failed: Invalid argument
  2 logical volume(s) in volume group "data-vg" now active
  2 logical volume(s) in volume group "ubuntu-vg" now active
root@pluto:/dev# lsblk 
NAME                                MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0                                 7:0    0  97.8M  1 loop /snap/core/10185
loop1                                 7:1    0    55M  1 loop /snap/core18/1880
loop2                                 7:2    0  29.9M  1 loop /snap/snapd/8542
loop3                                 7:3    0  55.4M  1 loop /snap/core18/1932
loop4                                 7:4    0  67.8M  1 loop /snap/lxd/18150
loop5                                 7:5    0  71.3M  1 loop /snap/lxd/16099
loop6                                 7:6    0    31M  1 loop /snap/snapd/9721
sda                                   8:0    0 446.6G  0 disk 
├─sda1                                8:1    0     1M  0 part 
├─sda2                                8:2    0     1G  0 part /boot
└─sda3                                8:3    0 445.6G  0 part 
  ├─ubuntu--vg-ubuntu--lv-real      253:0    0   200G  0 lvm  
  │ ├─ubuntu--vg-ubuntu--lv         253:1    0   200G  0 lvm  /
  │ └─ubuntu--vg-ubuntu--snapshot   253:3    0   200G  0 lvm  
  └─ubuntu--vg-ubuntu--snapshot-cow 253:2    0  66.9G  0 lvm  
    └─ubuntu--vg-ubuntu--snapshot   253:3    0   200G  0 lvm  
sdb                                   8:16   0   7.3T  0 disk 
└─sdb1                                8:17   0   7.3T  0 part 
  ├─data--vg-data--lv-real          253:4    0     4T  0 lvm  
  │ ├─data--vg-data--lv             253:5    0     4T  0 lvm  
  │ └─data--vg-data--snapshot       253:7    0     4T  0 lvm  
  └─data--vg-data--snapshot-cow     253:6    0   1.1T  0 lvm  
    └─data--vg-data--snapshot       253:7    0     4T  0 lvm  
sr0  

And the i am able to mount the logical volume.

My aim is to get the volumes directly mounted during boot. Please can you help me.

best regards

Get IPv6 on PPPoE in Ubuntu https://askubuntu.com/questions/1205226/get-ipv6-on-pppoe-in-ubuntu

I have a strange situation here. If anyone can help, please do so.

We're talking about a Linux Box running as Router using Ubuntu 18.04.3 LTS, with 2 interfaces: "lan" - which connects to my internal LAN and "wan" - which connects to my ISP.

However, my ISP requires PPPoE connection, so, basically, the "wan" interface is used only a starter for the ppp0 interface.

My problem is that I cannot get IPv6 global address on this server.

I am able to successfully connect to my ISP. I already followed the tutorial from here: http://gruffi.be/mediawiki/index.php/Ipv6_with_PPPoE_on_Ubuntu , but it doesn't work for me.

So, here is what I did:

  1. /etc/ppp/options:

    +ipv6 ipv6cp-use-ipaddr
    
  2. /etc/sysctl.conf:

    net.ipv6.conf.all.forwarding=1
    
    net.ipv6.conf.ppp0.accept_ra=2
    
  3. /etc/wide-dhcpv6/dhcp6c.conf:

    interface ppp0 {
    
        send ia-pd 2;
        send ia-na 1;
    };
    
    # Use subnets from the prefix with id 0
    id-assoc pd 2 {
        prefix-interface lan {
            # Assign subnet 1 to eth0
            sla-len 8; # <----- BELANGRIJK: 8 omdat ons klein net 64 en ons groot 56 is en dat het verschil is
            sla-id 2;
        };
    };
    
    id-assoc na 1 { };
    
  4. /etc/radvd.conf:

    interface lan
    {
        AdvSendAdvert on;
        prefix ::/64
        {
            AdvOnLink on;
            AdvAutonomous on;
            AdvRouterAddr on;
        };
    RDNSS 2001:4860:4860::8888  2001:4860:4860::8844
            {
                    # AdvRDNSSLifetime 3600;
            };
    };
    

My ISP told me that it doesn't use Router Advertisement, however it uses DHCPv6 Prefix Delegation and offers /64 subnets.

The problem is that I tried more configs from the net, non of them worked for me.

When I "ifconfig ppp0", it says:

inet 1.2.3.4 ...
inet6 fe80::xxxx:yyyy

No sign of a global IPv6 address.

If I turn on debugging on wide DHCP client and I examine /var/log/syslog, I see that it tries to send Solicit messages to ff02::1:2%ppp0 and the timers reset. I get no reply.

However, router advertisements are working, both on "ppp0" and on my internal lan, because I have a Default Route: "default via fe80::1" when I "ip -6 r". However, no global IPv6 address.

I suspect it something to do with DHCP. The address is not obtained correcly.

I can ping:

ping6 fe80::1%ppp0
64 bytes from...

But when trying to "ping6 google.com", it says: "Beyond scope of source address"

I need to do 2 things, in the long run:

  1. Try to get a global IPv6 address on "ppp0" so my websites can be accesible from IPv6 addresses (DNS already taken care of)

  2. I need to forward whatever /64 prefix my ISP gives me, let's say: "2001:abcd:dead:beef::/64" to my internal computers, but using a fixed part for the internal computers.[/COLOR]

For example:

Computer 1: 2001:abcd:dead:beef::1/64
Computer 2: 2001:abcd:dead:beef::2/64
Computer 3: 2001:abcd:dead:beef::3/64

I do NOT want EUI-64 addresses, NOR do I want Private Addresses. I want my computers assigned an ORDERly IPv6 address with the prefix given, regardless of the dynamic prefix.

For example, after reboot, I might get "2001:1234:beef:dead::/64". I want the same Host-part allocation using "::1", "::2", and so on...

Thank you !

How to enable keyboard in tablet mode (HP Spectre x360) https://askubuntu.com/questions/1174454/how-to-enable-keyboard-in-tablet-mode-hp-spectre-x360

HP Spectre x360 laptops have a hinge screen that can turn 360 degrees. It can be folded to imitate a tablet, for example. When you do fold it, Ubuntu enters its tablet mode -- keyboard and touch-pad will be disabled.

I want to stop that. I'd like to keep keyboard and touch-pad on so that I could connect to an external display and still be able to use them. I've done some googling and found a few solutions:

  • On Windows, you can do this by disabling the Inter(R) Integrated Sensor Solution driver. I have Windows installed parallel to Ubuntu, so I tried doing that. It helped solve the problem while I'm in Windows, however, when I go back to Ubuntu, the problem remains.

  • On Ubuntu, people generally recommend using the xinput command to control input devices (e.g. inable/disable them). But it doesn't seem to reflect the real state of affairs... For example, right now I'm typing this using an external keyboard and mouse; embedded keyboard and touch-pad are de-facto disabled -- I cannot use them -- as the screen is folded and tablet mode active. Yet, if I run xinput and check the props of my touch-pad, it reports it as being enabled.

Here are some snippets from of xinput betraying me... :) As you can see on the second snippet it says Device Enabled (154): 1 which is a plain lie. Trying to run xinput --enable 18 anyways gives nothing -- touch-pad stays disabled.

sharpvik@sharpvik:~$ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SEMICO USB Keyboard Consumer Control      id=10   [slave  pointer  (2)]
⎜   ↳ ELAN0732:00 04F3:24DB                     id=14   [slave  pointer  (2)]
⎜   ↳ COMPANY USB Device                        id=22   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=18   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ SEMICO USB Keyboard System Control        id=11   [slave  keyboard (3)]
    ↳ SEMICO USB Keyboard                       id=12   [slave  keyboard (3)]
    ↳ HP TrueVision FHD RGB-IR: HP Tr           id=13   [slave  keyboard (3)]
    ↳ ELAN0732:00 04F3:24DB                     id=15   [slave  keyboard (3)]
    ↳ Intel Virtual Button driver               id=16   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=17   [slave  keyboard (3)]
    ↳ HP Wireless hotkeys                       id=19   [slave  keyboard (3)]
    ↳ HP WMI hotkeys                            id=20   [slave  keyboard (3)]
    ↳ SEMICO USB Keyboard Consumer Control      id=21   [slave  keyboard (3)]
    ↳ SEMICO USB Keyboard                       id=9    [slave  keyboard (3)]
sharpvik@sharpvik:~$ xinput --list-props 18
Device 'SynPS/2 Synaptics TouchPad':
    Device Enabled (154):   1
    Coordinate Transformation Matrix (156): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Tapping Enabled (299): 1
    libinput Tapping Enabled Default (300): 0
    libinput Tapping Drag Enabled (301):    1
    libinput Tapping Drag Enabled Default (302):    1
    libinput Tapping Drag Lock Enabled (303):   0
    libinput Tapping Drag Lock Enabled Default (304):   0
    libinput Tapping Button Mapping Enabled (305):  1, 0
    libinput Tapping Button Mapping Default (306):  1, 0
    libinput Natural Scrolling Enabled (291):   1
    libinput Natural Scrolling Enabled Default (292):   0
    libinput Disable While Typing Enabled (307):    0
    ...

Another program, acpi_listen seems to catch that moment of folding the screen. It prints video/tabletmode TBLT 0000008A 00000000 every time I do that. Although I am not sure as to how to use that to resolve the issue.

It seems like the problem is deeper, at the hardware level, but I'm not an expert yet, so I'm asking for help. How can I prevent keyboard and touch-pad from being disabled?

"Failed to start OpenBSD Secure Shell server" error after adding users to PAM section https://askubuntu.com/questions/1136482/failed-to-start-openbsd-secure-shell-server-error-after-adding-users-to-pam-se

When I add users in the PAM section of sshd_config:

UsePAM yes
Match User employee_1
PasswordAuthentication yes

I cannot restart the SSH service and get the message below (Why? pls help):

root@ip-xxxxxxx:/etc/ssh# systemctl status ssh


● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-04-23 18:19:00 UTC; 19s ago
  Process: 895 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=0/SUCCESS)
  Process: 2183 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255)
 Main PID: 895 (code=exited, status=0/SUCCESS)

Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Control process exited, code=exited status=255
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
Apr 23 18:19:00 ip-publicip systemd[1]: Stopped OpenBSD Secure Shell server.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Start request repeated too quickly.
Apr 23 18:19:00 ip-publicip systemd[1]: ssh.service: Failed with result 'exit-code'.
Apr 23 18:19:00 ip-publicip systemd[1]: Failed to start OpenBSD Secure Shell server.
Cron service fails to start https://askubuntu.com/questions/1046720/cron-service-fails-to-start

I have an Ubuntu 14.04 and I am trying to start cron service without success. I always get this after running service cron start:

Job for cron.service failed because the control process exited with error code.

systemctl status cron.service says that the cron service is loaded but failed:

cron.service
   Loaded: loaded (/etc/init.d/cron; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2018-06-15 09:06:19 AWST; 6min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 22707 ExecStart=/etc/init.d/cron start (code=exited, status=1/FAILURE)

 cron[22707]: Rather than invoking init scripts through /etc/init.d, use the service(8)
 cron[22707]: utility, e.g. service cron start
 cron[22707]: initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
 cron[22707]: Since the script you are attempting to invoke has been converted to an
 cron[22707]: Upstart job, you may also use the start(8) utility, e.g. start cron
 cron[22707]: start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
 systemd[1]: cron.service: Control process exited, code=exited status=1
 systemd[1]: Failed to start cron.service.
 systemd[1]: cron.service: Unit entered failed state.
 systemd[1]: cron.service: Failed with result 'exit-code'.

Any hint on how to make cron service to successfully start?

How do I solve Error 13: Invalid or unsupported executable format when trying to install Ubuntu https://askubuntu.com/questions/982389/how-do-i-solve-error-13-invalid-or-unsupported-executable-format-when-trying-to

I'm trying my hand at getting my laptop to run Ubuntu.

My laptop is a Toshiba Satellite L755-S5153. It came preloaded with Windows 7. I upgraded the laptop to Windows 10.

I downloaded the Ubuntu 16.04.3 disk image (ISO) file to the laptop's hard drive.

UNetbootin was downloaded and run. The type was set to hard disk and Diskimage was set to where the ISO file was downloaded. I pressed OK, and UNetbootin proceeded without any problem.

When I try to boot from UNetbootin, I get a black screen with the this error:

Booting 'UNetbootin'

 (hd0,1)
 Filesystem type is ntfs, partitiom type 0x7
kernel  /unetbtin/ubnkern 
Error 13: Invalid or unsupported executable format

Press any key to continue..._
Apple iPhone 7 - Importing Pictures to Laptop Linux Ubuntu 17.04 https://askubuntu.com/questions/919452/apple-iphone-7-importing-pictures-to-laptop-linux-ubuntu-17-04

I have A laptop with Ubuntu 17.04 & installed Gthumb, I need to sync my phone and remove the photos because I'm running low on space, but the PC isn't recognizing there are pictures.

Is there a specific way to do this? I'm open to any other software suggestions as well.

I'm using Ubuntu 17.04

Ubuntu (dual boot Windows) Ethernet Not Connecting/Detecting https://askubuntu.com/questions/846125/ubuntu-dual-boot-windows-ethernet-not-connecting-detecting

I'm completely new to Linux and just installed Ubuntu 16.04 LTS with Windows 10. (I've installed Ubuntu on a different partition than Windows, if that would be of any help). So I set up Ubuntu but my Ethernet is not being detected and connected. The same works fine when on Windows. I've searched other questions on this site but none of them solved my problem. I would be glad if someone helped me out here! Thanks!

Okay, so I am the user who put a bounty on the question. I was unable to comment due to lack of reputation. But now I think I should take the reins of this question into my hands. So, I will describe my system's properties.

I had installed Ubuntu 16.04 on a separate partition in parallel to Windows 10. The laptop is Lenovo Z51-70. The problem is that the ethernet is not connecting on Ubuntu.

This is the result of "ipconfig" on Windows.

Windows IP Configuration


Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::d01f:a297:5f9c:80f%4
   IPv4 Address. . . . . . . . . . . : 10.9.73.16
   Subnet Mask . . . . . . . . . . . : 255.255.224.0
   Default Gateway . . . . . . . . . : 10.9.70.250

Ethernet adapter Ethernet 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter isatap.{5F5A44D4-1648-49E4-8C87-54CB2AB99206}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter Local Area Connection* 12:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Also, I would like to add that rebooting didn't help. Restarting network-manager didn't help. Giving up IP on Windows before booting into Ubuntu didn't help.

The output of the script which @DavidFoerster mentioned is at wireless-info.txt.

How to access my codeigniter folder in ubuntu? https://askubuntu.com/questions/726125/how-to-access-my-codeigniter-folder-in-ubuntu

I have deployed my codeigniter folder into /var/www/html . But when i am trying to access it using http://localhost/CodeIgniter/ this is showing Server error

500

The website encountered an error while retrieving http://localhost/CodeIgniter/. It may be down for maintenance or configured incorrectly. But when i am creting a new folder into /var/www/html/ and creating a hello.php file in it and that is working fine.

Ubuntu 15 network with bond, VLAN, bridge https://askubuntu.com/questions/709817/ubuntu-15-network-with-bond-vlan-bridge

I am posting this question with the reply because I already find the answer after some searches and I think it could benefit other people since I didn't find easy to solve this on Ubuntu 15.

  • Note 1: this question is also valid for Debian 8
  • Note 2: the answer I post is a working solution but maybe not the best (I have not tweaked the bonding solution so more testing is needed here)
  • Note 3: The question cover also 2 others minor questions:

    • How to enable DHCP on a bonding interface on Ubuntu 15?
    • How to enable WOL on Ubuntu 15?

Here is the question: I am using Ubuntu 15 server, mostly to use KVM with more up to date packages than Debian 8. My setup is like this:

eth0 |
     |--> Bond -- VLAN --> bridge
eth1 |

How to I configure this setup in Ubuntu 15 server?

How do I install drivers and configure my screen to work? (15.04, nvidia 760 gtx, QNIX QX2710) https://askubuntu.com/questions/623274/how-do-i-install-drivers-and-configure-my-screen-to-work-15-04-nvidia-760-gtx

Every time I try to install the Nvidia drivers for my graphics card, the GTX 760, I end up with a black screen on boot which stops me from using the computer.

This happens regardless of where I download it from, it seems, as I've tried both with the Nvidia website, apt-get and Ubuntu Software Center. I've tried nvidia-current (349) as well as 319, with the same result from both.

I actually sat down and read Nvidia's readme as well, which simply doesn't help.

How do I install drivers that work? Could I be missing a step?

EDIT: Apparently it's not my graphics drivers that are messing with my - it's my screen. I have one of those cheap 27" 2560x1440 monitors, a QNIX QX2710, and this monitor does not report it's EDID correctly. I tried following a couple of guides but with no progress. I'll put this on hold, it's simply not worth the time and frustration.

Increase virtual screen size past 4096 x 4096 on Ubuntu 14.04 LTS https://askubuntu.com/questions/536175/increase-virtual-screen-size-past-4096-x-4096-on-ubuntu-14-04-lts

I have two 27" monitors with a 2560 x 1920 resolution each. When I try to extend my desktop across them both I get the below error:

enter image description here

So, if I need to increase the maximum virtual screen size? To include a resolution of 5120 x 1920.

I've been trying to do this for about 12 hours now....

I have tried using xrandr arandr and a bunch of other tools recommend on this site and other forums.

I have added a xorg.conf file to /etc/X11 (which didn't exist already, and I generated) which now looks like this:

Note: This is just a snippet from the file (I can post it if needed).

Section "Screen"
    SubSection "Display"
                Virtual 5120 4096
        EndSubSection
EndSection

I also tried a bunch of other similar answers, and in the process messed up the xorg server and wasn't able to boot at all until re installing it.

I know xserver changed a bit from 12 to 14, and now uses a bunch of files in /usr/share/xorg.conf.d, which I have also played around with. My understanding is putting a xorg.conf file in the /etc/X11 folder would overrule that anyway (but really, I've been trying anything).

So far nothing has worked.

Some things have had an effect, like me not being able to boot up at all, or get past the logo, which have been solved by root terminalling in safe mode to undo changes or reinstall xserver.

Any ideas would be appreciated.